@voxgig/sdkgen 4.34.4 → 4.34.5

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/voxgig-sdkgen CHANGED
@@ -8,7 +8,7 @@ const { Shape, One, Skip } = require('shape')
8
8
 
9
9
  const { SdkGen } = require('../dist/sdkgen.js')
10
10
 
11
- const VERSION = '4.34.4'
11
+ const VERSION = '4.34.5'
12
12
  const KONSOLE = console
13
13
 
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/sdkgen",
3
- "version": "4.34.4",
3
+ "version": "4.34.5",
4
4
  "main": "dist/sdkgen.js",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -519,8 +519,11 @@ ${candidateLines}
519
519
  for (label, extra) in streams {
520
520
  let explain = VMap()
521
521
  let streamed = ${Name}CleanTest.makeSdk(${Name}CleanTest.scenarios[0], box, nil, extra)
522
+ let reqmatch = VMap()
523
+ for p in target.params { reqmatch.entries[p] = .string("p1") }
522
524
  XCTAssertNoThrow(try target.candidate.accessor(streamed).stream(
523
- target.op, nil, vm(("ctrl", .map(vm(("explain", .map(explain))))))), label + ": the stream should not fail")
525
+ target.op, vm(("reqmatch", .map(reqmatch))),
526
+ vm(("ctrl", .map(vm(("explain", .map(explain))))))), label + ": the stream should not fail")
524
527
  XCTAssertFalse(explain.entries.isEmpty, label + ": the explain record was not filled")
525
528
  box.sinks += ${Name}CleanTest.formsOf(label + ":explain", explain)
526
529
  }
@@ -206,7 +206,8 @@ open class ProjectNameEntityBase: Entity {
206
206
  "data": data,
207
207
  ]
208
208
  if let a = args {
209
- for (k, v) in a.entries { ctxmap[k] = v }
209
+ // The context reads reqmatch and reqdata as a VMap, never a Value.
210
+ for (k, v) in a.entries { ctxmap[k] = v.asMap ?? v }
210
211
  }
211
212
 
212
213
  let ctx = utility.makeContext(ctxmap, entctx)
@@ -3,7 +3,7 @@
3
3
  "package": 1
4
4
  },
5
5
  "name": "@voxgig/sdkgen",
6
- "version": "4.34.4",
6
+ "version": "4.34.5",
7
7
  "provides": {
8
8
  "target": [
9
9
  "c",