@csszyx/runtime 0.10.4 → 0.10.5
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1332,7 +1332,12 @@ const AMBIGUOUS_PREFIXES = /* @__PURE__ */ new Set([
|
|
|
1332
1332
|
function decodeToken(token) {
|
|
1333
1333
|
const decode = globalThis.__csszyx?.decode;
|
|
1334
1334
|
if (typeof decode === "function") {
|
|
1335
|
-
|
|
1335
|
+
try {
|
|
1336
|
+
const decoded = decode(token);
|
|
1337
|
+
return typeof decoded === "string" ? decoded : token;
|
|
1338
|
+
} catch {
|
|
1339
|
+
return token;
|
|
1340
|
+
}
|
|
1336
1341
|
}
|
|
1337
1342
|
return token;
|
|
1338
1343
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1330,7 +1330,12 @@ const AMBIGUOUS_PREFIXES = /* @__PURE__ */ new Set([
|
|
|
1330
1330
|
function decodeToken(token) {
|
|
1331
1331
|
const decode = globalThis.__csszyx?.decode;
|
|
1332
1332
|
if (typeof decode === "function") {
|
|
1333
|
-
|
|
1333
|
+
try {
|
|
1334
|
+
const decoded = decode(token);
|
|
1335
|
+
return typeof decoded === "string" ? decoded : token;
|
|
1336
|
+
} catch {
|
|
1337
|
+
return token;
|
|
1338
|
+
}
|
|
1334
1339
|
}
|
|
1335
1340
|
return token;
|
|
1336
1341
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/runtime",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Runtime helpers and hydration guards for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@csszyx/compiler": "0.10.
|
|
53
|
-
"@csszyx/core": "0.10.
|
|
52
|
+
"@csszyx/compiler": "0.10.5",
|
|
53
|
+
"@csszyx/core": "0.10.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^20.11.0",
|