js-encoding-utils
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -6,2 +6,2 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getEnvBtoa=getEnvBtoa,exports.getEnvAtob=getEnvAtob;/** | ||
}function getEnvAtob(){return"undefined"==typeof window?nodeAtob:window.atob;// node | ||
}var nodeBtoa=function(a){var b,c=require("buffer").Buffer,d=Object.prototype.toString.call(a).slice(8,-1);return b=c.isBuffer(a)?a:0<=["ArrayBuffer","TypedArray","Uint8Array","Int8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].indexOf(d)?c.from(a):new c.from(a.toString(),"binary"),b.toString("base64")},nodeAtob=function(a){var b=require("buffer").Buffer;return new b.from(a,"base64").toString("binary")}; | ||
}var nodeBtoa=function(a){if("undefined"!=typeof Buffer){var b,c=Object.prototype.toString.call(a).slice(8,-1);return b=Buffer.isBuffer(a)?a:0<=["ArrayBuffer","TypedArray","Uint8Array","Int8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].indexOf(c)?Buffer.from(a):new Buffer.from(a.toString(),"binary"),b.toString("base64")}throw new Error("UnsupportedEnvironment")},nodeAtob=function(a){if("undefined"!=typeof Buffer)return new Buffer.from(a,"base64").toString("binary");throw new Error("UnsupportedEnvironment")}; |
{ | ||
"name": "js-encoding-utils", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Miscellaneous Encoding Utilities for Crypto-related Objects in JavaScript", | ||
"main": "dist/index.js", | ||
"main": "dist/jseu.bundle.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha --require @babel/register --recursive $(find test -name '*.spec.js')", | ||
"karma": "./node_modules/.bin/karma start", | ||
"build": "NODE_ENV=production ./node_modules/.bin/babel src -d dist/ --keep-file-extension" | ||
"webpack": "./node_modules/.bin/webpack --optimize-minimize --mode production", | ||
"build": "NODE_ENV=production ./node_modules/.bin/babel src -d dist/ --keep-file-extension && npm run webpack" | ||
}, | ||
@@ -11,0 +12,0 @@ "author": "Jun Kurihara", |
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
17190
8