@instructure/platform-institutional-tagging 3.0.0 → 3.0.1
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 +8 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1518,6 +1518,12 @@ class Os extends Error {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
function GC(t) {
|
|
1521
|
+
if (typeof document > "u")
|
|
1522
|
+
return;
|
|
1523
|
+
const e = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = document.cookie.match(`(^|[^;]+)\\s*${e}\\s*=\\s*([^;]+)`);
|
|
1524
|
+
return n ? decodeURIComponent(n[2]) : void 0;
|
|
1525
|
+
}
|
|
1526
|
+
function JC(t) {
|
|
1521
1527
|
const e = [];
|
|
1522
1528
|
function n(s, a, u) {
|
|
1523
1529
|
if (typeof a == "function")
|
|
@@ -1532,12 +1538,6 @@ function GC(t) {
|
|
|
1532
1538
|
}
|
|
1533
1539
|
return Object.keys(t).forEach((s) => n(s, t[s], "")), e.map(([s, a]) => [s.replace(/\[\d+\]$/, "[]").replace(/{/g, "[").replace(/}/g, "]"), a]).map(([s, a]) => `${encodeURIComponent(s)}=${encodeURIComponent(a)}`).join("&");
|
|
1534
1540
|
}
|
|
1535
|
-
function JC(t) {
|
|
1536
|
-
if (typeof document > "u")
|
|
1537
|
-
return;
|
|
1538
|
-
const e = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = document.cookie.match(`(^|[^;]+)\\s*${e}\\s*=\\s*([^;]+)`);
|
|
1539
|
-
return n ? decodeURIComponent(n[2]) : void 0;
|
|
1540
|
-
}
|
|
1541
1541
|
function KC(t) {
|
|
1542
1542
|
const e = {}, n = t.split("?");
|
|
1543
1543
|
return n.length > 1 && n[1].split("&").forEach((s) => {
|
|
@@ -1608,13 +1608,13 @@ function iE() {
|
|
|
1608
1608
|
const t = {
|
|
1609
1609
|
"X-Requested-With": "XMLHttpRequest",
|
|
1610
1610
|
Accept: "application/json"
|
|
1611
|
-
}, e =
|
|
1611
|
+
}, e = GC("_csrf_token");
|
|
1612
1612
|
return e && (t["X-CSRF-Token"] = e), t;
|
|
1613
1613
|
}
|
|
1614
1614
|
function sE(t, e) {
|
|
1615
1615
|
let n = (Xc.baseUrl || "") + t;
|
|
1616
1616
|
if (e && Object.keys(e).length > 0) {
|
|
1617
|
-
const s =
|
|
1617
|
+
const s = JC(e);
|
|
1618
1618
|
n += (n.includes("?") ? "&" : "?") + s;
|
|
1619
1619
|
}
|
|
1620
1620
|
return n;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/platform-institutional-tagging",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"luxon": "^3.7.2",
|
|
76
76
|
"styled-components": "^6.3.11",
|
|
77
77
|
"zod": "^3.23.8",
|
|
78
|
-
"@instructure/platform-canvas-fetch": "0.1.
|
|
78
|
+
"@instructure/platform-canvas-fetch": "0.1.2"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "vite build",
|