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.6.0 to 3.6.1

4

base64.d.ts

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

*/
declare const version = "3.6.0";
declare const version = "3.6.1";
/**
* @deprecated use lowercase `version`.
*/
declare const VERSION = "3.6.0";
declare const VERSION = "3.6.1";
/**

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

@@ -43,3 +43,3 @@

*/
const version = '3.6.0';
const version = '3.6.1';
/**

@@ -46,0 +46,0 @@ * @deprecated use lowercase `version`.

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

@@ -13,2 +13,9 @@ "main": "base64.js",

],
"exports": {
".": {
"import": "./base64.mjs",
"require": "./base64.js"
},
"./package.json": "./package.json"
},
"scripts": {

@@ -15,0 +22,0 @@ "test": "make clean && make test"

@@ -32,3 +32,3 @@ [![build status](https://secure.travis-ci.org/dankogai/js-base64.png)](http://travis-ci.org/dankogai/js-base64)

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

@@ -56,3 +56,3 @@

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

@@ -64,3 +64,3 @@ ```

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

@@ -93,2 +93,4 @@ ```

Base64.encode(latin); // ZGFua29nYWk=
Base64.encode(latin, true)); // ZGFua29nYWk skips padding
Base64.encodeURI(latin)); // ZGFua29nYWk
Base64.btoa(latin); // ZGFua29nYWk=

@@ -105,2 +107,3 @@ Base64.btoa(utf8); // raises exception

Base64.decode( 'ZGFua29nYWk=');// dankogai
Base64.decode( 'ZGFua29nYWk'); // dankogai
Base64.atob( 'ZGFua29nYWk=');// dankogai

@@ -107,0 +110,0 @@ Base64.atob( '5bCP6aO85by+');// '小飼弾' which is nonsense

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