@azrico/webobject 1.4.4 → 1.4.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 +1 -16
- package/dist/src/WebObjects/ParentWebObject.js +20 -51
- package/dist/src/WebObjects/WebObject.d.ts +1 -0
- package/dist/src/WebObjects/WebObject.js +305 -748
- package/dist/src/WebObjects/WebObjectManager.js +121 -363
- package/dist/src/index.js +9 -104
- package/dist/src/structs/DummyObject.js +8 -35
- package/dist/src/structs/MapableObject.js +74 -113
- package/dist/src/structs/MetaObject.js +35 -125
- package/dist/src/structs/ObjectArray.js +43 -71
- package/dist/src/structs/ObjectManager.js +214 -538
- package/dist/src/structs/SimpleObject.d.ts +5 -3
- package/dist/src/structs/SimpleObject.js +734 -1056
- package/package.json +6 -6
|
@@ -11,6 +11,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
11
11
|
static readonly __cache_name?: string;
|
|
12
12
|
static readonly __unchangeables?: string[];
|
|
13
13
|
static readonly __changeables?: string[];
|
|
14
|
+
static readonly __protectedProperties?: string[];
|
|
14
15
|
static readonly __extraProperties?: string[];
|
|
15
16
|
static readonly __use_delta: boolean;
|
|
16
17
|
_static(): Function;
|
|
@@ -89,12 +90,13 @@ export declare class SimpleObject extends MapableObject {
|
|
|
89
90
|
notifyChanged<MKey extends PropOf<this>>(type: string, key: MKey | string, value: any, subvalue?: any): Promise<void>;
|
|
90
91
|
/**
|
|
91
92
|
* check if a key can be changed on an object
|
|
92
|
-
* @param object
|
|
93
|
-
* @param key
|
|
94
|
-
* @param useExtraProps
|
|
93
|
+
* @param object the object we are checking
|
|
94
|
+
* @param key key of the object
|
|
95
|
+
* @param useExtraProps should we check extra props?
|
|
95
96
|
* @returns
|
|
96
97
|
*/
|
|
97
98
|
static canChangeKey(object: SimpleObject, key: string, useExtraProps: boolean): boolean;
|
|
99
|
+
static hasIllegalChanges(referenceObject: any, changesObject: any, userObject: any): boolean;
|
|
98
100
|
/**
|
|
99
101
|
* Apply the changes and empty the delta object
|
|
100
102
|
*/
|