wasm-ast-types 0.1.1 → 0.1.2

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/main/wasm.js CHANGED
@@ -27,7 +27,7 @@ var getMessageProperties = function getMessageProperties(msg) {
27
27
  if (msg.anyOf) return msg.anyOf;
28
28
  if (msg.oneOf) return msg.oneOf;
29
29
  if (msg.allOf) return msg.allOf;
30
- throw new Error('Message case not handled yet, contact maintainers.');
30
+ return [];
31
31
  };
32
32
 
33
33
  var getTypeFromRef = function getTypeFromRef($ref) {
package/module/wasm.js CHANGED
@@ -6,7 +6,7 @@ const getMessageProperties = msg => {
6
6
  if (msg.anyOf) return msg.anyOf;
7
7
  if (msg.oneOf) return msg.oneOf;
8
8
  if (msg.allOf) return msg.allOf;
9
- throw new Error('Message case not handled yet, contact maintainers.');
9
+ return [];
10
10
  };
11
11
 
12
12
  const getTypeFromRef = $ref => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-ast-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
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",
@@ -85,5 +85,5 @@
85
85
  "ast-stringify": "0.1.0",
86
86
  "case": "1.6.3"
87
87
  },
88
- "gitHead": "205c770b11ce9ea868d58af0567e5ff006cc5381"
88
+ "gitHead": "7d83e56b361314f823c9b903b267156036377457"
89
89
  }