juxscript 1.1.303 → 1.1.304
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageState.d.ts","sourceRoot":"","sources":["../../../lib/state/pageState.ts"],"names":[],"mappings":"AAeA,cAAM,SAAS;IACX,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,MAAM,CAAsB;IAEpC,MAAM,CAAC,QAAQ,CAAC,WAAW,mKAQhB;;
|
|
1
|
+
{"version":3,"file":"pageState.d.ts","sourceRoot":"","sources":["../../../lib/state/pageState.ts"],"names":[],"mappings":"AAeA,cAAM,SAAS;IACX,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,MAAM,CAAsB;IAEpC,MAAM,CAAC,QAAQ,CAAC,WAAW,mKAQhB;;IA+BX,OAAO,CAAC,qBAAqB;IA0G7B,OAAO,CAAC,SAAS;IA+DjB,OAAO,CAAC,UAAU;IAgClB,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,OAAO;IA2Cf,OAAO,CAAC,MAAM;IAmBd,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAGlC;AAID,eAAO,MAAM,SAAS,qBAAuB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -8,6 +8,8 @@ class PageState {
|
|
|
8
8
|
this._registry = new Map();
|
|
9
9
|
this._proxy = new Proxy({}, {
|
|
10
10
|
get: (_, id) => {
|
|
11
|
+
if (typeof id === 'symbol')
|
|
12
|
+
return undefined;
|
|
11
13
|
if (id === '__register')
|
|
12
14
|
return this._register.bind(this);
|
|
13
15
|
if (id === '__watch')
|
|
@@ -24,6 +26,8 @@ class PageState {
|
|
|
24
26
|
return this._createComponentProxy(id, entry);
|
|
25
27
|
},
|
|
26
28
|
set: (_, id, value) => {
|
|
29
|
+
if (typeof id === 'symbol')
|
|
30
|
+
return false;
|
|
27
31
|
if (value && typeof value === 'object' && value.id) {
|
|
28
32
|
this._register(value);
|
|
29
33
|
return true;
|
|
@@ -35,6 +39,8 @@ class PageState {
|
|
|
35
39
|
_createComponentProxy(id, entry) {
|
|
36
40
|
return new Proxy({}, {
|
|
37
41
|
get: (_, prop) => {
|
|
42
|
+
if (typeof prop === 'symbol')
|
|
43
|
+
return undefined;
|
|
38
44
|
const depKey = `${id}.${prop}`;
|
|
39
45
|
if (activeReaction) {
|
|
40
46
|
if (!reactionDeps.has(activeReaction)) {
|
|
@@ -73,6 +79,8 @@ class PageState {
|
|
|
73
79
|
return undefined;
|
|
74
80
|
},
|
|
75
81
|
set: (_, prop, value) => {
|
|
82
|
+
if (typeof prop === 'symbol')
|
|
83
|
+
return false;
|
|
76
84
|
const depKey = `${id}.${prop}`;
|
|
77
85
|
const comp = entry.component;
|
|
78
86
|
// Try setXxx first (e.g. setValue, setContent, setClass)
|