@vxrn/utils 2.0.0-beta.33.1 → 2.0.0-beta.46.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.
Files changed (47) hide show
  1. package/dist/cjs/createMessageSocket.cjs +115 -121
  2. package/dist/cjs/createMessageSocket.native.cjs +166 -0
  3. package/dist/cjs/createMessageSocket.native.js +152 -166
  4. package/dist/cjs/createMessageSocket.native.js.map +1 -1
  5. package/dist/cjs/detectPackageManager.cjs +76 -72
  6. package/dist/cjs/detectPackageManager.native.cjs +106 -0
  7. package/dist/cjs/detectPackageManager.native.js +82 -77
  8. package/dist/cjs/detectPackageManager.native.js.map +1 -1
  9. package/dist/cjs/exec.cjs +43 -45
  10. package/dist/cjs/exec.native.cjs +65 -0
  11. package/dist/cjs/exec.native.js +48 -49
  12. package/dist/cjs/exec.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +9 -11
  14. package/dist/cjs/index.native.cjs +25 -0
  15. package/dist/cjs/index.native.js +9 -10
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/cjs/mustReplace.cjs +27 -35
  18. package/dist/cjs/mustReplace.native.cjs +60 -0
  19. package/dist/cjs/mustReplace.native.js +44 -60
  20. package/dist/cjs/mustReplace.native.js.map +1 -1
  21. package/dist/esm/createMessageSocket.mjs +103 -103
  22. package/dist/esm/createMessageSocket.mjs.map +1 -1
  23. package/dist/esm/createMessageSocket.native.js +139 -148
  24. package/dist/esm/createMessageSocket.native.js.map +1 -1
  25. package/dist/esm/detectPackageManager.mjs +65 -55
  26. package/dist/esm/detectPackageManager.mjs.map +1 -1
  27. package/dist/esm/detectPackageManager.native.js +71 -61
  28. package/dist/esm/detectPackageManager.native.js.map +1 -1
  29. package/dist/esm/exec.mjs +29 -27
  30. package/dist/esm/exec.mjs.map +1 -1
  31. package/dist/esm/exec.native.js +34 -32
  32. package/dist/esm/exec.native.js.map +1 -1
  33. package/dist/esm/index.js +11 -7
  34. package/dist/esm/index.mjs +11 -7
  35. package/dist/esm/index.native.js +11 -7
  36. package/dist/esm/mustReplace.mjs +15 -17
  37. package/dist/esm/mustReplace.mjs.map +1 -1
  38. package/dist/esm/mustReplace.native.js +32 -43
  39. package/dist/esm/mustReplace.native.js.map +1 -1
  40. package/package.json +4 -4
  41. package/types/createMessageSocket.d.ts +1 -1
  42. package/types/createMessageSocket.d.ts.map +1 -1
  43. package/types/detectPackageManager.d.ts.map +1 -1
  44. package/types/exec.d.ts.map +1 -1
  45. package/dist/esm/index.js.map +0 -1
  46. package/dist/esm/index.mjs.map +0 -1
  47. package/dist/esm/index.native.js.map +0 -1
@@ -5,99 +5,104 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var detectPackageManager_exports = {};
26
- __export(detectPackageManager_exports, {
27
- detectPackageManager: () => detectPackageManager
28
- });
24
+ __export(detectPackageManager_exports, { detectPackageManager: () => detectPackageManager });
29
25
  module.exports = __toCommonJS(detectPackageManager_exports);
30
26
  var import_fs = require("fs");
31
27
  var import_path = require("path");
32
28
  var import_exec = require("./exec.native.js");
33
29
  async function pathExists(p) {
34
- try {
35
- await import_fs.promises.access(p);
36
- return true;
37
- } catch (unused) {
38
- return false;
39
- }
30
+ try {
31
+ await import_fs.promises.access(p);
32
+ return true;
33
+ } catch (unused) {
34
+ return false;
35
+ }
40
36
  }
41
37
  async function hasGlobal(pm) {
42
- try {
43
- var command = process.platform === "win32" ? `where ${pm}` : `which ${pm}`;
44
- var res = (0, import_exec.exec)(command);
45
- return !!res.length;
46
- } catch (unused) {
47
- return false;
48
- }
38
+ try {
39
+ var command = process.platform === "win32" ? `where ${pm}` : `which ${pm}`;
40
+ var res = (0, import_exec.exec)(command);
41
+ return !!res.length;
42
+ } catch (unused) {
43
+ return false;
44
+ }
49
45
  }
50
46
  async function getFromLockfile() {
51
- var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ".";
52
- var [yarn, npm, pnpm, bun] = await Promise.all([pathExists((0, import_path.resolve)(cwd, "yarn.lock")), pathExists((0, import_path.resolve)(cwd, "package-lock.json")), pathExists((0, import_path.resolve)(cwd, "pnpm-lock.yaml")), pathExists((0, import_path.resolve)(cwd, "bun.lockb"))]);
53
- return {
54
- bun,
55
- yarn,
56
- pnpm,
57
- npm
58
- };
47
+ var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ".";
48
+ var [yarn, npm, pnpm, bun] = await Promise.all([
49
+ pathExists((0, import_path.resolve)(cwd, "yarn.lock")),
50
+ pathExists((0, import_path.resolve)(cwd, "package-lock.json")),
51
+ pathExists((0, import_path.resolve)(cwd, "pnpm-lock.yaml")),
52
+ pathExists((0, import_path.resolve)(cwd, "bun.lockb"))
53
+ ]);
54
+ return {
55
+ bun,
56
+ yarn,
57
+ pnpm,
58
+ npm
59
+ };
59
60
  }
60
61
  async function getFromPackage() {
61
- var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ".";
62
- if (await pathExists((0, import_path.resolve)(cwd, "package.json"))) {
63
- var json = JSON.parse(await import_fs.promises.readFile((0, import_path.resolve)(cwd, "package.json"), "utf-8"));
64
- if (json.packageManager) {
65
- var yarn = !!json.packageManager.startsWith("yarn");
66
- var pnpm = !!json.packageManager.startsWith("pnpm");
67
- var bun = !!json.packageManager.startsWith("bun");
68
- var npm = !!json.packageManager.startsWith("npm");
69
- return {
70
- bun,
71
- yarn,
72
- pnpm,
73
- npm
74
- };
75
- }
76
- }
62
+ var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ".";
63
+ if (await pathExists((0, import_path.resolve)(cwd, "package.json"))) {
64
+ var json = JSON.parse(await import_fs.promises.readFile((0, import_path.resolve)(cwd, "package.json"), "utf-8"));
65
+ if (json.packageManager) {
66
+ var yarn = !!json.packageManager.startsWith("yarn");
67
+ var pnpm = !!json.packageManager.startsWith("pnpm");
68
+ var bun = !!json.packageManager.startsWith("bun");
69
+ var npm = !!json.packageManager.startsWith("npm");
70
+ return {
71
+ bun,
72
+ yarn,
73
+ pnpm,
74
+ npm
75
+ };
76
+ }
77
+ }
77
78
  }
78
- var foundSome = function (obj) {
79
- return Object.keys(obj).some(function (k) {
80
- return !!obj[k];
81
- });
79
+ var foundSome = function(obj) {
80
+ return Object.keys(obj).some(function(k) {
81
+ return !!obj[k];
82
+ });
82
83
  };
83
- var detectPackageManager = async function () {
84
- var {
85
- cwd
86
- } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
87
- var fromLockfile = await getFromLockfile(cwd);
88
- if (foundSome(fromLockfile)) {
89
- return fromLockfile;
90
- }
91
- var fromPackageJson = await getFromPackage(cwd);
92
- if (fromPackageJson && foundSome(fromPackageJson)) {
93
- return fromPackageJson;
94
- }
95
- var [npm, yarn, pnpm, bun] = await Promise.all([hasGlobal("npm"), hasGlobal("yarn"), hasGlobal("pnpm"), hasGlobal("bun")]);
96
- return {
97
- bun,
98
- yarn,
99
- pnpm,
100
- npm
101
- };
84
+ var detectPackageManager = async function() {
85
+ var { cwd } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
86
+ var fromLockfile = await getFromLockfile(cwd);
87
+ if (foundSome(fromLockfile)) {
88
+ return fromLockfile;
89
+ }
90
+ var fromPackageJson = await getFromPackage(cwd);
91
+ if (fromPackageJson && foundSome(fromPackageJson)) {
92
+ return fromPackageJson;
93
+ }
94
+ var [npm, yarn, pnpm, bun] = await Promise.all([
95
+ hasGlobal("npm"),
96
+ hasGlobal("yarn"),
97
+ hasGlobal("pnpm"),
98
+ hasGlobal("bun")
99
+ ]);
100
+ return {
101
+ bun,
102
+ yarn,
103
+ pnpm,
104
+ npm
105
+ };
102
106
  };
107
+
103
108
  //# sourceMappingURL=detectPackageManager.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","detectPackageManager_exports","__export","detectPackageManager","module","exports","import_fs","require","import_path","import_exec","pathExists","p","promises","access","unused","hasGlobal","pm","command","process","platform","res","exec","length","getFromLockfile","cwd","arguments","yarn","npm","pnpm","bun","Promise","all","resolve","getFromPackage","json","JSON","parse","readFile","packageManager","startsWith","foundSome","obj","Object","keys","some","k","fromLockfile"],"sources":["../../src/detectPackageManager.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA+B,CAAAK,4BAAA;AAC/B,IAAAK,SAAA,GAAAC,OAAwB;AACxB,IAAAC,WAAA,GAAqBD,OAAA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AAwB,OAAA,EAAAR,GAAA;IACF,IAAAU,IAAA,CAAAI,cAAA;MAEM,IAAAZ,IAAA,IAAY,CAACQ,IAAA,CAAAI,cAAuB,CAAKC,UAAU,CAAC,MAAM,CAAC;MAEpD,IAAAX,IAAA,KAAAM,IAAA,CAAAI,cAAgC,CAAAC,UAA2B,OAAM;MAC5E,IAAMV,GAAA,KAAAK,IAAA,CAAeI,cAAM,CAAAC,UAAmB;MAC1C,IAAAZ,GAAA,GAAU,EAAAO,IAAA,CAAAI,cAAe,CAAAC,UAAA;MAC3B,OAAO;QACTV,GAAA;QAEMH,IAAA;QACFE,IAAA;QACFD;MACF;IAEA;EAAiD;AAChC;AACC,IAChBa,SAAA,GAAU,SAAAA,CAAMC,GAAA;EAAA,OAChBC,MAAU,CAAAC,IAAK,CAAAF,GAAA,EAAAG,IAAA,WAAAC,CAAA;IAChB,SAAAJ,GAAA,CAAAI,CAAA;EAED;AAAO;AACL,IACA1C,oBAAA,kBAAAA,CAAA;EAAA,IACA;IAAAqB;EAAA,IAAAC,SAAA,CAAAH,MAAA,QAAAG,SAAA,iBAAAA,SAAA;EAAA,IACAqB,YAAA,SAAAvB,eAAA,CAAAC,GAAA;EACF,IAAAgB,SAAA,CAAAM,YAAA;IACF,OAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"file":"detectPackageManager.native.js","names":[],"sources":["cjs/detectPackageManager.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar detectPackageManager_exports = {};\n__export(detectPackageManager_exports, {\n detectPackageManager: () => detectPackageManager\n});\nmodule.exports = __toCommonJS(detectPackageManager_exports);\nvar import_fs = require(\"fs\");\nvar import_path = require(\"path\");\nvar import_exec = require(\"./exec\");\nasync function pathExists(p) {\n try {\n await import_fs.promises.access(p);\n return true;\n } catch (unused) {\n return false;\n }\n}\nasync function hasGlobal(pm) {\n try {\n var command = process.platform === \"win32\" ? `where ${pm}` : `which ${pm}`;\n var res = (0, import_exec.exec)(command);\n return !!res.length;\n } catch (unused) {\n return false;\n }\n}\nasync function getFromLockfile() {\n var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \".\";\n var [yarn, npm, pnpm, bun] = await Promise.all([\n pathExists((0, import_path.resolve)(cwd, \"yarn.lock\")),\n pathExists((0, import_path.resolve)(cwd, \"package-lock.json\")),\n pathExists((0, import_path.resolve)(cwd, \"pnpm-lock.yaml\")),\n pathExists((0, import_path.resolve)(cwd, \"bun.lockb\"))\n ]);\n return {\n bun,\n yarn,\n pnpm,\n npm\n };\n}\nasync function getFromPackage() {\n var cwd = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \".\";\n if (await pathExists((0, import_path.resolve)(cwd, \"package.json\"))) {\n var json = JSON.parse(await import_fs.promises.readFile((0, import_path.resolve)(cwd, \"package.json\"), \"utf-8\"));\n if (json.packageManager) {\n var yarn = !!json.packageManager.startsWith(\"yarn\");\n var pnpm = !!json.packageManager.startsWith(\"pnpm\");\n var bun = !!json.packageManager.startsWith(\"bun\");\n var npm = !!json.packageManager.startsWith(\"npm\");\n return {\n bun,\n yarn,\n pnpm,\n npm\n };\n }\n }\n}\nvar foundSome = function(obj) {\n return Object.keys(obj).some(function(k) {\n return !!obj[k];\n });\n};\nvar detectPackageManager = async function() {\n var { cwd } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var fromLockfile = await getFromLockfile(cwd);\n if (foundSome(fromLockfile)) {\n return fromLockfile;\n }\n var fromPackageJson = await getFromPackage(cwd);\n if (fromPackageJson && foundSome(fromPackageJson)) {\n return fromPackageJson;\n }\n var [npm, yarn, pnpm, bun] = await Promise.all([\n hasGlobal(\"npm\"),\n hasGlobal(\"yarn\"),\n hasGlobal(\"pnpm\"),\n hasGlobal(\"bun\")\n ]);\n return {\n bun,\n yarn,\n pnpm,\n npm\n };\n};\n//# sourceMappingURL=detectPackageManager.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,+BAA+B,CAAC;AACpC,SAAS,8BAA8B,EACrC,4BAA4B,qBAC9B,CAAC;AACD,OAAO,UAAU,aAAa,4BAA4B;AAC1D,IAAI,YAAY,QAAQ,IAAI;AAC5B,IAAI,cAAc,QAAQ,MAAM;AAChC,IAAI,cAAc,QAAQ,kBAAQ;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IAAI,MAAM,CAAC,CAAC,KAAK,eAAe,WAAW,KAAK;GAChD,OAAO;IACL;IACA;IACA;IACA;GACF;EACF;CACF;AACF;AACA,IAAI,YAAY,SAAS,KAAK;CAC5B,OAAO,OAAO,KAAK,GAAG,CAAC,CAAC,KAAK,SAAS,GAAG;EACvC,OAAO,CAAC,CAAC,IAAI;CACf,CAAC;AACH;AACA,IAAI,uBAAuB,iBAAiB;CAC1C,IAAI,EAAE,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK,CAAC;CAChF,IAAI,eAAe,MAAM,gBAAgB,GAAG;CAC5C,IAAI,UAAU,YAAY,GAAG;EAC3B,OAAO;CACT;CACA,IAAI,kBAAkB,MAAM,eAAe,GAAG;CAC9C,IAAI,mBAAmB,UAAU,eAAe,GAAG;EACjD,OAAO;CACT;CACA,IAAI,CAAC,KAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,IAAI;EAC7C,UAAU,KAAK;EACf,UAAU,MAAM;EAChB,UAAU,MAAM;EAChB,UAAU,KAAK;CACjB,CAAC;CACD,OAAO;EACL;EACA;EACA;EACA;CACF;AACF"}
package/dist/cjs/exec.cjs CHANGED
@@ -3,61 +3,59 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var exec_exports = {};
24
22
  __export(exec_exports, {
25
- exec: () => exec,
26
- execPromise: () => execPromise,
27
- execPromiseQuiet: () => execPromiseQuiet
23
+ exec: () => exec,
24
+ execPromise: () => execPromise,
25
+ execPromiseQuiet: () => execPromiseQuiet
28
26
  });
29
27
  module.exports = __toCommonJS(exec_exports);
30
28
  var import_node_child_process = require("node:child_process");
31
29
  const exec = (cmd, options) => {
32
- return (0, import_node_child_process.execSync)(cmd, options)?.toString() || "";
30
+ return (0, import_node_child_process.execSync)(cmd, options)?.toString() || "";
33
31
  };
34
32
  const execPromise = (cmd, options) => {
35
- return new Promise((resolve, reject) => {
36
- const [command, ...args] = cmd.split(" ");
37
- const child = (0, import_node_child_process.spawn)(command, args, {
38
- stdio: options?.quiet ? "pipe" : "inherit",
39
- shell: true,
40
- ...options
41
- });
42
- if (!options?.quiet || process.env.DEBUG) {
43
- child.stdout?.pipe(process.stdout);
44
- child.stderr?.pipe(process.stderr);
45
- }
46
- child.on("close", code => {
47
- if (code !== 0) {
48
- reject(new Error(`Command failed with exit code ${code}: ${cmd}`));
49
- } else {
50
- resolve();
51
- }
52
- });
53
- child.on("error", error => {
54
- reject(error);
55
- });
56
- });
33
+ return new Promise((resolve, reject) => {
34
+ const [command, ...args] = cmd.split(" ");
35
+ const child = (0, import_node_child_process.spawn)(command, args, {
36
+ stdio: options?.quiet ? "pipe" : "inherit",
37
+ shell: true,
38
+ ...options
39
+ });
40
+ if (!options?.quiet || process.env.DEBUG) {
41
+ child.stdout?.pipe(process.stdout);
42
+ child.stderr?.pipe(process.stderr);
43
+ }
44
+ child.on("close", (code) => {
45
+ if (code !== 0) {
46
+ reject(new Error(`Command failed with exit code ${code}: ${cmd}`));
47
+ } else {
48
+ resolve();
49
+ }
50
+ });
51
+ child.on("error", (error) => {
52
+ reject(error);
53
+ });
54
+ });
57
55
  };
58
56
  const execPromiseQuiet = (cmd, options) => {
59
- return execPromise(cmd, {
60
- ...options,
61
- quiet: true
62
- });
63
- };
57
+ return execPromise(cmd, {
58
+ ...options,
59
+ quiet: true
60
+ });
61
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var exec_exports = {};
24
+ __export(exec_exports, {
25
+ exec: () => exec,
26
+ execPromise: () => execPromise,
27
+ execPromiseQuiet: () => execPromiseQuiet
28
+ });
29
+ module.exports = __toCommonJS(exec_exports);
30
+ var import_child_process = require("child_process");
31
+ var exec = function(cmd, options) {
32
+ var _execSync;
33
+ return ((_execSync = (0, import_child_process.execSync)(cmd, options)) === null || _execSync === void 0 ? void 0 : _execSync.toString()) || "";
34
+ };
35
+ var execPromise = function(cmd, options) {
36
+ return new Promise(function(resolve, reject) {
37
+ var [command, ...args] = cmd.split(" ");
38
+ var child = (0, import_child_process.spawn)(command, args, {
39
+ stdio: (options === null || options === void 0 ? void 0 : options.quiet) ? "pipe" : "inherit",
40
+ shell: true,
41
+ ...options
42
+ });
43
+ if (!(options === null || options === void 0 ? void 0 : options.quiet) || process.env.DEBUG) {
44
+ var _child_stdout, _child_stderr;
45
+ (_child_stdout = child.stdout) === null || _child_stdout === void 0 ? void 0 : _child_stdout.pipe(process.stdout);
46
+ (_child_stderr = child.stderr) === null || _child_stderr === void 0 ? void 0 : _child_stderr.pipe(process.stderr);
47
+ }
48
+ child.on("close", function(code) {
49
+ if (code !== 0) {
50
+ reject(new Error(`Command failed with exit code ${code}: ${cmd}`));
51
+ } else {
52
+ resolve();
53
+ }
54
+ });
55
+ child.on("error", function(error) {
56
+ reject(error);
57
+ });
58
+ });
59
+ };
60
+ var execPromiseQuiet = function(cmd, options) {
61
+ return execPromise(cmd, {
62
+ ...options,
63
+ quiet: true
64
+ });
65
+ };
@@ -5,64 +5,63 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var exec_exports = {};
26
24
  __export(exec_exports, {
27
- exec: () => exec,
28
- execPromise: () => execPromise,
29
- execPromiseQuiet: () => execPromiseQuiet
25
+ exec: () => exec,
26
+ execPromise: () => execPromise,
27
+ execPromiseQuiet: () => execPromiseQuiet
30
28
  });
31
29
  module.exports = __toCommonJS(exec_exports);
32
30
  var import_child_process = require("child_process");
33
- var exec = function (cmd, options) {
34
- var _execSync;
35
- return ((_execSync = (0, import_child_process.execSync)(cmd, options)) === null || _execSync === void 0 ? void 0 : _execSync.toString()) || "";
31
+ var exec = function(cmd, options) {
32
+ var _execSync;
33
+ return ((_execSync = (0, import_child_process.execSync)(cmd, options)) === null || _execSync === void 0 ? void 0 : _execSync.toString()) || "";
36
34
  };
37
- var execPromise = function (cmd, options) {
38
- return new Promise(function (resolve, reject) {
39
- var [command, ...args] = cmd.split(" ");
40
- var child = (0, import_child_process.spawn)(command, args, {
41
- stdio: (options === null || options === void 0 ? void 0 : options.quiet) ? "pipe" : "inherit",
42
- shell: true,
43
- ...options
44
- });
45
- if (!(options === null || options === void 0 ? void 0 : options.quiet) || process.env.DEBUG) {
46
- var _child_stdout, _child_stderr;
47
- (_child_stdout = child.stdout) === null || _child_stdout === void 0 ? void 0 : _child_stdout.pipe(process.stdout);
48
- (_child_stderr = child.stderr) === null || _child_stderr === void 0 ? void 0 : _child_stderr.pipe(process.stderr);
49
- }
50
- child.on("close", function (code) {
51
- if (code !== 0) {
52
- reject(new Error(`Command failed with exit code ${code}: ${cmd}`));
53
- } else {
54
- resolve();
55
- }
56
- });
57
- child.on("error", function (error) {
58
- reject(error);
59
- });
60
- });
35
+ var execPromise = function(cmd, options) {
36
+ return new Promise(function(resolve, reject) {
37
+ var [command, ...args] = cmd.split(" ");
38
+ var child = (0, import_child_process.spawn)(command, args, {
39
+ stdio: (options === null || options === void 0 ? void 0 : options.quiet) ? "pipe" : "inherit",
40
+ shell: true,
41
+ ...options
42
+ });
43
+ if (!(options === null || options === void 0 ? void 0 : options.quiet) || process.env.DEBUG) {
44
+ var _child_stdout, _child_stderr;
45
+ (_child_stdout = child.stdout) === null || _child_stdout === void 0 ? void 0 : _child_stdout.pipe(process.stdout);
46
+ (_child_stderr = child.stderr) === null || _child_stderr === void 0 ? void 0 : _child_stderr.pipe(process.stderr);
47
+ }
48
+ child.on("close", function(code) {
49
+ if (code !== 0) {
50
+ reject(new Error(`Command failed with exit code ${code}: ${cmd}`));
51
+ } else {
52
+ resolve();
53
+ }
54
+ });
55
+ child.on("error", function(error) {
56
+ reject(error);
57
+ });
58
+ });
61
59
  };
62
- var execPromiseQuiet = function (cmd, options) {
63
- return execPromise(cmd, {
64
- ...options,
65
- quiet: true
66
- });
60
+ var execPromiseQuiet = function(cmd, options) {
61
+ return execPromise(cmd, {
62
+ ...options,
63
+ quiet: true
64
+ });
67
65
  };
66
+
68
67
  //# sourceMappingURL=exec.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","exec_exports","__export","exec","execPromise","execPromiseQuiet","module","exports","import_child_process","require","cmd","options","_execSync","execSync","toString","Promise","resolve","reject","command","args","split","child","spawn","stdio","quiet","shell","process","env","DEBUG","_child_stdout","_child_stderr","stdout","pipe","stderr","on","code","Error","error"],"sources":["../../src/exec.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,WAAA,EAAAA,CAAA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MACP;IACF,CAAC;IACFK,KAAA,CAAAa,EAAA,oBAAAG,KAAA;MACHpB,MAAA,CAAAoB,KAAA;IAEO,EAAM;EAMX;AAAwB;AACnB,IACHhC,gBAAO,YAAAA,CAAAK,GAAA,EAAAC,OAAA;EACT,OAACP,WAAA,CAAAM,GAAA;IACH,GAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"exec.native.js","names":[],"sources":["cjs/exec.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar exec_exports = {};\n__export(exec_exports, {\n exec: () => exec,\n execPromise: () => execPromise,\n execPromiseQuiet: () => execPromiseQuiet\n});\nmodule.exports = __toCommonJS(exec_exports);\nvar import_child_process = require(\"child_process\");\nvar exec = function(cmd, options) {\n var _execSync;\n return ((_execSync = (0, import_child_process.execSync)(cmd, options)) === null || _execSync === void 0 ? void 0 : _execSync.toString()) || \"\";\n};\nvar execPromise = function(cmd, options) {\n return new Promise(function(resolve, reject) {\n var [command, ...args] = cmd.split(\" \");\n var child = (0, import_child_process.spawn)(command, args, {\n stdio: (options === null || options === void 0 ? void 0 : options.quiet) ? \"pipe\" : \"inherit\",\n shell: true,\n ...options\n });\n if (!(options === null || options === void 0 ? void 0 : options.quiet) || process.env.DEBUG) {\n var _child_stdout, _child_stderr;\n (_child_stdout = child.stdout) === null || _child_stdout === void 0 ? void 0 : _child_stdout.pipe(process.stdout);\n (_child_stderr = child.stderr) === null || _child_stderr === void 0 ? void 0 : _child_stderr.pipe(process.stderr);\n }\n child.on(\"close\", function(code) {\n if (code !== 0) {\n reject(new Error(`Command failed with exit code ${code}: ${cmd}`));\n } else {\n resolve();\n }\n });\n child.on(\"error\", function(error) {\n reject(error);\n });\n });\n};\nvar execPromiseQuiet = function(cmd, options) {\n return execPromise(cmd, {\n ...options,\n quiet: true\n });\n};\n//# sourceMappingURL=exec.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,eAAe,CAAC;AACpB,SAAS,cAAc;CACrB,YAAY;CACZ,mBAAmB;CACnB,wBAAwB;AAC1B,CAAC;AACD,OAAO,UAAU,aAAa,YAAY;AAC1C,IAAI,uBAAuB,QAAQ,eAAe;AAClD,IAAI,OAAO,SAAS,KAAK,SAAS;CAChC,IAAI;CACJ,SAAS,aAAa,GAAG,qBAAqB,SAAQ,CAAE,KAAK,OAAO,OAAO,QAAQ,cAAc,KAAK,IAAI,KAAK,IAAI,UAAU,SAAS,MAAM;AAC9I;AACA,IAAI,cAAc,SAAS,KAAK,SAAS;CACvC,OAAO,IAAI,QAAQ,SAAS,SAAS,QAAQ;EAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,IAAI,MAAM,GAAG;EACtC,IAAI,SAAS,GAAG,qBAAqB,MAAK,CAAE,SAAS,MAAM;GACzD,QAAQ,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,SAAS,SAAS;GACpF,OAAO;GACP,GAAG;EACL,CAAC;EACD,IAAI,EAAE,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,UAAU,QAAQ,IAAI,OAAO;GAC3F,IAAI,eAAe;GACnB,CAAC,gBAAgB,MAAM,YAAY,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,KAAK,QAAQ,MAAM;GAChH,CAAC,gBAAgB,MAAM,YAAY,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,KAAK,QAAQ,MAAM;EAClH;EACA,MAAM,GAAG,SAAS,SAAS,MAAM;GAC/B,IAAI,SAAS,GAAG;IACd,OAAO,IAAI,MAAM,iCAAiC,KAAK,IAAI,KAAK,CAAC;GACnE,OAAO;IACL,QAAQ;GACV;EACF,CAAC;EACD,MAAM,GAAG,SAAS,SAAS,OAAO;GAChC,OAAO,KAAK;EACd,CAAC;CACH,CAAC;AACH;AACA,IAAI,mBAAmB,SAAS,KAAK,SAAS;CAC5C,OAAO,YAAY,KAAK;EACtB,GAAG;EACH,OAAO;CACT,CAAC;AACH"}
@@ -3,18 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
12
+ return to;
13
13
  };
14
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
16
  var index_exports = {};
19
17
  module.exports = __toCommonJS(index_exports);
20
18
  __reExport(index_exports, require("@vxrn/debug"), module.exports);
@@ -22,4 +20,4 @@ __reExport(index_exports, require("@vxrn/resolve"), module.exports);
22
20
  __reExport(index_exports, require("./createMessageSocket.cjs"), module.exports);
23
21
  __reExport(index_exports, require("./detectPackageManager.cjs"), module.exports);
24
22
  __reExport(index_exports, require("./exec.cjs"), module.exports);
25
- __reExport(index_exports, require("./mustReplace.cjs"), module.exports);
23
+ __reExport(index_exports, require("./mustReplace.cjs"), module.exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("@vxrn/debug"), module.exports);
21
+ __reExport(index_exports, require("@vxrn/resolve"), module.exports);
22
+ __reExport(index_exports, require("./createMessageSocket.native.js"), module.exports);
23
+ __reExport(index_exports, require("./detectPackageManager.native.js"), module.exports);
24
+ __reExport(index_exports, require("./exec.native.js"), module.exports);
25
+ __reExport(index_exports, require("./mustReplace.native.js"), module.exports);
@@ -5,18 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
15
  };
16
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
18
  var index_exports = {};
21
19
  module.exports = __toCommonJS(index_exports);
22
20
  __reExport(index_exports, require("@vxrn/debug"), module.exports);
@@ -25,4 +23,5 @@ __reExport(index_exports, require("./createMessageSocket.native.js"), module.exp
25
23
  __reExport(index_exports, require("./detectPackageManager.native.js"), module.exports);
26
24
  __reExport(index_exports, require("./exec.native.js"), module.exports);
27
25
  __reExport(index_exports, require("./mustReplace.native.js"), module.exports);
26
+
28
27
  //# sourceMappingURL=index.native.js.map