@saptools/cf-inspector 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -198,16 +198,7 @@ function parseRemoteRoot(value) {
|
|
|
198
198
|
return { kind: "literal", value: stripTrailingSlash(trimmed) };
|
|
199
199
|
}
|
|
200
200
|
function toRegex(pattern, flags) {
|
|
201
|
-
|
|
202
|
-
const regex = new RegExp(pattern, flags);
|
|
203
|
-
return { kind: "regex", pattern, flags, regex };
|
|
204
|
-
} catch (err) {
|
|
205
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
206
|
-
throw new CfInspectorError(
|
|
207
|
-
"INVALID_REMOTE_ROOT",
|
|
208
|
-
`Failed to compile remote-root regex "${pattern}" with flags "${flags}": ${message}`
|
|
209
|
-
);
|
|
210
|
-
}
|
|
201
|
+
return { kind: "regex", pattern, flags };
|
|
211
202
|
}
|
|
212
203
|
function parseSlashDelimited(value) {
|
|
213
204
|
if (!value.startsWith("/")) {
|