@crombolo/server 0.59.0 → 0.60.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/package.json +14 -14
- package/src/bundle-grants.ts +2 -0
- package/src/bundles.ts +8 -0
- package/src/config.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. The crombolo HTTP server: routing, configuration, media stores and background jobs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@crombolo/api-delivery": "0.
|
|
35
|
-
"@crombolo/api-management": "0.
|
|
36
|
-
"@crombolo/auth": "0.
|
|
37
|
-
"@crombolo/backoffice-host": "0.
|
|
38
|
-
"@crombolo/common": "0.
|
|
39
|
-
"@crombolo/content": "0.
|
|
40
|
-
"@crombolo/contracts": "0.
|
|
41
|
-
"@crombolo/core": "0.
|
|
42
|
-
"@crombolo/data": "0.
|
|
43
|
-
"@crombolo/extension": "0.
|
|
44
|
-
"@crombolo/render": "0.
|
|
45
|
-
"@crombolo/schema": "0.
|
|
46
|
-
"@crombolo/transfer": "0.
|
|
34
|
+
"@crombolo/api-delivery": "0.60.0",
|
|
35
|
+
"@crombolo/api-management": "0.60.0",
|
|
36
|
+
"@crombolo/auth": "0.60.0",
|
|
37
|
+
"@crombolo/backoffice-host": "0.60.0",
|
|
38
|
+
"@crombolo/common": "0.60.0",
|
|
39
|
+
"@crombolo/content": "0.60.0",
|
|
40
|
+
"@crombolo/contracts": "0.60.0",
|
|
41
|
+
"@crombolo/core": "0.60.0",
|
|
42
|
+
"@crombolo/data": "0.60.0",
|
|
43
|
+
"@crombolo/extension": "0.60.0",
|
|
44
|
+
"@crombolo/render": "0.60.0",
|
|
45
|
+
"@crombolo/schema": "0.60.0",
|
|
46
|
+
"@crombolo/transfer": "0.60.0",
|
|
47
47
|
"@logtape/logtape": "^2.3.8",
|
|
48
48
|
"@opentelemetry/api": "1.10.0",
|
|
49
49
|
"@opentelemetry/context-async-hooks": "3.0.0",
|
package/src/bundle-grants.ts
CHANGED
|
@@ -37,6 +37,8 @@ const DECLARATION_PERMISSIONS: ReadonlySet<string> = new Set([
|
|
|
37
37
|
'member.delegate',
|
|
38
38
|
// What the screens need, not the server half (story 320).
|
|
39
39
|
'backoffice.code',
|
|
40
|
+
// Checked against the tables it declares, not a capability (story 321).
|
|
41
|
+
'data.tables',
|
|
40
42
|
])
|
|
41
43
|
|
|
42
44
|
/** The permission each capability method needs. */
|
package/src/bundles.ts
CHANGED
|
@@ -478,6 +478,14 @@ export function validateServerBundles(
|
|
|
478
478
|
problems.push(
|
|
479
479
|
`Bundle "${label}" answers routes on the site, and so needs "routes.public" in "crombolo.permissions".`,
|
|
480
480
|
)
|
|
481
|
+
if (bundle.tables && !declared.includes('data.tables'))
|
|
482
|
+
problems.push(
|
|
483
|
+
`Bundle "${label}" declares tables, and so needs "data.tables" in "crombolo.permissions".`,
|
|
484
|
+
)
|
|
485
|
+
if (!bundle.tables && declared.includes('data.tables'))
|
|
486
|
+
problems.push(
|
|
487
|
+
`Bundle "${label}" declares "data.tables" but no tables; take it out of "crombolo.permissions".`,
|
|
488
|
+
)
|
|
481
489
|
}
|
|
482
490
|
}
|
|
483
491
|
}
|
package/src/config.ts
CHANGED
|
@@ -1144,7 +1144,7 @@ export function describeDatabase(
|
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
export const VERSION = '0.
|
|
1147
|
+
export const VERSION = '0.60.0'
|
|
1148
1148
|
|
|
1149
1149
|
/** A whole number of seconds from the environment; undefined when unset or not one. */
|
|
1150
1150
|
/** A positive number from a setting, else the default. */
|