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/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 _chunkZ5EOC6TGcjs = require('./chunk-Z5EOC6TG.cjs');
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, _chunkZ5EOC6TGcjs.ObsidianLauncher)({ cacheDir: opts.cache, interactive: !!process.stdin.isTTY });
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
- _chunkZ5EOC6TGcjs.watchFiles.call(void 0,
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
- _chunkZ5EOC6TGcjs.watchFiles.call(void 0,
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
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ObsidianLauncher,
4
4
  watchFiles
5
- } from "./chunk-HMKNUWAY.js";
5
+ } from "./chunk-AUVMYPHG.js";
6
6
 
7
7
  // src/cli.ts
8
8
  import { Command } from "commander";
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ5EOC6TGcjs = require('./chunk-Z5EOC6TG.cjs');
3
+ var _chunkT56PL6MRcjs = require('./chunk-T56PL6MR.cjs');
4
4
  require('./chunk-MNS2C2HB.cjs');
5
5
 
6
6
  // src/index.ts
7
- var index_default = _chunkZ5EOC6TGcjs.ObsidianLauncher;
7
+ var index_default = _chunkT56PL6MRcjs.ObsidianLauncher;
8
8
 
9
9
 
10
10
  exports.default = index_default;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ObsidianLauncher
3
- } from "./chunk-HMKNUWAY.js";
3
+ } from "./chunk-AUVMYPHG.js";
4
4
 
5
5
  // src/index.ts
6
6
  var index_default = ObsidianLauncher;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-launcher",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Download and launch sandboxed Obsidian instances",
5
5
  "keywords": [
6
6
  "obsidian"