@ulrichc1/sparn 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -1,10 +1,3 @@
1
- // node_modules/tsup/assets/esm_shims.js
2
- import path from "path";
3
- import { fileURLToPath } from "url";
4
- var getFilename = () => fileURLToPath(import.meta.url);
5
- var getDirname = () => path.dirname(getFilename());
6
- var __dirname = /* @__PURE__ */ getDirname();
7
-
8
1
  // src/core/btsp-embedder.ts
9
2
  import { randomUUID } from "crypto";
10
3
 
@@ -1316,6 +1309,7 @@ function createSleepCompressor() {
1316
1309
  import { fork } from "child_process";
1317
1310
  import { existsSync as existsSync2, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
1318
1311
  import { dirname, join } from "path";
1312
+ import { fileURLToPath } from "url";
1319
1313
  function createDaemonCommand() {
1320
1314
  function isDaemonRunning(pidFile) {
1321
1315
  if (!existsSync2(pidFile)) {
@@ -1362,7 +1356,9 @@ function createDaemonCommand() {
1362
1356
  };
1363
1357
  }
1364
1358
  try {
1365
- const daemonPath = join(__dirname, "index.js");
1359
+ const __filename2 = fileURLToPath(import.meta.url);
1360
+ const __dirname2 = dirname(__filename2);
1361
+ const daemonPath = join(__dirname2, "index.js");
1366
1362
  const child = fork(daemonPath, [], {
1367
1363
  detached: true,
1368
1364
  stdio: "ignore",