@uploadcare/upload-client 4.3.0 → 4.3.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.
package/dist/index.browser.js
CHANGED
|
@@ -31,7 +31,12 @@ const request = ({ method, url, data, headers = {}, signal, onProgress }) => new
|
|
|
31
31
|
const xhr = new XMLHttpRequest();
|
|
32
32
|
const requestMethod = method?.toUpperCase() || 'GET';
|
|
33
33
|
let aborted = false;
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Force synchronous flag to be off
|
|
36
|
+
* Some users get `InvalidAccessError` error when we set `responseType`
|
|
37
|
+
* See https://xhr.spec.whatwg.org/#synchronous-flag
|
|
38
|
+
*/
|
|
39
|
+
xhr.open(requestMethod, url, true);
|
|
35
40
|
if (headers) {
|
|
36
41
|
Object.entries(headers).forEach((entry) => {
|
|
37
42
|
const [key, value] = entry;
|
|
@@ -248,7 +253,7 @@ const defaultSettings = {
|
|
|
248
253
|
const defaultContentType = 'application/octet-stream';
|
|
249
254
|
const defaultFilename = 'original';
|
|
250
255
|
|
|
251
|
-
var version = '4.3.0';
|
|
256
|
+
var version = '4.3.1-alpha.0';
|
|
252
257
|
|
|
253
258
|
function isObject(o) {
|
|
254
259
|
return Object.prototype.toString.call(o) === '[object Object]';
|
package/dist/index.node.js
CHANGED
|
@@ -282,7 +282,7 @@ const defaultSettings = {
|
|
|
282
282
|
const defaultContentType = 'application/octet-stream';
|
|
283
283
|
const defaultFilename = 'original';
|
|
284
284
|
|
|
285
|
-
var version = '4.3.0';
|
|
285
|
+
var version = '4.3.1-alpha.0';
|
|
286
286
|
|
|
287
287
|
function isObject(o) {
|
|
288
288
|
return Object.prototype.toString.call(o) === '[object Object]';
|
|
@@ -31,7 +31,12 @@ const request = ({ method, url, data, headers = {}, signal, onProgress }) => new
|
|
|
31
31
|
const xhr = new XMLHttpRequest();
|
|
32
32
|
const requestMethod = method?.toUpperCase() || 'GET';
|
|
33
33
|
let aborted = false;
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Force synchronous flag to be off
|
|
36
|
+
* Some users get `InvalidAccessError` error when we set `responseType`
|
|
37
|
+
* See https://xhr.spec.whatwg.org/#synchronous-flag
|
|
38
|
+
*/
|
|
39
|
+
xhr.open(requestMethod, url, true);
|
|
35
40
|
if (headers) {
|
|
36
41
|
Object.entries(headers).forEach((entry) => {
|
|
37
42
|
const [key, value] = entry;
|
|
@@ -251,7 +256,7 @@ const defaultSettings = {
|
|
|
251
256
|
const defaultContentType = 'application/octet-stream';
|
|
252
257
|
const defaultFilename = 'original';
|
|
253
258
|
|
|
254
|
-
var version = '4.3.0';
|
|
259
|
+
var version = '4.3.1-alpha.0';
|
|
255
260
|
|
|
256
261
|
function isObject(o) {
|
|
257
262
|
return Object.prototype.toString.call(o) === '[object Object]';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadcare/upload-client",
|
|
3
|
-
"version": "4.3.0",
|
|
3
|
+
"version": "4.3.1-alpha.0",
|
|
4
4
|
"description": "Library for work with Uploadcare Upload API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.node.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"koa-body": "5.0.0",
|
|
66
66
|
"mock-socket": "9.0.3",
|
|
67
67
|
"start-server-and-test": "1.14.0",
|
|
68
|
-
"@uploadcare/api-client-utils": "^4.3.0",
|
|
68
|
+
"@uploadcare/api-client-utils": "^4.3.1-alpha.0",
|
|
69
69
|
"chalk": "^4.1.2"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|