contentful 11.7.1 → 11.7.2
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.
|
@@ -1525,6 +1525,9 @@ var contentful = (function (exports) {
|
|
|
1525
1525
|
if (utils$1$1.isDate(value)) {
|
|
1526
1526
|
return value.toISOString();
|
|
1527
1527
|
}
|
|
1528
|
+
if (utils$1$1.isBoolean(value)) {
|
|
1529
|
+
return value.toString();
|
|
1530
|
+
}
|
|
1528
1531
|
if (!useBlob && utils$1$1.isBlob(value)) {
|
|
1529
1532
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1530
1533
|
}
|
|
@@ -3413,7 +3416,7 @@ var contentful = (function (exports) {
|
|
|
3413
3416
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3414
3417
|
}));
|
|
3415
3418
|
_context8.next = 20;
|
|
3416
|
-
return fetch(request);
|
|
3419
|
+
return fetch(request, fetchOptions);
|
|
3417
3420
|
case 20:
|
|
3418
3421
|
response = _context8.sent;
|
|
3419
3422
|
isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
@@ -3587,7 +3590,7 @@ var contentful = (function (exports) {
|
|
|
3587
3590
|
return Promise.reject(reason);
|
|
3588
3591
|
});
|
|
3589
3592
|
}
|
|
3590
|
-
var VERSION = "1.
|
|
3593
|
+
var VERSION = "1.10.0";
|
|
3591
3594
|
var validators$1 = {};
|
|
3592
3595
|
|
|
3593
3596
|
// eslint-disable-next-line func-names
|
|
@@ -10181,7 +10184,7 @@ var contentful = (function (exports) {
|
|
|
10181
10184
|
http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
|
|
10182
10185
|
}
|
|
10183
10186
|
return {
|
|
10184
|
-
version: "11.7.
|
|
10187
|
+
version: "11.7.2",
|
|
10185
10188
|
getSpace: getSpace,
|
|
10186
10189
|
getContentType: getContentType,
|
|
10187
10190
|
getContentTypes: getContentTypes,
|
|
@@ -10308,7 +10311,7 @@ var contentful = (function (exports) {
|
|
|
10308
10311
|
environment: 'master'
|
|
10309
10312
|
};
|
|
10310
10313
|
var config = Object.assign(Object.assign({}, defaultConfig), params);
|
|
10311
|
-
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.7.
|
|
10314
|
+
var userAgentHeader = getUserAgentHeader("contentful.js/".concat("11.7.2"), config.application, config.integration);
|
|
10312
10315
|
config.headers = Object.assign(Object.assign({}, config.headers), {
|
|
10313
10316
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
10314
10317
|
'X-Contentful-User-Agent': userAgentHeader
|