Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

fix: add buffer #191

Merged
merged 4 commits into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"dependencies": {
"abstract-leveldown": "~6.2.1",
"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'

const { Buffer } = require('buffer')
vweevers marked this conversation as resolved.
Show resolved Hide resolved
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'

const { Buffer } = require('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'

const { Buffer } = require('buffer')

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