@fedify/cli 2.2.0-dev.967 → 2.2.0-dev.971

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/deno.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  //#region deno.json
3
- var version = "2.2.0-dev.967+d2a1ce2e";
3
+ var version = "2.2.0-dev.971+6e28e6e1";
4
4
  //#endregion
5
5
  export { version };
package/dist/lookup.js CHANGED
@@ -74,13 +74,14 @@ const lookupModeOption = withDefault(or(object("Recurse options", {
74
74
  context: configContext,
75
75
  key: (config) => config.lookup?.recurse
76
76
  }),
77
- recurseDepth: withDefault(bindConfig(option("--recurse-depth", integer({
77
+ recurseDepth: bindConfig(option("--recurse-depth", integer({
78
78
  min: 1,
79
79
  metavar: "DEPTH"
80
80
  }), { description: message$1`Maximum recursion depth for ${optionNames(["--recurse"])}.` }), {
81
81
  context: configContext,
82
- key: (config) => config.lookup?.recurseDepth
83
- }), 20),
82
+ key: (config) => config.lookup?.recurseDepth,
83
+ default: 20
84
+ }),
84
85
  suppressErrors: suppressErrorsOption
85
86
  }), object("Traverse options", {
86
87
  traverse: bindConfig(flag("-t", "--traverse", { description: message$1`Traverse the given collection(s) to fetch all items.` }), {
package/dist/options.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import { configContext } from "./config.js";
3
- import { choice, constant, flag, map, merge, message, object, option, or, string, withDefault } from "@optique/core";
3
+ import { choice, constant, flag, map, merge, message, object, option, optional, or, string, withDefault } from "@optique/core";
4
4
  import { getUserAgent } from "@fedify/vocab-runtime";
5
5
  import { bindConfig } from "@optique/config";
6
6
  //#region src/options.ts
@@ -17,12 +17,12 @@ const TUNNEL_SERVICES = [
17
17
  */
18
18
  function createTunnelServiceOption(optionNames = ["--tunnel-service"]) {
19
19
  const [firstOptionName, ...restOptionNames] = optionNames;
20
- return withDefault(bindConfig(option(firstOptionName, ...restOptionNames, choice(TUNNEL_SERVICES, { metavar: "SERVICE" }), { description: message`The tunneling service to use.
20
+ return optional(bindConfig(option(firstOptionName, ...restOptionNames, choice(TUNNEL_SERVICES, { metavar: "SERVICE" }), { description: message`The tunneling service to use.
21
21
  By default, any of the supported tunneling services will be used
22
22
  (randomly selected for each tunnel).` }), {
23
23
  context: configContext,
24
24
  key: (config) => config.tunnelService
25
- }), void 0);
25
+ }));
26
26
  }
27
27
  /**
28
28
  * Creates a tunnel option that binds to a specific config section's noTunnel field.
@@ -33,9 +33,12 @@ By default, any of the supported tunneling services will be used
33
33
  */
34
34
  function createTunnelOption(section) {
35
35
  return object({
36
- tunnel: bindConfig(withDefault(map(flag("-T", "--no-tunnel", { description: message`Do not tunnel the server to the public Internet.` }), () => false), true), {
36
+ tunnel: bindConfig(map(flag("-T", "--no-tunnel", { description: message`Do not tunnel the server to the public Internet.` }), () => false), {
37
37
  context: configContext,
38
- key: (config) => !(config[section]?.noTunnel ?? false),
38
+ key: (config) => {
39
+ const sectionConfig = config[section];
40
+ return sectionConfig?.noTunnel == null ? void 0 : !sectionConfig.noTunnel;
41
+ },
39
42
  default: true
40
43
  }),
41
44
  tunnelService: createTunnelServiceOption()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/cli",
3
- "version": "2.2.0-dev.967+d2a1ce2e",
3
+ "version": "2.2.0-dev.971+6e28e6e1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "README.md",
@@ -58,9 +58,10 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@fxts/core": "^1.20.0",
61
- "@optique/config": "^1.0.0",
62
- "@optique/core": "^1.0.0",
63
- "@optique/run": "^1.0.0",
61
+ "@optique/config": "^1.0.2",
62
+ "@optique/core": "^1.0.2",
63
+ "@optique/run": "^1.0.2",
64
+ "@standard-schema/spec": "^1.1.0",
64
65
  "@hongminhee/localtunnel": "^0.3.0",
65
66
  "@inquirer/prompts": "^7.8.4",
66
67
  "@jimp/core": "^1.6.0",
@@ -86,14 +87,14 @@
86
87
  "smol-toml": "^1.6.0",
87
88
  "srvx": "^0.8.7",
88
89
  "valibot": "^1.2.0",
89
- "@fedify/init": "2.2.0-dev.967+d2a1ce2e",
90
- "@fedify/vocab": "2.2.0-dev.967+d2a1ce2e",
91
- "@fedify/vocab-runtime": "2.2.0-dev.967+d2a1ce2e",
92
- "@fedify/sqlite": "2.2.0-dev.967+d2a1ce2e",
93
- "@fedify/vocab-tools": "2.2.0-dev.967+d2a1ce2e",
94
- "@fedify/webfinger": "2.2.0-dev.967+d2a1ce2e",
95
- "@fedify/relay": "2.2.0-dev.967+d2a1ce2e",
96
- "@fedify/fedify": "2.2.0-dev.967+d2a1ce2e"
90
+ "@fedify/init": "2.2.0-dev.971+6e28e6e1",
91
+ "@fedify/relay": "2.2.0-dev.971+6e28e6e1",
92
+ "@fedify/sqlite": "2.2.0-dev.971+6e28e6e1",
93
+ "@fedify/vocab": "2.2.0-dev.971+6e28e6e1",
94
+ "@fedify/vocab-runtime": "2.2.0-dev.971+6e28e6e1",
95
+ "@fedify/webfinger": "2.2.0-dev.971+6e28e6e1",
96
+ "@fedify/fedify": "2.2.0-dev.971+6e28e6e1",
97
+ "@fedify/vocab-tools": "2.2.0-dev.971+6e28e6e1"
97
98
  },
98
99
  "devDependencies": {
99
100
  "@types/bun": "^1.2.23",