@valbuild/react 0.14.0 → 0.15.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/package.json +3 -3
- package/src/stega/stegaEncode.ts +2 -2
- package/stega/dist/valbuild-react-stega.browser.esm.js +2 -1
- package/stega/dist/valbuild-react-stega.cjs.dev.js +2 -1
- package/stega/dist/valbuild-react-stega.cjs.prod.js +2 -1
- package/stega/dist/valbuild-react-stega.esm.js +2 -1
- package/stega/dist/valbuild-react-stega.worker.esm.js +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/react",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.15.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val - React internal helpers",
|
6
6
|
"sideEffects": false,
|
@@ -9,8 +9,8 @@
|
|
9
9
|
"test": "jest"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"@valbuild/core": "~0.
|
13
|
-
"@valbuild/ui": "~0.
|
12
|
+
"@valbuild/core": "~0.15.0",
|
13
|
+
"@valbuild/ui": "~0.15.0",
|
14
14
|
"@vercel/stega": "^0.1.0",
|
15
15
|
"base64-arraybuffer": "^1.0.2",
|
16
16
|
"style-to-object": "^0.4.1"
|
package/src/stega/stegaEncode.ts
CHANGED
@@ -72,8 +72,8 @@ export function stegaEncodeVal<T extends Json>(val: Val<T>): T {
|
|
72
72
|
origin: "val.build",
|
73
73
|
data: { valPath: Internal.getValPath(val) },
|
74
74
|
},
|
75
|
-
|
76
|
-
) as T;
|
75
|
+
isDate(val.val) // skip = true if isDate
|
76
|
+
) as T;
|
77
77
|
}
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
79
79
|
return val.val as any;
|
@@ -104,7 +104,8 @@ function stegaEncodeVal(val) {
|
|
104
104
|
data: {
|
105
105
|
valPath: Internal.getValPath(val)
|
106
106
|
}
|
107
|
-
},
|
107
|
+
}, isDate(val.val) // skip = true if isDate
|
108
|
+
);
|
108
109
|
}
|
109
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
110
111
|
return val.val;
|
@@ -114,7 +114,8 @@ function stegaEncodeVal(val) {
|
|
114
114
|
data: {
|
115
115
|
valPath: core.Internal.getValPath(val)
|
116
116
|
}
|
117
|
-
},
|
117
|
+
}, isDate(val.val) // skip = true if isDate
|
118
|
+
);
|
118
119
|
}
|
119
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
120
121
|
return val.val;
|
@@ -114,7 +114,8 @@ function stegaEncodeVal(val) {
|
|
114
114
|
data: {
|
115
115
|
valPath: core.Internal.getValPath(val)
|
116
116
|
}
|
117
|
-
},
|
117
|
+
}, isDate(val.val) // skip = true if isDate
|
118
|
+
);
|
118
119
|
}
|
119
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
120
121
|
return val.val;
|
@@ -104,7 +104,8 @@ function stegaEncodeVal(val) {
|
|
104
104
|
data: {
|
105
105
|
valPath: Internal.getValPath(val)
|
106
106
|
}
|
107
|
-
},
|
107
|
+
}, isDate(val.val) // skip = true if isDate
|
108
|
+
);
|
108
109
|
}
|
109
110
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
110
111
|
return val.val;
|
@@ -125,7 +125,8 @@ function stegaEncodeVal(val) {
|
|
125
125
|
data: {
|
126
126
|
valPath: Internal.getValPath(val)
|
127
127
|
}
|
128
|
-
},
|
128
|
+
}, isDate(val.val) // skip = true if isDate
|
129
|
+
);
|
129
130
|
}
|
130
131
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
131
132
|
return val.val;
|