Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zx

Package Overview
Dependencies
Maintainers
2
Versions
154
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.1.9 to 8.2.0-dev.7ffb44e

19

build/core.d.ts

@@ -6,3 +6,3 @@ import { type StdioOptions, type IOType, spawn, spawnSync } from 'node:child_process';

import { type RequestInfo, type RequestInit, type TSpawnStore } from './vendor-core.js';
import { type Duration, noop, quote } from './util.js';
import { type Duration, quote } from './util.js';
declare const CWD: unique symbol;

@@ -38,2 +38,3 @@ declare const SYNC: unique symbol;

killSignal?: NodeJS.Signals;
halt?: boolean;
}

@@ -63,4 +64,5 @@ export declare const defaults: Options;

private _timeoutSignal?;
private _timeoutId?;
private _resolved;
private _halted;
private _halted?;
private _piped;

@@ -71,9 +73,14 @@ private _zurk;

private _resolve;
_prerun: typeof noop;
_postrun: typeof noop;
_bind(cmd: string, from: string, resolve: Resolve, reject: Resolve, options: Options): void;
run(): ProcessPromise;
pipe(dest: Writable | ProcessPromise | TemplateStringsArray, ...args: any[]): ProcessPromise;
pipe(dest: TemplateStringsArray, ...args: any[]): ProcessPromise;
pipe<D extends Writable>(dest: D): D & PromiseLike<void>;
pipe<D extends ProcessPromise>(dest: D): D;
abort(reason?: string): void;
kill(signal?: NodeJS.Signals | undefined): Promise<void>;
/**
* @deprecated Use $({halt: true})`cmd` instead.
*/
halt(): this;
get pid(): number | undefined;
get cmd(): string;

@@ -92,3 +99,2 @@ get child(): import("child_process").ChildProcess | undefined;

timeout(d: Duration, signal?: NodeJS.Signals | undefined): ProcessPromise;
halt(): ProcessPromise;
json<T = any>(): Promise<T>;

@@ -105,2 +111,3 @@ text(encoding?: Encoding): Promise<string>;

catch<T = ProcessOutput>(onrejected?: ((reason: ProcessOutput) => PromiseLike<T> | T) | undefined | null): Promise<ProcessOutput | T>;
private static promisifyStream;
}

@@ -107,0 +114,0 @@ type GettersRecord<T extends Record<any, any>> = {

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

import EventEmitter from 'node:events';
import { Readable, Stream, Writable } from 'node:stream';
import { Readable, Stream, Transform, Writable } from 'node:stream';

@@ -86,2 +86,5 @@ export declare const isStringLiteral: (pieces: any, ...rest: any[]) => pieces is TemplateStringsArray;

}
export declare class VoidStream extends Transform {
_transform(chunk: any, _: string, cb: (err?: Error) => void): void;
}
export declare const exec: (ctx: TSpawnCtx) => TSpawnCtxNormalized;

@@ -88,0 +91,0 @@ type ColorSupportLevel = 0 | 1 | 2 | 3;

"use strict";
import { require } from './deno.js'
const {
VoidStream,
buildCmd,

@@ -12,2 +13,3 @@ chalk,

export {
VoidStream,
buildCmd,

@@ -14,0 +16,0 @@ chalk,

"use strict";
import { require } from './deno.js'
const {
VoidStream,
buildCmd,

@@ -59,2 +60,3 @@ chalk,

export {
VoidStream,
buildCmd,

@@ -61,0 +63,0 @@ chalk,

{
"name": "zx",
"version": "8.1.9",
"version": "8.2.0-dev.7ffb44e",
"description": "A tool for writing better scripts",

@@ -79,2 +79,3 @@ "type": "module",

"test:size": "size-limit",
"test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts",
"test:smoke:tsx": "tsx test/smoke/ts.test.ts",

@@ -95,3 +96,3 @@ "test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",

"devDependencies": {
"@size-limit/file": "^11.1.5",
"@size-limit/file": "^11.1.6",
"@types/fs-extra": "^11.0.4",

@@ -102,3 +103,3 @@ "@types/minimist": "^1.2.5",

"@webpod/ingrid": "^0.0.0-beta.3",
"@webpod/ps": "^0.0.0-beta.8",
"@webpod/ps": "^0.0.0-beta.10",
"c8": "^10.1.2",

@@ -109,4 +110,4 @@ "chalk": "^5.3.0",

"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.23.1",
"esbuild-node-externals": "^1.14.0",
"esbuild": "^0.24.0",
"esbuild-node-externals": "^1.15.0",
"esbuild-plugin-entry-chunks": "^0.1.15",

@@ -125,10 +126,10 @@ "esbuild-plugin-extract-helpers": "^0.0.6",

"prettier": "^3.3.3",
"size-limit": "^11.1.5",
"size-limit": "^11.1.6",
"ts-node": "^10.9.2",
"tsd": "^0.31.2",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"which": "^4.0.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"which": "^5.0.0",
"yaml": "^2.5.1",
"zurk": "^0.4.4"
"zurk": "^0.6.0"
},

@@ -135,0 +136,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

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