@saptools/cf-inspector 0.4.3 → 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/index.d.ts CHANGED
@@ -18,7 +18,6 @@ interface RemoteRootRegex {
18
18
  readonly kind: "regex";
19
19
  readonly pattern: string;
20
20
  readonly flags: string;
21
- readonly regex: RegExp;
22
21
  }
23
22
  interface RemoteRootNone {
24
23
  readonly kind: "none";
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
- try {
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("/")) {