-
Notifications
You must be signed in to change notification settings - Fork 311
Support additional types in putFile #693
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
Conversation
* develop: Bump to v19.2.5. Bump to v19.2.4 and include script-dist-file.md
… typedoc and typescript minor versions
…his is intended for use in third-party wallets or in DApps that register names." Also, this exposes AuthScope. Signed-off-by: Mary Anthony <[email protected]>
Signed-off-by: Mary Anthony <[email protected]>
* develop: Remove extra console log from tests. Update bitcoinjs-lib -- includes improvements to the native secp256k1 depedencies Throw error on user session overwrite. Update to typed `jsontokens` lib, fix all typing errors # Conflicts: # package-lock.json
* network-reveal: Fixing line length Exposing the Blockstack network. Adding the caveat to the getName* "This is intended for use in third-party wallets or in DApps that register names." Also, this exposes AuthScope. Expose the `BlockstackNetwork` class and the default instance, update typedoc and typescript minor versions Remove jsdoc types from network.ts # Conflicts: # mdincludes/script-dist-file.md
Codecov Report
@@ Coverage Diff @@
## develop #693 +/- ##
===========================================
+ Coverage 75.34% 75.49% +0.14%
===========================================
Files 57 57
Lines 2868 2897 +29
Branches 220 221 +1
===========================================
+ Hits 2161 2187 +26
- Misses 679 682 +3
Partials 28 28
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #693 +/- ##
===========================================
+ Coverage 68.98% 69.14% +0.15%
===========================================
Files 57 57
Lines 3321 3354 +33
Branches 596 601 +5
===========================================
+ Hits 2291 2319 +28
- Misses 745 748 +3
- Partials 285 287 +2
Continue to review full report at Codecov.
|
@zone117x needs to add some testing criteria for @timstackblock |
* develop: Bump version to v19.3.0-beta.1 PR template formatting changes Use case and acceptance criteria in pull request template. More pull request template changes. More pull request template changes. Pull request template changes. Add checklist to pull request template More pull request template updates. More pull request template updates. Update pull request template Add a pull request template.
@timstackblock @yknl Created a draft PR against the app-generator with example usages -- see the updated PR acceptance criteria for links |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* develop: Update worldlist filter with single regex Exclude unused bip39 wordlists from dist bundle (saves around 240KB uncompressed)
@zone117x The app-generator PR was helpful looks good so far I should be finish with this shortly |
This is complete and test passed |
Closes #689
Adds support for
File
,Blob
, andTypedArray
s to theputFile
function.When encryption is not enabled, the stream types are sent directly through to the
fetch
POST body and streamed from disk -> network when appropriate.However, this PR does not improve the encryption related issues. When encryption is enabled, the stream types are buffered into memory, then encrypted and POSTed.
Support for the
ReadableStream
type is blocked by web browsers having yet to implement whatwg/fetch#425.jsdom is used in the unit tests to polyfill the DOM File APIs
Acceptance criteria
putFile
andgetFile
.putFile
withFile
objects -- opened a PR with several example usages of this here Storage API usage example stacks-archive/blockstack-app-generator#65 as well as a live demo here https://zone117x.github.io/blockstack-file-api-demo/dist/index.html