This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: convert input to buffers before passing to aws-sdk (#30)
* fix: convert input to buffers before passing to aws-sdk The aws-sdk uses the node http client internally which doesn't support Uint8Arrays as data, only [strings or buffers](https://nodejs.org/api/http.html#http_request_end_data_encoding_callback) so convert non-Buffers to Buffers before passing them on. Converts Buffers to Uint8Arrays via no-copy method to remain consistent with other interface-datastore implementations. Updates deps to use latest interface-datastore and aegir. BREAKING CHANGE: - Returns Uint8Arrays only where before it was node Buffers * chore: configure pin store * docs: update example Co-authored-by: Jacob Heun <[email protected]>
- Loading branch information
1 parent
685fa91
commit b844c63
Showing
7 changed files
with
69 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
webpack: { | ||
node: { | ||
// needed by core-util-is | ||
Buffer: true, | ||
|
||
// needed by nofilter | ||
stream: true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,20 +36,20 @@ | |
"homepage": "https://github.com/ipfs/js-datastore-s3#readme", | ||
"dependencies": { | ||
"buffer": "^5.6.0", | ||
"datastore-core": "^1.1.0", | ||
"interface-datastore": "^1.0.2" | ||
"datastore-core": "^2.0.0", | ||
"interface-datastore": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^24.0.0", | ||
"aegir": "^26.0.0", | ||
"aws-sdk": "^2.579.0", | ||
"chai": "^4.2.0", | ||
"dirty-chai": "^2.0.1", | ||
"ipfs-repo": "^3.0.2", | ||
"ipfs-repo": "^6.0.3", | ||
"stand-in": "^4.2.0" | ||
}, | ||
"peerDependencies": { | ||
"aws-sdk": "2.x", | ||
"ipfs-repo": "^3.0.2" | ||
"ipfs-repo": "^6.0.3" | ||
}, | ||
"contributors": [ | ||
"Jacob Heun <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters