@uniformdev/cli 19.199.0 → 19.199.1-alpha.10
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/{chunk-MIERGFOU.mjs → chunk-KAJUBJZI.mjs} +22 -14
- package/dist/defaultConfig.mjs +1 -1
- package/dist/index.mjs +2125 -1879
- package/package.json +11 -10
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
8
|
+
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.2_postcss@8.4.47_tsx@4.19.2_typescript@5.6.3/node_modules/tsup/assets/esm_shims.js
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
import path from "path";
|
|
11
11
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -60,26 +60,35 @@ function withDebugOptions(yargs) {
|
|
|
60
60
|
type: "boolean"
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function withVerboseOption(yargs) {
|
|
64
|
-
return yargs.option("verbose", {
|
|
65
|
-
describe: "Enable verbose mode, which outputs additional information",
|
|
66
|
-
default: false,
|
|
67
|
-
type: "boolean"
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
63
|
function nodeFetchProxy(proxy, verbose) {
|
|
71
64
|
if (proxy) {
|
|
72
65
|
console.log(`\u{1F991} Using proxy ${proxy}`);
|
|
73
66
|
}
|
|
74
67
|
const wrappedFetch = (input, init) => {
|
|
68
|
+
const handleFetchError = (e) => {
|
|
69
|
+
if (e instanceof Error) {
|
|
70
|
+
e.message = `Error fetching ${input.toString()}
|
|
71
|
+
${e.message}`;
|
|
72
|
+
if (e.cause) {
|
|
73
|
+
let cause = "Root cause: " + e.cause.toString();
|
|
74
|
+
if (e.cause instanceof AggregateError) {
|
|
75
|
+
cause = "Root causes: \n" + e.cause.errors.map((err) => err.toString()).join("\n");
|
|
76
|
+
}
|
|
77
|
+
e.message = e.message + " \n" + cause;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
throw e;
|
|
81
|
+
};
|
|
75
82
|
if (proxy) {
|
|
76
83
|
const wrappedInit = {
|
|
77
84
|
...init,
|
|
78
85
|
dispatcher: new ProxyAgent(proxy)
|
|
79
86
|
};
|
|
80
|
-
return undiciFetch(input, wrappedInit);
|
|
87
|
+
return undiciFetch(input, wrappedInit).catch(handleFetchError);
|
|
81
88
|
}
|
|
82
|
-
return undiciFetch(input, init)
|
|
89
|
+
return undiciFetch(input, init).catch(
|
|
90
|
+
handleFetchError
|
|
91
|
+
);
|
|
83
92
|
};
|
|
84
93
|
if (verbose) {
|
|
85
94
|
return async function fetchWithVerboseLogging(input, init) {
|
|
@@ -98,7 +107,7 @@ function nodeFetchProxy(proxy, verbose) {
|
|
|
98
107
|
} else {
|
|
99
108
|
message = responseText;
|
|
100
109
|
}
|
|
101
|
-
} catch
|
|
110
|
+
} catch {
|
|
102
111
|
message = responseText;
|
|
103
112
|
}
|
|
104
113
|
} catch {
|
|
@@ -290,10 +299,10 @@ var getDirectoryOrFilename = ({
|
|
|
290
299
|
defaultEntityFolderName = entityType
|
|
291
300
|
}) => {
|
|
292
301
|
if (config.entitiesConfig[entityType]?.[operation]?.directory) {
|
|
293
|
-
return config.entitiesConfig[entityType]
|
|
302
|
+
return config.entitiesConfig[entityType][operation].directory;
|
|
294
303
|
}
|
|
295
304
|
if (config.entitiesConfig[entityType]?.directory) {
|
|
296
|
-
return config.entitiesConfig[entityType]
|
|
305
|
+
return config.entitiesConfig[entityType].directory;
|
|
297
306
|
}
|
|
298
307
|
const isPackage = isPathAPackageFile(config.directory);
|
|
299
308
|
if (isPackage) {
|
|
@@ -307,7 +316,6 @@ export {
|
|
|
307
316
|
withConfiguration,
|
|
308
317
|
withApiOptions,
|
|
309
318
|
withDebugOptions,
|
|
310
|
-
withVerboseOption,
|
|
311
319
|
nodeFetchProxy,
|
|
312
320
|
withProjectOptions,
|
|
313
321
|
withTeamOptions,
|
package/dist/defaultConfig.mjs
CHANGED