storyblok 3.25.0 → 3.25.1

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/README.md CHANGED
@@ -14,7 +14,7 @@ We added the `region` option upon login. If you are using the CLI, please `logou
14
14
 
15
15
  ## Installation
16
16
 
17
- Make sure you have Node `>= 9.11.0` installed.
17
+ Make sure you have Node `>= 18.0.0` installed.
18
18
 
19
19
  ```sh
20
20
  $ npm i storyblok -g
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyblok",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "description": "A simple CLI to start Storyblok from your command line.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "xml-js": "^1.6.11"
48
48
  },
49
49
  "engines": {
50
- "node": ">=10.0.0"
50
+ "node": ">=18.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "concat-stream": "^2.0.0",
@@ -46,7 +46,7 @@ class SyncDatasources {
46
46
  const entriesFirstPage = await this.client.get(`spaces/${spaceId}/datasource_entries/?datasource_id=${datasourceId}${dimensionQuery}`)
47
47
  const entriesRequets = []
48
48
  for (let i = 2; i <= Math.ceil(entriesFirstPage.total / 25); i++) {
49
- entriesRequets.push(this.client.get(`spaces/${spaceId}/datasource_entries/?datasource_id=${datasourceId}`, { page: i }))
49
+ entriesRequets.push(await this.client.get(`spaces/${spaceId}/datasource_entries/?datasource_id=${datasourceId}&page=${i}`))
50
50
  }
51
51
  return entriesFirstPage.data.datasource_entries.concat(...(await Promise.all(entriesRequets)).map(r => r.data.datasource_entries))
52
52
  } catch (err) {