@cosmwasm/ts-codegen 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/generators/client.js +2 -2
- package/main/generators/types.js +1 -1
- package/module/generators/client.js +2 -2
- package/module/generators/types.js +1 -1
- package/package.json +3 -3
- package/types/{builder → src/builder}/builder.d.ts +0 -0
- package/types/{builder → src/builder}/index.d.ts +0 -0
- package/types/{bundler → src/bundler}/bundler.d.ts +0 -0
- package/types/{bundler → src/bundler}/index.d.ts +0 -0
- package/types/{cli.d.ts → src/cli.d.ts} +0 -0
- package/types/{cmds.d.ts → src/cmds.d.ts} +0 -0
- package/types/src/commands/create-boilerplate.d.ts +2 -0
- package/types/{commands → src/commands}/generate.d.ts +0 -0
- package/types/{commands/client.d.ts → src/commands/install.d.ts} +0 -0
- package/types/{file.d.ts → src/file.d.ts} +0 -0
- package/types/{generators → src/generators}/client.d.ts +2 -1
- package/types/{generators → src/generators}/message-composer.d.ts +1 -0
- package/types/{generators → src/generators}/react-query.d.ts +1 -0
- package/types/{generators → src/generators}/recoil.d.ts +1 -0
- package/types/{generators → src/generators}/types.d.ts +1 -0
- package/types/{index.d.ts → src/index.d.ts} +0 -0
- package/types/{ts-codegen.d.ts → src/ts-codegen.d.ts} +0 -0
- package/types/{types.d.ts → src/types.d.ts} +0 -0
- package/types/{utils → src/utils}/clean.d.ts +0 -0
- package/types/{utils → src/utils}/cleanse.d.ts +0 -0
- package/types/{utils → src/utils}/header.d.ts +0 -0
- package/types/{utils → src/utils}/index.d.ts +0 -0
- package/types/{utils → src/utils}/parse.d.ts +0 -0
- package/types/{utils → src/utils}/prompt.d.ts +0 -0
- package/types/{utils → src/utils}/schemas.d.ts +0 -0
- package/types/commands/message-composer.d.ts +0 -2
- package/types/commands/react-query.d.ts +0 -2
- package/types/commands/recoil.d.ts +0 -2
- package/types/commands/types.d.ts +0 -2
@@ -45,9 +45,9 @@ var _default = /*#__PURE__*/function () {
|
|
45
45
|
switch (_context.prev = _context.next) {
|
46
46
|
case 0:
|
47
47
|
context = new w.RenderContext((0, _utils.getDefinitionSchema)(schemas), {
|
48
|
-
|
48
|
+
client: tsClientOptions !== null && tsClientOptions !== void 0 ? tsClientOptions : {}
|
49
49
|
});
|
50
|
-
options = context.options.
|
50
|
+
options = context.options.client;
|
51
51
|
localname = (0, _case.pascal)(name) + '.client.ts';
|
52
52
|
TypesFile = (0, _case.pascal)(name) + '.types';
|
53
53
|
QueryMsg = (0, _utils.findQueryMsg)(schemas);
|
package/main/generators/types.js
CHANGED
@@ -47,7 +47,7 @@ var _default = /*#__PURE__*/function () {
|
|
47
47
|
switch (_context.prev = _context.next) {
|
48
48
|
case 0:
|
49
49
|
context = new _wasmAstTypes.RenderContext((0, _utils.getDefinitionSchema)(schemas), {
|
50
|
-
|
50
|
+
types: tsTypesOptions !== null && tsTypesOptions !== void 0 ? tsTypesOptions : {}
|
51
51
|
});
|
52
52
|
options = context.options.types;
|
53
53
|
localname = (0, _case.pascal)(name) + '.types.ts';
|
@@ -11,9 +11,9 @@ import { findAndParseTypes, findExecuteMsg, findQueryMsg, getDefinitionSchema }
|
|
11
11
|
import { RenderContext } from "wasm-ast-types";
|
12
12
|
export default (async (name, schemas, outPath, tsClientOptions) => {
|
13
13
|
const context = new RenderContext(getDefinitionSchema(schemas), {
|
14
|
-
|
14
|
+
client: tsClientOptions ?? {}
|
15
15
|
});
|
16
|
-
const options = context.options.
|
16
|
+
const options = context.options.client;
|
17
17
|
const localname = pascal(name) + '.client.ts';
|
18
18
|
const TypesFile = pascal(name) + '.types';
|
19
19
|
const QueryMsg = findQueryMsg(schemas);
|
@@ -10,7 +10,7 @@ import { findAndParseTypes, findExecuteMsg, getDefinitionSchema } from '../utils
|
|
10
10
|
import { RenderContext } from "wasm-ast-types";
|
11
11
|
export default (async (name, schemas, outPath, tsTypesOptions) => {
|
12
12
|
const context = new RenderContext(getDefinitionSchema(schemas), {
|
13
|
-
|
13
|
+
types: tsTypesOptions ?? {}
|
14
14
|
});
|
15
15
|
const options = context.options.types;
|
16
16
|
const localname = pascal(name) + '.types.ts';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.10.0",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"parse-package-name": "1.0.0",
|
94
94
|
"rimraf": "3.0.2",
|
95
95
|
"shelljs": "0.8.5",
|
96
|
-
"wasm-ast-types": "^0.
|
96
|
+
"wasm-ast-types": "^0.8.0"
|
97
97
|
},
|
98
|
-
"gitHead": "
|
98
|
+
"gitHead": "93256e4c8579d792ca727ef8f1e9ac47a5231726"
|
99
99
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { TSClientOptions } from "wasm-ast-types";
|
1
2
|
import { BuilderFile } from "../builder";
|
2
|
-
declare const _default: (name: string, schemas: any[], outPath: string, tsClientOptions?:
|
3
|
+
declare const _default: (name: string, schemas: any[], outPath: string, tsClientOptions?: TSClientOptions) => Promise<BuilderFile[]>;
|
3
4
|
export default _default;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MessageComposerOptions } from "wasm-ast-types";
|
1
2
|
import { BuilderFile } from "../builder";
|
2
3
|
declare const _default: (name: string, schemas: any[], outPath: string, messageComposerOptions?: MessageComposerOptions) => Promise<BuilderFile[]>;
|
3
4
|
export default _default;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|