@voxgig/create-sdkgen 0.5.0 → 0.6.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.
- package/bin/create-sdkgen +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/project/standard/.sdk/package.json +2 -2
- package/project/standard/.sdk/test/primary/makeResponse.jsonic +1 -1
- package/project/standard/.sdk/test/primary/makeSpec.jsonic +1 -1
- package/project/standard/.sdk/test/primary/operator.jsonic +2 -2
- package/project/standard/.sdk/test/primary/param.jsonic +2 -2
- package/project/standard/.sdk/test/primary/prepareBody.jsonic +2 -2
- package/project/standard/.sdk/test/primary/prepareParams.jsonic +5 -5
- package/project/standard/.sdk/test/primary/prepareQuery.jsonic +5 -5
- package/project/standard/.sdk/test/primary/primary-test-index.jsonic +1 -1
- package/project/standard/.sdk/test/primary/transformRequest.jsonic +1 -1
- package/project/standard/.sdk/test/primary/transformResponse.jsonic +1 -1
- /package/project/standard/.sdk/test/primary/{makeTarget.jsonic → makePoint.jsonic} +0 -0
package/bin/create-sdkgen
CHANGED
|
@@ -159,7 +159,7 @@ function resolveOptions() {
|
|
|
159
159
|
|
|
160
160
|
let targets = args.values.target || []
|
|
161
161
|
if( 1 < args.positionals.length ) {
|
|
162
|
-
targets.push(args.positionals.slice(1))
|
|
162
|
+
targets.push(...args.positionals.slice(1))
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
let features = args.values.feature || []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/create-sdkgen.ts","../src/project/standard/createroot.ts","../src/project/standard/modelsdk.ts"],"version":"
|
|
1
|
+
{"root":["../src/create-sdkgen.ts","../src/project/standard/createroot.ts","../src/project/standard/modelsdk.ts"],"version":"6.0.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxgig/create-sdkgen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"main": "dist/create-sdkgen.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"types": "dist/create-sdkgen.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "25.5.0",
|
|
45
45
|
"memfs": "^4.57.1",
|
|
46
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^6.0.2"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@voxgig/util": "^0.4.0",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"license": "$$const.License$$",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": ">=25",
|
|
26
|
-
"typescript": ">=
|
|
27
|
-
"@voxgig/apidef": ">=
|
|
26
|
+
"typescript": ">=6",
|
|
27
|
+
"@voxgig/apidef": ">=5",
|
|
28
28
|
"@voxgig/model": ">=7",
|
|
29
29
|
"@voxgig/sdkgen": ">=0",
|
|
30
30
|
"@voxgig/util": ">=0",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
DEF: {
|
|
4
|
-
ctx0: {
|
|
4
|
+
ctx0: {point:{alias:{}}}
|
|
5
5
|
ctx1: .ctx0
|
|
6
6
|
ctx2: .ctx1 & {reqmatch:{}}
|
|
7
7
|
ctx3: .ctx2 & {reqmatch:{a:'A'}}
|
|
8
8
|
ctx4: .ctx3
|
|
9
|
-
ctx5: .ctx4 & {
|
|
9
|
+
ctx5: .ctx4 & {point:{alias:{b:a}},spec:{alias:{}}}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
basic: set: [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
basic: set: [
|
|
3
3
|
{
|
|
4
4
|
ctx: {
|
|
5
|
-
opname:create,
|
|
5
|
+
opname:create, point:{transform:{req:'`reqdata.foo`'}},
|
|
6
6
|
reqdata:{foo:{x:1}}
|
|
7
7
|
}
|
|
8
8
|
out: {x:1}
|
|
@@ -10,7 +10,7 @@ basic: set: [
|
|
|
10
10
|
|
|
11
11
|
{
|
|
12
12
|
ctx: {
|
|
13
|
-
opname:create,
|
|
13
|
+
opname:create, point:{transform:{req:'`reqdata.bar`'}},
|
|
14
14
|
reqdata:{foo:{x:2}}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
basic: set: [
|
|
3
|
-
{ ctx: {
|
|
4
|
-
{ ctx: {
|
|
5
|
-
{ ctx: {
|
|
6
|
-
{ ctx: {
|
|
7
|
-
{ ctx: {
|
|
3
|
+
{ ctx: {point:{args:{params:[]},params:[],alias:{}}}, out:{} }
|
|
4
|
+
{ ctx: {point:{args:{params:[{name:a}]},params:[a],alias:{}},reqmatch:{}}, out:{} }
|
|
5
|
+
{ ctx: {point:{args:{params:[{name:a}]},params:[a],alias:{}},reqmatch:{a:A}}, out:{a:A} }
|
|
6
|
+
{ ctx: {point:{args:{params:[{name:a}]},params:[a],alias:{}},reqmatch:{b:B}}, out:{} }
|
|
7
|
+
{ ctx: {point:{args:{params:[{name:a}]},params:[a],alias:{}},reqmatch:{a:A,b:B}}, out:{a:A} }
|
|
8
8
|
|
|
9
9
|
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
basic: set: [
|
|
3
|
-
{ mark:10, ctx: {
|
|
4
|
-
{ mark:20, ctx: {
|
|
5
|
-
{ mark:30, ctx: {
|
|
6
|
-
{ mark:40, ctx: {
|
|
7
|
-
{ mark:50, ctx: {
|
|
3
|
+
{ mark:10, ctx: {point:{params:[],alias:{}},reqmatch:{}}, out: {} }
|
|
4
|
+
{ mark:20, ctx: {point:{params:[a],alias:{}},reqmatch:{}}, out: {} }
|
|
5
|
+
{ mark:30, ctx: {point:{params:[a],alias:{}},reqmatch:{a:A}}, out: {} }
|
|
6
|
+
{ mark:40, ctx: {point:{params:[a],alias:{}},reqmatch:{b:B}}, out: {b:B} }
|
|
7
|
+
{ mark:50, ctx: {point:{params:[a],alias:{}},reqmatch:{a:A,b:B}}, out: {b:B} }
|
|
8
8
|
]
|
|
@@ -12,7 +12,7 @@ primary: makeRequest: @"makeRequest.jsonic"
|
|
|
12
12
|
primary: makeResponse: @"makeResponse.jsonic"
|
|
13
13
|
primary: makeResult: @"makeResult.jsonic"
|
|
14
14
|
primary: makeSpec: @"makeSpec.jsonic"
|
|
15
|
-
primary:
|
|
15
|
+
primary: makePoint: @"makePoint.jsonic"
|
|
16
16
|
primary: makeUrl: @"makeUrl.jsonic"
|
|
17
17
|
primary: operator: @"operator.jsonic"
|
|
18
18
|
primary: param: @"param.jsonic"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
basic: set: [
|
|
3
3
|
|
|
4
4
|
{
|
|
5
|
-
ctx: { result:{ok:true,body:{foo:{x:1}}}, spec:{step:''},
|
|
5
|
+
ctx: { result:{ok:true,body:{foo:{x:1}}}, spec:{step:''}, point:{transform:{res:'`body.foo`'}} }
|
|
6
6
|
out: {x:1}
|
|
7
7
|
match: ctx:spec:step:'resform'
|
|
8
8
|
}
|
|
File without changes
|