@wix/sdk
Advanced tools
Comparing version
@@ -67,2 +67,3 @@ "use strict"; | ||
if (!headers.Authorization) { | ||
// eslint-disable-next-line no-throw-literal | ||
throw { | ||
@@ -92,6 +93,7 @@ response: { | ||
}), | ||
headers: { | ||
origin: config.domain, | ||
...headers, | ||
'Content-Type': 'application/json' | ||
headers: { ...(config.domain && { | ||
origin: config.domain | ||
}), | ||
'Content-Type': 'application/json', | ||
...headers | ||
} | ||
@@ -98,0 +100,0 @@ }); |
@@ -65,2 +65,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
if (!headers.Authorization) { | ||
// eslint-disable-next-line no-throw-literal | ||
throw { | ||
@@ -90,7 +91,7 @@ response: { | ||
}, { | ||
headers: _extends({ | ||
headers: _extends({}, config.domain && { | ||
origin: config.domain | ||
}, headers, { | ||
}, { | ||
'Content-Type': 'application/json' | ||
}) | ||
}, headers) | ||
})); | ||
@@ -97,0 +98,0 @@ const data = await res.json(); |
{ | ||
"name": "@wix/sdk", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"license": "UNLICENSED", | ||
@@ -32,3 +32,3 @@ "author": { | ||
"@wix/image-kit": "^1.23.0", | ||
"@wix/sdk-types": "^1.1.9", | ||
"@wix/sdk-types": "^1.1.10", | ||
"querystring": "^0.2.1", | ||
@@ -69,3 +69,3 @@ "type-fest": "^2.19.0" | ||
}, | ||
"falconPackageHash": "41abd56e0f217373904d67db99b853eeccbc83859c1f70938770746f" | ||
"falconPackageHash": "edaf435802f28b7570ef53e96c73bc16986e2288d34a19315b57121e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
112427
0.37%444
0.68%Updated