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