@wbce-d9/api 12.5.0 → 12.5.2

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.
@@ -73,7 +73,7 @@ function addJoin({ path, collection, aliasMap, rootQuery, schema, relations, kne
73
73
  }
74
74
  rootQuery.leftJoin({ [alias]: pathScope }, (joinClause) => {
75
75
  joinClause
76
- .onVal(relation.meta.one_collection_field, '=', pathScope)
76
+ .onVal(`${aliasedParentCollection}.${relation.meta.one_collection_field}`, '=', pathScope)
77
77
  .andOn(`${aliasedParentCollection}.${relation.field}`, '=', knex.raw(getHelpers(knex).schema.castA2oPrimaryKey(), `${alias}.${schema.collections[pathScope].primary}`));
78
78
  });
79
79
  aliasMap[aliasKey].collection = pathScope;
@@ -81,7 +81,7 @@ function addJoin({ path, collection, aliasMap, rootQuery, schema, relations, kne
81
81
  else if (relationType === 'o2a') {
82
82
  rootQuery.leftJoin({ [alias]: relation.collection }, (joinClause) => {
83
83
  joinClause
84
- .onVal(relation.meta.one_collection_field, '=', parentCollection)
84
+ .onVal(`${alias}.${relation.meta.one_collection_field}`, '=', parentCollection)
85
85
  .andOn(`${alias}.${relation.field}`, '=', knex.raw(getHelpers(knex).schema.castA2oPrimaryKey(), `${aliasedParentCollection}.${schema.collections[parentCollection].primary}`));
86
86
  });
87
87
  aliasMap[aliasKey].collection = relation.collection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wbce-d9/api",
3
- "version": "12.5.0",
3
+ "version": "12.5.2",
4
4
  "description": "Directus is a real-time API and App dashboard for managing SQL database content",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -66,7 +66,7 @@
66
66
  "@rollup/plugin-node-resolve": "15.0.2",
67
67
  "@rollup/plugin-virtual": "3.0.1",
68
68
  "@wbce-d9/format-title": "10.0.0",
69
- "axios": "^1.16.0",
69
+ "axios": "^1.18.0",
70
70
  "chalk": "5.2.0",
71
71
  "commander": "10.0.1",
72
72
  "date-fns": "2.29.3",
@@ -75,7 +75,7 @@
75
75
  "fs-extra": "11.1.1",
76
76
  "inquirer": "9.1.5",
77
77
  "joi": "18.2.1",
78
- "js-yaml": "4.2.0",
78
+ "js-yaml": "4.3.1",
79
79
  "json2csv": "5.0.7",
80
80
  "knex": "3.1.0",
81
81
  "lodash-es": "4.18.1",
@@ -120,12 +120,12 @@
120
120
  "jsonwebtoken": "9.0.0",
121
121
  "keyv": "4.5.2",
122
122
  "ldapjs": "2.3.3",
123
- "liquidjs": "10.26.0",
123
+ "liquidjs": "10.27.1",
124
124
  "mime-types": "2.1.35",
125
125
  "ms": "2.1.3",
126
126
  "node-cron": "3.0.2",
127
127
  "node-machine-id": "1.1.12",
128
- "nodemailer": "8.0.5",
128
+ "nodemailer": "9.0.3",
129
129
  "object-hash": "3.0.0",
130
130
  "openid-client": "6.8.2",
131
131
  "otplib": "12.0.1",
@@ -136,7 +136,7 @@
136
136
  "rate-limiter-flexible": "2.4.1",
137
137
  "samlify": "2.13.0",
138
138
  "sanitize-html": "2.12.1",
139
- "sharp": "0.32.6",
139
+ "sharp": "0.35.3",
140
140
  "snappy": "7.2.2",
141
141
  "stream-json": "1.7.5",
142
142
  "strip-bom-stream": "5.0.0",
@@ -144,19 +144,19 @@
144
144
  "tsx": "3.12.6",
145
145
  "uuid-validate": "0.0.3",
146
146
  "@wbce-d9/app": "10.1.0",
147
+ "@wbce-d9/constants": "10.0.0",
147
148
  "@wbce-d9/exceptions": "10.0.0",
149
+ "@wbce-d9/extensions-sdk": "10.0.2",
148
150
  "@wbce-d9/schema": "10.0.0",
149
151
  "@wbce-d9/specs": "9.26.5",
150
152
  "@wbce-d9/storage-driver-azure": "10.0.1",
151
- "@wbce-d9/extensions-sdk": "10.0.2",
152
- "@wbce-d9/constants": "10.0.0",
153
+ "@wbce-d9/storage": "10.0.0",
153
154
  "@wbce-d9/storage-driver-cloudinary": "10.0.2",
154
155
  "@wbce-d9/storage-driver-gcs": "10.0.1",
155
156
  "@wbce-d9/storage-driver-local": "10.0.1",
156
157
  "@wbce-d9/storage-driver-s3": "10.0.1",
157
- "@wbce-d9/utils": "10.0.1",
158
- "@wbce-d9/storage": "10.0.0",
159
- "@wbce-d9/update-check": "10.0.2"
158
+ "@wbce-d9/update-check": "10.0.2",
159
+ "@wbce-d9/utils": "10.0.1"
160
160
  },
161
161
  "devDependencies": {
162
162
  "@ngneat/falso": "6.4.0",