@dropthis/cli 0.13.0 → 0.15.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 +12 -7
- package/dist/cli.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/{drops-DP4F1PQu.d.cts → drops-C59ZhFES.d.cts} +18 -4
- package/node_modules/@dropthis/node/dist/{drops-DP4F1PQu.d.ts → drops-C59ZhFES.d.ts} +18 -4
- package/node_modules/@dropthis/node/dist/edge.cjs +4 -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 +4 -1
- package/node_modules/@dropthis/node/dist/edge.mjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.cjs +9 -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 +8 -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
|
@@ -880,13 +880,13 @@ async function runDoctor(_input, deps) {
|
|
|
880
880
|
const authSource = credential?.source ?? "missing";
|
|
881
881
|
const storageBackend = stored?.storage ?? "none";
|
|
882
882
|
const pairs = [
|
|
883
|
-
["Version", "0.
|
|
883
|
+
["Version", "0.15.0"],
|
|
884
884
|
["Auth", authSource],
|
|
885
885
|
["Storage", storageBackend]
|
|
886
886
|
];
|
|
887
887
|
writeKv(deps, pairs, {
|
|
888
888
|
ok: true,
|
|
889
|
-
version: "0.
|
|
889
|
+
version: "0.15.0",
|
|
890
890
|
auth: { source: authSource },
|
|
891
891
|
storage: { backend: storageBackend }
|
|
892
892
|
});
|
|
@@ -1335,6 +1335,7 @@ async function runDropsGet(target, _input, deps) {
|
|
|
1335
1335
|
pairs.push(["Revision", String(data.revision)]);
|
|
1336
1336
|
if (data.createdAt)
|
|
1337
1337
|
pairs.push(["Created", formatDate(String(data.createdAt))]);
|
|
1338
|
+
if (data.domain) pairs.push(["Domain", String(data.domain)]);
|
|
1338
1339
|
if (data.accessible !== void 0)
|
|
1339
1340
|
pairs.push(["Accessible", String(data.accessible)]);
|
|
1340
1341
|
if (data.persistent !== void 0)
|
|
@@ -2566,7 +2567,7 @@ function buildProgram(options = {}) {
|
|
|
2566
2567
|
` ${import_picocolors6.default.cyan("dropthis login")}`,
|
|
2567
2568
|
` ${import_picocolors6.default.cyan("dropthis publish ./dist")}`
|
|
2568
2569
|
].join("\n")
|
|
2569
|
-
).version("0.
|
|
2570
|
+
).version("0.15.0").configureHelp({
|
|
2570
2571
|
subcommandTerm(cmd) {
|
|
2571
2572
|
const args = cmd.registeredArguments.map((a) => {
|
|
2572
2573
|
const name = a.name();
|
|
@@ -2610,7 +2611,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2610
2611
|
`Attach JSON key-value pairs, e.g. '{"source":"ci"}'`
|
|
2611
2612
|
).option("--metadata-file <path>", "Read metadata JSON from a file").option("--path <name>", "Set filename when publishing from stdin").option(
|
|
2612
2613
|
"--domain <hostname>",
|
|
2613
|
-
"Serve this drop under a connected custom domain (must be live \u2014 see: dropthis domains list). Path-mode: drop lives at https://domain/{slug}/. Dedicated: drop is at the root (409 if occupied). Omit to use the account's default path domain."
|
|
2614
|
+
"Serve this drop under a connected custom domain (must be live \u2014 see: dropthis domains list), or pass the literal 'shared' to publish to the shared pool even when the account has a default domain. Path-mode: drop lives at https://domain/{slug}/. Dedicated: drop is at the root (409 if occupied). Omit to use the account's default path domain."
|
|
2614
2615
|
).option(
|
|
2615
2616
|
"--slug <vanity-slug>",
|
|
2616
2617
|
"Vanity slug for path-mode custom domains (1\u201363 lowercase letters/digits/hyphens). Auto-suffixed if taken. Only valid with --domain on a path-mode domain."
|
|
@@ -2627,6 +2628,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2627
2628
|
"dropthis publish ./dist --title 'Launch page'",
|
|
2628
2629
|
"cat report.md | dropthis publish - --content-type text/markdown --path report.md",
|
|
2629
2630
|
"dropthis publish ./dist --domain reports.example.com --slug launch",
|
|
2631
|
+
"dropthis publish ./report.html --domain shared # bypass the account default domain",
|
|
2630
2632
|
"URL=$(dropthis publish ./dist --url)"
|
|
2631
2633
|
])
|
|
2632
2634
|
).action(async (inputs, commandOptions) => {
|
|
@@ -2921,7 +2923,10 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2921
2923
|
);
|
|
2922
2924
|
domains.command("update <hostname>").description(
|
|
2923
2925
|
"Update a domain \u2014 repoint to a different drop (dedicated mode) or set/clear as account default (path mode). At least one option required."
|
|
2924
|
-
).option("--drop <dropId>", "Repoint to a different drop (dedicated mode)").option("--default", "Set as account default publish domain (path mode)").option(
|
|
2926
|
+
).option("--drop <dropId>", "Repoint to a different drop (dedicated mode)").option("--default", "Set as account default publish domain (path mode)").option(
|
|
2927
|
+
"--no-default",
|
|
2928
|
+
"Clear the account default publish domain (defaultless publishes revert to the shared pool)"
|
|
2929
|
+
).option("--json", "Force JSON output").action(
|
|
2925
2930
|
async (hostname, commandOptions) => {
|
|
2926
2931
|
const deps = await commandDeps(program, options, store, commandOptions);
|
|
2927
2932
|
const result = await runDomainsUpdate(
|
|
@@ -3107,7 +3112,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
3107
3112
|
);
|
|
3108
3113
|
const result = await runUpgrade(commandOptions, {
|
|
3109
3114
|
...deps,
|
|
3110
|
-
currentVersion: "0.
|
|
3115
|
+
currentVersion: "0.15.0"
|
|
3111
3116
|
});
|
|
3112
3117
|
process.exitCode = result.exitCode;
|
|
3113
3118
|
});
|
|
@@ -3350,7 +3355,7 @@ var showNotice = shouldShowNotice({
|
|
|
3350
3355
|
if (showNotice) {
|
|
3351
3356
|
const notice = noticeFromCache({
|
|
3352
3357
|
cache: updateCache,
|
|
3353
|
-
currentVersion: "0.
|
|
3358
|
+
currentVersion: "0.15.0"
|
|
3354
3359
|
});
|
|
3355
3360
|
if (notice) {
|
|
3356
3361
|
process.stderr.write(`
|