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

zx

Package Overview
Dependencies
Maintainers
2
Versions
152
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.0.2-dev.1568ca9 to 8.0.2-dev.6b1869d

build/deno.js

1

build/cli.js
#!/usr/bin/env node
"use strict";
import './deno.js'
const {

@@ -4,0 +5,0 @@

@@ -23,2 +23,4 @@ import { spawn, spawnSync, StdioOptions, IOType } from 'node:child_process';

input?: string | Buffer | Readable | ProcessOutput | ProcessPromise;
timeout?: Duration;
timeoutSignal?: string;
stdio: StdioOptions;

@@ -25,0 +27,0 @@ verbose: boolean;

"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@ $,

"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@ installDeps,

10

build/globals.d.ts

@@ -27,8 +27,12 @@ import * as _ from './index.js';

var retry: typeof _.retry;
var sleep: typeof _.sleep;
var spinner: typeof _.spinner;
var stdin: typeof _.stdin;
var tempdir: typeof _.tempdir;
var tempfile: typeof _.tempfile;
var tmpdir: typeof _.tempdir;
var tmpfile: typeof _.tempfile;
var usePowerShell: typeof _.usePowerShell;
var usePwsh: typeof _.usePwsh;
var useBash: typeof _.useBash;
var sleep: typeof _.sleep;
var spinner: typeof _.spinner;
var stdin: typeof _.stdin;
var which: typeof _.which;

@@ -35,0 +39,0 @@ var within: typeof _.within;

"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@

"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@ argv,

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

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

@@ -8,0 +8,0 @@ * @deprecated Use $`cmd`.nothrow() instead.

"use strict";
import './deno.js'
const {

@@ -14,2 +15,6 @@ YAML,

quotePowerShell,
tempdir,
tempfile,
tmpdir,
tmpfile,
which,

@@ -53,2 +58,6 @@ $,

quotePowerShell,
tempdir,
tempfile,
tmpdir,
tmpfile,
which,

@@ -55,0 +64,0 @@ $,

"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@ startRepl

@@ -0,1 +1,3 @@

export declare function tempdir(prefix?: string): string;
export declare function tempfile(name?: string, data?: string | Buffer): string;
export declare function noop(): void;

@@ -2,0 +4,0 @@ export declare function randomId(): string;

"use strict";
import './deno.js'
const {

@@ -15,3 +16,5 @@ errnoMessage,

quotePowerShell,
randomId
randomId,
tempdir,
tempfile
} = await import('./util.cjs')

@@ -31,4 +34,6 @@ export {

quotePowerShell,
randomId
randomId,
tempdir,
tempfile
}

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

import { parseLine } from '@webpod/ingrid';
import * as fs from 'fs';

@@ -695,2 +694,11 @@ import * as cp from 'node:child_process';

}
type TLineDigest = {
spaces: number[];
words: {
s: number;
e: number;
w: string;
}[];
};
export declare const parseLine: (line: string, sep?: string) => TLineDigest;
type TPsLookupCallback = (err: any, processList?: TPsLookupEntry[]) => void;

@@ -761,5 +769,4 @@ type TPsLookupEntry = {

fs$1 as fs,
parseLine,
};
export {};
"use strict";
import './deno.js'
const {

@@ -3,0 +4,0 @@ YAML,

{
"name": "zx",
"version": "8.0.2-dev.1568ca9",
"version": "8.0.2-dev.6b1869d",
"description": "A tool for writing better scripts",

@@ -54,4 +54,5 @@ "type": "module",

},
"man": "./man/zx.1",
"engines": {
"node": ">= 12.0.0"
"node": ">= 12.17.0"
},

@@ -66,6 +67,11 @@ "scripts": {

"build:dts": "tsc --project tsconfig.prod.json && node scripts/build-dts.mjs",
"test": "npm run build && npm run test:unit && npm run test:types && npm run test:license",
"pretest": "npm run build",
"test": "npm run test:unit && npm run test:types && npm run test:license",
"test:unit": "node ./test/all.test.js",
"test:circular": "madge --circular src/*",
"test:types": "tsd",
"test:license": "node ./test/extra.test.js",
"test:smoke:tsx": "tsx test/smoke/ts.test.ts",
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",
"test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts",
"test:smoke:bun": "bun test ./test/smoke/bun.test.js",

@@ -75,4 +81,4 @@ "test:smoke:win32": "node ./test/smoke/win32.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",
"coverage": "c8 -x build/vendor.cjs -x build/esblib.cjs -x 'test/**' -x scripts --check-coverage npm test",
"circular": "madge --circular src/*",
"version": "cat package.json | fx .version"

@@ -82,3 +88,3 @@ },

"@types/fs-extra": "^11.0.4",
"@types/node": ">=20.12.8"
"@types/node": ">=20.12.11"
},

@@ -97,13 +103,13 @@ "devDependencies": {

"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.20.2",
"esbuild-node-externals": "^1.13.0",
"esbuild-plugin-utils": "^0.0.1",
"esbuild": "^0.21.1",
"esbuild-node-externals": "^1.13.1",
"esbuild-plugin-entry-chunks": "^0.1.14",
"esbuild-plugin-extract-helpers": "^0.0.5",
"esbuild-plugin-hybrid-export": "^0.2.3",
"esbuild-plugin-transform-hook": "^0.0.3",
"esbuild-plugin-extract-helpers": "^0.0.5",
"esbuild-plugin-utils": "^0.0.1",
"fs-extra": "^11.2.0",
"fx": "*",
"globby": "^14.0.1",
"madge": "^6.1.0",
"madge": "^7.0.0",
"minimist": "^1.2.8",

@@ -113,3 +119,5 @@ "node-abort-controller": "^3.1.1",

"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"tsd": "^0.31.0",
"tsx": "^4.9.4",
"typescript": "^5.4.5",

@@ -125,3 +133,3 @@ "which": "^4.0.0",

"build",
"zx.js"
"man"
],

@@ -128,0 +136,0 @@ "prettier": {

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