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

base64-url

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base64-url - npm Package Compare versions

Comparing version 1.2.2 to 1.3.2

3

index.js

@@ -6,4 +6,3 @@ 'use strict';

base64url.unescape = function unescape (str) {
return (str + Array(5 - str.length % 4)
.join('='))
return (str + '==='.slice((str.length + 3) % 4))
.replace(/\-/g, '+')

@@ -10,0 +9,0 @@ .replace(/_/g, '/');

{
"name": "base64-url",
"version": "1.2.2",
"version": "1.3.2",
"description": "Base64 encode, decode, escape and unescape for URL applications",

@@ -13,5 +13,5 @@ "main": "index.js",

"test": "istanbul cover tape test.js",
"jshint": "jshint -c .jshintrc *.js",
"code-style": "jscs -p google *.js",
"check-coverage": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"lint": "jshint -c .jshintrc *.js",
"style": "jscs -p google *.js",
"coverage:check": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"coverage": "open coverage/lcov-report/index.html"

@@ -37,12 +37,11 @@ },

"jshint": "^2.5.11",
"pre-commit": "0.0.9",
"tape": "^3.0.3",
"which": "^1.0.8"
"pre-commit": "^1.1.3",
"tape": "^4.6.0"
},
"pre-commit": [
"jshint",
"code-style",
"lint",
"style",
"test",
"check-coverage"
"coverage:check"
]
}

@@ -37,5 +37,5 @@ # base64-url

to run jshint
to run lint
``` js
npm run jshint
npm run lint
```

@@ -45,3 +45,3 @@

``` js
npm run code-style
npm run style
```

@@ -51,8 +51,3 @@

``` js
npm run check-coverage
npm run coverage:check
```
to open the code coverage report
``` js
npm run coverage
```
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