Skip to content

Commit d021b8b

Browse files
Merge pull request #5 from apivideo/fix-chunk-size
Fix progress listener, fix chunks size values
2 parents b8731f4 + ba6936f commit d021b8b

File tree

8 files changed

+7090
-74
lines changed

8 files changed

+7090
-74
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node: ['14', '15']
8+
node: ['14', '16']
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: Setup node ${{ matrix.node }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [0.0.5] - 2021-08-12
5+
- Fix chunk size (default 50MB, min 5MB, max 128MB)
6+
- Fix upload progress listener

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ Using delegated upload tokens for authentication is best options when uploading
107107
### Common options
108108

109109

110-
| Option name | Mandatory | Type | Description |
111-
| ----------: | --------- | ------ | ----------------------------------------------------- |
112-
| file | **yes** | File | the file you want to upload |
113-
| chunkSize | no | number | number of bytes of each upload chunk (default: 1MB) |
114-
| apiHost | no | string | api.video host (default: ws.api.video) |
115-
| retries | no | number | number of retries when an API call fails (default: 5) |
110+
| Option name | Mandatory | Type | Description |
111+
| ----------: | --------- | ------ | -------------------------------------------------------------------------- |
112+
| file | **yes** | File | the file you want to upload |
113+
| chunkSize | no | number | number of bytes of each upload chunk (default: 50MB, min: 5MB, max: 128MB) |
114+
| apiHost | no | string | api.video host (default: ws.api.video) |
115+
| retries | no | number | number of retries when an API call fails (default: 5) |
116116

117117

118118
## Example

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)