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-lite-dev.be335f1

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 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,

{
"name": "zx",
"version": "8.4.0",
"version": "8.4.1-lite-dev.be335f1",
"description": "A tool for writing better scripts",
"type": "module",
"main": "./build/index.cjs",
"types": "./build/index.d.ts",
"main": "./build/core.cjs",
"types": "./build/core.d.ts",
"typesVersions": {
"*": {
".": [
"./build/index.d.ts"
],
"globals": [
"./build/globals.d.ts"
],
"cli": [
"./build/cli.d.ts"
],
"core": [
"./build/core.d.ts"

@@ -26,20 +17,2 @@ ]

".": {
"types": "./build/index.d.ts",
"import": "./build/index.js",
"require": "./build/index.cjs",
"default": "./build/index.js"
},
"./globals": {
"types": "./build/globals.d.ts",
"import": "./build/globals.js",
"require": "./build/globals.cjs",
"default": "./build/globals.js"
},
"./cli": {
"types": "./build/cli.d.ts",
"import": "./build/cli.js",
"require": "./build/cli.cjs",
"default": "./build/cli.js"
},
"./core": {
"types": "./build/core.d.ts",

@@ -55,6 +28,14 @@ "import": "./build/core.js",

},
"man": "./man/zx.1",
"files": [
"build",
"man"
"build/core.cjs",
"build/core.js",
"build/core.d.ts",
"build/deno.js",
"build/esblib.js",
"build/util.cjs",
"build/util.js",
"build/util.d.ts",
"build/vendor-core.cjs",
"build/vendor-core.js",
"build/vendor-core.d.ts"
],

@@ -88,2 +69,2 @@ "engines": {

"license": "Apache-2.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet