webcrypto-core
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -1,6 +0,8 @@ | ||
// Copyright (c) 2017, Peculiar Ventures, All rights reserved. | ||
import { __extends } from 'tslib'; | ||
function printf(text) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
var msg = text; | ||
@@ -585,5 +587,6 @@ var regFind = /[^%](%\d+)/g; | ||
case "P-521": | ||
case "X25519": | ||
break; | ||
default: | ||
throw new EcKeyGenParamsError(EcKeyGenParamsError.PARAM_WRONG_VALUE, paramNamedCurve, "K-256, P-256, P-384 or P-521"); | ||
throw new EcKeyGenParamsError(EcKeyGenParamsError.PARAM_WRONG_VALUE, paramNamedCurve, "K-256, P-256, P-384, P-521 or X25519"); | ||
} | ||
@@ -590,0 +593,0 @@ }; |
@@ -1,3 +0,1 @@ | ||
// Copyright (c) 2017, Peculiar Ventures, All rights reserved. | ||
'use strict'; | ||
@@ -10,2 +8,6 @@ | ||
function printf(text) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
var msg = text; | ||
@@ -590,5 +592,6 @@ var regFind = /[^%](%\d+)/g; | ||
case "P-521": | ||
case "X25519": | ||
break; | ||
default: | ||
throw new EcKeyGenParamsError(EcKeyGenParamsError.PARAM_WRONG_VALUE, paramNamedCurve, "K-256, P-256, P-384 or P-521"); | ||
throw new EcKeyGenParamsError(EcKeyGenParamsError.PARAM_WRONG_VALUE, paramNamedCurve, "K-256, P-256, P-384, P-521 or X25519"); | ||
} | ||
@@ -595,0 +598,0 @@ }; |
{ | ||
"name": "webcrypto-core", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Common layer to be used by crypto libraries based on WebCrypto API for input validation.", | ||
@@ -47,6 +47,6 @@ "main": "dist/webcrypto-core.js", | ||
"@types/node": "^8", | ||
"coveralls": "^2.13.1", | ||
"mocha": "^3.5.0", | ||
"nyc": "^8", | ||
"rollup": "^0.49.2", | ||
"coveralls": "^3.0.0", | ||
"mocha": "^5.0.5", | ||
"nyc": "^11.6.0", | ||
"rollup": "^0.57.1", | ||
"rollup-plugin-typescript": "^0.8.1", | ||
@@ -53,0 +53,0 @@ "typescript": "^2.5.2" |
@@ -24,3 +24,3 @@ var helper = require("./helper"); | ||
["P-256", "P-384", "P-521", "Wrong curve", void 0, 123] | ||
["P-256", "P-384", "P-521", "K-256", "X25519", "Wrong curve", void 0, 123] | ||
.forEach(function (namedCurve, index) { | ||
@@ -33,3 +33,3 @@ | ||
}; | ||
generate(_alg, keyUsages[alg], done, index >= 3) | ||
generate(_alg, keyUsages[alg], done, index >= 5) | ||
}); | ||
@@ -36,0 +36,0 @@ |
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
328623
17
5217