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 1.14.0 to 1.14.1

22

index.d.ts

@@ -20,2 +20,3 @@ // Copyright 2021 Google LLC

import * as _chalk from 'chalk'
import _fetch from 'node-fetch'

@@ -53,5 +54,2 @@ interface $ {

type cd = (path: string) => void
type nothrow = (p: ProcessPromise<ProcessOutput>) => ProcessPromise<ProcessOutput>
type sleep =(ms: number) => Promise<void>
type question = (query?: string, options?: QuestionOptions) => Promise<string>
type fs = typeof _fs & {

@@ -61,11 +59,15 @@ createWriteStream: typeof createWriteStream

}
type nothrow = (p: ProcessPromise<ProcessOutput>) => ProcessPromise<ProcessOutput>
type question = (query?: string, options?: QuestionOptions) => Promise<string>
type sleep = (ms: number) => Promise<void>
export const $: $
export const cd: cd
export const nothrow: nothrow
export const sleep: sleep
export const question: question
export const chalk: typeof _chalk
export const fetch: typeof _fetch
export const fs: fs
export const nothrow: nothrow
export const os: typeof _os
export const question: question
export const sleep: sleep

@@ -75,8 +77,10 @@ declare global {

const cd: cd
const nothrow: nothrow
const sleep: sleep
const question: question
const chalk: typeof _chalk
// @ts-ignore
const fetch: typeof _fetch
const fs: fs
const nothrow: nothrow
const os: typeof _os
const question: question
const sleep: sleep
}
{
"name": "zx",
"version": "1.14.0",
"version": "1.14.1",
"description": "A tool for writing better scripts",

@@ -18,2 +18,3 @@ "main": "index.mjs",

"@types/node": "^15.3",
"@types/node-fetch": "^2.5.10",
"chalk": "^4.1.1",

@@ -20,0 +21,0 @@ "node-fetch": "^2.6.1",

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