@tinycloud/node-sdk 3.2.5 → 3.2.6-beta.1
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/core.cjs +5 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +5 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -18460,6 +18460,9 @@ function addRawAbility(rawAbilities, resource, action) {
|
|
|
18460
18460
|
actions.push(action);
|
|
18461
18461
|
}
|
|
18462
18462
|
}
|
|
18463
|
+
function primaryManifestSpace(resources) {
|
|
18464
|
+
return resources.find((entry) => entry.space !== "account")?.space ?? resources[0]?.space ?? DEFAULT_MANIFEST_SPACE;
|
|
18465
|
+
}
|
|
18463
18466
|
function cloneAbilitiesMap(actions) {
|
|
18464
18467
|
return Object.fromEntries(
|
|
18465
18468
|
Object.entries(actions).map(([service, paths]) => [
|
|
@@ -18830,7 +18833,7 @@ var NodeUserAuthorization = class {
|
|
|
18830
18833
|
const spaceResources = request.resources.filter(
|
|
18831
18834
|
(entry) => entry.service !== ENCRYPTION_PERMISSION_SERVICE
|
|
18832
18835
|
);
|
|
18833
|
-
const primarySpaceName = spaceResources
|
|
18836
|
+
const primarySpaceName = primaryManifestSpace(spaceResources);
|
|
18834
18837
|
const primarySpaceId = this.resolveSpaceName(
|
|
18835
18838
|
primarySpaceName,
|
|
18836
18839
|
address,
|
|
@@ -18945,7 +18948,7 @@ var NodeUserAuthorization = class {
|
|
|
18945
18948
|
}
|
|
18946
18949
|
return false;
|
|
18947
18950
|
});
|
|
18948
|
-
const primarySpaceName = spaceResources
|
|
18951
|
+
const primarySpaceName = primaryManifestSpace(spaceResources);
|
|
18949
18952
|
const primarySpaceId = this.resolveSpaceName(
|
|
18950
18953
|
primarySpaceName,
|
|
18951
18954
|
address,
|