Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-base64

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-base64 - npm Package Compare versions

Comparing version 3.7.4 to 3.7.5

4

base64.d.ts

@@ -12,7 +12,7 @@ /**

*/
declare const version = "3.7.4";
declare const version = "3.7.5";
/**
* @deprecated use lowercase `version`.
*/
declare const VERSION = "3.7.4";
declare const VERSION = "3.7.5";
/**

@@ -19,0 +19,0 @@ * polyfill version of `btoa`

@@ -40,3 +40,3 @@ //

*/
var version = '3.7.4';
var version = '3.7.5';
/**

@@ -62,6 +62,3 @@ * @deprecated use lowercase `version`.

? Uint8Array.from.bind(Uint8Array)
: function (it, fn) {
if (fn === void 0) { fn = function (x) { return x; }; }
return new Uint8Array(Array.prototype.slice.call(it, 0).map(fn));
};
: function (it) { return new Uint8Array(Array.prototype.slice.call(it, 0)); };
var _mkUriSafe = function (src) { return src

@@ -230,3 +227,3 @@ .replace(/=/g, '').replace(/[+\/]/g, function (m0) { return m0 == '+' ? '-' : '_'; }); };

? function (a) { return _U8Afrom(Buffer.from(a, 'base64')); }
: function (a) { return _U8Afrom(_atob(a), function (c) { return c.charCodeAt(0); }); };
: function (a) { return _U8Afrom(_atob(a).split('').map(function (c) { return c.charCodeAt(0); })); };
/**

@@ -233,0 +230,0 @@ * converts a Base64 string to a Uint8Array.

{
"name": "js-base64",
"version": "3.7.4",
"version": "3.7.5",
"description": "Yet another Base64 transcoder in pure-JS",

@@ -5,0 +5,0 @@ "main": "base64.js",

@@ -28,3 +28,3 @@ [![CI via GitHub Actions](https://github.com/dankogai/js-base64/actions/workflows/node.js.yml/badge.svg)](https://github.com/dankogai/js-base64/actions/workflows/node.js.yml)

```html
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.7.4/base64.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.7.5/base64.min.js"></script>
```

@@ -52,3 +52,3 @@

// note jsdelivr.net does not automatically minify .mjs
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.4/base64.mjs';
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.5/base64.mjs';
</script>

@@ -60,3 +60,3 @@ ```

// or if you prefer no Base64 namespace
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.4/base64.mjs';
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.5/base64.mjs';
</script>

@@ -63,0 +63,0 @@ ```

Sorry, the diff of this file is not supported yet

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