rads-db 3.2.4 → 3.2.6
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 +3 -1
- package/dist/index.mjs +3 -1
- package/integrations/cli.cjs +0 -0
- package/package.json +17 -10
package/dist/index.cjs
CHANGED
|
@@ -629,7 +629,7 @@ function verifyRelationsSetup(schema, effects) {
|
|
|
629
629
|
const newEffects = {};
|
|
630
630
|
for (const fName in entity.fields) {
|
|
631
631
|
const f = entity.fields[fName];
|
|
632
|
-
const denormFields =
|
|
632
|
+
const denormFields = [];
|
|
633
633
|
if (!f.isRelation || !denormFields)
|
|
634
634
|
continue;
|
|
635
635
|
if (!newEffects[f.type])
|
|
@@ -644,6 +644,8 @@ function verifyRelationsSetup(schema, effects) {
|
|
|
644
644
|
const id_in = ___default.keys(changedDocsById);
|
|
645
645
|
if (!id_in.length)
|
|
646
646
|
return;
|
|
647
|
+
if (!drivers[entityName])
|
|
648
|
+
return;
|
|
647
649
|
const affectedDocs = await drivers[entityName].getAll(
|
|
648
650
|
{
|
|
649
651
|
where: { [fName]: { id_in } },
|
package/dist/index.mjs
CHANGED
|
@@ -622,7 +622,7 @@ function verifyRelationsSetup(schema, effects) {
|
|
|
622
622
|
const newEffects = {};
|
|
623
623
|
for (const fName in entity.fields) {
|
|
624
624
|
const f = entity.fields[fName];
|
|
625
|
-
const denormFields =
|
|
625
|
+
const denormFields = [];
|
|
626
626
|
if (!f.isRelation || !denormFields)
|
|
627
627
|
continue;
|
|
628
628
|
if (!newEffects[f.type])
|
|
@@ -637,6 +637,8 @@ function verifyRelationsSetup(schema, effects) {
|
|
|
637
637
|
const id_in = _.keys(changedDocsById);
|
|
638
638
|
if (!id_in.length)
|
|
639
639
|
return;
|
|
640
|
+
if (!drivers[entityName])
|
|
641
|
+
return;
|
|
640
642
|
const affectedDocs = await drivers[entityName].getAll(
|
|
641
643
|
{
|
|
642
644
|
where: { [fName]: { id_in } },
|
package/integrations/cli.cjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rads-db",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
|
+
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
|
|
4
5
|
"description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
|
|
5
6
|
"author": "",
|
|
6
7
|
"license": "ISC",
|
|
@@ -50,6 +51,16 @@
|
|
|
50
51
|
"integrations",
|
|
51
52
|
"features"
|
|
52
53
|
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"prepublishOnly": "pnpm build",
|
|
56
|
+
"test": "vitest --run && vitest typecheck --run",
|
|
57
|
+
"link-rads-db": "symlink-dir ./test/_rads-db ./node_modules/_rads-db",
|
|
58
|
+
"generate-test-schema": "jiti ./src/integrations/cli",
|
|
59
|
+
"dev": "pnpm install && pnpm link-rads-db && pnpm build && pnpm generate-test-schema && vitest --ui --test-timeout 300000 --typecheck",
|
|
60
|
+
"lint": "cross-env NODE_ENV=production eslint src/**/*.* test/**/*.*",
|
|
61
|
+
"typecheck": "tsc --noEmit",
|
|
62
|
+
"build": "unbuild"
|
|
63
|
+
},
|
|
53
64
|
"peerDependencies": {
|
|
54
65
|
"@azure/cosmos": ">=3",
|
|
55
66
|
"@azure/storage-blob": ">=12",
|
|
@@ -111,13 +122,9 @@
|
|
|
111
122
|
"vite": "^4.0.0",
|
|
112
123
|
"vitest": "^1.6.0"
|
|
113
124
|
},
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"dev": "pnpm install && pnpm link-rads-db && pnpm build && pnpm generate-test-schema && vitest --ui --test-timeout 300000 --typecheck",
|
|
119
|
-
"lint": "cross-env NODE_ENV=production eslint src/**/*.* test/**/*.*",
|
|
120
|
-
"typecheck": "tsc --noEmit",
|
|
121
|
-
"build": "unbuild"
|
|
125
|
+
"pnpm": {
|
|
126
|
+
"overrides": {
|
|
127
|
+
"mssql": "github:hightouchio/node-mssql"
|
|
128
|
+
}
|
|
122
129
|
}
|
|
123
|
-
}
|
|
130
|
+
}
|