@metapages/metapage 1.5.0 → 1.5.2
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.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1481,7 +1481,11 @@ var ls = function(e, t) {
|
|
|
1481
1481
|
const ps = /* @__PURE__ */ fs(ls), hs = (e) => sn(ps(e)), ds = (e) => {
|
|
1482
1482
|
if (e && e.length > 0)
|
|
1483
1483
|
return JSON.parse(rn(e));
|
|
1484
|
-
}, sn = (e) => btoa(encodeURIComponent(e)), rn = (e) =>
|
|
1484
|
+
}, sn = (e) => btoa(encodeURIComponent(e)), rn = (e) => {
|
|
1485
|
+
for (; e.endsWith("%3D"); )
|
|
1486
|
+
e = e.slice(0, -3);
|
|
1487
|
+
return decodeURIComponent(atob(e));
|
|
1488
|
+
}, on = (e) => {
|
|
1485
1489
|
const t = new URL(e);
|
|
1486
1490
|
return an(t.hash);
|
|
1487
1491
|
}, an = (e) => {
|
|
@@ -1504,7 +1508,7 @@ const ps = /* @__PURE__ */ fs(ls), hs = (e) => sn(ps(e)), ds = (e) => {
|
|
|
1504
1508
|
i[o] = r;
|
|
1505
1509
|
}), Object.keys(i).forEach((o) => {
|
|
1506
1510
|
try {
|
|
1507
|
-
i[o] =
|
|
1511
|
+
i[o] = decodeURIComponent(i[o]);
|
|
1508
1512
|
} catch {
|
|
1509
1513
|
i[o] = i[o];
|
|
1510
1514
|
}
|
|
@@ -1522,7 +1526,7 @@ const ps = /* @__PURE__ */ fs(ls), hs = (e) => sn(ps(e)), ds = (e) => {
|
|
|
1522
1526
|
return e;
|
|
1523
1527
|
const r = Object.keys(i);
|
|
1524
1528
|
r.sort();
|
|
1525
|
-
const a = r.map((u, f) => `${u}=${
|
|
1529
|
+
const a = r.map((u, f) => `${u}=${encodeURIComponent(i[u])}`).join("&");
|
|
1526
1530
|
return `${s}?${a}`;
|
|
1527
1531
|
}, un = (e, t) => {
|
|
1528
1532
|
const n = Pe(e, t);
|