@technicity/data-service-generator 0.11.0-next.2 → 0.11.0-next.3

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.
@@ -294,7 +294,7 @@ function ensureUuidSelect(input) {
294
294
  const { scalarFields, relationFields } = artifacts[type];
295
295
  if (!scalarFields.includes("uuid"))
296
296
  return;
297
- const fields = input.fields;
297
+ const fields = input.fields || [];
298
298
  if (!fields.includes("uuid"))
299
299
  fields.unshift("uuid");
300
300
  for (const field of fields)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.11.0-next.2",
3
+ "version": "0.11.0-next.3",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -9,6 +9,7 @@
9
9
  "compile": "rm -rf dist && tsc",
10
10
  "publish:next": "npm version prerelease --preid next",
11
11
  "preversion": "npm run compile",
12
+ "postversion": "npm publish",
12
13
  "generate": "npm run compile && concurrently \"node ./test/mysql/generate.js\" \"node ./test/mysql8/generate.js\"",
13
14
  "test": "npm run generate && mocha ./test/addNullFallbacks.test.js && mocha ./test/stringifyWhere.test.js && npm run test:sdk",
14
15
  "test:prepare": "docker-compose down --volumes && docker-compose up -d --build",