@digitalbazaar/ed25519-verification-key-2020
Advanced tools
Comparing version 3.3.0 to 4.0.0
@@ -7,3 +7,3 @@ /*! | ||
// browser MUST provide "crypto.getRandomValues" | ||
const crypto = self.crypto; | ||
const crypto = globalThis.crypto; | ||
if(!crypto.getRandomValues) { | ||
@@ -10,0 +10,0 @@ throw new Error('Browser does not provide "crypto.getRandomValues".'); |
@@ -11,5 +11,5 @@ /*! | ||
randomBytes | ||
} from 'crypto'; | ||
} from 'node:crypto'; | ||
import {promisify} from 'util'; | ||
import {promisify} from 'node:util'; | ||
@@ -16,0 +16,0 @@ const randomBytesAsync = promisify(randomBytes); |
/*! | ||
* Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved. | ||
*/ | ||
'use strict'; | ||
// translate `main.js` to CommonJS | ||
require = require('esm')(module); | ||
module.exports = require('./main.js'); | ||
export {Ed25519VerificationKey2020} from './Ed25519VerificationKey2020.js'; |
{ | ||
"name": "@digitalbazaar/ed25519-verification-key-2020", | ||
"version": "3.3.0", | ||
"version": "4.0.0", | ||
"description": "Javascript library for generating and working with Ed25519VerificationKey2020 key pairs, for use with crypto-ld.", | ||
@@ -11,42 +11,39 @@ "homepage": "https://github.com/digitalbazaar/ed25519-verification-key-2020", | ||
"license": "BSD-3-Clause", | ||
"main": "lib/index.js", | ||
"type": "module", | ||
"exports": "./lib/index.js", | ||
"browser": { | ||
"./lib/ed25519.js": "./lib/ed25519-browser.js" | ||
}, | ||
"files": [ | ||
"lib/*.js" | ||
"lib/**/*.js" | ||
], | ||
"module": "lib/main.js", | ||
"dependencies": { | ||
"@noble/ed25519": "^1.6.0", | ||
"base58-universal": "^1.0.0", | ||
"base64url-universal": "^1.1.0", | ||
"crypto-ld": "^5.1.0", | ||
"esm": "^3.2.25" | ||
"base58-universal": "^2.0.0", | ||
"base64url-universal": "^2.0.0", | ||
"crypto-ld": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@digitalbazaar/ed25519-verification-key-2018": "^3.0.0", | ||
"chai": "^4.2.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.9.0", | ||
"eslint-config-digitalbazaar": "^2.0.0", | ||
"eslint-plugin-jsdoc": "^30.7.8", | ||
"karma": "^5.2.3", | ||
"karma-babel-preprocessor": "^8.0.0", | ||
"@digitalbazaar/ed25519-verification-key-2018": "^4.0.0", | ||
"@stablelib/ed25519": "^1.0.2", | ||
"c8": "^7.11.3", | ||
"chai": "^4.3.6", | ||
"cross-env": "^7.0.3", | ||
"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", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^4.0.2", | ||
"mocha": "^8.0.1", | ||
"karma-sourcemap-loader": "^0.3.8", | ||
"karma-webpack": "^5.0.0", | ||
"mocha": "^10.0.0", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"multibase": "^3.1.0", | ||
"multicodec": "^2.0.1", | ||
"nyc": "^15.0.0", | ||
"webpack": "^4.29.6" | ||
"webpack": "^5.72.1" | ||
}, | ||
"browser": { | ||
"buffer": false, | ||
"crypto": false, | ||
"util": false, | ||
"./lib/ed25519.js": "./lib/ed25519-browser.js" | ||
}, | ||
"engines": { | ||
@@ -56,12 +53,17 @@ "node": ">=14" | ||
"scripts": { | ||
"test": "npm run lint && npm run test-node && npm run test-karma", | ||
"test-karma": "karma start karma.conf.js", | ||
"test-node": "cross-env NODE_ENV=test mocha -r esm --preserve-symlinks -t 10000 test/**/*.spec.js", | ||
"test": "npm run test-node", | ||
"test-karma": "karma start karma.conf.cjs", | ||
"test-node": "cross-env NODE_ENV=test mocha --preserve-symlinks -t 10000 test/**/*.spec.js", | ||
"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 ." | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"tests" | ||
"c8": { | ||
"reporter": [ | ||
"lcov", | ||
"text-summary", | ||
"text" | ||
] | ||
} | ||
} |
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
4
Yes
31799
21
7
605
+ Addedbase58-universal@2.0.0(transitive)
+ Addedbase64url-universal@2.0.0(transitive)
+ Addedcrypto-ld@7.0.0(transitive)
- Removedesm@^3.2.25
- Removedbase58-universal@1.0.0(transitive)
- Removedbase64url-universal@1.1.0(transitive)
- Removedcrypto-ld@5.1.0(transitive)
- Removedesm@3.2.25(transitive)
Updatedbase58-universal@^2.0.0
Updatedbase64url-universal@^2.0.0
Updatedcrypto-ld@^7.0.0