@uniformdev/cli 19.210.1-alpha.7 → 19.210.4-alpha.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.
- package/dist/{chunk-3T7NQ5TX.mjs → chunk-KAJUBJZI.mjs} +2 -7
- package/dist/defaultConfig.mjs +1 -1
- package/dist/index.mjs +436 -573
- package/package.json +10 -9
|
@@ -60,7 +60,6 @@ function withDebugOptions(yargs) {
|
|
|
60
60
|
type: "boolean"
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
var fetchIndex = 0;
|
|
64
63
|
function nodeFetchProxy(proxy, verbose) {
|
|
65
64
|
if (proxy) {
|
|
66
65
|
console.log(`\u{1F991} Using proxy ${proxy}`);
|
|
@@ -94,12 +93,8 @@ ${e.message}`;
|
|
|
94
93
|
if (verbose) {
|
|
95
94
|
return async function fetchWithVerboseLogging(input, init) {
|
|
96
95
|
const method = init?.method ?? "GET";
|
|
97
|
-
|
|
98
|
-
const verboseText = `\u{1F41B} verbose request #${fetchIndex}: method ${method} url ${input.toString()}`;
|
|
99
|
-
console.log(verboseText + " (started)");
|
|
100
|
-
console.time(verboseText);
|
|
96
|
+
console.log(`\u{1F41B} verbose request: method ${method} url ${input.toString()}`);
|
|
101
97
|
const response = await wrappedFetch(input, init);
|
|
102
|
-
console.timeEnd(verboseText);
|
|
103
98
|
const clonedResponse = response.clone();
|
|
104
99
|
if (!clonedResponse.ok) {
|
|
105
100
|
let message = "";
|
|
@@ -167,7 +162,7 @@ function withFormatOptions(yargs) {
|
|
|
167
162
|
}
|
|
168
163
|
function withDiffOptions(yargs) {
|
|
169
164
|
return yargs.option("diff", {
|
|
170
|
-
describe: "Whether to show diffs in stdout. off = no diffs; update = on for updates; on = updates, creates, deletes. Can be set by UNIFORM_CLI_DIFF_MODE environment variable.
|
|
165
|
+
describe: "Whether to show diffs in stdout. off = no diffs; update = on for updates; on = updates, creates, deletes. Can be set by UNIFORM_CLI_DIFF_MODE environment variable.",
|
|
171
166
|
default: process.env.UNIFORM_CLI_DIFF_MODE ?? "off",
|
|
172
167
|
type: "string",
|
|
173
168
|
choices: ["off", "update", "on"],
|
package/dist/defaultConfig.mjs
CHANGED