@tryghost/content-api 1.11.26 → 1.11.27

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.
@@ -3,7 +3,7 @@
3
3
  var axios = require('axios');
4
4
 
5
5
  var name$1 = "@tryghost/content-api";
6
- var version = "1.11.26";
6
+ var version = "1.11.27";
7
7
  var repository = {
8
8
  type: "git",
9
9
  url: "git+https://github.com/TryGhost/SDK.git",
@@ -41,7 +41,7 @@ var devDependencies = {
41
41
  "@babel/preset-env": "7.27.2",
42
42
  "@rollup/plugin-json": "6.1.0",
43
43
  c8: "10.1.3",
44
- "core-js": "3.42.0",
44
+ "core-js": "3.43.0",
45
45
  "eslint-plugin-ghost": "3.4.3",
46
46
  mocha: "11.2.2",
47
47
  rollup: "2.79.2",
@@ -52,12 +52,12 @@ var devDependencies = {
52
52
  "rollup-plugin-replace": "2.2.0",
53
53
  "rollup-plugin-terser": "7.0.2",
54
54
  should: "13.2.3",
55
- sinon: "20.0.0"
55
+ sinon: "21.0.0"
56
56
  };
57
57
  var dependencies = {
58
58
  axios: "^1.0.0"
59
59
  };
60
- var gitHead = "8821bdbfa95a672795a2e241c582a668f7252601";
60
+ var gitHead = "b10773947244536b8829fec0540819990c901987";
61
61
  var packageInfo = {
62
62
  name: name$1,
63
63
  version: version,
package/es/content-api.js CHANGED
@@ -961,6 +961,10 @@ function toFormData(obj, formData, options) {
961
961
  return value.toISOString();
962
962
  }
963
963
 
964
+ if (utils$1.isBoolean(value)) {
965
+ return value.toString();
966
+ }
967
+
964
968
  if (!useBlob && utils$1.isBlob(value)) {
965
969
  throw new AxiosError('Blob is not supported. Use a Buffer instead.');
966
970
  }
@@ -2877,7 +2881,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
2877
2881
  credentials: isCredentialsSupported ? withCredentials : undefined
2878
2882
  });
2879
2883
 
2880
- let response = await fetch(request);
2884
+ let response = await fetch(request, fetchOptions);
2881
2885
 
2882
2886
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2883
2887
 
@@ -3083,7 +3087,7 @@ function dispatchRequest(config) {
3083
3087
  });
3084
3088
  }
3085
3089
 
3086
- const VERSION = "1.9.0";
3090
+ const VERSION = "1.10.0";
3087
3091
 
3088
3092
  const validators$1 = {};
3089
3093
 
@@ -3723,7 +3727,7 @@ axios.default = axios;
3723
3727
  var axios$1 = axios;
3724
3728
 
3725
3729
  var name$1 = "@tryghost/content-api";
3726
- var version = "1.11.26";
3730
+ var version = "1.11.27";
3727
3731
  var repository = {
3728
3732
  type: "git",
3729
3733
  url: "git+https://github.com/TryGhost/SDK.git",
@@ -3761,7 +3765,7 @@ var devDependencies = {
3761
3765
  "@babel/preset-env": "7.27.2",
3762
3766
  "@rollup/plugin-json": "6.1.0",
3763
3767
  c8: "10.1.3",
3764
- "core-js": "3.42.0",
3768
+ "core-js": "3.43.0",
3765
3769
  "eslint-plugin-ghost": "3.4.3",
3766
3770
  mocha: "11.2.2",
3767
3771
  rollup: "2.79.2",
@@ -3772,12 +3776,12 @@ var devDependencies = {
3772
3776
  "rollup-plugin-replace": "2.2.0",
3773
3777
  "rollup-plugin-terser": "7.0.2",
3774
3778
  should: "13.2.3",
3775
- sinon: "20.0.0"
3779
+ sinon: "21.0.0"
3776
3780
  };
3777
3781
  var dependencies = {
3778
3782
  axios: "^1.0.0"
3779
3783
  };
3780
- var gitHead = "8821bdbfa95a672795a2e241c582a668f7252601";
3784
+ var gitHead = "b10773947244536b8829fec0540819990c901987";
3781
3785
  var packageInfo = {
3782
3786
  name: name$1,
3783
3787
  version: version,