contentful-export 7.19.94 → 7.19.95
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.
@@ -86,12 +86,11 @@ function getFullSourceSpace({
|
|
86
86
|
}, {
|
87
87
|
title: 'Fetching content entries data',
|
88
88
|
task: (0, _contentfulBatchLibs.wrapTask)(ctx => {
|
89
|
-
const source = cdaClient || ctx.environment;
|
89
|
+
const source = (cdaClient === null || cdaClient === void 0 ? void 0 : cdaClient.withAllLocales) || ctx.environment;
|
90
90
|
if (cdaClient) {
|
91
91
|
// let's not fetch children when using Content Delivery API
|
92
92
|
queryEntries = queryEntries || {};
|
93
93
|
queryEntries.include = 0;
|
94
|
-
queryEntries.locale = '*';
|
95
94
|
}
|
96
95
|
return pagedGet({
|
97
96
|
source,
|
@@ -105,9 +104,8 @@ function getFullSourceSpace({
|
|
105
104
|
}, {
|
106
105
|
title: 'Fetching assets data',
|
107
106
|
task: (0, _contentfulBatchLibs.wrapTask)(ctx => {
|
108
|
-
const source = cdaClient || ctx.environment;
|
107
|
+
const source = (cdaClient === null || cdaClient === void 0 ? void 0 : cdaClient.withAllLocales) || ctx.environment;
|
109
108
|
queryAssets = queryAssets || {};
|
110
|
-
queryAssets.locale = '*';
|
111
109
|
return pagedGet({
|
112
110
|
source,
|
113
111
|
method: 'getAssets',
|
@@ -188,7 +186,7 @@ function pagedGet({
|
|
188
186
|
}
|
189
187
|
}
|
190
188
|
const fullQuery = Object.assign({}, {
|
191
|
-
skip
|
189
|
+
skip,
|
192
190
|
order: 'sys.createdAt,sys.id'
|
193
191
|
}, query, {
|
194
192
|
limit: queryLimit && queryLimit < pageLimit ? queryLimit : pageLimit
|
@@ -25,10 +25,9 @@ function initClient(opts, useCda = false) {
|
|
25
25
|
const cdaConfig = {
|
26
26
|
space: config.spaceId,
|
27
27
|
accessToken: config.deliveryToken,
|
28
|
-
environment: config.environmentId
|
29
|
-
resolveLinks: false
|
28
|
+
environment: config.environmentId
|
30
29
|
};
|
31
|
-
return (0, _contentful.createClient)(cdaConfig);
|
30
|
+
return (0, _contentful.createClient)(cdaConfig).withoutLinkResolution;
|
32
31
|
}
|
33
32
|
return (0, _contentfulManagement.createClient)(config);
|
34
33
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "contentful-export",
|
3
|
-
"version": "7.19.
|
3
|
+
"version": "7.19.95",
|
4
4
|
"description": "this tool allows you to export a space to a JSON dump",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "types.d.ts",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"bfj": "^8.0.0",
|
47
47
|
"bluebird": "^3.3.3",
|
48
48
|
"cli-table3": "^0.6.0",
|
49
|
-
"contentful": "^
|
49
|
+
"contentful": "^10.6.9",
|
50
50
|
"contentful-batch-libs": "^9.4.1",
|
51
51
|
"contentful-management": "^11.0.1",
|
52
52
|
"date-fns": "^2.28.0",
|