Skip to content

Commit

Permalink
Replace safe-buffer with buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Apr 10, 2021
1 parent 5fd8368 commit d3dab23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions memdown.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
'use strict'

const inherits = require('inherits')
const AbstractLevelDOWN = require('abstract-leveldown').AbstractLevelDOWN
const AbstractIterator = require('abstract-leveldown').AbstractIterator
const { AbstractLevelDOWN, AbstractIterator } = require('abstract-leveldown')
const ltgt = require('ltgt')
const createRBT = require('functional-red-black-tree')
const Buffer = require('safe-buffer').Buffer
const { Buffer } = require('buffer')

// In Node, use global.setImmediate. In the browser, use a consistent
// microtask library to give consistent microtask experience to all browsers
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
},
"dependencies": {
"abstract-leveldown": "^6.3.0",
"buffer": "^6.0.3",
"functional-red-black-tree": "^1.0.1",
"immediate": "^3.2.3",
"inherits": "^2.0.1",
"ltgt": "^2.2.0",
"safe-buffer": "^5.2.0"
"ltgt": "^2.2.0"
},
"devDependencies": {
"airtap": "^4.0.3",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const suite = require('abstract-leveldown/test')
const concat = require('level-concat-iterator')
const memdown = require('.')
const ltgt = require('ltgt')
const Buffer = require('safe-buffer').Buffer
const { Buffer } = require('buffer')
const noop = function () { }

const testCommon = suite.common({
Expand Down

0 comments on commit d3dab23

Please sign in to comment.