@wacht/jsx 0.0.1-alpha.7 → 0.0.1-alpha.8
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.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1265,7 +1265,7 @@ function bt() {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
async function Id(e, t) {
|
|
1267
1267
|
const o = await e(
|
|
1268
|
-
|
|
1268
|
+
`/session/token${t ? `?template=${t}` : ""}`
|
|
1269
1269
|
);
|
|
1270
1270
|
return H(o);
|
|
1271
1271
|
}
|
|
@@ -1290,7 +1290,7 @@ function Ye() {
|
|
|
1290
1290
|
const m = na.get(u);
|
|
1291
1291
|
if (m && m.expires > Date.now())
|
|
1292
1292
|
return (m == null ? void 0 : m.token) || "";
|
|
1293
|
-
Ut.get(u) || Ut.set(u, Id(e));
|
|
1293
|
+
Ut.get(u) || Ut.set(u, Id(e, u));
|
|
1294
1294
|
const b = await Ut.get(u);
|
|
1295
1295
|
if (Ut.delete(u), (v = b.errors) != null && v.length)
|
|
1296
1296
|
throw new Error(b.errors[0].message);
|