🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

jwa

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwa - npm Package Compare versions

Comparing version

to
2.0.0

2

index.js

@@ -242,3 +242,3 @@ var bufferEqual = require('buffer-equal-constant-time');

}
var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);
if (!match)

@@ -245,0 +245,0 @@ throw typeError(MSG_INVALID_ALGORITHM, algorithm);

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

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

@@ -58,3 +58,3 @@ # node-jwa [![Build Status](https://travis-ci.org/brianloveswords/node-jwa.svg?branch=master)](https://travis-ci.org/brianloveswords/node-jwa)

algorithm. Valid values for algorithm can be found in the table above
(`'HS256'`, `'HS384'`, etc) and are case-insensitive. Passing an invalid
(`'HS256'`, `'HS384'`, etc) and are case-sensitive. Passing an invalid
algorithm value will throw a `TypeError`.

@@ -61,0 +61,0 @@