Comparing version 0.8.5 to 0.8.6
@@ -52,3 +52,3 @@ "use strict"; | ||
const key = this.getKey(this.main.account.address); | ||
const va = buffer_1.Buffer.from(JSON.stringify(value), 'base64').toString(); | ||
const va = buffer_1.Buffer.from(JSON.stringify(value)).toString('base64'); | ||
if (this.main.options.agentStorage) { | ||
@@ -86,3 +86,3 @@ this.main.options.agentStorage.set(key, va); | ||
if (data) { | ||
const result = JSON.parse(buffer_1.Buffer.from(data).toString('base64')); | ||
const result = JSON.parse(buffer_1.Buffer.from(data, 'base64').toString()); | ||
this.set(result); | ||
@@ -89,0 +89,0 @@ return result; |
@@ -245,3 +245,3 @@ "use strict"; | ||
return { message: "validation failed at " + path.join(".") + ": " + ("superfluous property '" + key + "' in object"), path: path.slice(), reason: { type: "superfluous-property" } }; | ||
} return null; } function _1498(object) { ; if (object !== "rss3.io/version/v0.3.1") | ||
} return null; } function _1522(object) { ; if (object !== "rss3.io/version/v0.3.1") | ||
return { message: "validation failed at " + path.join(".") + ": expected string 'rss3.io/version/v0.3.1'", path: path.slice(), reason: { type: "string-literal", value: "rss3.io/version/v0.3.1" } }; | ||
@@ -337,3 +337,3 @@ else | ||
path.push("version"); | ||
var error = _1498(object["version"]); | ||
var error = _1522(object["version"]); | ||
path.pop(); | ||
@@ -398,3 +398,3 @@ if (error) | ||
path.push("version"); | ||
var error = _1498(object["version"]); | ||
var error = _1522(object["version"]); | ||
path.pop(); | ||
@@ -697,3 +697,3 @@ if (error) | ||
path.push("version"); | ||
var error = _1498(object["version"]); | ||
var error = _1522(object["version"]); | ||
path.pop(); | ||
@@ -700,0 +700,0 @@ if (error) |
{ | ||
"name": "rss3", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -70,3 +70,3 @@ import type { AnyObject } from '../../types/extend'; | ||
const key = this.getKey(this.main.account.address); | ||
const va = Buffer.from(JSON.stringify(value), 'base64').toString(); | ||
const va = Buffer.from(JSON.stringify(value)).toString('base64'); | ||
if (this.main.options.agentStorage) { | ||
@@ -102,3 +102,3 @@ this.main.options.agentStorage.set(key, va); | ||
if (data) { | ||
const result = <IStorageData>JSON.parse(Buffer.from(data).toString('base64')); | ||
const result = <IStorageData>JSON.parse(Buffer.from(data, 'base64').toString()); | ||
this.set(result); | ||
@@ -105,0 +105,0 @@ return result; |