Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
/ leveldown Public archive

Commit d39e232

Browse files
Bump standard from 14.3.4 to 15.0.0 (#745)
1 parent fe54e73 commit d39e232

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"prebuildify-cross": "^4.0.0",
5050
"readfiletree": "^1.0.0",
5151
"rimraf": "^3.0.0",
52-
"standard": "^14.0.0",
52+
"standard": "^15.0.0",
5353
"tape": "^4.10.0",
5454
"tempy": "^0.3.0"
5555
},

test/leak-tester-batch.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ function print () {
2525

2626
const run = CHAINED
2727
? function () {
28-
const batch = db.batch()
28+
const batch = db.batch()
2929

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

38-
batch.write(function (err) {
39-
assert(!err)
40-
process.nextTick(run)
41-
})
38+
batch.write(function (err) {
39+
assert(!err)
40+
process.nextTick(run)
41+
})
4242

43-
writeCount++
44-
print()
45-
}
43+
writeCount++
44+
print()
45+
}
4646
: function () {
4747
const batch = []
4848

0 commit comments

Comments
 (0)