@balena/pinejs 17.0.2-build-renovate-major-webpack-dev-server-4563dfcd9afbdda0a014fe67055192288335167c-1 → 17.0.2-build-fix-duplicate-types-fd522e4ae75be1a7c7c927303d631c967d4bd9b9-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.
@@ -1,16 +1,15 @@
|
|
1
1
|
- commits:
|
2
|
-
- subject:
|
3
|
-
hash:
|
4
|
-
body:
|
5
|
-
Update webpack-dev-server from 4.15.2 to 5.0.4
|
2
|
+
- subject: Avoid duplicate types when using sbvr-compiler to generate model types
|
3
|
+
hash: fd522e4ae75be1a7c7c927303d631c967d4bd9b9
|
4
|
+
body: ""
|
6
5
|
footer:
|
7
6
|
Change-type: patch
|
8
7
|
change-type: patch
|
9
|
-
author:
|
8
|
+
author: Pagan Gazzard
|
10
9
|
nested: []
|
11
10
|
version: 17.0.2
|
12
11
|
title: ""
|
13
|
-
date: 2024-06-
|
12
|
+
date: 2024-06-14T14:42:06.870Z
|
14
13
|
- commits:
|
15
14
|
- subject: Switch from `Object.prototype.hasOwnProperty.call` to `Object.hasOwn`
|
16
15
|
hash: 1343f0d463bf4271846343ee98de4d8afb9402f3
|
package/CHANGELOG.md
CHANGED
@@ -5,9 +5,9 @@ automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
7
|
# v17.0.2
|
8
|
-
## (2024-06-
|
8
|
+
## (2024-06-14)
|
9
9
|
|
10
|
-
*
|
10
|
+
* Avoid duplicate types when using sbvr-compiler to generate model types [Pagan Gazzard]
|
11
11
|
|
12
12
|
# v17.0.1
|
13
13
|
## (2024-06-13)
|
package/out/bin/sbvr-compiler.js
CHANGED
@@ -49,11 +49,12 @@ const runCompile = async (inputFile, outputFile) => {
|
|
49
49
|
(0, utils_1.writeSqlModel)(models.sql, outputFile);
|
50
50
|
};
|
51
51
|
const generateTypes = async (inputFile, outputFile) => {
|
52
|
-
const {
|
52
|
+
const { generateLfModel, generateAbstractSqlModel } = await import('../sbvr-api/sbvr-utils.js');
|
53
53
|
const seModel = getSE(inputFile);
|
54
|
-
const
|
54
|
+
const lfModel = generateLfModel(seModel);
|
55
|
+
const abstractSql = generateAbstractSqlModel(lfModel);
|
55
56
|
const { abstractSqlToTypescriptTypes } = await import('@balena/abstract-sql-to-typescript/generate');
|
56
|
-
const types = abstractSqlToTypescriptTypes(
|
57
|
+
const types = abstractSqlToTypescriptTypes(abstractSql);
|
57
58
|
(0, utils_1.writeAll)(types, outputFile);
|
58
59
|
};
|
59
60
|
commander_1.program
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sbvr-compiler.js","sourceRoot":"","sources":["../../src/bin/sbvr-compiler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA2D;AAC3D,yCAAoC;AACpC,uCAAyB;AAEzB,MAAM,KAAK,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAExE,MAAM,KAAK,GAAG,KAAK,EAAE,SAAiB,EAAE,UAAmB,EAAE,EAAE;IAC9D,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,IAAA,gBAAQ,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,KAAK,EAAE,SAAiB,EAAE,UAAmB,EAAE,EAAE;IAClE,MAAM,EAAE,eAAe,EAAE,wBAAwB,EAAE,GAAG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M,CAAC,GAAG,EAAE,CAAC,mBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAE/B,mBAAO,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAEnE,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IAC/B,mBAAO,CAAC,IAAI,EAAE,CAAC;AAChB,CAAC;AAED,KAAK,mBAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/pinejs",
|
3
|
-
"version": "17.0.2-build-
|
3
|
+
"version": "17.0.2-build-fix-duplicate-types-fd522e4ae75be1a7c7c927303d631c967d4bd9b9-3",
|
4
4
|
"main": "out/server-glue/module",
|
5
5
|
"type": "commonjs",
|
6
6
|
"repository": "git@github.com:balena-io/pinejs.git",
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"ts-node": "^10.9.2",
|
104
104
|
"typescript": "^5.4.5",
|
105
105
|
"webpack": "^5.91.0",
|
106
|
-
"webpack-dev-server": "^
|
106
|
+
"webpack-dev-server": "^4.15.2"
|
107
107
|
},
|
108
108
|
"optionalDependencies": {
|
109
109
|
"@aws-sdk/client-s3": "^3.590.0",
|
@@ -144,6 +144,6 @@
|
|
144
144
|
"recursive": true
|
145
145
|
},
|
146
146
|
"versionist": {
|
147
|
-
"publishedAt": "2024-06-
|
147
|
+
"publishedAt": "2024-06-14T14:42:07.609Z"
|
148
148
|
}
|
149
149
|
}
|
package/src/bin/sbvr-compiler.ts
CHANGED
@@ -35,16 +35,16 @@ const runCompile = async (inputFile: string, outputFile?: string) => {
|
|
35
35
|
};
|
36
36
|
|
37
37
|
const generateTypes = async (inputFile: string, outputFile?: string) => {
|
38
|
-
const {
|
39
|
-
|
40
|
-
const models = generateModels(
|
41
|
-
{ apiRoot: 'sbvr-compiler', modelText: seModel },
|
42
|
-
program.opts().engine,
|
38
|
+
const { generateLfModel, generateAbstractSqlModel } = await import(
|
39
|
+
'../sbvr-api/sbvr-utils.js'
|
43
40
|
);
|
41
|
+
const seModel = getSE(inputFile);
|
42
|
+
const lfModel = generateLfModel(seModel);
|
43
|
+
const abstractSql = generateAbstractSqlModel(lfModel);
|
44
44
|
const { abstractSqlToTypescriptTypes } = await import(
|
45
45
|
'@balena/abstract-sql-to-typescript/generate'
|
46
46
|
);
|
47
|
-
const types = abstractSqlToTypescriptTypes(
|
47
|
+
const types = abstractSqlToTypescriptTypes(abstractSql);
|
48
48
|
|
49
49
|
writeAll(types, outputFile);
|
50
50
|
};
|