@spooky-sync/cli 0.0.1-canary.21 → 0.0.1-canary.211

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.
@@ -1,51 +0,0 @@
1
- import { platform as s, arch as l } from "os";
2
- import { dirname as y, resolve as a } from "path";
3
- import { existsSync as e } from "fs";
4
- import { fileURLToPath as k } from "url";
5
- import { createRequire as d } from "module";
6
- const x = k(import.meta.url), m = y(x), f = {
7
- "darwin-arm64": "@spooky-sync/cli-darwin-arm64",
8
- "darwin-x64": "@spooky-sync/cli-darwin-x64",
9
- "linux-arm64": "@spooky-sync/cli-linux-arm64",
10
- "linux-x64": "@spooky-sync/cli-linux-x64",
11
- "win32-x64": "@spooky-sync/cli-win32-x64"
12
- };
13
- function w() {
14
- const r = `${s()}-${l()}`, o = f[r];
15
- if (!o) return;
16
- const n = s() === "win32" ? "spooky.exe" : "spooky";
17
- try {
18
- const t = d(import.meta.url).resolve(`${o}/package.json`);
19
- return a(y(t), n);
20
- } catch {
21
- return;
22
- }
23
- }
24
- function _() {
25
- const r = s() === "win32" ? "spooky.exe" : "spooky", o = w();
26
- if (o && e(o))
27
- return o;
28
- const n = a(m, "../target/release", r);
29
- if (e(n))
30
- return n;
31
- const i = a(m, "..", r);
32
- if (e(i))
33
- return i;
34
- const t = a(process.cwd(), r);
35
- if (e(t))
36
- return t;
37
- const p = `${s()}-${l()}`, c = f[p], u = c ? `
38
- Try installing the platform package: npm install ${c}` : `
39
- Your platform (${p}) is not supported.`;
40
- throw new Error(
41
- `Could not find spooky binary. Checked paths:
42
- - Platform package (${c ?? "none"})
43
- - ${n}
44
- - ${i}
45
- - ${t}
46
- ` + u
47
- );
48
- }
49
- export {
50
- _ as f
51
- };
@@ -1,8 +0,0 @@
1
- "use strict";const n=require("os"),r=require("path"),c=require("fs"),d=require("url"),m=require("module");var o=typeof document<"u"?document.currentScript:null;const h=d.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("resolve-binary-CFmJcXEj.cjs",document.baseURI).href),p=r.dirname(h),y={"darwin-arm64":"@spooky-sync/cli-darwin-arm64","darwin-x64":"@spooky-sync/cli-darwin-x64","linux-arm64":"@spooky-sync/cli-linux-arm64","linux-x64":"@spooky-sync/cli-linux-x64","win32-x64":"@spooky-sync/cli-win32-x64"};function k(){const t=`${n.platform()}-${n.arch()}`,e=y[t];if(!e)return;const s=n.platform()==="win32"?"spooky.exe":"spooky";try{const i=m.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("resolve-binary-CFmJcXEj.cjs",document.baseURI).href).resolve(`${e}/package.json`);return r.resolve(r.dirname(i),s)}catch{return}}function x(){const t=n.platform()==="win32"?"spooky.exe":"spooky",e=k();if(e&&c.existsSync(e))return e;const s=r.resolve(p,"../target/release",t);if(c.existsSync(s))return s;const a=r.resolve(p,"..",t);if(c.existsSync(a))return a;const i=r.resolve(process.cwd(),t);if(c.existsSync(i))return i;const u=`${n.platform()}-${n.arch()}`,l=y[u],f=l?`
2
- Try installing the platform package: npm install ${l}`:`
3
- Your platform (${u}) is not supported.`;throw new Error(`Could not find spooky binary. Checked paths:
4
- - Platform package (${l??"none"})
5
- - ${s}
6
- - ${a}
7
- - ${i}
8
- `+f)}exports.findBinary=x;