@travetto/model-sql 3.1.7 → 3.1.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-sql",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
5
5
  "keywords": [
6
6
  "sql",
@@ -30,7 +30,7 @@
30
30
  "@travetto/config": "^3.1.2",
31
31
  "@travetto/context": "^3.1.1",
32
32
  "@travetto/model": "^3.1.8",
33
- "@travetto/model-query": "^3.1.7"
33
+ "@travetto/model-query": "^3.1.8"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@travetto/command": "^3.1.2",
@@ -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
- return config.descend();
209
+ if (field.array) {
210
+ config.descend();
211
+ }
207
212
  }
208
213
  },
209
214
  onSimple: (config) => {