New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zx

Package Overview
Dependencies
Maintainers
2
Versions
166
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 8.2.3 to 8.2.4-dev.c8ca866

1

build/cli.d.ts

@@ -13,4 +13,3 @@ #!/usr/bin/env node

export declare function transformMarkdown(buf: Buffer): string;
export declare function getVersion(): string;
export declare function isMain(metaurl?: string, scriptpath?: string): boolean;
export declare function normalizeExt(ext?: string): string | undefined;

@@ -7,3 +7,2 @@ #!/usr/bin/env node

argv,
getVersion,
importPath,

@@ -23,3 +22,2 @@ injectGlobalRequire,

argv,
getVersion,
importPath,

@@ -26,0 +24,0 @@ injectGlobalRequire,

16

build/core.d.ts

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

import { type StdioOptions, type IOType, spawn, spawnSync } from 'node:child_process';
import { type StdioOptions, type IOType, spawn, spawnSync, type ChildProcess } from 'node:child_process';
import { type Encoding } from 'node:crypto';

@@ -23,3 +23,3 @@ import { type Readable, type Writable } from 'node:stream';

env: NodeJS.ProcessEnv;
shell: string | boolean;
shell: string | true;
nothrow: boolean;

@@ -53,6 +53,2 @@ prefix: string;

type Resolve = (out: ProcessOutput) => void;
export interface ProcessPromise extends Promise<ProcessOutput> {
then<R = ProcessOutput, E = ProcessOutput>(onfulfilled?: ((value: ProcessOutput) => PromiseLike<R> | R) | undefined | null, onrejected?: ((reason: ProcessOutput) => PromiseLike<E> | E) | undefined | null): Promise<R | E>;
catch<T = ProcessOutput>(onrejected?: ((reason: ProcessOutput) => PromiseLike<T> | T) | undefined | null): Promise<ProcessOutput | T>;
}
export declare class ProcessPromise extends Promise<ProcessOutput> {

@@ -93,3 +89,3 @@ private _command;

get cmd(): string;
get child(): import("child_process").ChildProcess | undefined;
get child(): ChildProcess | undefined;
get stdin(): Writable;

@@ -115,2 +111,5 @@ get stdout(): Readable;

isNothrow(): boolean;
then<R = ProcessOutput, E = ProcessOutput>(onfulfilled?: ((value: ProcessOutput) => PromiseLike<R> | R) | undefined | null, onrejected?: ((reason: ProcessOutput) => PromiseLike<E> | E) | undefined | null): Promise<R | E>;
catch<T = ProcessOutput>(onrejected?: ((reason: ProcessOutput) => PromiseLike<T> | T) | undefined | null): Promise<ProcessOutput | T>;
[Symbol.asyncIterator](): AsyncGenerator<string, void, unknown>;
private writable;

@@ -148,3 +147,3 @@ private emit;

buffer(): Buffer;
blob(type?: string): import("buffer").Blob;
blob(type?: string): Blob;
text(encoding?: Encoding): string;

@@ -191,2 +190,3 @@ lines(): string[];

export declare function log(entry: LogEntry): void;
export declare function resolveDefaults(defs: Options, prefix?: string, env?: NodeJS.ProcessEnv): Options;
export {};

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

log,
resolveDefaults,
syncProcessCwd,

@@ -27,2 +28,3 @@ useBash,

log,
resolveDefaults,
syncProcessCwd,

@@ -29,0 +31,0 @@ useBash,

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

export declare function installDeps(dependencies: Record<string, string>, prefix?: string): Promise<void>;
/**
* Install npm dependencies
* @param dependencies object of dependencies
* @param prefix path to the directory where npm should install the dependencies
* @param registry custom npm registry URL when installing dependencies
*/
export declare function installDeps(dependencies: Record<string, string>, prefix?: string, registry?: string): Promise<void>;
export declare function parseDeps(content: Buffer): Record<string, string>;

@@ -5,2 +5,4 @@ import { ProcessPromise } from './core.js';

export { minimist, chalk, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export declare const VERSION: any;
export declare const version: any;
export { type Duration, quote, quotePowerShell, tempdir, tempdir as tmpdir, tempfile, tempfile as tmpfile, } from './util.js';

@@ -7,0 +9,0 @@ /**

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

const {
VERSION,
YAML,

@@ -21,2 +22,3 @@ chalk,

tmpfile,
version,
which,

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

log,
resolveDefaults,
syncProcessCwd,

@@ -50,2 +53,3 @@ useBash,

export {
VERSION,
YAML,

@@ -66,2 +70,3 @@ chalk,

tmpfile,
version,
which,

@@ -75,2 +80,3 @@ $,

log,
resolveDefaults,
syncProcessCwd,

@@ -77,0 +83,0 @@ useBash,

@@ -22,1 +22,3 @@ export { isStringLiteral } from './vendor-core.js';

export declare const proxyOverride: <T extends object>(origin: T, ...fallbacks: any) => T;
export declare const camelToSnake: (str: string) => string;
export declare const snakeToCamel: (str: string) => string;

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

const {
camelToSnake,
errnoMessage,

@@ -21,2 +22,3 @@ exitCodeInfo,

randomId,
snakeToCamel,
tempdir,

@@ -26,2 +28,3 @@ tempfile

export {
camelToSnake,
errnoMessage,

@@ -42,2 +45,3 @@ exitCodeInfo,

randomId,
snakeToCamel,
tempdir,

@@ -44,0 +48,0 @@ tempfile

@@ -71,3 +71,3 @@ // Generated by dts-bundle-generator v9.5.1

signal: AbortController["signal"];
shell: string | true | undefined;
shell: string | boolean | undefined;
spawn: typeof cp.spawn;

@@ -85,2 +85,3 @@ spawnSync: typeof cp.spawnSync;

run: (cb: () => void, ctx: TSpawnCtxNormalized) => void;
stack: string;
}

@@ -87,0 +88,0 @@ export declare class VoidStream extends Transform {

{
"name": "zx",
"version": "8.2.3",
"version": "8.2.4-dev.c8ca866",
"description": "A tool for writing better scripts",

@@ -65,9 +65,14 @@ "type": "module",

"fmt:check": "prettier --check .",
"build": "npm run build:js && npm run build:dts",
"build": "npm run build:js && npm run build:dts && npm run build:tests",
"build:js": "node scripts/build-js.mjs --format=cjs --hybrid --entry=src/*.ts && npm run build:vendor",
"build:vendor": "node scripts/build-js.mjs --format=cjs --entry=src/vendor-*.ts --bundle=all",
"build:tests": "node scripts/build-tests.mjs",
"build:dts": "tsc --project tsconfig.prod.json && node scripts/build-dts.mjs",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"pretest": "npm run build",
"test": "npm run test:size && npm run fmt:check && npm run test:unit && npm run test:types && npm run test:license",
"test:it": "node ./test/it/build.test.js",
"test:jsr": "node ./test/it/build-jsr.test.js",
"test:unit": "node ./test/all.test.js",

@@ -101,4 +106,4 @@ "test:coverage": "c8 -x build/deno.js -x build/vendor-extra.cjs -x build/vendor-core.cjs -x build/esblib.cjs -x 'test/**' -x scripts --check-coverage npm run test:unit",

"@webpod/ingrid": "^0.0.0-beta.3",
"@webpod/ps": "^0.0.0-beta.11",
"c8": "^10.1.2",
"@webpod/ps": "^0.0.0-beta.12",
"c8": "^10.1.3",
"chalk": "^5.3.0",

@@ -117,7 +122,9 @@ "create-require": "^1.1.1",

"fs-extra": "^11.2.0",
"get-port": "^7.1.0",
"globby": "^14.0.2",
"jsr": "^0.13.2",
"madge": "^8.0.0",
"minimist": "^1.2.8",
"node-fetch-native": "^1.6.4",
"prettier": "^3.3.3",
"prettier": "^3.4.2",
"size-limit": "^11.1.6",

@@ -127,6 +134,7 @@ "ts-node": "^10.9.2",

"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"vitepress": "^1.5.0",
"which": "^5.0.0",
"yaml": "^2.5.1",
"zurk": "^0.6.2"
"yaml": "~2.5.1",
"zurk": "^0.9.3"
},

@@ -133,0 +141,0 @@ "publishConfig": {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc