@taquito/michelson-encoder
Advanced tools
Comparing version 11.0.2 to 11.1.0-beta-RC.0
@@ -58,2 +58,3 @@ "use strict"; | ||
function Schema(val) { | ||
this.val = val; | ||
this[_a] = true; | ||
@@ -60,0 +61,0 @@ this.root = createToken_1.createToken(val, 0); |
@@ -17,5 +17,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = exports.SaplingStateValue = exports.UnitValue = void 0; | ||
exports.Token = exports.VERSION = exports.SaplingStateValue = exports.UnitValue = void 0; | ||
__exportStar(require("./schema/storage"), exports); | ||
__exportStar(require("./schema/parameter"), exports); | ||
__exportStar(require("./schema/view-schema"), exports); | ||
__exportStar(require("./schema/error"), exports); | ||
__exportStar(require("./errors"), exports); | ||
@@ -27,2 +29,4 @@ exports.UnitValue = Symbol(); | ||
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } }); | ||
var token_1 = require("./tokens/token"); | ||
Object.defineProperty(exports, "Token", { enumerable: true, get: function () { return token_1.Token; } }); | ||
//# sourceMappingURL=taquito-michelson-encoder.js.map |
@@ -28,3 +28,6 @@ "use strict"; | ||
TimestampToken.prototype.Execute = function (val) { | ||
if (val.string) { | ||
if (val.string && /^\d+$/.test(val.string)) { | ||
return new Date(Number(val.string) * 1000).toISOString(); | ||
} | ||
else if (val.string) { | ||
return new Date(val.string).toISOString(); | ||
@@ -31,0 +34,0 @@ } |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "e4fb2f0ab9a459640e474bf65ae4578f4b948c63", | ||
"version": "11.0.2" | ||
"commitHash": "7f502927fc7d7f4a1075602f960a56af2ff0a5bf", | ||
"version": "11.1.0-beta-RC.0" | ||
}; | ||
/* tslint:enable */ | ||
//# sourceMappingURL=version.js.map |
@@ -9,2 +9,3 @@ import { MichelsonV1Expression, ScriptResponse } from '@taquito/rpc'; | ||
export declare class Schema { | ||
readonly val: MichelsonV1Expression; | ||
private root; | ||
@@ -11,0 +12,0 @@ [schemaTypeSymbol]: boolean; |
@@ -7,2 +7,4 @@ /** | ||
export * from './schema/parameter'; | ||
export * from './schema/view-schema'; | ||
export * from './schema/error'; | ||
export { Semantic, BigMapKeyType } from './tokens/token'; | ||
@@ -14,1 +16,2 @@ export * from './errors'; | ||
export { VERSION } from './version'; | ||
export { Token } from './tokens/token'; |
{ | ||
"name": "@taquito/michelson-encoder", | ||
"version": "11.0.2", | ||
"version": "11.1.0-beta-RC.0", | ||
"description": "converts michelson data and types into convenient JS/TS objects", | ||
@@ -71,4 +71,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@taquito/rpc": "^11.0.2", | ||
"@taquito/utils": "^11.0.2", | ||
"@taquito/rpc": "^11.1.0-beta-RC.0", | ||
"@taquito/utils": "^11.1.0-beta-RC.0", | ||
"bignumber.js": "^9.0.1", | ||
@@ -107,3 +107,3 @@ "fast-json-stable-stringify": "^2.1.0" | ||
}, | ||
"gitHead": "791bf6aec6c0694b755ecf22b01b3e09a5206b76" | ||
"gitHead": "f1ba8474b1e6173f04138d7378846733a58ddcec" | ||
} |
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 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
987686
146
13231
2