contentful-import 9.4.65 → 9.4.67

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/dist/index.js CHANGED
@@ -185,11 +185,10 @@ async function getDestinationData({
185
185
  }
186
186
  if (!skipLocales) {
187
187
  const localeIds = sourceData.locales?.map((e) => e.sys.id);
188
- if (localeIds) {
189
- result.locales = batchedIdQuery({
188
+ if (localeIds && localeIds.length) {
189
+ result.locales = batchedPageQuery({
190
190
  environment,
191
191
  type: "locales",
192
- ids: localeIds,
193
192
  requestQueue
194
193
  });
195
194
  }
package/dist/index.mjs CHANGED
@@ -158,11 +158,10 @@ async function getDestinationData({
158
158
  }
159
159
  if (!skipLocales) {
160
160
  const localeIds = sourceData.locales?.map((e) => e.sys.id);
161
- if (localeIds) {
162
- result.locales = batchedIdQuery({
161
+ if (localeIds && localeIds.length) {
162
+ result.locales = batchedPageQuery({
163
163
  environment,
164
164
  type: "locales",
165
- ids: localeIds,
166
165
  requestQueue
167
166
  });
168
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-import",
3
- "version": "9.4.65",
3
+ "version": "9.4.67",
4
4
  "description": "this tool allows you to import JSON dump exported by contentful-export",
5
5
  "main": "dist/index.mjs",
6
6
  "typings": "dist/index.d.ts",
@@ -64,7 +64,7 @@
64
64
  "bluebird": "^3.7.2",
65
65
  "cli-table3": "^0.6.5",
66
66
  "contentful-batch-libs": "^9.6.0",
67
- "contentful-management": "^11.36.0",
67
+ "contentful-management": "^11.36.1",
68
68
  "date-fns": "^2.30.0",
69
69
  "eslint": "^8.57.1",
70
70
  "eslint-config-standard": "^17.1.0",
@@ -87,7 +87,7 @@
87
87
  "babel-preset-env": "^1.7.0",
88
88
  "cz-conventional-changelog": "^3.1.0",
89
89
  "eslint-plugin-import": "^2.31.0",
90
- "eslint-plugin-jest": "^28.8.3",
90
+ "eslint-plugin-jest": "^28.9.0",
91
91
  "eslint-plugin-node": "^11.1.0",
92
92
  "eslint-plugin-promise": "^6.1.1",
93
93
  "eslint-plugin-standard": "^5.0.0",