@concavejs/docstore-memory 0.0.1-alpha.10 → 0.0.1-alpha.11
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 +12 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4281,11 +4281,20 @@ var init_jwt = __esm(() => {
|
|
|
4281
4281
|
function getPrincipal() {
|
|
4282
4282
|
return principalContext.getStore();
|
|
4283
4283
|
}
|
|
4284
|
-
var authContext, principalContext;
|
|
4284
|
+
var AUTH_CONTEXT_SYMBOL, PRINCIPAL_CONTEXT_SYMBOL, globalAuthContext, authContext, principalContext;
|
|
4285
4285
|
var init_auth_context = __esm(() => {
|
|
4286
4286
|
init_context_storage();
|
|
4287
|
-
|
|
4288
|
-
|
|
4287
|
+
AUTH_CONTEXT_SYMBOL = Symbol.for("@concavejs/core/auth-context");
|
|
4288
|
+
PRINCIPAL_CONTEXT_SYMBOL = Symbol.for("@concavejs/core/principal-context");
|
|
4289
|
+
globalAuthContext = globalThis;
|
|
4290
|
+
authContext = globalAuthContext[AUTH_CONTEXT_SYMBOL] ?? new ContextStorage;
|
|
4291
|
+
principalContext = globalAuthContext[PRINCIPAL_CONTEXT_SYMBOL] ?? new ContextStorage;
|
|
4292
|
+
if (!globalAuthContext[AUTH_CONTEXT_SYMBOL]) {
|
|
4293
|
+
globalAuthContext[AUTH_CONTEXT_SYMBOL] = authContext;
|
|
4294
|
+
}
|
|
4295
|
+
if (!globalAuthContext[PRINCIPAL_CONTEXT_SYMBOL]) {
|
|
4296
|
+
globalAuthContext[PRINCIPAL_CONTEXT_SYMBOL] = principalContext;
|
|
4297
|
+
}
|
|
4289
4298
|
});
|
|
4290
4299
|
|
|
4291
4300
|
// ../core/dist/auth/principal.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@concavejs/docstore-memory",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.11",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "bun test --run --passWithNoTests"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@concavejs/core": "0.0.1-alpha.
|
|
24
|
+
"@concavejs/core": "0.0.1-alpha.11",
|
|
25
25
|
"convex": "^1.27.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|