@fabricorg/cli 0.3.2 → 0.3.3
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/fabric.js +13 -7
- package/dist/fabric.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/fabric.js
CHANGED
|
@@ -57,7 +57,7 @@ import { Command as Command20 } from "commander";
|
|
|
57
57
|
// package.json
|
|
58
58
|
var package_default = {
|
|
59
59
|
name: "@fabricorg/cli",
|
|
60
|
-
version: "0.3.
|
|
60
|
+
version: "0.3.3",
|
|
61
61
|
description: "CLI for the Fabric AI platform",
|
|
62
62
|
keywords: [
|
|
63
63
|
"fabric",
|
|
@@ -2885,7 +2885,7 @@ function destinationOf(opts) {
|
|
|
2885
2885
|
var _a2;
|
|
2886
2886
|
return path4.resolve((_a2 = opts.dest) != null ? _a2 : process.cwd());
|
|
2887
2887
|
}
|
|
2888
|
-
function instructionsClient(opts, timeoutMs) {
|
|
2888
|
+
function instructionsClient(opts, timeoutMs, { neverRetry = false } = {}) {
|
|
2889
2889
|
if (!getApiKey()) {
|
|
2890
2890
|
throw new CliFailure(
|
|
2891
2891
|
"Not authenticated. Run: fabric auth login --key <api-key>",
|
|
@@ -2900,9 +2900,16 @@ function instructionsClient(opts, timeoutMs) {
|
|
|
2900
2900
|
// one version stale.
|
|
2901
2901
|
timeoutMs: Math.min(timeoutMs, HOOK_DEADLINE_MS),
|
|
2902
2902
|
retry: { maxRetries: 0 }
|
|
2903
|
-
} : { timeoutMs }
|
|
2903
|
+
} : neverRetry ? { timeoutMs, retry: { maxRetries: 0 } } : { timeoutMs }
|
|
2904
2904
|
).withoutContext();
|
|
2905
2905
|
}
|
|
2906
|
+
function downloadUrlClient(opts) {
|
|
2907
|
+
return instructionsClient(
|
|
2908
|
+
opts,
|
|
2909
|
+
opts.hook ? HOOK_DEADLINE_MS : BUNDLE_TIMEOUT_MS,
|
|
2910
|
+
{ neverRetry: true }
|
|
2911
|
+
);
|
|
2912
|
+
}
|
|
2906
2913
|
function orgSlugFor(opts) {
|
|
2907
2914
|
return opts.org;
|
|
2908
2915
|
}
|
|
@@ -3113,10 +3120,9 @@ function syncOnce(opts) {
|
|
|
3113
3120
|
const org = orgSlugFor(opts);
|
|
3114
3121
|
let download;
|
|
3115
3122
|
try {
|
|
3116
|
-
download = yield
|
|
3117
|
-
opts
|
|
3118
|
-
|
|
3119
|
-
);
|
|
3123
|
+
download = yield downloadUrlClient(
|
|
3124
|
+
opts
|
|
3125
|
+
).instructions.createDownloadUrl(opts.project, { org });
|
|
3120
3126
|
} catch (error) {
|
|
3121
3127
|
throw asCliFailure(error);
|
|
3122
3128
|
}
|