@uploadcare/upload-client 2.2.0 → 2.2.1-alpha.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.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +1 -8
package/README.md CHANGED
@@ -303,7 +303,7 @@ of `API secret key` and `secureExpire`.
303
303
 
304
304
  Stands for the Unix time to which the signature is valid, e.g., `1454902434`.
305
305
 
306
- #### `integration: string | CustomUserAgentFn`
306
+ #### `userAgent: string | CustomUserAgentFn`
307
307
 
308
308
  ```typescript
309
309
  type CustomUserAgentOptions = {
@@ -321,6 +321,11 @@ type CustomUserAgentFn = (options: CustomUserAgentOptions) => string
321
321
 
322
322
  Defaults to `UploadcareUploadClient/${version}/${publicKey} (JavaScript; ${integration})`
323
323
 
324
+ #### `integration: string`
325
+
326
+ Integration value passed to the `X-UC-User-Agent` header.
327
+ May be overrided with the custom user agent string or function.
328
+
324
329
  #### `checkForUrlDuplicates: boolean`
325
330
 
326
331
  Runs the duplicate check and provides the immediate-download behavior.
@@ -446,6 +451,6 @@ request at [hello@uploadcare.com][uc-email-hello].
446
451
  [badge-release-url]: https://github.com/uploadcare/uploadcare-upload-client/releases
447
452
  [npm-img]: http://img.shields.io/npm/v/@uploadcare/upload-client.svg
448
453
  [npm-url]: https://www.npmjs.org/package/@uploadcare/upload-client
449
- [badge-build]: https://img.shields.io/github/workflow/status/uploadcare/uploadcare-upload-client/Ship%20js%20trigger
450
- [build-url]: https://github.com/uploadcare/uploadcare-upload-client/actions?query=workflow%3A%22Ship+js+trigger%22
454
+ [badge-build]: https://github.com/uploadcare/uploadcare-upload-client/actions/workflows/checks.yml/badge.svg
455
+ [build-url]: https://github.com/uploadcare/uploadcare-upload-client/actions/workflows/checks.yml
451
456
  [uc-docs-upload-api]: https://uploadcare.com/docs/api_reference/upload/?utm_source=github&utm_campaign=uploadcare-upload-client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/upload-client",
3
- "version": "2.2.0",
3
+ "version": "2.2.1-alpha.0",
4
4
  "description": "Library for work with Uploadcare Upload API",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -14,13 +14,6 @@
14
14
  "./dist/index.cjs": "./dist/index.browser.cjs",
15
15
  "./dist/index.js": "./dist/index.browser.js"
16
16
  },
17
- "exports": {
18
- "./package.json": "./package.json",
19
- ".": {
20
- "require": "./dist/index.cjs",
21
- "import": "./dist/index.js"
22
- }
23
- },
24
17
  "react-native": {
25
18
  "./lib/request/request.node.js": "./lib/request/request.browser.js",
26
19
  "./lib/tools/getFormData.node.js": "./lib/tools/getFormData.react-native.js",