@cedarjs/tenancy 8.0.0-canary.3518 → 8.0.0-canary.3522
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/web/OrgScope.d.ts.map +1 -1
- package/dist/web/OrgScope.js +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrgScope.d.ts","sourceRoot":"","sources":["../../src/web/OrgScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAe5C,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kEAAkE;IAClE,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAYD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,EACpB,UAAiB,EACjB,OAAmB,EACnB,QAAQ,EACR,QAAQ,GACT,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"OrgScope.d.ts","sourceRoot":"","sources":["../../src/web/OrgScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAe5C,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kEAAkE;IAClE,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAYD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EAAE,WAAW,EACpB,UAAiB,EACjB,OAAmB,EACnB,QAAQ,EACR,QAAQ,GACT,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyInC"}
|
package/dist/web/OrgScope.js
CHANGED
|
@@ -25,7 +25,7 @@ function OrgScope({
|
|
|
25
25
|
const { isAuthenticated, currentUser } = useAuth();
|
|
26
26
|
const orgSlug = orgSlugProp ?? params["orgSlug"];
|
|
27
27
|
const memberships = getMemberships(currentUser);
|
|
28
|
-
const userId =
|
|
28
|
+
const userId = currentUser && "id" in currentUser && typeof currentUser.id === "string" ? currentUser.id : void 0;
|
|
29
29
|
const membershipSignature = memberships.map((m) => `${m.organizationId}:${m.role}`).sort().join(",");
|
|
30
30
|
const lastAuthUserIdRef = React.useRef(userId);
|
|
31
31
|
const lastMembershipsRef = React.useRef(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/tenancy",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.3522",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"test:watch": "vitest watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@cedarjs/api": "8.0.0-canary.
|
|
42
|
-
"@cedarjs/context": "8.0.0-canary.
|
|
43
|
-
"@cedarjs/graphql-server": "8.0.0-canary.
|
|
41
|
+
"@cedarjs/api": "8.0.0-canary.3522",
|
|
42
|
+
"@cedarjs/context": "8.0.0-canary.3522",
|
|
43
|
+
"@cedarjs/graphql-server": "8.0.0-canary.3522"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@apollo/client": "4.3.5",
|
|
47
47
|
"@arethetypeswrong/cli": "0.18.5",
|
|
48
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
49
|
-
"@cedarjs/framework-tools": "8.0.0-canary.
|
|
50
|
-
"@cedarjs/router": "8.0.0-canary.
|
|
51
|
-
"@cedarjs/web": "8.0.0-canary.
|
|
48
|
+
"@cedarjs/auth": "8.0.0-canary.3522",
|
|
49
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3522",
|
|
50
|
+
"@cedarjs/router": "8.0.0-canary.3522",
|
|
51
|
+
"@cedarjs/web": "8.0.0-canary.3522",
|
|
52
52
|
"@prisma/adapter-better-sqlite3": "7.10.1",
|
|
53
53
|
"@prisma/client": "7.10.1",
|
|
54
54
|
"@testing-library/dom": "10.4.2",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@apollo/client": "4.3.5",
|
|
77
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
78
|
-
"@cedarjs/router": "8.0.0-canary.
|
|
79
|
-
"@cedarjs/web": "8.0.0-canary.
|
|
77
|
+
"@cedarjs/auth": "8.0.0-canary.3522",
|
|
78
|
+
"@cedarjs/router": "8.0.0-canary.3522",
|
|
79
|
+
"@cedarjs/web": "8.0.0-canary.3522",
|
|
80
80
|
"react": "19.3.1"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|