Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add buffer #191

Merged
merged 4 commits into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"./util/immediate.js": "./util/immediate-browser.js"
},
"dependencies": {
"abstract-leveldown": "~6.2.1",
"abstract-leveldown": "~6.2.3",
"buffer": "^5.5.0",
vweevers marked this conversation as resolved.
Show resolved Hide resolved
"immediate": "~3.2.3",
"inherits": "^2.0.3",
"ltgt": "^2.1.2"
Expand Down
1 change: 1 addition & 0 deletions util/deserialize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

var Buffer = require('buffer').Buffer
var ta2str = (function () {
if (global.TextDecoder) {
var decoder = new TextDecoder('utf-8')
Expand Down
1 change: 1 addition & 0 deletions util/serialize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

var Buffer = require('buffer').Buffer
// Returns either a Uint8Array or Buffer (doesn't matter to
// IndexedDB, because Buffer is a subclass of Uint8Array)
var str2bin = (function () {
Expand Down
2 changes: 2 additions & 0 deletions util/support.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

var Buffer = require('buffer').Buffer

exports.test = function (key) {
return function test (impl) {
try {
Expand Down