@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.
- package/dist/annotations.cjs +1 -1
- package/dist/annotations.js +1 -1
- package/package.json +1 -1
package/dist/annotations.cjs
CHANGED
|
@@ -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);
|
package/dist/annotations.js
CHANGED
|
@@ -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);
|