obsidian-quickswitcher-cli 0.1.0 → 0.2.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/README.md +10 -6
- package/dist/bridge.d.ts +5 -1
- package/dist/bridge.js +57 -35
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +12 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# obsidian-quickswitcher-cli (`qsp`)
|
|
2
2
|
|
|
3
|
-
Run [Quick Switcher++](https://github.com/darlal/obsidian-switcher-plus) queries against a running [Obsidian](https://obsidian.md) instance from the terminal or from Node, and open the results. It uses Quick Switcher++'s own query syntax and ranking: `#` headings, `@` symbols, `>` commands, and so on.
|
|
3
|
+
Run [Quick Switcher++](https://github.com/darlal/obsidian-switcher-plus) queries against a running [Obsidian](https://obsidian.md) instance from the terminal or from Node, and open the results. It uses Quick Switcher++'s own query syntax and ranking: `#` headings, `@` symbols, `>` commands, and so on. Without Quick Switcher++, `--switcher core` uses Obsidian's built-in Quick Switcher instead. Though I highly recommend installing Quick Switcher++, instead of using that option. [darlal](https://github.com/darlal) did amazing work with this plugin, and much of the value of this project is lost when using the built in switcher.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
$ qsp --vault notes "#roadmap"
|
|
@@ -21,7 +21,7 @@ await open("#roadmap", 1, { vault: "notes" });
|
|
|
21
21
|
## Requirements
|
|
22
22
|
|
|
23
23
|
- Obsidian ≥1.12, running, with its command line interface enabled in the settings.
|
|
24
|
-
- The Quick Switcher++ plugin installed **and enabled** in the vault
|
|
24
|
+
- The Quick Switcher++ plugin installed **and enabled** in the vault, unless you use `--switcher core`.
|
|
25
25
|
- Node ≥20.
|
|
26
26
|
|
|
27
27
|
Tested on Linux with Obsidian 1.15.1 and Quick Switcher++ 6.2.0. macOS and Windows are supported in the code but untested.
|
|
@@ -45,20 +45,24 @@ qsp open [options] <query> [n] open result n (default 0)
|
|
|
45
45
|
--vault <name> vault name (required unless $QSP_VAULT is set)
|
|
46
46
|
--json JSON output
|
|
47
47
|
--limit <n> max results (default 50)
|
|
48
|
+
--switcher <s> plus (Quick Switcher++) | core (Obsidian's Quick Switcher)
|
|
49
|
+
(default $QSP_SWITCHER, else plus)
|
|
48
50
|
--transport <t> auto | socket | cli (default auto)
|
|
49
51
|
-h, --help show this help
|
|
50
52
|
```
|
|
51
53
|
|
|
52
54
|
A vault is always required. Without one, Obsidian would pick a vault from the working directory, or open one.
|
|
53
55
|
|
|
56
|
+
`--switcher core` (or `QSP_SWITCHER=core`) queries Obsidian's built-in Quick Switcher, which works whether or not its core plugin is enabled. Its results have the same shape and layout. They're just what that switcher finds: files, aliases, unresolved links and bookmarks, with no headings, symbols or commands. qsp never falls back to it on its own: with the default `plus`, a missing Quick Switcher++ is an error (exit 3).
|
|
57
|
+
|
|
54
58
|
Results go to stdout. Logs and errors go to stderr, so `--json` output is always parseable. Several words form one query (`qsp foo bar` = `qsp "foo bar"`), and `qsp -- open` queries the text "open". `open` doesn't focus the Obsidian window.
|
|
55
59
|
|
|
56
60
|
| exit code | meaning |
|
|
57
61
|
|---|---|
|
|
58
62
|
| 0 | success, including zero results |
|
|
59
|
-
| 1 | usage error,
|
|
63
|
+
| 1 | usage error, no vault configured, or invalid `$QSP_SWITCHER` |
|
|
60
64
|
| 2 | Obsidian unreachable, or Obsidian reported an error (e.g. unknown vault) |
|
|
61
|
-
| 3 | Quick Switcher++ not installed or not enabled |
|
|
65
|
+
| 3 | Quick Switcher++ not installed or not enabled (`plus` switcher) |
|
|
62
66
|
| 4 | `open` index out of range |
|
|
63
67
|
|
|
64
68
|
## Library
|
|
@@ -70,9 +74,9 @@ open(q: string, n?: number, opts?: Options): Promise<Result> // runs the query
|
|
|
70
74
|
type Result = { index: number; type: string; title: string; note: string; path: string; level: number | null };
|
|
71
75
|
```
|
|
72
76
|
|
|
73
|
-
Options: `vault` (default `$QSP_VAULT`), `limit`, `transport` (`"auto" | "socket" | "cli"`), `log` (receives fallback messages, default `console.error`), `timeoutMs` (default 10000), `socketPath` (default `$QSP_SOCKET`, then Obsidian's location), and `evaluate` (replaces the transport, e.g. in tests).
|
|
77
|
+
Options: `vault` (default `$QSP_VAULT`), `switcher` (`"plus" | "core"`, default `$QSP_SWITCHER`, then `"plus"`), `limit`, `transport` (`"auto" | "socket" | "cli"`), `log` (receives fallback messages, default `console.error`), `timeoutMs` (default 10000), `socketPath` (default `$QSP_SOCKET`, then Obsidian's location), and `evaluate` (replaces the transport, e.g. in tests).
|
|
74
78
|
|
|
75
|
-
Errors: `RangeError` (no vault, invalid arguments), `ObsidianUnavailableError`, `ObsidianError`, `QspNotInstalledError` (`.installed` is true when the plugin is only disabled), and `IndexOutOfRangeError`.
|
|
79
|
+
Errors: `RangeError` (no vault, invalid arguments or switcher), `ObsidianUnavailableError`, `ObsidianError`, `QspNotInstalledError` (`.installed` is true when the plugin is only disabled), and `IndexOutOfRangeError`.
|
|
76
80
|
|
|
77
81
|
## Development
|
|
78
82
|
|
package/dist/bridge.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const QSP_PLUGIN_ID = "darlal-switcher-plus";
|
|
2
|
+
/** "plus": Quick Switcher++ (default). "core": Obsidian's built-in Quick Switcher. */
|
|
3
|
+
export type SwitcherKind = "plus" | "core";
|
|
2
4
|
export type BridgeRequest = {
|
|
5
|
+
switcher?: SwitcherKind;
|
|
6
|
+
} & ({
|
|
3
7
|
action: "query";
|
|
4
8
|
query: string;
|
|
5
9
|
limit: number;
|
|
@@ -7,6 +11,6 @@ export type BridgeRequest = {
|
|
|
7
11
|
action: "open";
|
|
8
12
|
query: string;
|
|
9
13
|
index: number;
|
|
10
|
-
};
|
|
14
|
+
});
|
|
11
15
|
/** Build the code for one request. Values are inserted only as JSON literals, in a single pass. */
|
|
12
16
|
export declare function bridgeCode(req: BridgeRequest): string;
|
package/dist/bridge.js
CHANGED
|
@@ -11,50 +11,62 @@ const BRIDGE = String.raw `
|
|
|
11
11
|
const INDEX = __INDEX__;
|
|
12
12
|
const LIMIT = __LIMIT__;
|
|
13
13
|
const PLUGIN_ID = __PLUGIN_ID__;
|
|
14
|
+
const SWITCHER = __SWITCHER__;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
if (!
|
|
16
|
+
const state = (window.__obsidianQuickswitcherCli ??= { plugin: null, modal: null, creating: null, core: null });
|
|
17
|
+
const CoreModal = app.internalPlugins.getPluginById("switcher")?.instance?.QuickSwitcherModal;
|
|
18
|
+
if (!CoreModal) throw new Error("core Quick Switcher modal not found");
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
if (
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
state.
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
let modal;
|
|
21
|
+
if (SWITCHER === "core") {
|
|
22
|
+
// The core switcher's modal works hidden without opening it, even with the core plugin disabled.
|
|
23
|
+
// Recreated when the class changes (Obsidian reloaded the plugin).
|
|
24
|
+
if (state.core?.constructor !== CoreModal) {
|
|
25
|
+
state.core = new CoreModal(app, app.internalPlugins.getPluginById("switcher").instance.options ?? {});
|
|
26
|
+
}
|
|
27
|
+
modal = state.core;
|
|
28
|
+
} else {
|
|
29
|
+
// Hard requirement: Quick Switcher++ installed and enabled (plugins[] only holds enabled plugins).
|
|
30
|
+
const plugin = app.plugins.plugins[PLUGIN_ID];
|
|
31
|
+
if (!plugin) return JSON.stringify({ error: "QSP_NOT_INSTALLED", installed: !!app.plugins.manifests?.[PLUGIN_ID] });
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
if (state.plugin !== plugin) {
|
|
34
|
+
// First call, or the plugin was reloaded: the cached modal belongs to an old instance.
|
|
35
|
+
state.plugin = plugin;
|
|
36
|
+
state.modal = null;
|
|
37
|
+
state.creating = null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Capture a Quick Switcher++ modal without showing it, once; reuse it across calls.
|
|
41
|
+
if (!state.modal) {
|
|
42
|
+
state.creating ??= (async () => {
|
|
43
|
+
let captured = null;
|
|
44
|
+
const origOpen = CoreModal.prototype.open;
|
|
45
|
+
CoreModal.prototype.open = function () { captured = this; };
|
|
46
|
+
try {
|
|
47
|
+
await app.commands.executeCommandById(PLUGIN_ID + ":switcher-plus:open");
|
|
48
|
+
} finally {
|
|
49
|
+
CoreModal.prototype.open = origOpen;
|
|
50
|
+
}
|
|
51
|
+
if (!captured) throw new Error("could not create a Quick Switcher++ modal");
|
|
52
|
+
captured.exMode.onOpen();
|
|
53
|
+
return captured;
|
|
54
|
+
})();
|
|
35
55
|
try {
|
|
36
|
-
await
|
|
56
|
+
state.modal = await state.creating;
|
|
37
57
|
} finally {
|
|
38
|
-
|
|
58
|
+
state.creating = null;
|
|
39
59
|
}
|
|
40
|
-
if (!captured) throw new Error("could not create a Quick Switcher++ modal");
|
|
41
|
-
captured.exMode.onOpen();
|
|
42
|
-
return captured;
|
|
43
|
-
})();
|
|
44
|
-
try {
|
|
45
|
-
state.modal = await state.creating;
|
|
46
|
-
} finally {
|
|
47
|
-
state.creating = null;
|
|
48
60
|
}
|
|
61
|
+
modal = state.modal;
|
|
49
62
|
}
|
|
50
63
|
|
|
51
|
-
const modal = state.modal;
|
|
52
64
|
modal.inputEl.value = QUERY;
|
|
53
65
|
const before = modal.chooser.values;
|
|
54
66
|
try {
|
|
55
67
|
modal.updateSuggestions();
|
|
56
|
-
//
|
|
57
|
-
modal.exMode
|
|
68
|
+
// QS++ headings mode debounces its suggestions (250 ms); flush it.
|
|
69
|
+
modal.exMode?.debouncedGetSuggestions?.run?.();
|
|
58
70
|
} catch (e) {
|
|
59
71
|
// QS++ can throw while rendering a suggestion into the (hidden) list, after the values were set, e.g.
|
|
60
72
|
// for a recent file outside the vault whose parent is null. Only rethrow if no new values were set,
|
|
@@ -68,12 +80,21 @@ const BRIDGE = String.raw `
|
|
|
68
80
|
const describe = (v, i) => {
|
|
69
81
|
const el = document.createElement("div");
|
|
70
82
|
try { modal.renderSuggestion(v, el); } catch (e) {}
|
|
83
|
+
const path = v.file?.path ?? "";
|
|
84
|
+
let title = text(el, ".suggestion-title") || el.textContent.trim() || v.file?.basename || "";
|
|
85
|
+
let note = text(el, ".suggestion-note");
|
|
86
|
+
// The core switcher titles a nested file "Folder/name"; QS++ shows "name" with note "Folder/". Match QS++.
|
|
87
|
+
const slash = path.lastIndexOf("/");
|
|
88
|
+
if (SWITCHER === "core" && !note && slash > 0 && title === path.replace(/\.[^./]+$/, "")) {
|
|
89
|
+
note = path.slice(0, slash + 1);
|
|
90
|
+
title = title.slice(slash + 1);
|
|
91
|
+
}
|
|
71
92
|
return {
|
|
72
93
|
index: i,
|
|
73
94
|
type: String(v.type ?? ""),
|
|
74
|
-
title
|
|
75
|
-
note
|
|
76
|
-
path
|
|
95
|
+
title,
|
|
96
|
+
note,
|
|
97
|
+
path,
|
|
77
98
|
level: typeof v.item?.level === "number" ? v.item.level : null,
|
|
78
99
|
};
|
|
79
100
|
};
|
|
@@ -97,8 +118,9 @@ export function bridgeCode(req) {
|
|
|
97
118
|
INDEX: req.action === "open" ? req.index : 0,
|
|
98
119
|
LIMIT: req.action === "query" ? req.limit : 0,
|
|
99
120
|
PLUGIN_ID: QSP_PLUGIN_ID,
|
|
121
|
+
SWITCHER: req.switcher ?? "plus",
|
|
100
122
|
};
|
|
101
123
|
// One regex pass with a function replacer: "$&" in the query isn't expanded, and a query containing
|
|
102
124
|
// "__INDEX__" can't be mistaken for a later placeholder.
|
|
103
|
-
return BRIDGE.replace(/__(ACTION|QUERY|INDEX|LIMIT|PLUGIN_ID)__/g, (_m, key) => JSON.stringify(values[key]));
|
|
125
|
+
return BRIDGE.replace(/__(ACTION|QUERY|INDEX|LIMIT|PLUGIN_ID|SWITCHER)__/g, (_m, key) => JSON.stringify(values[key]));
|
|
104
126
|
}
|
package/dist/cli.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const EXIT: {
|
|
|
6
6
|
readonly QSP_NOT_INSTALLED: 3;
|
|
7
7
|
readonly INDEX_OUT_OF_RANGE: 4;
|
|
8
8
|
};
|
|
9
|
-
export declare const USAGE = "usage:\n qsp [options] <query> list results\n qsp open [options] <query> [n] open result n (default 0)\n\noptions:\n --vault <name> vault name (required unless $QSP_VAULT is set)\n --json JSON output\n --limit <n> max results (default 50)\n --transport <t> auto | socket | cli (default auto)\n -h, --help show this help\n\nexit codes: 0 ok (also for zero results), 1 usage error, 2 Obsidian unreachable or\nreported an error, 3 Quick Switcher++ not installed or disabled, 4 index out of range";
|
|
9
|
+
export declare const USAGE = "usage:\n qsp [options] <query> list results\n qsp open [options] <query> [n] open result n (default 0)\n\noptions:\n --vault <name> vault name (required unless $QSP_VAULT is set)\n --json JSON output\n --limit <n> max results (default 50)\n --switcher <s> plus (Quick Switcher++) | core (Obsidian's Quick Switcher)\n (default $QSP_SWITCHER, else plus)\n --transport <t> auto | socket | cli (default auto)\n -h, --help show this help\n\nexit codes: 0 ok (also for zero results), 1 usage error, 2 Obsidian unreachable or\nreported an error, 3 Quick Switcher++ not installed or disabled, 4 index out of range";
|
|
10
10
|
export type Io = {
|
|
11
11
|
stdout: (s: string) => void;
|
|
12
12
|
stderr: (s: string) => void;
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseArgs } from "node:util";
|
|
2
2
|
import { IndexOutOfRangeError, ObsidianError, ObsidianUnavailableError, QspNotInstalledError } from "./errors.js";
|
|
3
|
-
import { DEFAULT_LIMIT, open, query } from "./index.js";
|
|
3
|
+
import { DEFAULT_LIMIT, open, query, SWITCHERS } from "./index.js";
|
|
4
4
|
export const EXIT = { OK: 0, USAGE: 1, UNAVAILABLE: 2, QSP_NOT_INSTALLED: 3, INDEX_OUT_OF_RANGE: 4 };
|
|
5
5
|
export const USAGE = `usage:
|
|
6
6
|
qsp [options] <query> list results
|
|
@@ -10,6 +10,8 @@ options:
|
|
|
10
10
|
--vault <name> vault name (required unless $QSP_VAULT is set)
|
|
11
11
|
--json JSON output
|
|
12
12
|
--limit <n> max results (default ${DEFAULT_LIMIT})
|
|
13
|
+
--switcher <s> plus (Quick Switcher++) | core (Obsidian's Quick Switcher)
|
|
14
|
+
(default $QSP_SWITCHER, else plus)
|
|
13
15
|
--transport <t> auto | socket | cli (default auto)
|
|
14
16
|
-h, --help show this help
|
|
15
17
|
|
|
@@ -37,6 +39,7 @@ export function parseCommand(args) {
|
|
|
37
39
|
json: { type: "boolean" },
|
|
38
40
|
limit: { type: "string" },
|
|
39
41
|
transport: { type: "string" },
|
|
42
|
+
switcher: { type: "string" },
|
|
40
43
|
help: { type: "boolean", short: "h" },
|
|
41
44
|
},
|
|
42
45
|
});
|
|
@@ -70,6 +73,12 @@ export function parseCommand(args) {
|
|
|
70
73
|
}
|
|
71
74
|
opts.transport = values.transport;
|
|
72
75
|
}
|
|
76
|
+
if (values.switcher !== undefined) {
|
|
77
|
+
if (!SWITCHERS.includes(values.switcher)) {
|
|
78
|
+
throw new UsageError(`--switcher must be one of ${SWITCHERS.join(", ")}, got "${values.switcher}"`);
|
|
79
|
+
}
|
|
80
|
+
opts.switcher = values.switcher;
|
|
81
|
+
}
|
|
73
82
|
if (values.limit !== undefined) {
|
|
74
83
|
if (isOpen)
|
|
75
84
|
throw new UsageError("--limit only applies to listing results");
|
|
@@ -171,7 +180,8 @@ export async function main(args, io, lib = { query, open }) {
|
|
|
171
180
|
const msg = e instanceof Error ? e.message : String(e);
|
|
172
181
|
io.stderr(`qsp: ${msg}\n`);
|
|
173
182
|
if (code === EXIT.QSP_NOT_INSTALLED) {
|
|
174
|
-
io.stderr("qsp: install and enable Quick Switcher++ (Settings → Community plugins),
|
|
183
|
+
io.stderr("qsp: install and enable Quick Switcher++ (Settings → Community plugins), " +
|
|
184
|
+
"or use Obsidian's own Quick Switcher with --switcher core or QSP_SWITCHER=core\n");
|
|
175
185
|
}
|
|
176
186
|
return code;
|
|
177
187
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { type SwitcherKind } from "./bridge.ts";
|
|
1
2
|
import { type Connect, type ExecFile, type TransportKind } from "./transport.ts";
|
|
2
3
|
export { IndexOutOfRangeError, ObsidianError, ObsidianUnavailableError, QspNotInstalledError } from "./errors.ts";
|
|
3
4
|
export { socketPath, type TransportKind } from "./transport.ts";
|
|
5
|
+
export type { SwitcherKind } from "./bridge.ts";
|
|
4
6
|
export type Result = {
|
|
5
7
|
index: number;
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The switcher's suggestion type. Quick Switcher++: e.g. "file", "headingsList", "symbolList", "commandList".
|
|
10
|
+
* Core switcher: "file", "alias", "unresolved" or "bookmark".
|
|
11
|
+
*/
|
|
7
12
|
type: string;
|
|
8
13
|
title: string;
|
|
9
14
|
note: string;
|
|
@@ -14,6 +19,11 @@ export type Result = {
|
|
|
14
19
|
export type Options = {
|
|
15
20
|
/** Vault name. Default: `$QSP_VAULT`. Required: there is no implicit vault. */
|
|
16
21
|
vault?: string;
|
|
22
|
+
/**
|
|
23
|
+
* "plus" (Quick Switcher++, must be installed) or "core" (Obsidian's built-in Quick Switcher).
|
|
24
|
+
* Default: `$QSP_SWITCHER`, then "plus".
|
|
25
|
+
*/
|
|
26
|
+
switcher?: SwitcherKind;
|
|
17
27
|
/** "auto" (socket, falling back to the `obsidian` command), "socket" or "cli". Default "auto". */
|
|
18
28
|
transport?: TransportKind;
|
|
19
29
|
/** Max results for `query`. Default 50. */
|
|
@@ -38,7 +48,8 @@ export type Options = {
|
|
|
38
48
|
};
|
|
39
49
|
export declare const DEFAULT_LIMIT = 50;
|
|
40
50
|
export declare const DEFAULT_TIMEOUT_MS = 10000;
|
|
41
|
-
|
|
51
|
+
export declare const SWITCHERS: readonly SwitcherKind[];
|
|
52
|
+
/** Run a switcher query (Quick Switcher++ unless `switcher` says otherwise). Zero matches is `[]`, not an error. */
|
|
42
53
|
export declare function query(q: string, opts?: Options): Promise<Result[]>;
|
|
43
54
|
/**
|
|
44
55
|
* Run the query and open result `index` (default 0) in the same call. Returns the opened result.
|
package/dist/index.js
CHANGED
|
@@ -18,10 +18,19 @@ function resolveVault(opts) {
|
|
|
18
18
|
throw new RangeError("no vault configured: use --vault <name> (library: the vault option) or set $QSP_VAULT");
|
|
19
19
|
return vault;
|
|
20
20
|
}
|
|
21
|
+
export const SWITCHERS = ["plus", "core"];
|
|
22
|
+
function resolveSwitcher(opts) {
|
|
23
|
+
const [value, from] = opts.switcher !== undefined ? [opts.switcher, "switcher"] : [process.env.QSP_SWITCHER || "plus", "$QSP_SWITCHER"];
|
|
24
|
+
if (!SWITCHERS.includes(value)) {
|
|
25
|
+
throw new RangeError(`${from} must be one of ${SWITCHERS.join(", ")}, got ${JSON.stringify(value)}`);
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
21
29
|
async function run(req, opts) {
|
|
22
30
|
const vault = resolveVault(opts);
|
|
31
|
+
const switcher = resolveSwitcher(opts);
|
|
23
32
|
const idempotent = req.action === "query";
|
|
24
|
-
const code = bridgeCode(req);
|
|
33
|
+
const code = bridgeCode({ ...req, switcher });
|
|
25
34
|
const value = opts.evaluate
|
|
26
35
|
? await opts.evaluate(code, { vault, idempotent })
|
|
27
36
|
: await evaluate(code, {
|
|
@@ -51,7 +60,7 @@ async function run(req, opts) {
|
|
|
51
60
|
throw new ObsidianError(String(data.message ?? data.error));
|
|
52
61
|
return data;
|
|
53
62
|
}
|
|
54
|
-
/** Run a Quick Switcher++
|
|
63
|
+
/** Run a switcher query (Quick Switcher++ unless `switcher` says otherwise). Zero matches is `[]`, not an error. */
|
|
55
64
|
export async function query(q, opts = {}) {
|
|
56
65
|
const limit = opts.limit ?? DEFAULT_LIMIT;
|
|
57
66
|
if (!isNonNegInt(limit) || limit === 0)
|
package/package.json
CHANGED