You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

zx

Package Overview
Dependencies
Maintainers
0
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zx - npm Package Compare versions

Comparing version

to
8.4.1-dev.be335f1

build/log.d.ts

11

build/core.d.ts

@@ -9,4 +9,9 @@ /// <reference types="node" />

import { type TSpawnStore } from './vendor-core.js';
import { type Duration, log, quote } from './util.js';
export { log, type LogEntry } from './util.js';
import { type Duration, quote } from './util.js';
import { log } from './log.js';
export { default as path } from 'node:path';
export * as os from 'node:os';
export { log, type LogEntry } from './log.js';
export { chalk, which, ps } from './vendor-core.js';
export { quote, quotePowerShell } from './util.js';
declare const CWD: unique symbol;

@@ -179,2 +184,2 @@ declare const SYNC: unique symbol;

export declare function kill(pid: number, signal?: NodeJS.Signals | undefined): Promise<void>;
export declare function resolveDefaults(defs?: Options, prefix?: string, env?: NodeJS.ProcessEnv): Options;
export declare function resolveDefaults(defs?: Options, prefix?: string, env?: NodeJS.ProcessEnv, allowed?: Set<string>): Options;

@@ -9,5 +9,11 @@ "use strict";

cd,
chalk,
defaults,
kill,
log,
os,
path,
ps,
quote,
quotePowerShell,
resolveDefaults,

@@ -18,2 +24,3 @@ syncProcessCwd,

usePwsh,
which,
within

@@ -26,5 +33,11 @@ } = globalThis.Deno ? globalThis.require("./core.cjs") : __module__

cd,
chalk,
defaults,
kill,
log,
os,
path,
ps,
quote,
quotePowerShell,
resolveDefaults,

@@ -35,4 +48,5 @@ syncProcessCwd,

usePwsh,
which,
within
}
import { type Duration } from './util.js';
import { type RequestInfo, type RequestInit, minimist } from './vendor.js';
export { default as path } from 'node:path';
export * as os from 'node:os';
type ArgvOpts = minimist.Opts & {

@@ -9,7 +7,9 @@ camelCase?: boolean;

};
export declare const parseArgv: (args?: string[], opts?: ArgvOpts) => minimist.ParsedArgs;
export declare const parseArgv: (args?: string[], opts?: ArgvOpts, defs?: Record<string, any>) => minimist.ParsedArgs;
export declare function updateArgv(args?: string[], opts?: ArgvOpts): void;
export declare const argv: minimist.ParsedArgs;
export declare function sleep(duration: Duration): Promise<void>;
export declare function fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
export declare function fetch(url: RequestInfo, init?: RequestInit): Promise<Response> & {
pipe: <D>(dest: D) => D;
};
export declare function echo(...args: any[]): void;

@@ -25,1 +25,2 @@ export declare function question(query?: string, options?: {

export declare function spinner<T>(title: string, callback: () => T): Promise<T>;
export {};

@@ -9,5 +9,3 @@ "use strict";

fetch,
os,
parseArgv,
path,
question,

@@ -25,5 +23,3 @@ retry,

fetch,
os,
parseArgv,
path,
question,

@@ -30,0 +26,0 @@ retry,

@@ -7,3 +7,3 @@ /// <reference types="node" />

export * from './goods.js';
export { minimist, chalk, dotenv, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export { minimist, dotenv, fs, YAML, glob, glob as globby } from './vendor.js';
export declare const VERSION: string;

@@ -10,0 +10,0 @@ export declare const version: string;

@@ -7,3 +7,2 @@ "use strict";

YAML,
chalk,
dotenv,

@@ -15,3 +14,2 @@ fs,

nothrow,
ps,
quiet,

@@ -25,3 +23,2 @@ quote,

version,
which,
$,

@@ -31,5 +28,9 @@ ProcessOutput,

cd,
chalk,
defaults,
kill,
log,
os,
path,
ps,
resolveDefaults,

@@ -40,2 +41,3 @@ syncProcessCwd,

usePwsh,
which,
within,

@@ -46,5 +48,3 @@ argv,

fetch,
os,
parseArgv,
path,
question,

@@ -60,3 +60,2 @@ retry,

YAML,
chalk,
dotenv,

@@ -68,3 +67,2 @@ fs,

nothrow,
ps,
quiet,

@@ -78,3 +76,2 @@ quote,

version,
which,
$,

@@ -84,5 +81,9 @@ ProcessOutput,

cd,
chalk,
defaults,
kill,
log,
os,
path,
ps,
resolveDefaults,

@@ -93,2 +94,3 @@ syncProcessCwd,

usePwsh,
which,
within,

@@ -99,5 +101,3 @@ argv,

fetch,
os,
parseArgv,
path,
question,

@@ -104,0 +104,0 @@ retry,

import { type Mode } from 'node:fs';
import { type RequestInfo, type RequestInit, type TSpawnStoreChunks } from './vendor-core.js';
import { type TSpawnStoreChunks } from './vendor-core.js';
export { isStringLiteral } from './vendor-core.js';

@@ -24,39 +24,2 @@ export declare function tempdir(prefix?: string, mode?: Mode): string;

export declare function parseDuration(d: Duration): number;
export type LogEntry = {
verbose?: boolean;
} & ({
kind: 'cmd';
cmd: string;
id: string;
} | {
kind: 'stdout' | 'stderr';
data: Buffer;
id: string;
} | {
kind: 'end';
exitCode: number | null;
signal: NodeJS.Signals | null;
duration: number;
error: null | Error;
id: string;
} | {
kind: 'cd';
dir: string;
} | {
kind: 'fetch';
url: RequestInfo;
init?: RequestInit;
} | {
kind: 'retry';
attempt: number;
total: number;
delay: number;
exception: unknown;
error?: string;
} | {
kind: 'custom';
data: any;
});
export declare function log(entry: LogEntry): void;
export declare function formatCmd(cmd?: string): string;
export declare const once: <T extends (...args: any[]) => any>(fn: T) => (...args: Parameters<T>) => ReturnType<T>;

@@ -63,0 +26,0 @@ export declare const proxyOverride: <T extends object>(origin: T, ...fallbacks: any) => T;

@@ -7,3 +7,2 @@ "use strict";

bufToString,
formatCmd,
getLast,

@@ -14,3 +13,2 @@ getLines,

isStringLiteral,
log,
noop,

@@ -32,3 +30,2 @@ once,

bufToString,
formatCmd,
getLast,

@@ -39,3 +36,2 @@ getLines,

isStringLiteral,
log,
noop,

@@ -42,0 +38,0 @@ once,

@@ -411,6 +411,7 @@ // Generated by dts-bundle-generator v9.5.1

};
export declare const createRequire: (filename: string | URL$1) => NodeRequire;
export declare const createRequire: (filename: string | URL$1) => NodeJS.Require;
export declare const globbyModule: {
convertPathToPattern: typeof convertPathToPattern;
globby: typeof globby;
sync: typeof globbySync;
globbySync: typeof globbySync;

@@ -417,0 +418,0 @@ globbyStream: typeof globbyStream;

{
"name": "zx",
"version": "8.4.0",
"version": "8.4.1-dev.be335f1",
"description": "A tool for writing better scripts",

@@ -86,2 +86,2 @@ "type": "module",

"license": "Apache-2.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet