Skip to content

Commit 232b61c

Browse files
committed
Bump standard devDependency from 16 to 17
1 parent 71fc343 commit 232b61c

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ updates:
55
schedule:
66
interval: monthly
77
ignore:
8+
- dependency-name: standard
89
- dependency-name: dependency-check
910
- dependency-name: node-gyp
1011
# ESM-only

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"prebuildify-cross": "^5.0.0",
5353
"readfiletree": "^1.0.0",
5454
"rimraf": "^3.0.0",
55-
"standard": "^16.0.4",
55+
"standard": "^17.0.0",
5656
"tape": "^5.5.0",
5757
"tempy": "^1.0.1",
5858
"ts-standard": "^11.0.0",

test/leak-tester-batch.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ function print () {
2727

2828
const run = CHAINED
2929
? function () {
30-
const batch = db.batch()
30+
const batch = db.batch()
3131

32-
for (let i = 0; i < 100; i++) {
33-
let key = 'long key to test memory usage ' + String(Math.floor(Math.random() * 10000000))
34-
if (BUFFERS) key = Buffer.from(key)
35-
let value = crypto.randomBytes(1024)
36-
if (!BUFFERS) value = value.toString('hex')
37-
batch.put(key, value)
38-
}
32+
for (let i = 0; i < 100; i++) {
33+
let key = 'long key to test memory usage ' + String(Math.floor(Math.random() * 10000000))
34+
if (BUFFERS) key = Buffer.from(key)
35+
let value = crypto.randomBytes(1024)
36+
if (!BUFFERS) value = value.toString('hex')
37+
batch.put(key, value)
38+
}
3939

40-
batch.write(function (err) {
41-
assert(!err)
42-
process.nextTick(run)
43-
})
40+
batch.write(function (err) {
41+
assert(!err)
42+
process.nextTick(run)
43+
})
4444

45-
writeCount++
46-
print()
47-
}
45+
writeCount++
46+
print()
47+
}
4848
: function () {
4949
const batch = []
5050

@@ -53,7 +53,7 @@ const run = CHAINED
5353
if (BUFFERS) key = Buffer.from(key)
5454
let value = crypto.randomBytes(1024)
5555
if (!BUFFERS) value = value.toString('hex')
56-
batch.push({ type: 'put', key: key, value: value })
56+
batch.push({ type: 'put', key, value })
5757
}
5858

5959
db.batch(batch, function (err) {

0 commit comments

Comments
 (0)