npm package diff
Package: @forge/api
Versions: 3.10.0-next.0 - 4.0.0-next.1
File: package/out/properties/sanitized-key.js
Index: package/out/properties/sanitized-key.js
===================================================================
--- package/out/properties/sanitized-key.js
+++ package/out/properties/sanitized-key.js
@@ -1,11 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.sanitizedKey = void 0;
-const sanitizedKey = (input) => {
- const regex = /^(~)?[A-Za-z0-9_\-\.]+$/;
- if (!regex.test(input)) {
- throw new Error('Invalid context/property key');
- }
- return input;
-};
-exports.sanitizedKey = sanitizedKey;