@effectionx/process 0.6.0 → 0.6.2

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/esm/src/exec.js CHANGED
@@ -1,4 +1,4 @@
1
- import { split } from "shellwords";
1
+ import * as shellwords from "shellwords";
2
2
  import { spawn } from "effection";
3
3
  import { createPosixProcess } from "./exec/posix.js";
4
4
  import { createWin32Process, isWin32 } from "./exec/win32.js";
@@ -19,7 +19,7 @@ const createProcess = (cmd, opts) => {
19
19
  * forever, consider using `daemon()`
20
20
  */
21
21
  export function exec(command, options = {}) {
22
- let [cmd, ...args] = options.shell ? [command] : split(command);
22
+ let [cmd, ...args] = options.shell ? [command] : shellwords.split(command);
23
23
  let opts = { ...options, arguments: args.concat(options.arguments || []) };
24
24
  return {
25
25
  *[Symbol.iterator]() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectionx/process",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "author": "engineering@frontside.com",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,12 +10,34 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
13
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
37
  };
16
38
  Object.defineProperty(exports, "__esModule", { value: true });
17
39
  exports.exec = exec;
18
- const shellwords_1 = require("shellwords");
40
+ const shellwords = __importStar(require("shellwords"));
19
41
  const effection_1 = require("effection");
20
42
  const posix_js_1 = require("./exec/posix.js");
21
43
  const win32_js_1 = require("./exec/win32.js");
@@ -36,7 +58,7 @@ const createProcess = (cmd, opts) => {
36
58
  * forever, consider using `daemon()`
37
59
  */
38
60
  function exec(command, options = {}) {
39
- let [cmd, ...args] = options.shell ? [command] : (0, shellwords_1.split)(command);
61
+ let [cmd, ...args] = options.shell ? [command] : shellwords.split(command);
40
62
  let opts = { ...options, arguments: args.concat(options.arguments || []) };
41
63
  return {
42
64
  *[Symbol.iterator]() {