@esportsplus/reactivity 0.3.6 → 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.
- package/build/reactive/array.js +1 -4
- package/package.json +1 -1
- package/src/reactive/array.ts +1 -4
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
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)) {
|