@greymass/eosio
Advanced tools
Comparing version 0.6.0 to 0.6.1-rc1
{ | ||
"name": "@greymass/eosio", | ||
"description": "Library for working with EOSIO blockchains", | ||
"version": "0.6.0", | ||
"version": "0.6.1-rc1", | ||
"homepage": "https://github.com/greymass/eosio-core", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -26,4 +26,9 @@ /** | ||
customTypes?: ABISerializableConstructor[] | ||
/** Optional encoder metadata. */ | ||
/** Optional encoder metadata. */ | ||
metadata?: Record<string, any> | ||
/** | ||
* Binary extension handling, if set to true missing extensions will be initialized, | ||
* otherwise they will be set to null. Defaults to false. | ||
*/ | ||
strictExtensions?: boolean | ||
} | ||
@@ -106,2 +111,3 @@ | ||
types: buildTypeLookup(customTypes), | ||
strictExtensions: args.strictExtensions || false, | ||
codingPath: [{field: 'root', type: resolved}], | ||
@@ -137,2 +143,3 @@ } | ||
types: TypeLookup | ||
strictExtensions: boolean | ||
codingPath: {field: string | number; type: ABI.ResolvedType}[] | ||
@@ -150,3 +157,7 @@ } | ||
if (!decoder.canRead()) { | ||
return defaultValue(type, ctx) | ||
if (ctx.strictExtensions) { | ||
return defaultValue(type, ctx) | ||
} else { | ||
return null | ||
} | ||
} | ||
@@ -230,3 +241,7 @@ } | ||
if (type.isExtension) { | ||
return defaultValue(type, ctx) | ||
if (ctx.strictExtensions) { | ||
return defaultValue(type, ctx) | ||
} else { | ||
return null | ||
} | ||
} | ||
@@ -233,0 +248,0 @@ throw new Error(`Unexpectedly encountered ${value} for non-optional`) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17035
863549