@ship-cli/core 0.1.6 → 0.1.7
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/bin.js +18 -11
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -191232,7 +191232,7 @@ var command = ship.pipe(
|
|
|
191232
191232
|
prCommand
|
|
191233
191233
|
])
|
|
191234
191234
|
);
|
|
191235
|
-
var version = "0.1.
|
|
191235
|
+
var version = "0.1.7" ;
|
|
191236
191236
|
var run9 = run8(command, {
|
|
191237
191237
|
name: "ship",
|
|
191238
191238
|
version
|
|
@@ -194704,17 +194704,24 @@ var make72 = gen2(function* () {
|
|
|
194704
194704
|
new TaskError({ message: "Failed to create project" })
|
|
194705
194705
|
);
|
|
194706
194706
|
}
|
|
194707
|
-
const
|
|
194708
|
-
|
|
194709
|
-
|
|
194710
|
-
|
|
194711
|
-
|
|
194712
|
-
|
|
194713
|
-
|
|
194714
|
-
|
|
194715
|
-
|
|
194716
|
-
|
|
194707
|
+
const fetchProject = tryPromise2({
|
|
194708
|
+
try: async () => {
|
|
194709
|
+
const createdProject = await result.project;
|
|
194710
|
+
if (!createdProject) {
|
|
194711
|
+
throw new Error("Project not found after creation");
|
|
194712
|
+
}
|
|
194713
|
+
return createdProject;
|
|
194714
|
+
},
|
|
194715
|
+
catch: (e2) => new TaskError({
|
|
194716
|
+
message: `Project creation may have failed - could not verify project exists: ${e2}`
|
|
194717
|
+
})
|
|
194717
194718
|
});
|
|
194719
|
+
const fetchRetryPolicy = intersect6(
|
|
194720
|
+
exponential3(millis(100)),
|
|
194721
|
+
recurs2(3)
|
|
194722
|
+
);
|
|
194723
|
+
const project2 = yield* fetchProject.pipe(retry(fetchRetryPolicy));
|
|
194724
|
+
return mapProject(project2, teamId);
|
|
194718
194725
|
}),
|
|
194719
194726
|
"Creating project"
|
|
194720
194727
|
);
|