Comparing version 1.4.0 to 1.5.0
@@ -30,3 +30,3 @@ // Copyright 2021 Google LLC | ||
export function question(query: string, options?: QuestionOptions): Promise<string> | ||
export function question(query?: string, options?: QuestionOptions): Promise<string> | ||
@@ -33,0 +33,0 @@ export class ProcessOutput { |
{ | ||
"name": "zx", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "A tool for writing better scripts", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
@@ -127,3 +127,3 @@ # 🐚 zx | ||
function question(query: string, options?: QuestionOptions): Promise<string> | ||
function question(query?: string, options?: QuestionOptions): Promise<string> | ||
``` | ||
@@ -204,2 +204,9 @@ | ||
### `__filename` & `__dirname` | ||
In [ESM](https://nodejs.org/api/esm.html) modules, Node.js does not provide | ||
`__filename` and `__dirname` globals. As such globals really handy in scripts, | ||
`zx` provides such globals, so they can be used in `.mjs` files (via using `zx` | ||
binary). | ||
### Importing from other scripts | ||
@@ -206,0 +213,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26780
350
240