@uploadcare/upload-client 3.1.2-alpha.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.browser.js +1440 -1457
- package/dist/{index.js → index.node.js} +1467 -1474
- package/dist/index.react-native.js +1546 -0
- package/dist/types.d.ts +45 -37
- package/package.json +30 -37
- package/dist/index.browser.cjs +0 -1753
- package/dist/index.cjs +0 -1790
package/README.md
CHANGED
|
@@ -173,7 +173,7 @@ You can import only needed methods directly, without `UploadClient` wrapper:
|
|
|
173
173
|
import {
|
|
174
174
|
uploadFile,
|
|
175
175
|
uploadFromUrl,
|
|
176
|
-
|
|
176
|
+
uploadDirect,
|
|
177
177
|
uploadFromUploaded,
|
|
178
178
|
uploadMultipart,
|
|
179
179
|
uploadFileGroup
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
Also, you can use low-level wrappers to call the API endpoints directly:
|
|
186
186
|
|
|
187
187
|
```javascript
|
|
188
|
-
import { base
|
|
188
|
+
import { base } from '@uploadcare/upload-client'
|
|
189
189
|
|
|
190
190
|
const onProgress = ({ isComputable, value }) => console.log(isComputable, value)
|
|
191
191
|
const abortController = new AbortController()
|