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