phecda-core 2.0.0-alpha.5 → 2.0.0-alpha.6
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.global.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -370,13 +370,13 @@ var Phecda = (() => {
|
|
|
370
370
|
init(target.prototype);
|
|
371
371
|
setModelVar(target.prototype, "__CLASS");
|
|
372
372
|
regisHandler(target.prototype, "__CLASS", {
|
|
373
|
-
init: async () => {
|
|
374
|
-
const tag =
|
|
373
|
+
init: async (instance) => {
|
|
374
|
+
const tag = instance.__TAG__;
|
|
375
375
|
if (!tag)
|
|
376
376
|
return;
|
|
377
377
|
if (!globalThis.__PHECDA__)
|
|
378
378
|
globalThis.__PHECDA__ = {};
|
|
379
|
-
globalThis.__PHECDA__[tag] =
|
|
379
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
}
|
package/dist/index.js
CHANGED
|
@@ -370,13 +370,13 @@ function Global(target) {
|
|
|
370
370
|
init(target.prototype);
|
|
371
371
|
setModelVar(target.prototype, "__CLASS");
|
|
372
372
|
regisHandler(target.prototype, "__CLASS", {
|
|
373
|
-
init: async () => {
|
|
374
|
-
const tag =
|
|
373
|
+
init: async (instance) => {
|
|
374
|
+
const tag = instance.__TAG__;
|
|
375
375
|
if (!tag)
|
|
376
376
|
return;
|
|
377
377
|
if (!globalThis.__PHECDA__)
|
|
378
378
|
globalThis.__PHECDA__ = {};
|
|
379
|
-
globalThis.__PHECDA__[tag] =
|
|
379
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -279,13 +279,13 @@ function Global(target) {
|
|
|
279
279
|
init(target.prototype);
|
|
280
280
|
setModelVar(target.prototype, "__CLASS");
|
|
281
281
|
regisHandler(target.prototype, "__CLASS", {
|
|
282
|
-
init: async () => {
|
|
283
|
-
const tag =
|
|
282
|
+
init: async (instance) => {
|
|
283
|
+
const tag = instance.__TAG__;
|
|
284
284
|
if (!tag)
|
|
285
285
|
return;
|
|
286
286
|
if (!globalThis.__PHECDA__)
|
|
287
287
|
globalThis.__PHECDA__ = {};
|
|
288
|
-
globalThis.__PHECDA__[tag] =
|
|
288
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
}
|