@optique/core 1.0.0-dev.1878 → 1.0.0-dev.1880

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.
@@ -528,7 +528,7 @@ function createProtectedURLView(target, context) {
528
528
  const cloned = syncPrototype ? new URL(target.href) : tryCloneURLSubclass(target) ?? new URL(target.href);
529
529
  const view = new Proxy(cloned, {
530
530
  get(clonedTarget, key) {
531
- if (key === "valueOf") return () => view;
531
+ if (key === "valueOf") return cacheProtectedMethod(methodCache, key, () => () => view);
532
532
  if (key === "searchParams") return protectAnnotationValue(clonedTarget.searchParams, context);
533
533
  const value = Reflect.get(clonedTarget, key, clonedTarget);
534
534
  return getProtectedClonePropertyValue(methodCache, clonedTarget, key, value, context);
@@ -527,7 +527,7 @@ function createProtectedURLView(target, context) {
527
527
  const cloned = syncPrototype ? new URL(target.href) : tryCloneURLSubclass(target) ?? new URL(target.href);
528
528
  const view = new Proxy(cloned, {
529
529
  get(clonedTarget, key) {
530
- if (key === "valueOf") return () => view;
530
+ if (key === "valueOf") return cacheProtectedMethod(methodCache, key, () => () => view);
531
531
  if (key === "searchParams") return protectAnnotationValue(clonedTarget.searchParams, context);
532
532
  const value = Reflect.get(clonedTarget, key, clonedTarget);
533
533
  return getProtectedClonePropertyValue(methodCache, clonedTarget, key, value, context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1878+1ab0e08e",
3
+ "version": "1.0.0-dev.1880+7cc974b7",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",