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

zx

Package Overview
Dependencies
Maintainers
2
Versions
156
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.6eb540f

18

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<D>;
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>;

@@ -95,0 +101,0 @@ text(encoding?: Encoding): Promise<string>;

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

import type { Writable } from 'node:stream';
export { isStringLiteral } from './vendor-core.js';

@@ -21,1 +22,2 @@ export declare function tempdir(prefix?: string): string;

export declare const once: <T extends (...args: any[]) => any>(fn: T) => (...args: Parameters<T>) => ReturnType<T>;
export declare const promisifyStream: <S extends Writable>(stream: S) => S & PromiseLike<S>;

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

preferLocalBin,
promisifyStream,
quote,

@@ -34,2 +35,3 @@ quotePowerShell,

preferLocalBin,
promisifyStream,
quote,

@@ -36,0 +38,0 @@ quotePowerShell,

@@ -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.6eb540f",
"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",

@@ -87,4 +88,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",

"test:smoke:mjs": "node ./test/smoke/node.test.mjs",
"test:smoke:deno": "deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run",
"version": "cat package.json | fx .version"
"test:smoke:deno": "deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run"
},

@@ -96,3 +96,3 @@ "optionalDependencies": {

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

@@ -103,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",

@@ -110,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",

@@ -120,3 +120,2 @@ "esbuild-plugin-extract-helpers": "^0.0.6",

"fs-extra": "^11.2.0",
"fx": "*",
"globby": "^14.0.2",

@@ -127,10 +126,10 @@ "madge": "^8.0.0",

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

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

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