@dropthis/cli 0.16.0 → 0.17.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/cli.cjs +22 -5
- package/dist/cli.cjs.map +1 -1
- package/node_modules/@dropthis/node/README.md +35 -1
- package/node_modules/@dropthis/node/dist/{drops-BtAGkA9A.d.cts → drops-BxDQRrvu.d.cts} +17 -0
- package/node_modules/@dropthis/node/dist/{drops-BtAGkA9A.d.ts → drops-BxDQRrvu.d.ts} +17 -0
- package/node_modules/@dropthis/node/dist/edge.cjs +7 -1
- package/node_modules/@dropthis/node/dist/edge.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.cts +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.ts +1 -1
- package/node_modules/@dropthis/node/dist/edge.mjs +7 -1
- package/node_modules/@dropthis/node/dist/edge.mjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.cjs +7 -1
- package/node_modules/@dropthis/node/dist/index.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.d.cts +2 -2
- package/node_modules/@dropthis/node/dist/index.d.ts +2 -2
- package/node_modules/@dropthis/node/dist/index.mjs +7 -1
- package/node_modules/@dropthis/node/dist/index.mjs.map +1 -1
- package/node_modules/@dropthis/node/package.json +1 -1
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -322,6 +322,11 @@ function writeResult(deps, link, verb, data) {
|
|
|
322
322
|
const details = formatDropDetails(data);
|
|
323
323
|
if (details) deps.stdout(`${details}
|
|
324
324
|
`);
|
|
325
|
+
const rawUrl = data.rawUrl;
|
|
326
|
+
if (typeof rawUrl === "string" && rawUrl.length > 0) {
|
|
327
|
+
deps.stdout(`${hint(`Raw: ${url(rawUrl)}`)}
|
|
328
|
+
`);
|
|
329
|
+
}
|
|
325
330
|
const warnings = data.warnings;
|
|
326
331
|
if (Array.isArray(warnings)) {
|
|
327
332
|
for (const w of warnings) {
|
|
@@ -904,13 +909,13 @@ async function runDoctor(_input, deps) {
|
|
|
904
909
|
const authSource = credential?.source ?? "missing";
|
|
905
910
|
const storageBackend = stored?.storage ?? "none";
|
|
906
911
|
const pairs = [
|
|
907
|
-
["Version", "0.
|
|
912
|
+
["Version", "0.17.0"],
|
|
908
913
|
["Auth", authSource],
|
|
909
914
|
["Storage", storageBackend]
|
|
910
915
|
];
|
|
911
916
|
writeKv(deps, pairs, {
|
|
912
917
|
ok: true,
|
|
913
|
-
version: "0.
|
|
918
|
+
version: "0.17.0",
|
|
914
919
|
auth: { source: authSource },
|
|
915
920
|
storage: { backend: storageBackend }
|
|
916
921
|
});
|
|
@@ -2591,7 +2596,7 @@ function buildProgram(options = {}) {
|
|
|
2591
2596
|
` ${import_picocolors6.default.cyan("dropthis login")}`,
|
|
2592
2597
|
` ${import_picocolors6.default.cyan("dropthis publish ./dist")}`
|
|
2593
2598
|
].join("\n")
|
|
2594
|
-
).version("0.
|
|
2599
|
+
).version("0.17.0").configureHelp({
|
|
2595
2600
|
subcommandTerm(cmd) {
|
|
2596
2601
|
const args = cmd.registeredArguments.map((a) => {
|
|
2597
2602
|
const name = a.name();
|
|
@@ -2655,6 +2660,18 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2655
2660
|
"dropthis publish ./report.html --domain shared # bypass the account default domain",
|
|
2656
2661
|
"URL=$(dropthis publish ./dist --url)"
|
|
2657
2662
|
])
|
|
2663
|
+
).addHelpText(
|
|
2664
|
+
"after",
|
|
2665
|
+
[
|
|
2666
|
+
`
|
|
2667
|
+
${import_picocolors6.default.bold("Canonical vs raw URLs:")}`,
|
|
2668
|
+
" The canonical URL (the one printed) is always a branded human view, so the",
|
|
2669
|
+
" badge is guaranteed \u2014 hand it to people. For a single non-HTML file (e.g. a",
|
|
2670
|
+
" .md or .json), publish also prints a 'Raw:' line: the raw bytes at their",
|
|
2671
|
+
" natural path, with no wrapper \u2014 hand this to other agents. HTML drops and",
|
|
2672
|
+
" multi-file collections have no raw URL (the page IS the artifact / per-file",
|
|
2673
|
+
" paths come from the manifest)."
|
|
2674
|
+
].join("\n")
|
|
2658
2675
|
).action(async (inputs, commandOptions) => {
|
|
2659
2676
|
const stdinIsTTY = options.stdinIsTTY ?? process.stdin.isTTY ?? false;
|
|
2660
2677
|
if (inputs.length === 0 && stdinIsTTY) {
|
|
@@ -3136,7 +3153,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
3136
3153
|
);
|
|
3137
3154
|
const result = await runUpgrade(commandOptions, {
|
|
3138
3155
|
...deps,
|
|
3139
|
-
currentVersion: "0.
|
|
3156
|
+
currentVersion: "0.17.0"
|
|
3140
3157
|
});
|
|
3141
3158
|
process.exitCode = result.exitCode;
|
|
3142
3159
|
});
|
|
@@ -3379,7 +3396,7 @@ var showNotice = shouldShowNotice({
|
|
|
3379
3396
|
if (showNotice) {
|
|
3380
3397
|
const notice = noticeFromCache({
|
|
3381
3398
|
cache: updateCache,
|
|
3382
|
-
currentVersion: "0.
|
|
3399
|
+
currentVersion: "0.17.0"
|
|
3383
3400
|
});
|
|
3384
3401
|
if (notice) {
|
|
3385
3402
|
process.stderr.write(`
|