Socket
Socket
Sign inDemoInstall

js-encoding-utils

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-encoding-utils - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

dist/jseu.bundle.js

2

dist/env.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc