Socket
Socket
Sign inDemoInstall

zx

Package Overview
Dependencies
3
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0 to 8.0.1-dev.d397293

9

build/core.d.ts

@@ -1,2 +0,2 @@

import { spawn, spawnSync, StdioNull, StdioPipe } from 'node:child_process';
import { spawn, spawnSync, StdioOptions, IOType } from 'node:child_process';
import { Readable, Writable } from 'node:stream';

@@ -21,3 +21,5 @@ import { inspect } from 'node:util';

ac?: AbortController;
signal?: AbortSignal;
input?: string | Buffer | Readable | ProcessOutput | ProcessPromise;
stdio: StdioOptions;
verbose: boolean;

@@ -43,3 +45,2 @@ sync: boolean;

type Resolve = (out: ProcessOutput) => void;
type IO = StdioPipe | StdioNull;
export declare class ProcessPromise extends Promise<ProcessOutput> {

@@ -51,3 +52,3 @@ private _command;

private _snapshot;
private _stdio;
private _stdio?;
private _nothrow?;

@@ -76,3 +77,3 @@ private _quiet?;

kill(signal?: string): Promise<void>;
stdio(stdin: IO, stdout?: IO, stderr?: IO): ProcessPromise;
stdio(stdin: IOType, stdout?: IOType, stderr?: IOType): ProcessPromise;
nothrow(): ProcessPromise;

@@ -79,0 +80,0 @@ quiet(): ProcessPromise;

@@ -47,2 +47,3 @@ // src/core.ts

shell: true,
stdio: ["inherit", "pipe", "pipe"],
nothrow: false,

@@ -143,3 +144,2 @@ quiet: false,

this._snapshot = getStore();
this._stdio = ["inherit", "pipe", "pipe"];
this._timeoutSignal = "SIGTERM";

@@ -177,5 +177,6 @@ this._resolved = false;

input,
cmd: $2.prefix + this._command + $2.postfix,
cmd: $2.prefix + self._command + $2.postfix,
cwd: $2.cwd ?? $2[processCwd],
ac: $2.ac,
signal: $2.signal,
shell: typeof $2.shell === "string" ? $2.shell : true,

@@ -185,3 +186,3 @@ env: $2.env,

spawnSync: $2.spawnSync,
stdio: this._stdio,
stdio: self._stdio ?? $2.stdio,
sync: $2[syncExec],

@@ -445,2 +446,6 @@ detached: !isWin,

} catch (e) {
try {
process.kill(+pid, signal);
} catch (e2) {
}
}

@@ -447,0 +452,0 @@ }

@@ -7,22 +7,2 @@ import { type Duration } from './util.js';

export declare function updateArgv(args: string[]): void;
export declare const globby: typeof import("globby").globby & {
globby: typeof import("globby").globby;
globbySync: typeof import("globby").globbySync;
globbyStream: typeof import("globby").globbyStream;
generateGlobTasksSync: typeof import("globby").generateGlobTasksSync;
generateGlobTasks: typeof import("globby").generateGlobTasks;
isGitIgnoredSync: typeof import("globby").isGitIgnoredSync;
isGitIgnored: typeof import("globby").isGitIgnored;
isDynamicPattern: typeof import("globby").isDynamicPattern;
};
export declare const glob: typeof import("globby").globby & {
globby: typeof import("globby").globby;
globbySync: typeof import("globby").globbySync;
globbyStream: typeof import("globby").globbyStream;
generateGlobTasksSync: typeof import("globby").generateGlobTasksSync;
generateGlobTasks: typeof import("globby").generateGlobTasks;
isGitIgnoredSync: typeof import("globby").isGitIgnoredSync;
isGitIgnored: typeof import("globby").isGitIgnored;
isDynamicPattern: typeof import("globby").isDynamicPattern;
};
export declare function sleep(duration: Duration): Promise<unknown>;

@@ -29,0 +9,0 @@ export declare function fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;

@@ -9,3 +9,2 @@ // src/goods.ts

minimist,
globbyModule,
nodeFetch

@@ -20,6 +19,2 @@ } from "./vendor.js";

}
var globby = Object.assign(function globby2(patterns, options) {
return globbyModule.globby(patterns, options);
}, globbyModule);
var glob = globby;
function sleep(duration) {

@@ -155,4 +150,2 @@ return new Promise((resolve) => {

fetch,
glob,
globby,
os,

@@ -159,0 +152,0 @@ default2 as path,

import { ProcessPromise } from './core.js';
export * from './core.js';
export * from './goods.js';
export { minimist, chalk, fs, which, YAML, ps } from './vendor.js';
export { minimist, chalk, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export { type Duration, quote, quotePowerShell } from './util.js';

@@ -6,0 +6,0 @@ /**

// src/index.ts
export * from "./core.js";
export * from "./goods.js";
import { minimist, chalk, fs, which, YAML, ps } from "./vendor.js";
import {
minimist,
chalk,
fs,
which,
YAML,
ps,
glob,
glob as glob2
} from "./vendor.js";
import { quote, quotePowerShell } from "./util.js";

@@ -16,2 +25,4 @@ function nothrow(promise) {

fs,
glob,
glob2 as globby,
minimist,

@@ -18,0 +29,0 @@ nothrow,

@@ -315,2 +315,3 @@ // Generated by dts-bundle-generator v9.3.1

declare function isGitIgnoredSync(options?: GitignoreOptions): GlobbyFilterFunction;
declare function convertPathToPattern(source: string): FastGlob.Pattern;
declare const fetch$1: typeof globalThis.fetch;

@@ -355,7 +356,3 @@ type TQuote = (input: string) => string;

input: TInput | null;
stdio: [
"pipe",
"pipe",
"pipe"
];
stdio: cp.StdioOptions;
detached: boolean;

@@ -366,2 +363,3 @@ env: Record<string, string | undefined>;

ac: AbortController;
signal: AbortController["signal"];
shell: string | true | undefined;

@@ -724,3 +722,3 @@ spawn: typeof cp.spawn;

kill: (pid: string | number, opts?: string | number | TPsKillOptions | TPsNext | undefined, next?: TPsNext | undefined) => Promise<void>;
tree: (opts: string | number | TPsTreeOpts, cb?: TPsLookupCallback) => Promise<TPsLookupEntry[]>;
tree: (opts?: string | number | TPsTreeOpts | undefined, cb?: TPsLookupCallback) => Promise<TPsLookupEntry[]>;
};

@@ -730,2 +728,3 @@ export type RequestInfo = Parameters<typeof fetch$1>[0];

export declare const globbyModule: {
convertPathToPattern: typeof convertPathToPattern;
globby: typeof globby;

@@ -740,2 +739,13 @@ globbySync: typeof globbySync;

};
export declare const glob: typeof globby & {
convertPathToPattern: typeof convertPathToPattern;
globby: typeof globby;
globbySync: typeof globbySync;
globbyStream: typeof globbyStream;
generateGlobTasksSync: typeof generateGlobTasksSync;
generateGlobTasks: typeof generateGlobTasks;
isGitIgnoredSync: typeof isGitIgnoredSync;
isGitIgnored: typeof isGitIgnored;
isDynamicPattern: typeof isDynamicPattern;
};
export declare const YAML: {

@@ -748,3 +758,2 @@ parse(text: string): any;

export {
Options$1 as GlobbyOptions,
RequestInit$1 as RequestInit,

@@ -751,0 +760,0 @@ _default as ps,

{
"name": "zx",
"version": "8.0.0",
"version": "8.0.1-dev.d397293",
"description": "A tool for writing better scripts",

@@ -56,3 +56,3 @@ "type": "module",

"@types/fs-extra": "^11.0.4",
"@types/node": ">=20.12.4"
"@types/node": ">=20.12.5"
},

@@ -64,3 +64,3 @@ "devDependencies": {

"@types/which": "^3.0.3",
"@webpod/ps": "^0.0.0-beta.2",
"@webpod/ps": "^0.0.0-beta.3",
"@webpod/ingrid": "^0.0.0-beta.3",

@@ -85,3 +85,3 @@ "c8": "^9.1.0",

"yaml": "^2.4.1",
"zurk": "^0.0.32"
"zurk": "^0.1.2"
},

@@ -88,0 +88,0 @@ "publishConfig": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc