jazz-tools 0.10.5 → 0.10.6
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-DXCQRDRG.js → chunk-DPW23T6J.js} +34 -3
- package/dist/{chunk-DXCQRDRG.js.map → chunk-DPW23T6J.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/auth/AuthSecretStorage.ts +36 -2
- package/src/tests/AuthSecretStorage.test.ts +35 -3
- package/src/tests/ContextManager.test.ts +42 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.10.
|
2
|
+
> jazz-tools@0.10.6 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -11,8 +11,8 @@
|
|
11
11
|
[34mESM[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m1.50 KB[39m
|
13
13
|
[32mESM[39m [1mdist/testing.js [22m[32m6.18 KB[39m
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
14
|
+
[32mESM[39m [1mdist/chunk-DPW23T6J.js [22m[32m112.71 KB[39m
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m259.00 B[39m
|
16
16
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.19 KB[39m
|
17
|
-
[32mESM[39m [1mdist/chunk-
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
17
|
+
[32mESM[39m [1mdist/chunk-DPW23T6J.js.map [22m[32m270.82 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 47ms
|
package/CHANGELOG.md
CHANGED
@@ -3445,15 +3445,46 @@ var AuthSecretStorage = class {
|
|
3445
3445
|
if (!await kvStore.get(STORAGE_KEY)) {
|
3446
3446
|
const demoAuthSecret = await kvStore.get("demo-auth-logged-in-secret");
|
3447
3447
|
if (demoAuthSecret) {
|
3448
|
-
|
3448
|
+
const parsed = JSON.parse(demoAuthSecret);
|
3449
|
+
await kvStore.set(
|
3450
|
+
STORAGE_KEY,
|
3451
|
+
JSON.stringify({
|
3452
|
+
accountID: parsed.accountID,
|
3453
|
+
accountSecret: parsed.accountSecret,
|
3454
|
+
provider: "demo"
|
3455
|
+
})
|
3456
|
+
);
|
3449
3457
|
await kvStore.delete("demo-auth-logged-in-secret");
|
3450
3458
|
}
|
3451
3459
|
const clerkAuthSecret = await kvStore.get("jazz-clerk-auth");
|
3452
3460
|
if (clerkAuthSecret) {
|
3453
|
-
|
3461
|
+
const parsed = JSON.parse(clerkAuthSecret);
|
3462
|
+
await kvStore.set(
|
3463
|
+
STORAGE_KEY,
|
3464
|
+
JSON.stringify({
|
3465
|
+
accountID: parsed.accountID,
|
3466
|
+
accountSecret: parsed.secret,
|
3467
|
+
provider: "clerk"
|
3468
|
+
})
|
3469
|
+
);
|
3454
3470
|
await kvStore.delete("jazz-clerk-auth");
|
3455
3471
|
}
|
3456
3472
|
}
|
3473
|
+
const value = await kvStore.get(STORAGE_KEY);
|
3474
|
+
if (value) {
|
3475
|
+
const parsed = JSON.parse(value);
|
3476
|
+
if ("secret" in parsed) {
|
3477
|
+
await kvStore.set(
|
3478
|
+
STORAGE_KEY,
|
3479
|
+
JSON.stringify({
|
3480
|
+
accountID: parsed.accountID,
|
3481
|
+
secretSeed: parsed.secretSeed,
|
3482
|
+
accountSecret: parsed.secret,
|
3483
|
+
provider: parsed.provider
|
3484
|
+
})
|
3485
|
+
);
|
3486
|
+
}
|
3487
|
+
}
|
3457
3488
|
}
|
3458
3489
|
async get() {
|
3459
3490
|
const kvStore = KvStoreContext_default.getInstance().getStorage();
|
@@ -3925,4 +3956,4 @@ export {
|
|
3925
3956
|
consumeInviteLink
|
3926
3957
|
};
|
3927
3958
|
/* istanbul ignore file -- @preserve */
|
3928
|
-
//# sourceMappingURL=chunk-
|
3959
|
+
//# sourceMappingURL=chunk-DPW23T6J.js.map
|