phecda-core 2.0.0-alpha.4 → 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 +12 -12
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -367,18 +367,18 @@ var Phecda = (() => {
|
|
|
367
367
|
}
|
|
368
368
|
__name(Assign, "Assign");
|
|
369
369
|
function Global(target) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
globalThis.__PHECDA__
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
}
|
|
370
|
+
init(target.prototype);
|
|
371
|
+
setModelVar(target.prototype, "__CLASS");
|
|
372
|
+
regisHandler(target.prototype, "__CLASS", {
|
|
373
|
+
init: async (instance) => {
|
|
374
|
+
const tag = instance.__TAG__;
|
|
375
|
+
if (!tag)
|
|
376
|
+
return;
|
|
377
|
+
if (!globalThis.__PHECDA__)
|
|
378
|
+
globalThis.__PHECDA__ = {};
|
|
379
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
382
|
}
|
|
383
383
|
__name(Global, "Global");
|
|
384
384
|
function Empty(_target) {
|
package/dist/index.js
CHANGED
|
@@ -367,18 +367,18 @@ function Assign(cb) {
|
|
|
367
367
|
}
|
|
368
368
|
__name(Assign, "Assign");
|
|
369
369
|
function Global(target) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
globalThis.__PHECDA__
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
}
|
|
370
|
+
init(target.prototype);
|
|
371
|
+
setModelVar(target.prototype, "__CLASS");
|
|
372
|
+
regisHandler(target.prototype, "__CLASS", {
|
|
373
|
+
init: async (instance) => {
|
|
374
|
+
const tag = instance.__TAG__;
|
|
375
|
+
if (!tag)
|
|
376
|
+
return;
|
|
377
|
+
if (!globalThis.__PHECDA__)
|
|
378
|
+
globalThis.__PHECDA__ = {};
|
|
379
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
382
|
}
|
|
383
383
|
__name(Global, "Global");
|
|
384
384
|
function Empty(_target) {
|
package/dist/index.mjs
CHANGED
|
@@ -276,18 +276,18 @@ function Assign(cb) {
|
|
|
276
276
|
}
|
|
277
277
|
__name(Assign, "Assign");
|
|
278
278
|
function Global(target) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
globalThis.__PHECDA__
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
}
|
|
279
|
+
init(target.prototype);
|
|
280
|
+
setModelVar(target.prototype, "__CLASS");
|
|
281
|
+
regisHandler(target.prototype, "__CLASS", {
|
|
282
|
+
init: async (instance) => {
|
|
283
|
+
const tag = instance.__TAG__;
|
|
284
|
+
if (!tag)
|
|
285
|
+
return;
|
|
286
|
+
if (!globalThis.__PHECDA__)
|
|
287
|
+
globalThis.__PHECDA__ = {};
|
|
288
|
+
globalThis.__PHECDA__[tag] = instance.constructor;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
291
|
}
|
|
292
292
|
__name(Global, "Global");
|
|
293
293
|
function Empty(_target) {
|