@stacksjs/auth 0.70.182 → 0.70.184
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/rbac.js +5 -3
- package/package.json +3 -3
package/dist/rbac.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class BoundedMap {
|
|
1
|
+
var {require}=import.meta;class BoundedMap {
|
|
2
2
|
max;
|
|
3
3
|
map = new Map;
|
|
4
4
|
constructor(max) {
|
|
@@ -41,8 +41,10 @@ export function setRbacStore(rbacStore) {
|
|
|
41
41
|
flushRbacCache();
|
|
42
42
|
}
|
|
43
43
|
function getStore() {
|
|
44
|
-
if (!store)
|
|
45
|
-
|
|
44
|
+
if (!store) {
|
|
45
|
+
const { createBqbRbacStore } = require("./rbac-store-bqb");
|
|
46
|
+
store = createBqbRbacStore();
|
|
47
|
+
}
|
|
46
48
|
return store;
|
|
47
49
|
}
|
|
48
50
|
export function flushRbacCache() {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/auth",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.184",
|
|
6
6
|
"description": "A more simplistic way to authenticate.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"better-dx": "^0.2.17",
|
|
59
|
-
"@stacksjs/error-handling": "0.70.
|
|
60
|
-
"@stacksjs/router": "0.70.
|
|
59
|
+
"@stacksjs/error-handling": "0.70.184",
|
|
60
|
+
"@stacksjs/router": "0.70.184"
|
|
61
61
|
}
|
|
62
62
|
}
|