obsidian-launcher 2.1.2 → 2.1.3
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-HMKNUWAY.js → chunk-AUVMYPHG.js} +57 -57
- package/dist/{chunk-HMKNUWAY.js.map → chunk-AUVMYPHG.js.map} +1 -1
- package/dist/{chunk-Z5EOC6TG.cjs → chunk-T56PL6MR.cjs} +57 -57
- package/dist/{chunk-Z5EOC6TG.cjs.map → chunk-T56PL6MR.cjs.map} +1 -1
- package/dist/cli.cjs +4 -4
- package/dist/cli.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkT56PL6MRcjs = require('./chunk-T56PL6MR.cjs');
|
|
6
6
|
require('./chunk-MNS2C2HB.cjs');
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
@@ -43,7 +43,7 @@ function parseThemes(themes = []) {
|
|
|
43
43
|
}
|
|
44
44
|
var collectOpt = (curr, prev) => [..._nullishCoalesce(prev, () => ( [])), curr];
|
|
45
45
|
function getLauncher(opts) {
|
|
46
|
-
return new (0,
|
|
46
|
+
return new (0, _chunkT56PL6MRcjs.ObsidianLauncher)({ cacheDir: opts.cache, interactive: !!process.stdin.isTTY });
|
|
47
47
|
}
|
|
48
48
|
var versionOptionArgs = [
|
|
49
49
|
"-v, --version <version>",
|
|
@@ -122,7 +122,7 @@ program.command("watch").summary("Launch Obsidian and watch for changes to plugi
|
|
|
122
122
|
const procExit = new Promise((resolve) => proc.on("exit", (code) => resolve(_nullishCoalesce(code, () => ( -1)))));
|
|
123
123
|
for (const plugin of plugins) {
|
|
124
124
|
if (plugin.originalType == "local") {
|
|
125
|
-
|
|
125
|
+
_chunkT56PL6MRcjs.watchFiles.call(void 0,
|
|
126
126
|
["manifest.json", "main.js", "styles.css", "data.json"].map((f) => _path2.default.join(plugin.path, f)),
|
|
127
127
|
async () => {
|
|
128
128
|
console.log(`Detected change to "${plugin.id}"`);
|
|
@@ -138,7 +138,7 @@ program.command("watch").summary("Launch Obsidian and watch for changes to plugi
|
|
|
138
138
|
}
|
|
139
139
|
for (const theme of themes) {
|
|
140
140
|
if (theme.originalType == "local") {
|
|
141
|
-
|
|
141
|
+
_chunkT56PL6MRcjs.watchFiles.call(void 0,
|
|
142
142
|
["manifest.json", "theme.css"].map((f) => _path2.default.join(theme.path, f)),
|
|
143
143
|
async () => {
|
|
144
144
|
console.log(`Detected change to "${theme.name}"`);
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT56PL6MRcjs = require('./chunk-T56PL6MR.cjs');
|
|
4
4
|
require('./chunk-MNS2C2HB.cjs');
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
|
-
var index_default =
|
|
7
|
+
var index_default = _chunkT56PL6MRcjs.ObsidianLauncher;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.default = index_default;
|
package/dist/index.js
CHANGED