@digitalbazaar/x25519-key-agreement-key-2020
Advanced tools
Comparing version 2.1.0 to 3.0.0
/*! | ||
* Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved. | ||
*/ | ||
import * as crypto from 'crypto'; | ||
import {promisify} from 'util'; | ||
import * as crypto from 'node:crypto'; | ||
import {promisify} from 'node:util'; | ||
import * as cryptoNacl from './crypto-nacl.js'; | ||
@@ -7,0 +7,0 @@ |
/*! | ||
* Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved. | ||
*/ | ||
'use strict'; | ||
// translate `main.js` to CommonJS | ||
require = require('esm')(module); | ||
module.exports = require('./main.js'); | ||
export {X25519KeyAgreementKey2020} from './X25519KeyAgreementKey2020.js'; |
{ | ||
"name": "@digitalbazaar/x25519-key-agreement-key-2020", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "An X25519 (Curve25519) DH (Diffie-Hellman) key implementation to work with the X25519 2020 Crypto suite.", | ||
@@ -20,33 +20,30 @@ "homepage": "https://github.com/digitalbazaar/x25519-key-agreement-key-2020", | ||
"license": "BSD-3-Clause", | ||
"type": "module", | ||
"exports": "./lib/index.js", | ||
"browser": { | ||
"./lib/crypto.js": "./lib/crypto-browser.js" | ||
}, | ||
"files": [ | ||
"lib/*.js" | ||
"lib/**/*.js" | ||
], | ||
"main": "lib/index.js", | ||
"module": "lib/main.js", | ||
"dependencies": { | ||
"@noble/ed25519": "^1.6.0", | ||
"base58-universal": "^1.0.0", | ||
"crypto-ld": "^5.0.0", | ||
"base58-universal": "^2.0.0", | ||
"crypto-ld": "^7.0.0", | ||
"ed2curve": "^0.3.0", | ||
"esm": "^3.2.25", | ||
"tweetnacl": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.13.8", | ||
"@babel/plugin-transform-modules-commonjs": "^7.13.8", | ||
"@babel/plugin-transform-runtime": "^7.13.9", | ||
"@babel/preset-env": "^7.13.9", | ||
"@babel/runtime": "^7.13.9", | ||
"@digitalbazaar/ed25519-verification-key-2020": "^3.0.0", | ||
"@digitalbazaar/x25519-key-agreement-key-2019": "^5.0.1", | ||
"babel-loader": "^8.2.2", | ||
"chai": "^4.3.3", | ||
"@digitalbazaar/ed25519-verification-key-2020": "^4.0.0", | ||
"@digitalbazaar/x25519-key-agreement-key-2019": "^6.0.0", | ||
"c8": "^7.11.3", | ||
"chai": "^4.3.6", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.21.0", | ||
"eslint-config-digitalbazaar": "^2.6.1", | ||
"eslint-plugin-jsdoc": "^32.2.0", | ||
"karma": "^6.1.1", | ||
"karma-babel-preprocessor": "^8.0.1", | ||
"eslint": "^8.16.0", | ||
"eslint-config-digitalbazaar": "^3.0.0", | ||
"eslint-plugin-jsdoc": "^39.3.2", | ||
"eslint-plugin-unicorn": "^42.0.0", | ||
"karma": "^6.3.20", | ||
"karma-chai": "^0.1.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-chrome-launcher": "^3.1.1", | ||
"karma-mocha": "^2.0.1", | ||
@@ -56,21 +53,15 @@ "karma-mocha-reporter": "^2.2.5", | ||
"karma-webpack": "^5.0.0", | ||
"mocha": "^8.3.1", | ||
"mocha": "^10.0.0", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"nyc": "^15.1.0", | ||
"webpack": "^5.24.3" | ||
"webpack": "^5.72.1" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"tests" | ||
], | ||
"c8": { | ||
"reporter": [ | ||
"html", | ||
"text-summary" | ||
"lcov", | ||
"text-summary", | ||
"text" | ||
] | ||
}, | ||
"browser": { | ||
"./lib/crypto.js": "./lib/crypto-browser.js" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=14" | ||
}, | ||
@@ -82,10 +73,10 @@ "keywords": [ | ||
"scripts": { | ||
"test": "npm run lint && npm run test-node && npm run test-karma", | ||
"test-node": "cross-env NODE_ENV=test mocha -r esm --preserve-symlinks -t 10000 test/*.spec.js", | ||
"test-karma": "karma start karma.conf.js", | ||
"coverage": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm run test-node", | ||
"coverage-ci": "cross-env NODE_ENV=test nyc --reporter=text-lcov npm run test-node > coverage.lcov", | ||
"coverage-report": "nyc report", | ||
"test": "npm run test-node", | ||
"test-node": "cross-env NODE_ENV=test mocha --preserve-symlinks -t 10000 test/*.spec.js", | ||
"test-karma": "karma start karma.conf.cjs", | ||
"coverage": "cross-env NODE_ENV=test c8 npm run test-node", | ||
"coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node", | ||
"coverage-report": "c8 report", | ||
"lint": "eslint ." | ||
} | ||
} |
@@ -40,3 +40,3 @@ # X25519KeyAgreementKey2020 _(@digitalbazaar/x25519-key-agreement-key-2020)_ | ||
Requires Node.js 12+ | ||
Requires Node.js 14+ | ||
@@ -43,0 +43,0 @@ To install locally (for development): |
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
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
5
19
Yes
25113
8
451
+ Addedbase58-universal@2.0.0(transitive)
+ Addedcrypto-ld@7.0.0(transitive)
- Removedesm@^3.2.25
- Removedbase58-universal@1.0.0(transitive)
- Removedcrypto-ld@5.1.0(transitive)
- Removedesm@3.2.25(transitive)
Updatedbase58-universal@^2.0.0
Updatedcrypto-ld@^7.0.0