base64-url
Advanced tools
Comparing version 1.2.2 to 1.3.2
@@ -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 | ||
``` |
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
5
3409
18
51