wasm-ast-types 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,7 +89,7 @@ class RenderContextBase {
89
89
  this.contract = contract;
90
90
  this.schema = (0, exports.getDefinitionSchema)(contract.schemas);
91
91
  this.options = this.mergeDefaultOpt(options);
92
- this.builderContext = builderContext;
92
+ this.builderContext = builderContext ?? new BuilderContext();
93
93
  }
94
94
  refLookup($ref) {
95
95
  return (0, utils_1.refLookup)($ref, this.schema);
@@ -81,7 +81,7 @@ export class RenderContextBase {
81
81
  this.contract = contract;
82
82
  this.schema = getDefinitionSchema(contract.schemas);
83
83
  this.options = this.mergeDefaultOpt(options);
84
- this.builderContext = builderContext;
84
+ this.builderContext = builderContext ?? new BuilderContext();
85
85
  }
86
86
  refLookup($ref) {
87
87
  return refLookup($ref, this.schema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-ast-types",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "CosmWasm TypeScript AST generation",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmwasm/ts-codegen/tree/master/packages/ast#readme",
@@ -34,10 +34,10 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/types": "7.24.0",
37
- "@cosmology/ts-codegen-types": "^1.1.0",
37
+ "@cosmology/ts-codegen-types": "^1.1.1",
38
38
  "ast-stringify": "0.1.0",
39
39
  "case": "1.6.3",
40
40
  "deepmerge": "4.2.2"
41
41
  },
42
- "gitHead": "88b543457c35e7aea831687c31e4169582093aa8"
42
+ "gitHead": "fa841ef169b04dd982a3615326777d1f9a9a3420"
43
43
  }