phecda-web 3.0.4 → 3.0.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.js +4 -8
- package/dist/index.mjs +4 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -159,17 +159,13 @@ var WebPhecda = class {
|
|
|
159
159
|
/**
|
|
160
160
|
* for ssr or manual inject
|
|
161
161
|
*/
|
|
162
|
-
memory;
|
|
163
|
-
state;
|
|
164
|
-
modelMap;
|
|
165
|
-
emitter;
|
|
162
|
+
memory = {};
|
|
163
|
+
state = {};
|
|
164
|
+
modelMap = /* @__PURE__ */ new WeakMap();
|
|
165
|
+
emitter = (0, import_mitt2.default)();
|
|
166
166
|
constructor(namespace, parseModule) {
|
|
167
167
|
this.namespace = namespace;
|
|
168
168
|
this.parseModule = parseModule;
|
|
169
|
-
this.memory = {};
|
|
170
|
-
this.state = {};
|
|
171
|
-
this.modelMap = /* @__PURE__ */ new WeakMap();
|
|
172
|
-
this.emitter = (0, import_mitt2.default)();
|
|
173
169
|
if (typeof window !== "undefined") {
|
|
174
170
|
defaultWebInject();
|
|
175
171
|
setDefaultPhecda(namespace, this);
|
package/dist/index.mjs
CHANGED
|
@@ -116,17 +116,13 @@ var WebPhecda = class {
|
|
|
116
116
|
/**
|
|
117
117
|
* for ssr or manual inject
|
|
118
118
|
*/
|
|
119
|
-
memory;
|
|
120
|
-
state;
|
|
121
|
-
modelMap;
|
|
122
|
-
emitter;
|
|
119
|
+
memory = {};
|
|
120
|
+
state = {};
|
|
121
|
+
modelMap = /* @__PURE__ */ new WeakMap();
|
|
122
|
+
emitter = mitt2();
|
|
123
123
|
constructor(namespace, parseModule) {
|
|
124
124
|
this.namespace = namespace;
|
|
125
125
|
this.parseModule = parseModule;
|
|
126
|
-
this.memory = {};
|
|
127
|
-
this.state = {};
|
|
128
|
-
this.modelMap = /* @__PURE__ */ new WeakMap();
|
|
129
|
-
this.emitter = mitt2();
|
|
130
126
|
if (typeof window !== "undefined") {
|
|
131
127
|
defaultWebInject();
|
|
132
128
|
setDefaultPhecda(namespace, this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phecda-web",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "using proxy, provide phecda function to web app",
|
|
5
5
|
"author": "fgsreally",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"mitt": "^3.0.0",
|
|
20
20
|
"reflect-metadata": "^0.1.13",
|
|
21
21
|
"ts-mixer": "^6.0.4",
|
|
22
|
-
"phecda-core": "4.
|
|
22
|
+
"phecda-core": "4.4.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"tsup": "^8.1.0"
|