@reactive-vscode/reactivity 0.3.2 → 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/dist/index.cjs +5 -4
- package/dist/index.js +5 -4
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
/**
|
|
4
|
-
* @vue/shared v3.5.
|
|
4
|
+
* @vue/shared v3.5.22
|
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
6
|
* @license MIT
|
|
7
7
|
**/
|
|
@@ -61,7 +61,7 @@ const def = (obj, key, value, writable = false) => {
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
64
|
-
* @vue/reactivity v3.5.
|
|
64
|
+
* @vue/reactivity v3.5.22
|
|
65
65
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
66
66
|
* @license MIT
|
|
67
67
|
**/
|
|
@@ -868,7 +868,7 @@ function iterator(self, method, wrapValue) {
|
|
|
868
868
|
iter._next = iter.next;
|
|
869
869
|
iter.next = () => {
|
|
870
870
|
const result = iter._next();
|
|
871
|
-
if (result.
|
|
871
|
+
if (!result.done) {
|
|
872
872
|
result.value = wrapValue(result.value);
|
|
873
873
|
}
|
|
874
874
|
return result;
|
|
@@ -994,7 +994,8 @@ class BaseReactiveHandler {
|
|
|
994
994
|
return res;
|
|
995
995
|
}
|
|
996
996
|
if (isRef(res)) {
|
|
997
|
-
|
|
997
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
998
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
998
999
|
}
|
|
999
1000
|
if (isObject(res)) {
|
|
1000
1001
|
return isReadonly2 ? readonly(res) : reactive(res);
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -59,7 +59,7 @@ const def = (obj, key, value, writable = false) => {
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
|
-
* @vue/reactivity v3.5.
|
|
62
|
+
* @vue/reactivity v3.5.22
|
|
63
63
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
64
64
|
* @license MIT
|
|
65
65
|
**/
|
|
@@ -866,7 +866,7 @@ function iterator(self, method, wrapValue) {
|
|
|
866
866
|
iter._next = iter.next;
|
|
867
867
|
iter.next = () => {
|
|
868
868
|
const result = iter._next();
|
|
869
|
-
if (result.
|
|
869
|
+
if (!result.done) {
|
|
870
870
|
result.value = wrapValue(result.value);
|
|
871
871
|
}
|
|
872
872
|
return result;
|
|
@@ -992,7 +992,8 @@ class BaseReactiveHandler {
|
|
|
992
992
|
return res;
|
|
993
993
|
}
|
|
994
994
|
if (isRef(res)) {
|
|
995
|
-
|
|
995
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
996
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
996
997
|
}
|
|
997
998
|
if (isObject(res)) {
|
|
998
999
|
return isReadonly2 ? readonly(res) : reactive(res);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactive-vscode/reactivity",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Full Vue Reactivity API without DOM",
|
|
6
6
|
"author": "_Kerman <kermanx@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@vue/reactivity": "^3.5.
|
|
34
|
-
"@vue/shared": "^3.5.
|
|
35
|
-
"typescript": "^5.9.
|
|
36
|
-
"vite": "^7.1.
|
|
33
|
+
"@vue/reactivity": "^3.5.22",
|
|
34
|
+
"@vue/shared": "^3.5.22",
|
|
35
|
+
"typescript": "^5.9.3",
|
|
36
|
+
"vite": "^7.1.8",
|
|
37
37
|
"vite-plugin-dts": "^4.5.4"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|