Socket
Socket
Sign inDemoInstall

zx

Package Overview
Dependencies
Maintainers
2
Versions
146
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.0-dev.69e7368 to 8.1.0-dev.ae55549

14

build/core.d.ts
import { spawn, spawnSync, StdioOptions, IOType } from 'node:child_process';
import { type Encoding } from 'node:crypto';
import { Readable, Writable } from 'node:stream';

@@ -36,2 +37,3 @@ import { inspect } from 'node:util';

detached: boolean;
preferLocal: boolean;
spawn: typeof spawn;

@@ -74,2 +76,7 @@ spawnSync: typeof spawnSync;

get exitCode(): Promise<number | null>;
json<T = any>(): Promise<T>;
text(encoding?: Encoding): Promise<string>;
lines(): Promise<string[]>;
buffer(): Promise<Buffer>;
blob(type?: string): Promise<Blob>;
then<R = ProcessOutput, E = ProcessOutput>(onfulfilled?: ((value: ProcessOutput) => PromiseLike<R> | R) | undefined | null, onrejected?: ((reason: ProcessOutput) => PromiseLike<E> | E) | undefined | null): Promise<R | E>;

@@ -79,2 +86,3 @@ catch<T = ProcessOutput>(onrejected?: ((reason: ProcessOutput) => PromiseLike<T> | T) | undefined | null): Promise<ProcessOutput | T>;

abort(reason?: string): void;
get signal(): AbortSignal | undefined;
kill(signal?: string): Promise<void>;

@@ -99,5 +107,7 @@ stdio(stdin: IOType, stdout?: IOType, stderr?: IOType): ProcessPromise;

toString(): string;
json(): any;
json<T = any>(): T;
buffer(): Buffer;
text(): string;
blob(type?: string): import("buffer").Blob;
text(encoding?: Encoding): string;
lines(): string[];
valueOf(): string;

@@ -104,0 +114,0 @@ get stdout(): string;

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

export declare function isString(obj: any): boolean;
export declare function preferNmBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): {
[x: string]: string | undefined;
TZ?: string | undefined;
};
export declare function normalizeMultilinePieces(pieces: TemplateStringsArray): TemplateStringsArray;

@@ -8,0 +12,0 @@ export declare function noquote(): string;

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

parseDuration,
preferNmBin,
quote,

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

parseDuration,
preferNmBin,
quote,

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

2

package.json
{
"name": "zx",
"version": "8.1.0-dev.69e7368",
"version": "8.1.0-dev.ae55549",
"description": "A tool for writing better scripts",

@@ -5,0 +5,0 @@ "type": "module",

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