@travetto/model-sql 3.1.7 → 3.1.9
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 +4 -4
- package/src/internal/util.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-sql",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sql",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"directory": "module/model-sql"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/config": "^3.1.
|
|
30
|
+
"@travetto/config": "^3.1.3",
|
|
31
31
|
"@travetto/context": "^3.1.1",
|
|
32
|
-
"@travetto/model": "^3.1.
|
|
33
|
-
"@travetto/model-query": "^3.1.
|
|
32
|
+
"@travetto/model": "^3.1.9",
|
|
33
|
+
"@travetto/model-query": "^3.1.9"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@travetto/command": "^3.1.2",
|
package/src/internal/util.ts
CHANGED
|
@@ -198,12 +198,17 @@ export class SQLUtil {
|
|
|
198
198
|
pathObj.push(val);
|
|
199
199
|
config.path[config.path.length - 1] = { ...top, index: i++ };
|
|
200
200
|
handler.onSub({ ...config, value: val });
|
|
201
|
+
if (!field.array) {
|
|
202
|
+
config.descend();
|
|
203
|
+
}
|
|
201
204
|
} finally {
|
|
202
205
|
pathObj.pop();
|
|
203
206
|
}
|
|
204
207
|
i += 1;
|
|
205
208
|
}
|
|
206
|
-
|
|
209
|
+
if (field.array) {
|
|
210
|
+
config.descend();
|
|
211
|
+
}
|
|
207
212
|
}
|
|
208
213
|
},
|
|
209
214
|
onSimple: (config) => {
|