@miso.ai/server-wordpress 0.6.6-beta.3 → 0.6.6-beta.5

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/package.json CHANGED
@@ -17,12 +17,12 @@
17
17
  "simonpai <simon.pai@askmiso.com>"
18
18
  ],
19
19
  "dependencies": {
20
- "@miso.ai/server-commons": "0.6.6-beta.3",
20
+ "@miso.ai/server-commons": "0.6.6-beta.5",
21
21
  "axios": "^1.6.2",
22
22
  "axios-retry": "^3.3.1",
23
23
  "dotenv": "^16.4.5",
24
24
  "saxes": "^6.0.0",
25
25
  "split2": "^4.2.0"
26
26
  },
27
- "version": "0.6.6-beta.3"
27
+ "version": "0.6.6-beta.5"
28
28
  }
@@ -39,7 +39,7 @@ export default class WordPressDataSource {
39
39
  return { data: [], terminate: true };
40
40
  }
41
41
  if (!Array.isArray(data)) {
42
- throw new Error(`Unexpected response from WordPress API for ${url}. Expected an array of objects: ${data}`);
42
+ throw new Error(`Unexpected response from WordPress API for ${url}. Expected an array of objects: ${typeof data === 'object' ? JSON.stringify(data) : data}`);
43
43
  }
44
44
  const { records } = request;
45
45
  if (records) {
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '0.6.6-beta.3';
1
+ export default '0.6.6-beta.5';