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

zx

Package Overview
Dependencies
Maintainers
2
Versions
158
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.1 to 8.0.2-dev.bc2a08c

2

build/cli.js

@@ -170,3 +170,3 @@ #!/usr/bin/env node

const otherCodeBlock = /^(```+|~~~+)(.*)$/;
for (let line of source.split("\n")) {
for (let line of source.split(/\r?\n/)) {
switch (state) {

@@ -173,0 +173,0 @@ case "root":

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

quiet: boolean;
detached: boolean;
spawn: typeof spawn;

@@ -42,2 +43,3 @@ spawnSync: typeof spawnSync;

export declare function usePowerShell(): void;
export declare function usePwsh(): void;
export declare function useBash(): void;

@@ -44,0 +46,0 @@ export declare const $: Shell & Options;

@@ -53,2 +53,3 @@ // src/core.ts

quote: noquote,
detached: false,
spawn,

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

};
var isWin = process.platform == "win32";
function usePowerShell() {

@@ -67,5 +67,12 @@ $.shell = which.sync("powershell.exe");

}
function usePwsh() {
$.shell = which.sync("pwsh");
$.prefix = "";
$.postfix = "; exit $LastExitCode";
$.quote = quotePowerShell;
}
function useBash() {
$.shell = which.sync("bash");
$.prefix = "set -euo pipefail;";
$.postfix = "";
$.quote = quote;

@@ -188,3 +195,3 @@ }

sync: $2[syncExec],
detached: !isWin,
detached: $2.detached,
run: (cb) => cb(),

@@ -497,3 +504,4 @@ on: {

usePowerShell,
usePwsh,
within
};

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

var usePowerShell: typeof _.usePowerShell;
var usePwsh: typeof _.usePwsh;
var useBash: typeof _.useBash;

@@ -30,0 +31,0 @@ var sleep: typeof _.sleep;

@@ -7,22 +7,2 @@ import { type Duration } from './util.js';

export declare function updateArgv(args: string[]): void;
export declare const globby: typeof import("globby").globby & {
globby: typeof import("globby").globby;
globbySync: typeof import("globby").globbySync;
globbyStream: typeof import("globby").globbyStream;
generateGlobTasksSync: typeof import("globby").generateGlobTasksSync;
generateGlobTasks: typeof import("globby").generateGlobTasks;
isGitIgnoredSync: typeof import("globby").isGitIgnoredSync;
isGitIgnored: typeof import("globby").isGitIgnored;
isDynamicPattern: typeof import("globby").isDynamicPattern;
};
export declare const glob: typeof import("globby").globby & {
globby: typeof import("globby").globby;
globbySync: typeof import("globby").globbySync;
globbyStream: typeof import("globby").globbyStream;
generateGlobTasksSync: typeof import("globby").generateGlobTasksSync;
generateGlobTasks: typeof import("globby").generateGlobTasks;
isGitIgnoredSync: typeof import("globby").isGitIgnoredSync;
isGitIgnored: typeof import("globby").isGitIgnored;
isDynamicPattern: typeof import("globby").isDynamicPattern;
};
export declare function sleep(duration: Duration): Promise<unknown>;

@@ -29,0 +9,0 @@ export declare function fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;

@@ -9,3 +9,2 @@ // src/goods.ts

minimist,
globbyModule,
nodeFetch

@@ -20,6 +19,2 @@ } from "./vendor.js";

}
var globby = Object.assign(function globby2(patterns, options) {
return globbyModule.globby(patterns, options);
}, globbyModule);
var glob = globby;
function sleep(duration) {

@@ -155,4 +150,2 @@ return new Promise((resolve) => {

fetch,
glob,
globby,
os,

@@ -159,0 +152,0 @@ default2 as path,

import { ProcessPromise } from './core.js';
export * from './core.js';
export * from './goods.js';
export { minimist, chalk, fs, which, YAML, ps } from './vendor.js';
export { minimist, chalk, fs, which, YAML, ps, glob, glob as globby, } from './vendor.js';
export { type Duration, quote, quotePowerShell } from './util.js';

@@ -6,0 +6,0 @@ /**

// src/index.ts
export * from "./core.js";
export * from "./goods.js";
import { minimist, chalk, fs, which, YAML, ps } from "./vendor.js";
import {
minimist,
chalk,
fs,
which,
YAML,
ps,
glob,
glob as glob2
} from "./vendor.js";
import { quote, quotePowerShell } from "./util.js";

@@ -16,2 +25,4 @@ function nothrow(promise) {

fs,
glob,
glob2 as globby,
minimist,

@@ -18,0 +29,0 @@ nothrow,

@@ -315,2 +315,3 @@ // Generated by dts-bundle-generator v9.3.1

declare function isGitIgnoredSync(options?: GitignoreOptions): GlobbyFilterFunction;
declare function convertPathToPattern(source: string): FastGlob.Pattern;
declare const fetch$1: typeof globalThis.fetch;

@@ -724,2 +725,3 @@ type TQuote = (input: string) => string;

export declare const globbyModule: {
convertPathToPattern: typeof convertPathToPattern;
globby: typeof globby;

@@ -734,2 +736,13 @@ globbySync: typeof globbySync;

};
export declare const glob: typeof globby & {
convertPathToPattern: typeof convertPathToPattern;
globby: typeof globby;
globbySync: typeof globbySync;
globbyStream: typeof globbyStream;
generateGlobTasksSync: typeof generateGlobTasksSync;
generateGlobTasks: typeof generateGlobTasks;
isGitIgnoredSync: typeof isGitIgnoredSync;
isGitIgnored: typeof isGitIgnored;
isDynamicPattern: typeof isDynamicPattern;
};
export declare const YAML: {

@@ -742,3 +755,2 @@ parse(text: string): any;

export {
Options$1 as GlobbyOptions,
RequestInit$1 as RequestInit,

@@ -745,0 +757,0 @@ _default as ps,

{
"name": "zx",
"version": "8.0.1",
"version": "8.0.2-dev.bc2a08c",
"description": "A tool for writing better scripts",

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

Sorry, the diff of this file is too big to display

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