ecurve-names
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,16 +0,12 @@ | ||
0.2.0 / 2013-12-08 | ||
0.2.1 / 2014-01-23 | ||
------------------ | ||
* updated to `bigi` dep | ||
* Fixed module names/versions of dependencies | ||
0.1.1 / 2013-11-21 | ||
------------------ | ||
* * removed AMD support | ||
0.1.0 / 2013-11-20 | ||
------------------ | ||
* changed package name | ||
* removed AMD support | ||
0.0.1 / 2013-11-06 | ||
------------------ | ||
* initial release |
@@ -7,5 +7,17 @@ !function(globals) { | ||
if (typeof module !== 'undefined' && module.exports) { //CommonJS | ||
ECCurveFp = require('ecurve') | ||
//*** UMD BEGIN | ||
if (typeof define !== 'undefined' && define.amd) { //require.js / AMD | ||
define(['bigi', 'ecurve'], function(bigint, ecc) { | ||
BigInteger = bigint | ||
ECCurveFp = ecc | ||
return getSECCurveByName | ||
}) | ||
} else if (typeof module !== 'undefined' && module.exports) { //CommonJS | ||
try { //Node.js | ||
BigInteger = require('bigi') | ||
ECCurveFp = require('ecurve') | ||
} catch (e) { //Component | ||
BigInteger = require('bigint') | ||
ECCurveFp = require('ecc') | ||
} | ||
module.exports = getSECCurveByName | ||
@@ -17,4 +29,4 @@ } else { | ||
} | ||
//*** UMD END | ||
// Named EC curves | ||
@@ -21,0 +33,0 @@ |
{ | ||
"name": "ecurve-names", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Elliptical Curve Cryptography Named Parameters", | ||
@@ -26,2 +26,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
ecc-named | ||
========= | ||
ecurve-names | ||
============ | ||
@@ -4,0 +4,0 @@ JavaScript component to [Elliptical Curve Cryptography]() named parameters from http://www.secg.org/collateral/sec2_final.pdf |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8821
180
1