@esportsplus/reactivity 0.4.0 → 0.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/build/reactive/array.js +4 -1
- package/package.json +2 -2
- package/src/reactive/array.ts +4 -1
package/build/reactive/array.js
CHANGED
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"@esportsplus/utilities": "^0.0.9"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@esportsplus/typescript": "^0.8.
|
|
8
|
+
"@esportsplus/typescript": "^0.8.14"
|
|
9
9
|
},
|
|
10
10
|
"main": "build/index.js",
|
|
11
11
|
"name": "@esportsplus/reactivity",
|
|
12
12
|
"private": false,
|
|
13
13
|
"type": "module",
|
|
14
14
|
"types": "build/index.d.ts",
|
|
15
|
-
"version": "0.4.
|
|
15
|
+
"version": "0.4.1",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc && tsc-alias",
|
|
18
18
|
"-": "-"
|
package/src/reactive/array.ts
CHANGED
|
@@ -292,8 +292,11 @@ 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
|
+
}
|
|
295
298
|
|
|
296
|
-
return
|
|
299
|
+
return a[key];
|
|
297
300
|
},
|
|
298
301
|
set(_: any, key: any, value: any) {
|
|
299
302
|
if (isNumber(key)) {
|