@web-ts-toolkit/access-router 0.69.0 → 0.70.0
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/advanced.js +5 -1
- package/advanced.mjs +5 -1
- package/index.js +5 -1
- package/index.mjs +5 -1
- package/package.json +3 -3
package/advanced.js
CHANGED
|
@@ -914,7 +914,11 @@ function copyAuthorizationValue(value, configuration = false) {
|
|
|
914
914
|
if (typeof input === "string") prepareTrustedOutputPayload(budget, input);
|
|
915
915
|
return input;
|
|
916
916
|
}
|
|
917
|
-
if (import_node_util4.types.isProxy(input))
|
|
917
|
+
if (import_node_util4.types.isProxy(input)) {
|
|
918
|
+
const error = new ServiceAuthorizationError("proxy snapshot input");
|
|
919
|
+
console.error("[access-router] Authorization snapshot rejected a Proxy", error);
|
|
920
|
+
throw error;
|
|
921
|
+
}
|
|
918
922
|
const ownedCatalog = configuration === true ? readOwnedAuthorizationCatalogWork(input) : void 0;
|
|
919
923
|
if (ownedCatalog) {
|
|
920
924
|
preloadTrustedOutputBudget(budget, depth + ownedCatalog.depth, ownedCatalog.slots - 1);
|
package/advanced.mjs
CHANGED
|
@@ -832,7 +832,11 @@ function copyAuthorizationValue(value, configuration = false) {
|
|
|
832
832
|
if (typeof input === "string") prepareTrustedOutputPayload(budget, input);
|
|
833
833
|
return input;
|
|
834
834
|
}
|
|
835
|
-
if (types4.isProxy(input))
|
|
835
|
+
if (types4.isProxy(input)) {
|
|
836
|
+
const error = new ServiceAuthorizationError("proxy snapshot input");
|
|
837
|
+
console.error("[access-router] Authorization snapshot rejected a Proxy", error);
|
|
838
|
+
throw error;
|
|
839
|
+
}
|
|
836
840
|
const ownedCatalog = configuration === true ? readOwnedAuthorizationCatalogWork(input) : void 0;
|
|
837
841
|
if (ownedCatalog) {
|
|
838
842
|
preloadTrustedOutputBudget(budget, depth + ownedCatalog.depth, ownedCatalog.slots - 1);
|
package/index.js
CHANGED
|
@@ -1115,7 +1115,11 @@ function copyAuthorizationValue(value, configuration = false) {
|
|
|
1115
1115
|
if (typeof input === "string") prepareTrustedOutputPayload(budget, input);
|
|
1116
1116
|
return input;
|
|
1117
1117
|
}
|
|
1118
|
-
if (import_node_util5.types.isProxy(input))
|
|
1118
|
+
if (import_node_util5.types.isProxy(input)) {
|
|
1119
|
+
const error2 = new ServiceAuthorizationError("proxy snapshot input");
|
|
1120
|
+
console.error("[access-router] Authorization snapshot rejected a Proxy", error2);
|
|
1121
|
+
throw error2;
|
|
1122
|
+
}
|
|
1119
1123
|
const ownedCatalog = configuration === true ? readOwnedAuthorizationCatalogWork(input) : void 0;
|
|
1120
1124
|
if (ownedCatalog) {
|
|
1121
1125
|
preloadTrustedOutputBudget(budget, depth + ownedCatalog.depth, ownedCatalog.slots - 1);
|
package/index.mjs
CHANGED
|
@@ -1097,7 +1097,11 @@ function copyAuthorizationValue(value, configuration = false) {
|
|
|
1097
1097
|
if (typeof input === "string") prepareTrustedOutputPayload(budget, input);
|
|
1098
1098
|
return input;
|
|
1099
1099
|
}
|
|
1100
|
-
if (types5.isProxy(input))
|
|
1100
|
+
if (types5.isProxy(input)) {
|
|
1101
|
+
const error2 = new ServiceAuthorizationError("proxy snapshot input");
|
|
1102
|
+
console.error("[access-router] Authorization snapshot rejected a Proxy", error2);
|
|
1103
|
+
throw error2;
|
|
1104
|
+
}
|
|
1101
1105
|
const ownedCatalog = configuration === true ? readOwnedAuthorizationCatalogWork(input) : void 0;
|
|
1102
1106
|
if (ownedCatalog) {
|
|
1103
1107
|
preloadTrustedOutputBudget(budget, depth + ownedCatalog.depth, ownedCatalog.slots - 1);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@web-ts-toolkit/access-router",
|
|
3
3
|
"description": "ACL-aware Express routers and in-memory data services for Mongoose-backed APIs",
|
|
4
4
|
"homepage": "https://web-ts-toolkit.pages.dev/docs/packages/access-router",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.70.0",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"./**/index.js",
|
|
8
8
|
"./**/index.mjs",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"node": ">=24"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@web-ts-toolkit/express-json-router": "0.
|
|
61
|
-
"@web-ts-toolkit/utils": "0.
|
|
60
|
+
"@web-ts-toolkit/express-json-router": "0.70.0",
|
|
61
|
+
"@web-ts-toolkit/utils": "0.70.0",
|
|
62
62
|
"just-diff": "^6.0.2",
|
|
63
63
|
"mongoose-schema-jsonschema": "^4.0.1",
|
|
64
64
|
"sift": "^17.1.3",
|