Skip to content

Commit

Permalink
[Dev Deps] update aud, tape
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 5, 2024
1 parent dfbd3c5 commit d2a8b77
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-aught.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
2 changes: 1 addition & 1 deletion .github/workflows/node-tens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
needs: [tests]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@
},
"devDependencies": {
"@ljharb/eslint-config": "^21.1.0",
"aud": "^2.0.3",
"aud": "^2.0.4",
"eslint": "=8.8.0",
"hash-test-vectors": "^1.3.2",
"object.entries": "^1.1.7",
"pseudorandombytes": "^2.0.0",
"safe-buffer": "^5.2.1",
"tape": "^5.7.2",
"semver": "^6.3.1",
"tape": "^5.7.5",
"zuul": "^3.12.0"
},
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion test/create-hash.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var test = require('tape');
var satisfies = require('semver/functions/satisfies');
var satisfies = require('semver').satisfies;

var algorithms = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'];
var encodings = ['hex', 'base64']; // FIXME: test binary
Expand Down
2 changes: 1 addition & 1 deletion test/create-hmac.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var test = require('tape');
var satisfies = require('semver/functions/satisfies');
var satisfies = require('semver').satisfies;

var algorithms = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'];
var vectors = require('hash-test-vectors/hmac');
Expand Down
4 changes: 2 additions & 2 deletions test/node/dh.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var test = require('tape');
var cryptoB = require('../../');
var crypto = require('crypto');
var semverSatisfies = require('semver/functions/satisfies');
var satisfies = require('semver').satisfies;

test('diffie-hellman mod groups', function (t) {
[
Expand Down Expand Up @@ -44,7 +44,7 @@ test('diffie-hellman key lengths', function (t) {
512,
1024
].forEach(function (len) {
var modulusTooSmall = semverSatisfies(process.version, '>= 17') && len < 512;
var modulusTooSmall = satisfies(process.version, '>= 17') && len < 512;
t.test(String(len), { skip: modulusTooSmall && 'node 17+ requires a length >= 512' }, function (st) {
var dh2 = cryptoB.createDiffieHellman(len);
var prime2 = dh2.getPrime();
Expand Down
3 changes: 2 additions & 1 deletion test/random-bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
var test = require('tape');
var crypto = require('../');
var randomBytes = require('randombytes');
var entries = require('object.entries');

var randomBytesFunctions = {
randomBytes: randomBytes,
pseudoRandomBytes: crypto.pseudoRandomBytes
};

// Both randomBytes and pseudoRandomBytes should provide the same interface
Object.entries(randomBytesFunctions).forEach(function (entry) {
entries(randomBytesFunctions).forEach(function (entry) {
var randomBytesName = entry[0];
var randomBytesFn = entry[1];

Expand Down

0 comments on commit d2a8b77

Please sign in to comment.