Comparing version 1.4.1 to 2.0.0
@@ -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 @@ |
13685