@atscript/moost-db 0.1.145 → 0.1.146

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/index.cjs CHANGED
@@ -4480,10 +4480,11 @@ function seedActionFields(ctx, table) {
4480
4480
  * can't be told apart).
4481
4481
  *
4482
4482
  * The overlay resolves BEFORE the ids — i.e. before the request body is
4483
- * read. Moost's HTTP adapter releases the event's DI scope when the request
4484
- * stream ends, so a `transformFilter` / `transformOne` that instantiates a
4485
- * `FOR_EVENT` dependency (an ARBAC user provider) fails with "scope isn't
4486
- * registered" once the body has been consumed.
4483
+ * read. Moost ≤ 0.6.39 released the event's DI scope when the request stream
4484
+ * ended, so a `transformFilter` / `transformOne` instantiating a `FOR_EVENT`
4485
+ * dependency (an ARBAC user provider) failed with "scope isn't registered"
4486
+ * after the body was consumed; since 0.6.42 the scope outlives the response
4487
+ * and the handler, and the order is kept for fail-fast authorization.
4487
4488
  */
4488
4489
  async function loadRow(ctx) {
4489
4490
  const overlay = await ctx.get(dbActionOverlaySlot);
package/dist/index.mjs CHANGED
@@ -4479,10 +4479,11 @@ function seedActionFields(ctx, table) {
4479
4479
  * can't be told apart).
4480
4480
  *
4481
4481
  * The overlay resolves BEFORE the ids — i.e. before the request body is
4482
- * read. Moost's HTTP adapter releases the event's DI scope when the request
4483
- * stream ends, so a `transformFilter` / `transformOne` that instantiates a
4484
- * `FOR_EVENT` dependency (an ARBAC user provider) fails with "scope isn't
4485
- * registered" once the body has been consumed.
4482
+ * read. Moost ≤ 0.6.39 released the event's DI scope when the request stream
4483
+ * ended, so a `transformFilter` / `transformOne` instantiating a `FOR_EVENT`
4484
+ * dependency (an ARBAC user provider) failed with "scope isn't registered"
4485
+ * after the body was consumed; since 0.6.42 the scope outlives the response
4486
+ * and the handler, and the order is kept for fail-fast authorization.
4486
4487
  */
4487
4488
  async function loadRow(ctx) {
4488
4489
  const overlay = await ctx.get(dbActionOverlaySlot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/moost-db",
3
- "version": "0.1.145",
3
+ "version": "0.1.146",
4
4
  "description": "Generic database controller for Moost with Atscript.",
5
5
  "keywords": [
6
6
  "annotations",
@@ -44,27 +44,27 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@uniqu/url": "^0.1.11",
47
- "@atscript/db-memory": "^0.1.145"
47
+ "@atscript/db-memory": "^0.1.146"
48
48
  },
49
49
  "devDependencies": {
50
- "@atscript/core": "^0.1.97",
51
- "@atscript/typescript": "^0.1.97",
52
- "@moostjs/event-http": "^0.6.41",
50
+ "@atscript/core": "^0.1.98",
51
+ "@atscript/typescript": "^0.1.98",
52
+ "@moostjs/event-http": "^0.6.42",
53
53
  "@uniqu/core": "^0.1.11",
54
- "@wooksjs/event-core": "^0.7.24",
55
- "@wooksjs/event-http": "^0.7.24",
56
- "@wooksjs/http-body": "^0.7.24",
57
- "moost": "^0.6.41",
58
- "unplugin-atscript": "^0.1.97"
54
+ "@wooksjs/event-core": "^0.7.25",
55
+ "@wooksjs/event-http": "^0.7.25",
56
+ "@wooksjs/http-body": "^0.7.25",
57
+ "moost": "^0.6.42",
58
+ "unplugin-atscript": "^0.1.98"
59
59
  },
60
60
  "peerDependencies": {
61
- "@atscript/typescript": "^0.1.97",
62
- "@moostjs/event-http": "^0.6.41",
61
+ "@atscript/typescript": "^0.1.98",
62
+ "@moostjs/event-http": "^0.6.42",
63
63
  "@uniqu/core": "^0.1.11",
64
- "@wooksjs/event-core": "^0.7.24",
65
- "@wooksjs/http-body": "^0.7.24",
66
- "moost": "^0.6.41",
67
- "@atscript/db": "^0.1.145"
64
+ "@wooksjs/event-core": "^0.7.25",
65
+ "@wooksjs/http-body": "^0.7.25",
66
+ "moost": "^0.6.42",
67
+ "@atscript/db": "^0.1.146"
68
68
  },
69
69
  "scripts": {
70
70
  "postinstall": "asc -f dts",