@webiny/api-page-builder-import-export 5.22.0-beta.3 → 5.23.0-beta.0
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.
@@ -56,7 +56,10 @@ var _default = configuration => ({
|
|
56
56
|
|
57
57
|
if (!subTask || subTask.status !== _types.PageImportExportTaskStatus.PENDING) {
|
58
58
|
noPendingTask = true;
|
59
|
-
return
|
59
|
+
return {
|
60
|
+
data: "",
|
61
|
+
error: null
|
62
|
+
};
|
60
63
|
} else {
|
61
64
|
noPendingTask = false;
|
62
65
|
}
|
@@ -197,6 +200,11 @@ var _default = configuration => ({
|
|
197
200
|
});
|
198
201
|
}
|
199
202
|
}
|
203
|
+
|
204
|
+
return {
|
205
|
+
data: "",
|
206
|
+
error: null
|
207
|
+
};
|
200
208
|
}
|
201
209
|
|
202
210
|
});
|
@@ -51,7 +51,10 @@ var _default = configuration => ({
|
|
51
51
|
|
52
52
|
if (!subTask || subTask.status !== _types.PageImportExportTaskStatus.PENDING) {
|
53
53
|
noPendingTask = true;
|
54
|
-
return
|
54
|
+
return {
|
55
|
+
data: "",
|
56
|
+
error: null
|
57
|
+
};
|
55
58
|
} else {
|
56
59
|
noPendingTask = false;
|
57
60
|
}
|
@@ -176,6 +179,11 @@ var _default = configuration => ({
|
|
176
179
|
});
|
177
180
|
}
|
178
181
|
}
|
182
|
+
|
183
|
+
return {
|
184
|
+
data: "",
|
185
|
+
error: null
|
186
|
+
};
|
179
187
|
}
|
180
188
|
|
181
189
|
});
|
package/importPages/utils.js
CHANGED
@@ -453,7 +453,9 @@ function extractZipToDisk(exportFileZipPath) {
|
|
453
453
|
pageZipFilePaths.push(filePath);
|
454
454
|
zipFile.readEntry();
|
455
455
|
});
|
456
|
-
streamPipeline(readStream, (0, _fs.createWriteStream)(filePath))
|
456
|
+
streamPipeline(readStream, (0, _fs.createWriteStream)(filePath)).catch(error => {
|
457
|
+
reject(error);
|
458
|
+
});
|
457
459
|
});
|
458
460
|
}
|
459
461
|
});
|
@@ -530,6 +532,8 @@ function extractZipAndUploadToS3(pageDataZipFilePath, uniquePath) {
|
|
530
532
|
|
531
533
|
streamPipeline(readStream, streamPassThrough).then(() => {
|
532
534
|
fileUploadPromises.push(promise);
|
535
|
+
}).catch(error => {
|
536
|
+
reject(error);
|
533
537
|
});
|
534
538
|
});
|
535
539
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@webiny/api-page-builder-import-export",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.23.0-beta.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"keywords": [
|
6
6
|
"pbie:base"
|
@@ -16,15 +16,15 @@
|
|
16
16
|
"dependencies": {
|
17
17
|
"@babel/runtime": "7.16.7",
|
18
18
|
"@commodo/fields": "1.1.2-beta.20",
|
19
|
-
"@webiny/api-file-manager": "5.
|
20
|
-
"@webiny/api-page-builder": "5.
|
21
|
-
"@webiny/api-security": "5.
|
22
|
-
"@webiny/error": "5.
|
23
|
-
"@webiny/handler": "5.
|
24
|
-
"@webiny/handler-args": "5.
|
25
|
-
"@webiny/handler-aws": "5.
|
26
|
-
"@webiny/handler-graphql": "5.
|
27
|
-
"@webiny/validation": "5.
|
19
|
+
"@webiny/api-file-manager": "5.23.0-beta.0",
|
20
|
+
"@webiny/api-page-builder": "5.23.0-beta.0",
|
21
|
+
"@webiny/api-security": "5.23.0-beta.0",
|
22
|
+
"@webiny/error": "5.23.0-beta.0",
|
23
|
+
"@webiny/handler": "5.23.0-beta.0",
|
24
|
+
"@webiny/handler-args": "5.23.0-beta.0",
|
25
|
+
"@webiny/handler-aws": "5.23.0-beta.0",
|
26
|
+
"@webiny/handler-graphql": "5.23.0-beta.0",
|
27
|
+
"@webiny/validation": "5.23.0-beta.0",
|
28
28
|
"archiver": "5.3.0",
|
29
29
|
"commodo-fields-object": "1.0.6",
|
30
30
|
"dot-prop-immutable": "2.1.1",
|
@@ -46,15 +46,15 @@
|
|
46
46
|
"@elastic/elasticsearch": "7.12.0",
|
47
47
|
"@shelf/jest-elasticsearch": "^1.0.0",
|
48
48
|
"@types/puppeteer": "^5.4.2",
|
49
|
-
"@webiny/api-dynamodb-to-elasticsearch": "^5.
|
50
|
-
"@webiny/api-file-manager-ddb-es": "^5.
|
51
|
-
"@webiny/api-i18n-ddb": "^5.
|
52
|
-
"@webiny/api-security-so-ddb": "^5.
|
53
|
-
"@webiny/api-tenancy": "^5.
|
54
|
-
"@webiny/api-tenancy-so-ddb": "^5.
|
55
|
-
"@webiny/cli": "^5.
|
56
|
-
"@webiny/db": "^5.
|
57
|
-
"@webiny/project-utils": "^5.
|
49
|
+
"@webiny/api-dynamodb-to-elasticsearch": "^5.23.0-beta.0",
|
50
|
+
"@webiny/api-file-manager-ddb-es": "^5.23.0-beta.0",
|
51
|
+
"@webiny/api-i18n-ddb": "^5.23.0-beta.0",
|
52
|
+
"@webiny/api-security-so-ddb": "^5.23.0-beta.0",
|
53
|
+
"@webiny/api-tenancy": "^5.23.0-beta.0",
|
54
|
+
"@webiny/api-tenancy-so-ddb": "^5.23.0-beta.0",
|
55
|
+
"@webiny/cli": "^5.23.0-beta.0",
|
56
|
+
"@webiny/db": "^5.23.0-beta.0",
|
57
|
+
"@webiny/project-utils": "^5.23.0-beta.0",
|
58
58
|
"jest": "^26.6.3",
|
59
59
|
"jest-dynalite": "^3.2.0",
|
60
60
|
"rimraf": "^3.0.2",
|
@@ -76,5 +76,5 @@
|
|
76
76
|
]
|
77
77
|
}
|
78
78
|
},
|
79
|
-
"gitHead": "
|
79
|
+
"gitHead": "deb16c58954f7396c848f04806a2028aa53cc97b"
|
80
80
|
}
|