@taquito/michelson-encoder
Advanced tools
Comparing version 16.1.2 to 16.2.0-beta-RC.0
@@ -36,6 +36,7 @@ "use strict"; | ||
EncodeObject(args, semantic) { | ||
const value = args; | ||
let value = args; | ||
if (value === undefined || value === null) { | ||
return { prim: 'None' }; | ||
} | ||
value = typeof value === 'object' && 'Some' in value ? value['Some'] : value; | ||
return { prim: 'Some', args: [this.schema().EncodeObject(value, semantic)] }; | ||
@@ -47,3 +48,3 @@ } | ||
} | ||
return this.schema().Execute(val.args[0], semantics); | ||
return { Some: this.schema().Execute(val.args[0], semantics) }; | ||
} | ||
@@ -55,3 +56,3 @@ /** | ||
ExtractSchema() { | ||
return this.schema().ExtractSchema(); | ||
return { Some: this.schema().ExtractSchema() }; | ||
} | ||
@@ -65,3 +66,3 @@ generateSchema() { | ||
ExtractSignature() { | ||
return [...this.schema().ExtractSignature(), []]; | ||
return [...this.schema().ExtractSignature()]; | ||
} | ||
@@ -68,0 +69,0 @@ get KeySchema() { |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "bcc2118ddfafc1995fd125cd74d198fda042bf48", | ||
"version": "16.1.2" | ||
"commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d", | ||
"version": "16.2.0-beta-RC.0" | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -22,3 +22,5 @@ import { OptionTokenSchema } from '../schema/types'; | ||
EncodeObject(args: any, semantic?: SemanticEncoding): any; | ||
Execute(val: any, semantics?: Semantic): any; | ||
Execute(val: any, semantics?: Semantic): { | ||
Some: any; | ||
} | null; | ||
/** | ||
@@ -28,3 +30,5 @@ * @deprecated ExtractSchema has been deprecated in favor of generateSchema | ||
*/ | ||
ExtractSchema(): any; | ||
ExtractSchema(): { | ||
Some: any; | ||
}; | ||
generateSchema(): OptionTokenSchema; | ||
@@ -34,3 +38,5 @@ ExtractSignature(): any[][]; | ||
compare(val1: any, val2: any): number; | ||
ToKey(val: any): any; | ||
ToKey(val: any): { | ||
Some: any; | ||
} | null; | ||
ToBigMapKey(val: any): { | ||
@@ -37,0 +43,0 @@ key: any; |
{ | ||
"name": "@taquito/michelson-encoder", | ||
"version": "16.1.2", | ||
"version": "16.2.0-beta-RC.0", | ||
"description": "converts michelson data and types into convenient JS/TS objects", | ||
@@ -71,4 +71,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@taquito/rpc": "^16.1.2", | ||
"@taquito/utils": "^16.1.2", | ||
"@taquito/rpc": "^16.2.0-beta-RC.0", | ||
"@taquito/utils": "^16.2.0-beta-RC.0", | ||
"bignumber.js": "^9.1.0", | ||
@@ -78,3 +78,2 @@ "fast-json-stable-stringify": "^2.1.0" | ||
"devDependencies": { | ||
"@taquito/rpc": "^14.0.0-beta-RC.0", | ||
"@types/bluebird": "^3.5.36", | ||
@@ -107,3 +106,3 @@ "@types/jest": "^26.0.23", | ||
}, | ||
"gitHead": "f44e0fa20e017142543cf0ad49fc8220021f6d1c" | ||
"gitHead": "a909a1e61a626eb5a2e9ad269a80a96aceff4e28" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1138405
26
14781
2