histoire 0.7.5 → 0.7.6
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/bundled/state.js
CHANGED
|
@@ -5,13 +5,13 @@ function toRawDeep(val, seen = /* @__PURE__ */ new Set()) {
|
|
|
5
5
|
if (typeof unwrappedValue === "symbol") {
|
|
6
6
|
return unwrappedValue.toString();
|
|
7
7
|
}
|
|
8
|
+
if (!isObject(unwrappedValue)) {
|
|
9
|
+
return unwrappedValue;
|
|
10
|
+
}
|
|
8
11
|
if (seen.has(unwrappedValue)) {
|
|
9
12
|
return Array.isArray(unwrappedValue) ? [] : {};
|
|
10
13
|
}
|
|
11
14
|
seen.add(unwrappedValue);
|
|
12
|
-
if (!isObject(unwrappedValue)) {
|
|
13
|
-
return unwrappedValue;
|
|
14
|
-
}
|
|
15
15
|
if (Array.isArray(unwrappedValue)) {
|
|
16
16
|
return unwrappedValue.map((value) => toRawDeep(value, seen));
|
|
17
17
|
}
|
|
@@ -5,13 +5,13 @@ export function toRawDeep(val, seen = new Set()) {
|
|
|
5
5
|
if (typeof unwrappedValue === 'symbol') {
|
|
6
6
|
return unwrappedValue.toString();
|
|
7
7
|
}
|
|
8
|
+
if (!isObject(unwrappedValue)) {
|
|
9
|
+
return unwrappedValue;
|
|
10
|
+
}
|
|
8
11
|
if (seen.has(unwrappedValue)) {
|
|
9
12
|
return Array.isArray(unwrappedValue) ? [] : {};
|
|
10
13
|
}
|
|
11
14
|
seen.add(unwrappedValue);
|
|
12
|
-
if (!isObject(unwrappedValue)) {
|
|
13
|
-
return unwrappedValue;
|
|
14
|
-
}
|
|
15
15
|
if (Array.isArray(unwrappedValue)) {
|
|
16
16
|
return unwrappedValue.map(value => toRawDeep(value, seen));
|
|
17
17
|
}
|
package/dist/node/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"histoire": "./bin.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@histoire/controls": "^0.7.
|
|
37
|
-
"@histoire/plugin-vue": "^0.7.
|
|
38
|
-
"@histoire/shared": "^0.7.
|
|
36
|
+
"@histoire/controls": "^0.7.6",
|
|
37
|
+
"@histoire/plugin-vue": "^0.7.6",
|
|
38
|
+
"@histoire/shared": "^0.7.6",
|
|
39
39
|
"@iconify/vue": "^3.2.1",
|
|
40
40
|
"@types/markdown-it": "^12.2.3",
|
|
41
41
|
"@vueuse/core": "^8.2.5",
|
|
@@ -9,16 +9,16 @@ export function toRawDeep (val, seen = new Set()) {
|
|
|
9
9
|
return unwrappedValue.toString()
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
if (!isObject(unwrappedValue)) {
|
|
13
|
+
return unwrappedValue
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
if (seen.has(unwrappedValue)) {
|
|
13
17
|
return Array.isArray(unwrappedValue) ? [] : {}
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
seen.add(unwrappedValue)
|
|
17
21
|
|
|
18
|
-
if (!isObject(unwrappedValue)) {
|
|
19
|
-
return unwrappedValue
|
|
20
|
-
}
|
|
21
|
-
|
|
22
22
|
if (Array.isArray(unwrappedValue)) {
|
|
23
23
|
return unwrappedValue.map(value => toRawDeep(value, seen))
|
|
24
24
|
}
|