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
167
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.3.0 to 8.3.1-dev.4424de7

2

build/cli.d.ts

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

export declare function injectGlobalRequire(origin: string): void;
export declare function transformMarkdown(buf: Buffer): string;
export declare function transformMarkdown(buf: Buffer | string): string;
export declare function isMain(metaurl?: string, scriptpath?: string): boolean;
export declare function normalizeExt(ext?: string): string | undefined;
#!/usr/bin/env node
"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./cli.cjs"
const {
startRepl,
argv,

@@ -19,5 +18,4 @@ importPath,

writeAndImport
} = __module__
} = globalThis.Deno ? globalThis.require("./cli.cjs") : __module__
export {
startRepl,
argv,

@@ -24,0 +22,0 @@ importPath,

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

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

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

export declare class ProcessPromise extends Promise<ProcessOutput> {
private _id;
private _command;

@@ -84,4 +85,3 @@ private _from;

pipe: PipeMethod & {
stdout: PipeMethod;
stderr: PipeMethod;
[key in keyof TSpawnStore]: PipeMethod;
};

@@ -95,4 +95,6 @@ private _pipe;

halt(): this;
get id(): string;
get pid(): number | undefined;
get cmd(): string;
get fullCmd(): string;
get child(): ChildProcess | undefined;

@@ -106,3 +108,3 @@ get stdin(): Writable;

stdio(stdin: IOType, stdout?: IOType, stderr?: IOType): ProcessPromise;
nothrow(): ProcessPromise;
nothrow(v?: boolean): ProcessPromise;
quiet(v?: boolean): ProcessPromise;

@@ -174,2 +176,2 @@ verbose(v?: boolean): ProcessPromise;

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): Options;
"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./core.cjs"

@@ -18,3 +18,3 @@ const {

within
} = __module__
} = globalThis.Deno ? globalThis.require("./core.cjs") : __module__
export {

@@ -21,0 +21,0 @@ $,

import { createRequire } from 'node:module'
import * as process from 'node:process'
const require = createRequire(import.meta.url)
const __filename = new URL(import.meta.url).pathname
const __dirname = new URL('.', import.meta.url).pathname
// prettier-ignore
if (globalThis.Deno) {
globalThis.require = createRequire(import.meta.url)
globalThis.__filename = new URL(import.meta.url).pathname
globalThis.__dirname = new URL('.', import.meta.url).pathname
globalThis.module = new Proxy({}, { set() { return true } })
if (globalThis.Deno) {
globalThis.require = require
globalThis.__filename = __filename
globalThis.__dirname = __dirname
const p = globalThis.process = globalThis.process || process
p.version || (p.version = 'v18.0.0')
p.version || (p.version = { node: '18.0.0' })
p.env || (p.env = globalThis.Deno.env.toObject())
p.argv || (p.argv = [globalThis.Deno.execPath(), globalThis.Deno.mainModule.replace('file://', ''), ...globalThis.Deno.args])
}
export { require, __dirname, __filename }

@@ -8,2 +8,2 @@ /**

export declare function installDeps(dependencies: Record<string, string>, prefix?: string, registry?: string): Promise<void>;
export declare function parseDeps(content: Buffer): Record<string, string>;
export declare function parseDeps(content: Buffer | string): Record<string, string>;
"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./deps.cjs"

@@ -7,3 +7,3 @@ const {

parseDeps
} = __module__
} = globalThis.Deno ? globalThis.require("./deps.cjs") : __module__
export {

@@ -10,0 +10,0 @@ installDeps,

@@ -7,3 +7,2 @@ import * as _ from './index.js';

var ProcessOutput: typeof _.ProcessOutput;
var log: typeof _.log;
var $: typeof _.$;

@@ -14,2 +13,3 @@ var argv: typeof _.argv;

var defaults: typeof _.defaults;
var dotenv: typeof _.dotenv;
var echo: typeof _.echo;

@@ -21,2 +21,3 @@ var expBackoff: typeof _.expBackoff;

var kill: typeof _.kill;
var log: typeof _.log;
var minimist: typeof _.minimist;

@@ -31,2 +32,3 @@ var nothrow: typeof _.nothrow;

var quotePowerShell: typeof _.quotePowerShell;
var resolveDefaults: typeof _.resolveDefaults;
var retry: typeof _.retry;

@@ -45,2 +47,4 @@ var sleep: typeof _.sleep;

var useBash: typeof _.useBash;
var version: typeof _.version;
var VERSION: typeof _.VERSION;
var which: typeof _.which;

@@ -47,0 +51,0 @@ var within: typeof _.within;

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./globals.cjs"
const {
} = __module__
} = globalThis.Deno ? globalThis.require("./globals.cjs") : __module__
export {

@@ -8,0 +8,0 @@

import { type Duration } from './util.js';
import { minimist, type RequestInfo, type RequestInit } from './vendor.js';
import { type RequestInfo, type RequestInit, minimist } from './vendor.js';
export { default as path } from 'node:path';

@@ -4,0 +4,0 @@ export * as os from 'node:os';

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./goods.cjs"

@@ -18,3 +18,3 @@ const {

updateArgv
} = __module__
} = globalThis.Deno ? globalThis.require("./goods.cjs") : __module__
export {

@@ -21,0 +21,0 @@ argv,

import { ProcessPromise } from './core.js';
export * from './core.js';
export * from './goods.js';
export { minimist, chalk, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export { minimist, chalk, dotenv, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export declare const VERSION: any;

@@ -6,0 +6,0 @@ export declare const version: any;

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./index.cjs"

@@ -8,2 +8,3 @@ const {

chalk,
dotenv,
fs,

@@ -50,3 +51,3 @@ glob,

updateArgv
} = __module__
} = globalThis.Deno ? globalThis.require("./index.cjs") : __module__
export {

@@ -56,2 +57,3 @@ VERSION,

chalk,
dotenv,
fs,

@@ -58,0 +60,0 @@ glob,

@@ -0,5 +1,6 @@

import { type Mode } from 'node:fs';
import { type RequestInfo, type RequestInit } from './vendor-core.js';
export { isStringLiteral } from './vendor-core.js';
export declare function tempdir(prefix?: string): string;
export declare function tempfile(name?: string, data?: string | Buffer): string;
export declare function tempdir(prefix?: string, mode?: Mode): string;
export declare function tempfile(name?: string, data?: string | Buffer, mode?: Mode): string;
export declare function noop(): void;

@@ -22,6 +23,15 @@ export declare function identity<T>(v: T): T;

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

@@ -50,3 +60,1 @@ dir: string;

export declare const parseBool: (v: string) => boolean | string;
export declare const parseDotenv: (content: string) => NodeJS.ProcessEnv;
export declare const readEnvFromFile: (filepath: string, env?: NodeJS.ProcessEnv) => NodeJS.ProcessEnv;
"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./util.cjs"

@@ -13,3 +13,2 @@ const {

parseBool,
parseDotenv,
parseDuration,

@@ -21,7 +20,6 @@ preferLocalBin,

randomId,
readEnvFromFile,
tempdir,
tempfile,
toCamelCase
} = __module__
} = globalThis.Deno ? globalThis.require("./util.cjs") : __module__
export {

@@ -36,3 +34,2 @@ formatCmd,

parseBool,
parseDotenv,
parseDuration,

@@ -44,3 +41,2 @@ preferLocalBin,

randomId,
readEnvFromFile,
tempdir,

@@ -47,0 +43,0 @@ tempfile,

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

import { Buffer } from 'node:buffer';
import * as cp from 'node:child_process';

@@ -51,2 +52,3 @@ import EventEmitter from 'node:events';

stderr: (data: Buffer, ctx: TSpawnCtxNormalized) => void;
stdall: (data: Buffer, ctx: TSpawnCtxNormalized) => void;
abort: (error: Event, ctx: TSpawnCtxNormalized) => void;

@@ -53,0 +55,0 @@ err: (error: Error, ctx: TSpawnCtxNormalized) => void;

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./vendor-core.cjs"

@@ -12,3 +12,3 @@ const {

which
} = __module__
} = globalThis.Deno ? globalThis.require("./vendor-core.cjs") : __module__
export {

@@ -15,0 +15,0 @@ VoidStream,

@@ -404,2 +404,9 @@ // Generated by dts-bundle-generator v9.5.1

}
declare const _default: {
parse: (content: string | Buffer) => NodeJS.ProcessEnv;
stringify: (env: NodeJS.ProcessEnv) => string;
load: (...files: string[]) => NodeJS.ProcessEnv;
loadSafe: (...files: string[]) => NodeJS.ProcessEnv;
config: (def?: string, ...files: string[]) => NodeJS.ProcessEnv;
};
export declare const createRequire: (filename: string | URL$1) => NodeRequire;

@@ -474,2 +481,3 @@ export declare const globbyModule: {

export {
_default as dotenv,
depseekSync as depseek,

@@ -476,0 +484,0 @@ fetch$1 as nodeFetch,

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./vendor-extra.cjs"

@@ -8,2 +8,3 @@ const {

depseek,
dotenv,
fs,

@@ -53,3 +54,3 @@ glob,

default: __default__
} = __module__
} = globalThis.Deno ? globalThis.require("./vendor-extra.cjs") : __module__
export {

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

depseek,
dotenv,
fs,

@@ -61,0 +63,0 @@ glob,

"use strict";
import './deno.js'
import "./deno.js"
import * as __module__ from "./vendor.cjs"

@@ -15,2 +15,3 @@ const {

depseek,
dotenv,
fs,

@@ -60,3 +61,3 @@ glob,

default: __default__
} = __module__
} = globalThis.Deno ? globalThis.require("./vendor.cjs") : __module__
export {

@@ -73,2 +74,3 @@ VoidStream,

depseek,
dotenv,
fs,

@@ -75,0 +77,0 @@ glob,

{
"name": "zx",
"version": "8.3.0",
"version": "8.3.1-dev.4424de7",
"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

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