Skip to content

Commit 29d1def

Browse files
committed
[meta] raise engines.node to match dep graph
1 parent 3ce78af commit 29d1def

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/node-aught.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
tests:
77
uses: ljharb/actions/.github/workflows/node.yml@main
88
with:
9-
range: '0.10 - 10'
9+
range: '0.12 - 9'
1010
type: minors
1111
command: npm run tests-only
1212

@@ -15,4 +15,4 @@ jobs:
1515
needs: [tests]
1616
runs-on: ubuntu-latest
1717
steps:
18-
- run: 'echo tests completed'
18+
- run: true

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var asn1 = require('./asn1');
44
var aesid = require('./aesid.json');
55
var fixProc = require('./fixProc');
66
var ciphers = require('browserify-aes');
7-
var compat = require('pbkdf2');
7+
var pbkdf2Sync = require('pbkdf2').pbkdf2Sync;
88
var Buffer = require('safe-buffer').Buffer;
99

1010
function decrypt(data, password) {
@@ -14,7 +14,7 @@ function decrypt(data, password) {
1414
var iv = data.algorithm.decrypt.cipher.iv;
1515
var cipherText = data.subjectPrivateKey;
1616
var keylen = parseInt(algo.split('-')[1], 10) / 8;
17-
var key = compat.pbkdf2Sync(password, salt, iters, keylen, 'sha1');
17+
var key = pbkdf2Sync(password, salt, iters, keylen, 'sha1');
1818
var cipher = ciphers.createDecipheriv(algo, key, iv);
1919
var out = [];
2020
out.push(cipher.update(cipherText));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"tape": "^5.9.0"
4141
},
4242
"engines": {
43-
"node": ">= 0.10"
43+
"node": ">= 0.12"
4444
},
4545
"auto-changelog": {
4646
"output": "CHANGELOG.md",

0 commit comments

Comments
 (0)