phecda-core 1.4.0 → 1.4.1
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.d.ts +2 -2
- package/dist/index.global.js +3 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ declare function Rule(rule: RegExp | string | Function | number, info: string, m
|
|
|
75
75
|
declare function Ignore(target: any, key: PropertyKey): void;
|
|
76
76
|
declare function Clear(target: any, key: PropertyKey): void;
|
|
77
77
|
declare function Err<Fn extends (...args: any) => any>(cb: Fn): (target: any, key: PropertyKey) => void;
|
|
78
|
-
declare function
|
|
78
|
+
declare function Expose(target: any, key: PropertyKey): void;
|
|
79
79
|
declare function Pipe(v: ReturnType<typeof to>): (obj: any, key: PropertyKey) => void;
|
|
80
80
|
declare function Tag(tag: string): (target: any) => void;
|
|
81
81
|
declare function Assign(cb: (instance?: any) => any): (target: any) => void;
|
|
@@ -111,4 +111,4 @@ declare function Watcher(eventName: keyof Events, options?: {
|
|
|
111
111
|
}): (obj: any, key: string) => void;
|
|
112
112
|
declare function Storage(storeKey?: string): (target: any, key?: PropertyKey) => void;
|
|
113
113
|
|
|
114
|
-
export { Assign, ClassValue, Clear, Err, Events, Global, Ignore, Init, NameSpace,
|
|
114
|
+
export { Assign, ClassValue, Clear, Err, Events, Expose, Global, Ignore, Init, NameSpace, Phecda, PhecdaHandler, Pipe, Rule, Storage, Tag, UsePipeOptions, Watcher, activeInstance, addDecoToClass, classToValue, getExposeKey, getHandler, getIgnoreKey, getInitEvent, getModelState, getProperty, getState, getTag, init, injectProperty, isPhecda, mergeOptions, mergeState, plainToClass, regisHandler, regisInitEvent, register, registerAsync, setExposeKey, setIgnoreKey, setModalVar, snapShot, to, validate };
|
package/dist/index.global.js
CHANGED
|
@@ -25,10 +25,10 @@ var Phecda = (() => {
|
|
|
25
25
|
Assign: () => Assign,
|
|
26
26
|
Clear: () => Clear,
|
|
27
27
|
Err: () => Err,
|
|
28
|
+
Expose: () => Expose,
|
|
28
29
|
Global: () => Global,
|
|
29
30
|
Ignore: () => Ignore,
|
|
30
31
|
Init: () => Init,
|
|
31
|
-
P: () => P,
|
|
32
32
|
Pipe: () => Pipe,
|
|
33
33
|
Rule: () => Rule,
|
|
34
34
|
Storage: () => Storage,
|
|
@@ -260,10 +260,10 @@ var Phecda = (() => {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
__name(Err, "Err");
|
|
263
|
-
function
|
|
263
|
+
function Expose(target, key) {
|
|
264
264
|
setExposeKey(target, key);
|
|
265
265
|
}
|
|
266
|
-
__name(
|
|
266
|
+
__name(Expose, "Expose");
|
|
267
267
|
function Pipe(v) {
|
|
268
268
|
return (obj, key) => {
|
|
269
269
|
setModalVar(obj, key);
|
package/dist/index.js
CHANGED
|
@@ -24,10 +24,10 @@ __export(src_exports, {
|
|
|
24
24
|
Assign: () => Assign,
|
|
25
25
|
Clear: () => Clear,
|
|
26
26
|
Err: () => Err,
|
|
27
|
+
Expose: () => Expose,
|
|
27
28
|
Global: () => Global,
|
|
28
29
|
Ignore: () => Ignore,
|
|
29
30
|
Init: () => Init,
|
|
30
|
-
P: () => P,
|
|
31
31
|
Pipe: () => Pipe,
|
|
32
32
|
Rule: () => Rule,
|
|
33
33
|
Storage: () => Storage,
|
|
@@ -260,10 +260,10 @@ function Err(cb) {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
__name(Err, "Err");
|
|
263
|
-
function
|
|
263
|
+
function Expose(target, key) {
|
|
264
264
|
setExposeKey(target, key);
|
|
265
265
|
}
|
|
266
|
-
__name(
|
|
266
|
+
__name(Expose, "Expose");
|
|
267
267
|
function Pipe(v) {
|
|
268
268
|
return (obj, key) => {
|
|
269
269
|
setModalVar(obj, key);
|
|
@@ -452,10 +452,10 @@ __name(Storage, "Storage");
|
|
|
452
452
|
Assign,
|
|
453
453
|
Clear,
|
|
454
454
|
Err,
|
|
455
|
+
Expose,
|
|
455
456
|
Global,
|
|
456
457
|
Ignore,
|
|
457
458
|
Init,
|
|
458
|
-
P,
|
|
459
459
|
Pipe,
|
|
460
460
|
Rule,
|
|
461
461
|
Storage,
|
package/dist/index.mjs
CHANGED
|
@@ -198,10 +198,10 @@ function Err(cb) {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
__name(Err, "Err");
|
|
201
|
-
function
|
|
201
|
+
function Expose(target, key) {
|
|
202
202
|
setExposeKey(target, key);
|
|
203
203
|
}
|
|
204
|
-
__name(
|
|
204
|
+
__name(Expose, "Expose");
|
|
205
205
|
function Pipe(v) {
|
|
206
206
|
return (obj, key) => {
|
|
207
207
|
setModalVar(obj, key);
|
|
@@ -389,10 +389,10 @@ export {
|
|
|
389
389
|
Assign,
|
|
390
390
|
Clear,
|
|
391
391
|
Err,
|
|
392
|
+
Expose,
|
|
392
393
|
Global,
|
|
393
394
|
Ignore,
|
|
394
395
|
Init,
|
|
395
|
-
P,
|
|
396
396
|
Pipe,
|
|
397
397
|
Rule,
|
|
398
398
|
Storage,
|