@webiny/api-page-builder-import-export 5.22.1 → 5.23.1-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.
@@ -81,6 +81,11 @@ var _default = () => ({
81
81
  }
82
82
  };
83
83
  }
84
+
85
+ return {
86
+ data: "",
87
+ error: null
88
+ };
84
89
  }
85
90
 
86
91
  });
@@ -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
  });
@@ -1,3 +1,3 @@
1
1
  import { Response, ErrorResponse } from "@webiny/handler-graphql";
2
- declare const _default: (fn: any) => Promise<ErrorResponse | Response<any>>;
2
+ declare const _default: (fn: any) => Promise<Response<any> | ErrorResponse>;
3
3
  export default _default;
@@ -102,6 +102,11 @@ var _default = configuration => ({
102
102
  }
103
103
  };
104
104
  }
105
+
106
+ return {
107
+ data: "",
108
+ error: null
109
+ };
105
110
  }
106
111
 
107
112
  });
@@ -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
  });
@@ -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.22.1",
3
+ "version": "5.23.1-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.22.1",
20
- "@webiny/api-page-builder": "5.22.1",
21
- "@webiny/api-security": "5.22.1",
22
- "@webiny/error": "5.22.1",
23
- "@webiny/handler": "5.22.1",
24
- "@webiny/handler-args": "5.22.1",
25
- "@webiny/handler-aws": "5.22.1",
26
- "@webiny/handler-graphql": "5.22.1",
27
- "@webiny/validation": "5.22.1",
19
+ "@webiny/api-file-manager": "5.23.1-beta.0",
20
+ "@webiny/api-page-builder": "5.23.1-beta.0",
21
+ "@webiny/api-security": "5.23.1-beta.0",
22
+ "@webiny/error": "5.23.1-beta.0",
23
+ "@webiny/handler": "5.23.1-beta.0",
24
+ "@webiny/handler-args": "5.23.1-beta.0",
25
+ "@webiny/handler-aws": "5.23.1-beta.0",
26
+ "@webiny/handler-graphql": "5.23.1-beta.0",
27
+ "@webiny/validation": "5.23.1-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.22.1",
50
- "@webiny/api-file-manager-ddb-es": "^5.22.1",
51
- "@webiny/api-i18n-ddb": "^5.22.1",
52
- "@webiny/api-security-so-ddb": "^5.22.1",
53
- "@webiny/api-tenancy": "^5.22.1",
54
- "@webiny/api-tenancy-so-ddb": "^5.22.1",
55
- "@webiny/cli": "^5.22.1",
56
- "@webiny/db": "^5.22.1",
57
- "@webiny/project-utils": "^5.22.1",
49
+ "@webiny/api-dynamodb-to-elasticsearch": "^5.23.1-beta.0",
50
+ "@webiny/api-file-manager-ddb-es": "^5.23.1-beta.0",
51
+ "@webiny/api-i18n-ddb": "^5.23.1-beta.0",
52
+ "@webiny/api-security-so-ddb": "^5.23.1-beta.0",
53
+ "@webiny/api-tenancy": "^5.23.1-beta.0",
54
+ "@webiny/api-tenancy-so-ddb": "^5.23.1-beta.0",
55
+ "@webiny/cli": "^5.23.1-beta.0",
56
+ "@webiny/db": "^5.23.1-beta.0",
57
+ "@webiny/project-utils": "^5.23.1-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": "a11862df42aaf38380b28fa70e33b0ac3d37abe8"
79
+ "gitHead": "05db67aebc2de3c33ba0622f730157ae14143b95"
80
80
  }