phecda-vue 3.0.0-alpha.6 → 3.0.0-alpha.7
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 +3 -3
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -240,13 +240,13 @@ function useO(module2) {
|
|
|
240
240
|
const { state } = (0, import_phecda_web3.getActiveInstance)();
|
|
241
241
|
if (module2.prototype.__ISOLATE__) {
|
|
242
242
|
const instance = (0, import_vue4.reactive)(new module2());
|
|
243
|
-
instance._promise = (0, import_phecda_web3.
|
|
243
|
+
instance._promise = (0, import_phecda_web3.registerSerial)(instance);
|
|
244
244
|
return instance;
|
|
245
245
|
}
|
|
246
|
-
const tag = (0, import_phecda_web3.getTag)(module2)
|
|
246
|
+
const tag = (0, import_phecda_web3.getTag)(module2);
|
|
247
247
|
if (!(tag in state)) {
|
|
248
248
|
const instance = (0, import_vue4.reactive)(new module2());
|
|
249
|
-
instance._promise = (0, import_phecda_web3.
|
|
249
|
+
instance._promise = (0, import_phecda_web3.registerSerial)(instance);
|
|
250
250
|
state[tag] = instance;
|
|
251
251
|
}
|
|
252
252
|
return state[tag];
|
package/dist/index.mjs
CHANGED
|
@@ -154,7 +154,7 @@ __name(createPhecda, "createPhecda");
|
|
|
154
154
|
|
|
155
155
|
// src/composable.ts
|
|
156
156
|
import { onBeforeUnmount, reactive, toRaw, toRef } from "vue";
|
|
157
|
-
import { emitter as emitter2, getActiveInstance as getActiveInstance2, getHandler, getTag,
|
|
157
|
+
import { emitter as emitter2, getActiveInstance as getActiveInstance2, getHandler, getTag, registerSerial, wrapError } from "phecda-web";
|
|
158
158
|
|
|
159
159
|
// src/utils.ts
|
|
160
160
|
import { effectScope as effectScope2, isReactive, isRef, onScopeDispose } from "vue";
|
|
@@ -204,13 +204,13 @@ function useO(module) {
|
|
|
204
204
|
const { state } = getActiveInstance2();
|
|
205
205
|
if (module.prototype.__ISOLATE__) {
|
|
206
206
|
const instance = reactive(new module());
|
|
207
|
-
instance._promise =
|
|
207
|
+
instance._promise = registerSerial(instance);
|
|
208
208
|
return instance;
|
|
209
209
|
}
|
|
210
|
-
const tag = getTag(module)
|
|
210
|
+
const tag = getTag(module);
|
|
211
211
|
if (!(tag in state)) {
|
|
212
212
|
const instance = reactive(new module());
|
|
213
|
-
instance._promise =
|
|
213
|
+
instance._promise = registerSerial(instance);
|
|
214
214
|
state[tag] = instance;
|
|
215
215
|
}
|
|
216
216
|
return state[tag];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phecda-vue",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.7",
|
|
4
4
|
"description": "provide phecda function to vue",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"vue": "^3.2.45",
|
|
16
|
-
"phecda-web": "1.0.1-alpha.
|
|
16
|
+
"phecda-web": "1.0.1-alpha.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsup": "^6.5.0"
|