wasm-ast-types 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/main/wasm.arrays.spec.js +5 -5
- package/module/wasm.arrays.spec.js +1 -1
- package/package.json +24 -23
package/main/wasm.arrays.spec.js
CHANGED
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
|
5
5
|
var _generator = _interopRequireDefault(require("@babel/generator"));
|
6
6
|
|
7
|
-
var
|
7
|
+
var _arrays = _interopRequireDefault(require("./../../../__fixtures__/misc/schema/arrays.json"));
|
8
8
|
|
9
9
|
var _wasm = require("./wasm");
|
10
10
|
|
@@ -17,14 +17,14 @@ var printCode = function printCode(ast) {
|
|
17
17
|
};
|
18
18
|
|
19
19
|
it('execute_msg_for__empty', function () {
|
20
|
-
expectCode((0, _wasm.createTypeInterface)(
|
20
|
+
expectCode((0, _wasm.createTypeInterface)(_arrays["default"]));
|
21
21
|
});
|
22
22
|
it('query classes', function () {
|
23
|
-
expectCode((0, _wasm.createQueryClass)('SG721QueryClient', 'SG721ReadOnlyInstance',
|
23
|
+
expectCode((0, _wasm.createQueryClass)('SG721QueryClient', 'SG721ReadOnlyInstance', _arrays["default"]));
|
24
24
|
});
|
25
25
|
it('execute classes array types', function () {
|
26
|
-
expectCode((0, _wasm.createExecuteClass)('SG721Client', 'SG721Instance', null,
|
26
|
+
expectCode((0, _wasm.createExecuteClass)('SG721Client', 'SG721Instance', null, _arrays["default"]));
|
27
27
|
});
|
28
28
|
it('execute interfaces no extends', function () {
|
29
|
-
expectCode((0, _wasm.createExecuteInterface)('SG721Instance', null,
|
29
|
+
expectCode((0, _wasm.createExecuteInterface)('SG721Instance', null, _arrays["default"]));
|
30
30
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import generate from '@babel/generator';
|
2
|
-
import message from './../../../__fixtures__/
|
2
|
+
import message from './../../../__fixtures__/misc/schema/arrays.json';
|
3
3
|
import { createQueryClass, createExecuteClass, createExecuteInterface, createTypeInterface } from './wasm';
|
4
4
|
|
5
5
|
const expectCode = ast => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "wasm-ast-types",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.1",
|
4
4
|
"description": "CosmWasm TypeScript AST generation",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/pyramation/cosmwasm-typescript-gen/tree/master/packages/wasm-ast-types#readme",
|
@@ -48,41 +48,42 @@
|
|
48
48
|
"url": "https://github.com/pyramation/cosmwasm-typescript-gen/issues"
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@babel/cli": "7.
|
52
|
-
"@babel/core": "7.18.
|
53
|
-
"@babel/eslint-parser": "^7.18.
|
54
|
-
"@babel/generator": "7.18.
|
55
|
-
"@babel/node": "^7.18.
|
56
|
-
"@babel/parser": "^7.18.
|
57
|
-
"@babel/plugin-proposal-class-properties": "7.
|
58
|
-
"@babel/plugin-proposal-export-default-from": "7.
|
59
|
-
"@babel/plugin-proposal-object-rest-spread": "7.18.
|
60
|
-
"@babel/plugin-transform-runtime": "7.18.
|
61
|
-
"@babel/preset-env": "7.18.
|
62
|
-
"@babel/preset-typescript": "^7.
|
63
|
-
"@babel/traverse": "7.18.
|
64
|
-
"@types/jest": "^28.1.
|
51
|
+
"@babel/cli": "7.18.10",
|
52
|
+
"@babel/core": "7.18.10",
|
53
|
+
"@babel/eslint-parser": "^7.18.9",
|
54
|
+
"@babel/generator": "7.18.12",
|
55
|
+
"@babel/node": "^7.18.10",
|
56
|
+
"@babel/parser": "^7.18.11",
|
57
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
58
|
+
"@babel/plugin-proposal-export-default-from": "7.18.10",
|
59
|
+
"@babel/plugin-proposal-object-rest-spread": "7.18.9",
|
60
|
+
"@babel/plugin-transform-runtime": "7.18.10",
|
61
|
+
"@babel/preset-env": "7.18.10",
|
62
|
+
"@babel/preset-typescript": "^7.18.6",
|
63
|
+
"@babel/traverse": "7.18.11",
|
64
|
+
"@types/jest": "^28.1.6",
|
65
65
|
"babel-core": "7.0.0-bridge.0",
|
66
|
-
"babel-jest": "28.1.
|
66
|
+
"babel-jest": "^28.1.3",
|
67
67
|
"babel-watch": "^7.0.0",
|
68
68
|
"cross-env": "^7.0.2",
|
69
|
-
"eslint": "8.
|
69
|
+
"eslint": "8.21.0",
|
70
70
|
"eslint-config-prettier": "^8.5.0",
|
71
|
-
"eslint-plugin-prettier": "^4.
|
71
|
+
"eslint-plugin-prettier": "^4.2.1",
|
72
72
|
"glob": "8.0.3",
|
73
|
-
"jest": "
|
73
|
+
"jest": "28.1.3",
|
74
74
|
"jest-in-case": "^1.0.2",
|
75
75
|
"mkdirp": "1.0.4",
|
76
76
|
"prettier": "^2.7.1",
|
77
77
|
"regenerator-runtime": "^0.13.7",
|
78
|
-
"ts-jest": "^28.0.
|
78
|
+
"ts-jest": "^28.0.7",
|
79
79
|
"typescript": "^4.7.4"
|
80
80
|
},
|
81
81
|
"dependencies": {
|
82
|
-
"@babel/runtime": "^7.18.
|
83
|
-
"@babel/types": "7.18.
|
82
|
+
"@babel/runtime": "^7.18.9",
|
83
|
+
"@babel/types": "7.18.10",
|
84
|
+
"@jest/transform": "28.1.3",
|
84
85
|
"ast-stringify": "0.1.0",
|
85
86
|
"case": "1.6.3"
|
86
87
|
},
|
87
|
-
"gitHead": "
|
88
|
+
"gitHead": "213e10e01a8784d82d003821d6d9490b97b7b480"
|
88
89
|
}
|