Skip to content

Commit c7c8afb

Browse files
authored
chore: remove clone-buffer (#8957)
1 parent 51380f9 commit c7c8afb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"url": "https://github.com/pouchdb/pouchdb.git"
3939
},
4040
"dependencies": {
41-
"clone-buffer": "1.0.0",
4241
"double-ended-queue": "2.1.0-0",
4342
"fetch-cookie": "2.2.0",
4443
"fruitdown": "1.0.2",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
import cloneBuffer from 'clone-buffer'; // correctly uses Buffer.from when available
2-
export default cloneBuffer;
1+
export default (buffer) => Buffer.from(buffer);

0 commit comments

Comments
 (0)