Commit 3ca9cd8
Changed files (6)
build/cli.js
build/core.cjs
@@ -483,7 +483,7 @@ var _ProcessPromise = class _ProcessPromise extends Promise {
});
this._stage = "initial";
this._id = (0, import_util.randomId)();
- this._command = "";
+ this._cmd = "";
this._from = "";
this._snapshot = getStore();
this._piped = false;
@@ -498,7 +498,7 @@ var _ProcessPromise = class _ProcessPromise extends Promise {
this.writable = true;
if (boundCtxs.length) {
const [cmd, from, snapshot] = boundCtxs.pop();
- this._command = cmd;
+ this._cmd = cmd;
this._from = from;
this._snapshot = __spreadValues({}, snapshot);
this._resolve = resolve;
@@ -529,7 +529,6 @@ var _ProcessPromise = class _ProcessPromise extends Promise {
cmd: self.fullCmd,
cwd: (_d = $2.cwd) != null ? _d : $2[CWD],
input: (_f = (_e = $2.input) == null ? void 0 : _e.stdout) != null ? _f : $2.input,
- ac: self.ac,
signal: self.signal,
shell: (0, import_util.isString)($2.shell) ? $2.shell : true,
env: $2.env,
@@ -545,7 +544,7 @@ var _ProcessPromise = class _ProcessPromise extends Promise {
((_b2 = (_a2 = self.cmd).then) == null ? void 0 : _b2.call(
_a2,
(_cmd) => {
- self._command = _cmd;
+ self._cmd = _cmd;
ctx.cmd = self.fullCmd;
cb();
},
@@ -662,7 +661,7 @@ var _ProcessPromise = class _ProcessPromise extends Promise {
return (_a = this.child) == null ? void 0 : _a.pid;
}
get cmd() {
- return this._command;
+ return this._cmd;
}
get fullCmd() {
return (this._snapshot.prefix || "") + this.cmd + (this._snapshot.postfix || "");
build/core.d.ts
@@ -71,7 +71,7 @@ type PipeMethod = {
export declare class ProcessPromise extends Promise<ProcessOutput> {
private _stage;
private _id;
- private _command;
+ private _cmd;
private _from;
private _snapshot;
private _stdio?;
src/core.ts
@@ -232,7 +232,7 @@ type PipeMethod = {
export class ProcessPromise extends Promise<ProcessOutput> {
private _stage: ProcessStage = 'initial'
private _id = randomId()
- private _command = ''
+ private _cmd = ''
private _from = ''
private _snapshot = getStore()
private _stdio?: StdioOptions
@@ -262,7 +262,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
if (boundCtxs.length) {
const [cmd, from, snapshot] = boundCtxs.pop()!
- this._command = cmd
+ this._cmd = cmd
this._from = from
this._snapshot = { ...snapshot }
this._resolve = resolve!
@@ -298,7 +298,6 @@ export class ProcessPromise extends Promise<ProcessOutput> {
cmd: self.fullCmd,
cwd: $.cwd ?? $[CWD],
input: ($.input as ProcessPromise | ProcessOutput)?.stdout ?? $.input,
- ac: self.ac,
signal: self.signal,
shell: isString($.shell) ? $.shell : true,
env: $.env,
@@ -312,7 +311,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
run(cb, ctx){
(self.cmd as unknown as Promise<string>).then?.(
_cmd => {
- self._command = _cmd
+ self._cmd = _cmd
ctx.cmd = self.fullCmd
cb()
},
@@ -470,7 +469,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
}
get cmd(): string {
- return this._command
+ return this._cmd
}
get fullCmd(): string {
test/core.test.js
@@ -530,7 +530,7 @@ describe('core', () => {
ProcessPromise.disarm(p, false)
assert.equal(p.stage, 'initial')
- p._command = 'echo foo'
+ p._cmd = 'echo foo'
p._from = 'test'
p._resolve = resolve
p._reject = reject
.size-limit.json
@@ -15,7 +15,7 @@
"README.md",
"LICENSE"
],
- "limit": "121.85 kB",
+ "limit": "121.801 kB",
"brotli": false,
"gzip": false
},
@@ -29,7 +29,7 @@
"build/globals.js",
"build/deno.js"
],
- "limit": "812.65 kB",
+ "limit": "812.60 kB",
"brotli": false,
"gzip": false
},
@@ -62,7 +62,7 @@
"README.md",
"LICENSE"
],
- "limit": "868.70 kB",
+ "limit": "868.65 kB",
"brotli": false,
"gzip": false
}