@atscript/moost-db 0.1.141 → 0.1.142
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 +8 -4
- package/dist/index.d.cts +7 -3
- package/dist/index.d.mts +7 -3
- package/dist/index.mjs +8 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -741,9 +741,13 @@ let AsReadableController = class AsReadableController {
|
|
|
741
741
|
* `ref` (`field: ""`) and their bodies always expand fully regardless of
|
|
742
742
|
* `refDepth` — the write-payload shape clients need is unaffected.
|
|
743
743
|
*
|
|
744
|
-
* Annotation whitelist: keeps `meta.*`, `expect.*`,
|
|
745
|
-
*
|
|
746
|
-
*
|
|
744
|
+
* Annotation whitelist: keeps `meta.*`, `expect.*`, `db.rel.*`, the `db.*`
|
|
745
|
+
* keys the shared db validator plugin reads in db-client (`db.json`,
|
|
746
|
+
* `db.patch.strategy`, `db.default*`, `db.column.version`,
|
|
747
|
+
* `db.column.derived`) and the client-facing `db.http.path` /
|
|
748
|
+
* `db.writeOnly`; strips every other `db.*` (table, column, index, etc.).
|
|
749
|
+
* Override in subclass to customise — keep the validator keys, or client
|
|
750
|
+
* preflight diverges from the server.
|
|
747
751
|
*/
|
|
748
752
|
getSerializeOptions() {
|
|
749
753
|
return {
|
|
@@ -753,7 +757,7 @@ let AsReadableController = class AsReadableController {
|
|
|
753
757
|
key,
|
|
754
758
|
value
|
|
755
759
|
};
|
|
756
|
-
if (key === "db.json" || key === "db.patch.strategy" || key.startsWith("db.default") || key === "db.http.path" || key === "db.writeOnly" || key === "db.column.version") return {
|
|
760
|
+
if (key === "db.json" || key === "db.patch.strategy" || key.startsWith("db.default") || key === "db.http.path" || key === "db.writeOnly" || key === "db.column.version" || key === "db.column.derived") return {
|
|
757
761
|
key,
|
|
758
762
|
value
|
|
759
763
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -81,9 +81,13 @@ declare abstract class AsReadableController<T extends TAtscriptAnnotatedType = T
|
|
|
81
81
|
* `ref` (`field: ""`) and their bodies always expand fully regardless of
|
|
82
82
|
* `refDepth` — the write-payload shape clients need is unaffected.
|
|
83
83
|
*
|
|
84
|
-
* Annotation whitelist: keeps `meta.*`, `expect.*`,
|
|
85
|
-
*
|
|
86
|
-
*
|
|
84
|
+
* Annotation whitelist: keeps `meta.*`, `expect.*`, `db.rel.*`, the `db.*`
|
|
85
|
+
* keys the shared db validator plugin reads in db-client (`db.json`,
|
|
86
|
+
* `db.patch.strategy`, `db.default*`, `db.column.version`,
|
|
87
|
+
* `db.column.derived`) and the client-facing `db.http.path` /
|
|
88
|
+
* `db.writeOnly`; strips every other `db.*` (table, column, index, etc.).
|
|
89
|
+
* Override in subclass to customise — keep the validator keys, or client
|
|
90
|
+
* preflight diverges from the server.
|
|
87
91
|
*/
|
|
88
92
|
protected getSerializeOptions(): TSerializeOptions;
|
|
89
93
|
private _queryControlsValidator?;
|
package/dist/index.d.mts
CHANGED
|
@@ -81,9 +81,13 @@ declare abstract class AsReadableController<T extends TAtscriptAnnotatedType = T
|
|
|
81
81
|
* `ref` (`field: ""`) and their bodies always expand fully regardless of
|
|
82
82
|
* `refDepth` — the write-payload shape clients need is unaffected.
|
|
83
83
|
*
|
|
84
|
-
* Annotation whitelist: keeps `meta.*`, `expect.*`,
|
|
85
|
-
*
|
|
86
|
-
*
|
|
84
|
+
* Annotation whitelist: keeps `meta.*`, `expect.*`, `db.rel.*`, the `db.*`
|
|
85
|
+
* keys the shared db validator plugin reads in db-client (`db.json`,
|
|
86
|
+
* `db.patch.strategy`, `db.default*`, `db.column.version`,
|
|
87
|
+
* `db.column.derived`) and the client-facing `db.http.path` /
|
|
88
|
+
* `db.writeOnly`; strips every other `db.*` (table, column, index, etc.).
|
|
89
|
+
* Override in subclass to customise — keep the validator keys, or client
|
|
90
|
+
* preflight diverges from the server.
|
|
87
91
|
*/
|
|
88
92
|
protected getSerializeOptions(): TSerializeOptions;
|
|
89
93
|
private _queryControlsValidator?;
|
package/dist/index.mjs
CHANGED
|
@@ -740,9 +740,13 @@ let AsReadableController = class AsReadableController {
|
|
|
740
740
|
* `ref` (`field: ""`) and their bodies always expand fully regardless of
|
|
741
741
|
* `refDepth` — the write-payload shape clients need is unaffected.
|
|
742
742
|
*
|
|
743
|
-
* Annotation whitelist: keeps `meta.*`, `expect.*`,
|
|
744
|
-
*
|
|
745
|
-
*
|
|
743
|
+
* Annotation whitelist: keeps `meta.*`, `expect.*`, `db.rel.*`, the `db.*`
|
|
744
|
+
* keys the shared db validator plugin reads in db-client (`db.json`,
|
|
745
|
+
* `db.patch.strategy`, `db.default*`, `db.column.version`,
|
|
746
|
+
* `db.column.derived`) and the client-facing `db.http.path` /
|
|
747
|
+
* `db.writeOnly`; strips every other `db.*` (table, column, index, etc.).
|
|
748
|
+
* Override in subclass to customise — keep the validator keys, or client
|
|
749
|
+
* preflight diverges from the server.
|
|
746
750
|
*/
|
|
747
751
|
getSerializeOptions() {
|
|
748
752
|
return {
|
|
@@ -752,7 +756,7 @@ let AsReadableController = class AsReadableController {
|
|
|
752
756
|
key,
|
|
753
757
|
value
|
|
754
758
|
};
|
|
755
|
-
if (key === "db.json" || key === "db.patch.strategy" || key.startsWith("db.default") || key === "db.http.path" || key === "db.writeOnly" || key === "db.column.version") return {
|
|
759
|
+
if (key === "db.json" || key === "db.patch.strategy" || key.startsWith("db.default") || key === "db.http.path" || key === "db.writeOnly" || key === "db.column.version" || key === "db.column.derived") return {
|
|
756
760
|
key,
|
|
757
761
|
value
|
|
758
762
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/moost-db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.142",
|
|
4
4
|
"description": "Generic database controller for Moost with Atscript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@uniqu/url": "^0.1.11",
|
|
47
|
-
"@atscript/db-memory": "^0.1.
|
|
47
|
+
"@atscript/db-memory": "^0.1.142"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@atscript/core": "^0.1.95",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@wooksjs/event-core": "^0.7.23",
|
|
65
65
|
"@wooksjs/http-body": "^0.7.23",
|
|
66
66
|
"moost": "^0.6.37",
|
|
67
|
-
"@atscript/db": "^0.1.
|
|
67
|
+
"@atscript/db": "^0.1.142"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"postinstall": "asc -f dts",
|