@skmtc/core 0.0.337 → 0.0.338
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/esm/dsl/EntityType.d.ts +2 -2
- package/esm/dsl/EntityType.d.ts.map +1 -1
- package/esm/dsl/EntityType.js +1 -1
- package/esm/dsl/Identifier.js +2 -2
- package/esm/dsl/ModelDriver.js +1 -1
- package/esm/dsl/OperationDriver.js +1 -1
- package/esm/dsl/withConfig.js +1 -1
- package/package.json +1 -1
- package/script/dsl/EntityType.d.ts +2 -2
- package/script/dsl/EntityType.d.ts.map +1 -1
- package/script/dsl/EntityType.js +1 -1
- package/script/dsl/Identifier.js +2 -2
- package/script/dsl/ModelDriver.js +1 -1
- package/script/dsl/OperationDriver.js +1 -1
- package/script/dsl/withConfig.js +1 -1
package/esm/dsl/EntityType.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;gBACb,IAAI,EAAE,UAAU,GAAG,MAAM;IAIrC,QAAQ,IAAI,MAAM;CAMnB"}
|
package/esm/dsl/EntityType.js
CHANGED
package/esm/dsl/Identifier.js
CHANGED
|
@@ -29,14 +29,14 @@ export class Identifier {
|
|
|
29
29
|
.with(P.string, name => {
|
|
30
30
|
return new Identifier({
|
|
31
31
|
name,
|
|
32
|
-
entityType: new EntityType('
|
|
32
|
+
entityType: new EntityType('variable')
|
|
33
33
|
});
|
|
34
34
|
})
|
|
35
35
|
.otherwise(({ name, tsType }) => {
|
|
36
36
|
return new Identifier({
|
|
37
37
|
name,
|
|
38
38
|
tsType,
|
|
39
|
-
entityType: new EntityType('
|
|
39
|
+
entityType: new EntityType('variable')
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
}
|
package/esm/dsl/ModelDriver.js
CHANGED
|
@@ -94,7 +94,7 @@ export class ModelDriver {
|
|
|
94
94
|
? value.tsType
|
|
95
95
|
: undefined;
|
|
96
96
|
const identifier = match(this.insertable.entityType.type)
|
|
97
|
-
.with('
|
|
97
|
+
.with('variable', () => Identifier.createValue({ name, tsType }))
|
|
98
98
|
.with('type', () => Identifier.createType(name))
|
|
99
99
|
.exhaustive();
|
|
100
100
|
const definition = new Definition({
|
|
@@ -93,7 +93,7 @@ export class OperationDriver {
|
|
|
93
93
|
? value.tsType
|
|
94
94
|
: undefined;
|
|
95
95
|
const identifier = match(this.insertable.entityType.type)
|
|
96
|
-
.with('
|
|
96
|
+
.with('variable', () => Identifier.createValue({ name, tsType }))
|
|
97
97
|
.with('type', () => Identifier.createType(name))
|
|
98
98
|
.exhaustive();
|
|
99
99
|
const definition = new Definition({
|
package/esm/dsl/withConfig.js
CHANGED
|
@@ -24,7 +24,7 @@ export const toOperationInsertable = (config) => {
|
|
|
24
24
|
enumerable: true,
|
|
25
25
|
configurable: true,
|
|
26
26
|
writable: true,
|
|
27
|
-
value: config.entityType ?? new EntityType('
|
|
27
|
+
value: config.entityType ?? new EntityType('variable')
|
|
28
28
|
}),
|
|
29
29
|
Object.defineProperty(_a, "toName", {
|
|
30
30
|
enumerable: true,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"EntityType.d.ts","sourceRoot":"","sources":["../../src/dsl/EntityType.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;IACrB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;gBACb,IAAI,EAAE,UAAU,GAAG,MAAM;IAIrC,QAAQ,IAAI,MAAM;CAMnB"}
|
package/script/dsl/EntityType.js
CHANGED
package/script/dsl/Identifier.js
CHANGED
|
@@ -32,14 +32,14 @@ class Identifier {
|
|
|
32
32
|
.with(ts_pattern_1.P.string, name => {
|
|
33
33
|
return new Identifier({
|
|
34
34
|
name,
|
|
35
|
-
entityType: new EntityType_js_1.EntityType('
|
|
35
|
+
entityType: new EntityType_js_1.EntityType('variable')
|
|
36
36
|
});
|
|
37
37
|
})
|
|
38
38
|
.otherwise(({ name, tsType }) => {
|
|
39
39
|
return new Identifier({
|
|
40
40
|
name,
|
|
41
41
|
tsType,
|
|
42
|
-
entityType: new EntityType_js_1.EntityType('
|
|
42
|
+
entityType: new EntityType_js_1.EntityType('variable')
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
}
|
|
@@ -97,7 +97,7 @@ class ModelDriver {
|
|
|
97
97
|
? value.tsType
|
|
98
98
|
: undefined;
|
|
99
99
|
const identifier = (0, ts_pattern_1.match)(this.insertable.entityType.type)
|
|
100
|
-
.with('
|
|
100
|
+
.with('variable', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
|
|
101
101
|
.with('type', () => Identifier_js_1.Identifier.createType(name))
|
|
102
102
|
.exhaustive();
|
|
103
103
|
const definition = new Definition_js_1.Definition({
|
|
@@ -96,7 +96,7 @@ class OperationDriver {
|
|
|
96
96
|
? value.tsType
|
|
97
97
|
: undefined;
|
|
98
98
|
const identifier = (0, ts_pattern_1.match)(this.insertable.entityType.type)
|
|
99
|
-
.with('
|
|
99
|
+
.with('variable', () => Identifier_js_1.Identifier.createValue({ name, tsType }))
|
|
100
100
|
.with('type', () => Identifier_js_1.Identifier.createType(name))
|
|
101
101
|
.exhaustive();
|
|
102
102
|
const definition = new Definition_js_1.Definition({
|
package/script/dsl/withConfig.js
CHANGED
|
@@ -27,7 +27,7 @@ const toOperationInsertable = (config) => {
|
|
|
27
27
|
enumerable: true,
|
|
28
28
|
configurable: true,
|
|
29
29
|
writable: true,
|
|
30
|
-
value: config.entityType ?? new EntityType_js_1.EntityType('
|
|
30
|
+
value: config.entityType ?? new EntityType_js_1.EntityType('variable')
|
|
31
31
|
}),
|
|
32
32
|
Object.defineProperty(_a, "toName", {
|
|
33
33
|
enumerable: true,
|