Comparing version 1.11.4 to 1.11.6
@@ -46,8 +46,3 @@ "use strict"; | ||
let buffer = b64UrlToBuffer(b64UrlString); | ||
// TextEncoder will be available in browsers, but not in node | ||
if (typeof TextDecoder == "undefined") { | ||
const TextDecoder = require("util").TextDecoder; | ||
return new TextDecoder("utf-8", { fatal: true }).decode(buffer); | ||
} | ||
return new TextDecoder("utf-8", { fatal: true }).decode(buffer); | ||
return bufferToString(buffer); | ||
} | ||
@@ -54,0 +49,0 @@ exports.b64UrlToString = b64UrlToString; |
{ | ||
"name": "arweave", | ||
"version": "1.11.4", | ||
"version": "1.11.6", | ||
"description": "Arweave JS client library", | ||
"main": "./node/index.js", | ||
"react-native": "./node/index.js", | ||
"browser": "./web/index.js", | ||
@@ -13,44 +14,44 @@ "files": [ | ||
"scripts": { | ||
"compile:node": "tsc --declaration -project tsconfig.node.json && resolve-tspaths -p tsconfig.node.json", | ||
"compile:web": "tsc --declaration -project tsconfig.web.json && resolve-tspaths -p tsconfig.web.json", | ||
"bundle:web": "npx webpack --config-name web", | ||
"bundle:web-prod": "npx webpack --config-name web-prod", | ||
"profile:web": "npx webpack --config-name web --json > ./web.profile.json && npx webpack-bundle-analyzer ./web.profile.json", | ||
"package": "mkdirp node web && ncp dist/node/common/ dist/node/node/ && ncp dist/node/node/ node && ncp dist/web/common/ dist/web/web/ && ncp dist/web/web/ web && npm run clean:dist", | ||
"build": "npm run clean && npm run compile:node && npm run compile:web && npm run package && npm run bundle:web && npm run bundle:web-prod", | ||
"clean:dist": "rimraf dist", | ||
"clean:package": "rimraf node web", | ||
"clean:bundle": "rimraf bundles", | ||
"clean": "npm run clean:dist && npm run clean:package && npm run clean:bundle", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "mocha -r ts-node/register -r tsconfig-paths/register test/*.ts && echo \"NOW RUN => 'npm run test:web' <= \" ", | ||
"test:web": "npm run bundle:web && npx webpack --config-name web-tests && opener test/web/web.html", | ||
"prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"prettier:write": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"preversion": "npm run test", | ||
"version": "npm run prettier:write && git add -A src && git add -A test", | ||
"postversion": "git push && git push --tags" | ||
"compile:node": "tsc --declaration -project tsconfig.node.json && resolve-tspaths -p tsconfig.node.json", | ||
"compile:web": "tsc --declaration -project tsconfig.web.json && resolve-tspaths -p tsconfig.web.json", | ||
"bundle:web": "npx webpack --config-name web", | ||
"bundle:web-prod": "npx webpack --config-name web-prod", | ||
"profile:web": "npx webpack --config-name web --json > ./web.profile.json && npx webpack-bundle-analyzer ./web.profile.json", | ||
"package": "mkdirp node web && ncp dist/node/common/ dist/node/node/ && ncp dist/node/node/ node && ncp dist/web/common/ dist/web/web/ && ncp dist/web/web/ web && npm run clean:dist", | ||
"build": "npm run clean && npm run compile:node && npm run compile:web && npm run package && npm run bundle:web && npm run bundle:web-prod", | ||
"clean:dist": "rimraf dist", | ||
"clean:package": "rimraf node web", | ||
"clean:bundle": "rimraf bundles", | ||
"clean": "npm run clean:dist && npm run clean:package && npm run clean:bundle", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "mocha -r ts-node/register -r tsconfig-paths/register test/*.ts && echo \"NOW RUN => 'npm run test:web' <= \" ", | ||
"test:web": "npm run bundle:web && npx webpack --config-name web-tests && opener test/web/web.html", | ||
"prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"prettier:write": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"preversion": "npm run test", | ||
"version": "npm run prettier:write && git add -A src && git add -A test", | ||
"postversion": "git push && git push --tags" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ArweaveTeam/arweave-js.git" | ||
}, | ||
"keywords": [ | ||
"arweave", | ||
"js", | ||
"blockchain", | ||
"crypto", | ||
"data", | ||
"permanence", | ||
"http" | ||
], | ||
"author": "Arweave Team <team@arweave.org>", | ||
"contributors": [ | ||
"Kyle Beckles <kyle@arweave.org>", | ||
"Aidan O'Kelly <aidan@arweave.org>", | ||
"Ros McMahon <ros@arweave.org>", | ||
"Cedrik Boudreau <cedrik@arweave.org>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ArweaveTeam/arweave-js.git" | ||
}, | ||
"keywords": [ | ||
"arweave", | ||
"js", | ||
"blockchain", | ||
"crypto", | ||
"data", | ||
"permanence", | ||
"http" | ||
], | ||
"author": "Arweave Team <team@arweave.org>", | ||
"contributors": [ | ||
"Kyle Beckles <kyle@arweave.org>", | ||
"Aidan O'Kelly <aidan@arweave.org>", | ||
"Ros McMahon <ros@arweave.org>", | ||
"Cedrik Boudreau <cedrik@arweave.org>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ArweaveTeam/arweave-js/issues" | ||
@@ -57,0 +58,0 @@ }, |
@@ -384,4 +384,4 @@ # Arweave JS | ||
You can resume an upload from a saved uploader object, that you have persisted in storage some using `JSO | ||
.stringify(uploader)` at any stage of the upload. To resume, parse it back into an object and pass it to `getUploader()` along with the transactions data: | ||
You can resume an upload from a saved uploader object, that you have persisted in storage some using | ||
`JSON.stringify(uploader)` at any stage of the upload. To resume, parse it back into an object and pass it to `getUploader()` along with the transactions data: | ||
@@ -388,0 +388,0 @@ ```js |
@@ -23,8 +23,3 @@ "use strict"; | ||
let buffer = b64UrlToBuffer(b64UrlString); | ||
// TextEncoder will be available in browsers, but not in node | ||
if (typeof TextDecoder == "undefined") { | ||
const TextDecoder = require("util").TextDecoder; | ||
return new TextDecoder("utf-8", { fatal: true }).decode(buffer); | ||
} | ||
return new TextDecoder("utf-8", { fatal: true }).decode(buffer); | ||
return bufferToString(buffer); | ||
} | ||
@@ -31,0 +26,0 @@ exports.b64UrlToString = b64UrlToString; |
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 not supported yet
Sorry, the diff of this file is not supported yet
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
1272266
14318