wasm-ast-types 1.3.0 → 1.4.1
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/context/context.js +2 -2
- package/esm/context/context.js +2 -2
- package/package.json +3 -3
- package/types/context.d.ts +1 -1
package/context/context.js
CHANGED
@@ -37,7 +37,7 @@ exports.defaultOptions = {
|
|
37
37
|
camelize: true,
|
38
38
|
queryKeys: false
|
39
39
|
},
|
40
|
-
|
40
|
+
useContractsHook: {
|
41
41
|
enabled: false
|
42
42
|
}
|
43
43
|
};
|
@@ -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);
|
package/esm/context/context.js
CHANGED
@@ -31,7 +31,7 @@ export const defaultOptions = {
|
|
31
31
|
camelize: true,
|
32
32
|
queryKeys: false
|
33
33
|
},
|
34
|
-
|
34
|
+
useContractsHook: {
|
35
35
|
enabled: false
|
36
36
|
}
|
37
37
|
};
|
@@ -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.
|
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.
|
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": "
|
42
|
+
"gitHead": "fa841ef169b04dd982a3615326777d1f9a9a3420"
|
43
43
|
}
|
package/types/context.d.ts
CHANGED
@@ -13,7 +13,7 @@ export interface RenderOptions {
|
|
13
13
|
messageBuilder?: MessageBuilderOptions;
|
14
14
|
client?: TSClientOptions;
|
15
15
|
reactQuery?: ReactQueryOptions;
|
16
|
-
|
16
|
+
useContractsHook?: UseContractsOptions;
|
17
17
|
}
|
18
18
|
export interface ProviderInfo {
|
19
19
|
classname: string;
|