@esportsplus/reactivity 0.3.5 → 0.4.0
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.
|
@@ -229,4 +229,4 @@ declare const _default: <T>(input: T[], options?: Options) => {
|
|
|
229
229
|
once: <E extends keyof Events<T_1>>(event: E, listener: Listener<Events<T>[E]>) => void;
|
|
230
230
|
};
|
|
231
231
|
export default _default;
|
|
232
|
-
export { API as ReactiveArray };
|
|
232
|
+
export type { API as ReactiveArray };
|
package/build/reactive/array.js
CHANGED
|
@@ -162,10 +162,7 @@ export default (input, options = {}) => {
|
|
|
162
162
|
}
|
|
163
163
|
return value;
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
return m[key];
|
|
167
|
-
}
|
|
168
|
-
throw new Error(`Reactivity: '${key}' is not supported on reactive arrays`);
|
|
165
|
+
return m[key];
|
|
169
166
|
},
|
|
170
167
|
set(_, key, value) {
|
|
171
168
|
if (isNumber(key)) {
|
package/package.json
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
2
|
+
"author": "ICJR",
|
|
3
|
+
"dependencies": {
|
|
4
|
+
"@esportsplus/custom-function": "^0.0.11",
|
|
5
|
+
"@esportsplus/utilities": "^0.0.9"
|
|
6
|
+
},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@esportsplus/typescript": "^0.8.11"
|
|
9
|
+
},
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"name": "@esportsplus/reactivity",
|
|
12
|
+
"private": false,
|
|
13
|
+
"type": "module",
|
|
14
|
+
"types": "build/index.d.ts",
|
|
15
|
+
"version": "0.4.0",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc && tsc-alias",
|
|
18
|
+
"-": "-"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/reactive/array.ts
CHANGED
|
@@ -292,11 +292,8 @@ export default <T>(input: T[], options: Options = {}) => {
|
|
|
292
292
|
|
|
293
293
|
return value;
|
|
294
294
|
}
|
|
295
|
-
else if (key in m) {
|
|
296
|
-
return m[key as keyof typeof m];
|
|
297
|
-
}
|
|
298
295
|
|
|
299
|
-
|
|
296
|
+
return m[key as keyof typeof m];
|
|
300
297
|
},
|
|
301
298
|
set(_: any, key: any, value: any) {
|
|
302
299
|
if (isNumber(key)) {
|
|
@@ -324,4 +321,4 @@ export default <T>(input: T[], options: Options = {}) => {
|
|
|
324
321
|
|
|
325
322
|
return proxy;
|
|
326
323
|
};
|
|
327
|
-
export { API as ReactiveArray };
|
|
324
|
+
export type { API as ReactiveArray };
|
package/src/reactive/object.ts
CHANGED
|
@@ -67,4 +67,4 @@ class ReactiveObject<T extends Record<PropertyKey, unknown>> {
|
|
|
67
67
|
export default <T extends Record<PropertyKey, unknown>>(input: T, options: Options = {}) => {
|
|
68
68
|
return new ReactiveObject(input, options) as API<T>;
|
|
69
69
|
};
|
|
70
|
-
export { API as ReactiveObject };
|
|
70
|
+
export type { API as ReactiveObject };
|