Socket
Socket
Sign inDemoInstall

jwa

Package Overview
Dependencies
5
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.1.4

3

index.js
var bufferEqual = require('buffer-equal-constant-time');
var base64url = require('base64url');
var Buffer = require('safe-buffer').Buffer;
var crypto = require('crypto');

@@ -42,3 +43,3 @@ var formatEcdsa = require('ecdsa-sig-formatter');

var computedSig = createHmacSigner(bits)(thing, secret);
return bufferEqual(Buffer(signature), Buffer(computedSig));
return bufferEqual(Buffer.from(signature), Buffer.from(computedSig));
}

@@ -45,0 +46,0 @@ }

{
"name": "jwa",
"version": "1.1.3",
"version": "1.1.4",
"description": "JWA implementation (supports all JWS algorithms)",

@@ -10,9 +10,10 @@ "main": "index.js",

"dependencies": {
"base64url": "~1.0.4",
"buffer-equal-constant-time": "^1.0.1",
"ecdsa-sig-formatter": "^1.0.0"
"base64url": "2.0.0",
"buffer-equal-constant-time": "1.0.1",
"ecdsa-sig-formatter": "1.0.7",
"safe-buffer": "^5.0.1"
},
"devDependencies": {
"semver": "^4.3.6",
"tap": "~0.3.3"
"semver": "4.3.6",
"tap": "6.2.0"
},

@@ -34,5 +35,4 @@ "scripts": {

],
"author": "Brian J. Brennan",
"license": "MIT",
"gitHead": "5ca1d5182bb64ff15f6f52000fb30a6582a4c8b0"
"author": "Brian J. Brennan <brianloveswords@gmail.com>",
"license": "MIT"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc