Comparing version 8.1.4 to 8.1.5-dev.92aede5
@@ -5,6 +5,6 @@ export declare function tempdir(prefix?: string): string; | ||
export declare function randomId(): string; | ||
export declare function isString(obj: any): boolean; | ||
export declare function isString(obj: any): obj is string; | ||
export declare function preferNmBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): { | ||
[x: string]: string | undefined; | ||
TZ?: string | undefined; | ||
TZ?: string; | ||
}; | ||
@@ -11,0 +11,0 @@ export declare function quote(arg: string): string; |
@@ -6,3 +6,2 @@ // Generated by dts-bundle-generator v9.5.1 | ||
import * as fs from 'fs'; | ||
import { default as minimist } from 'minimist'; | ||
import { URL as URL$1 } from 'node:url'; | ||
@@ -329,2 +328,79 @@ | ||
declare const depseekSync: (input: string | Buffer, opts?: TOpts) => TCodeRef[]; | ||
/** | ||
* Return an argument object populated with the array arguments from args | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
export declare function minimist(args?: string[], opts?: minimist.Opts): minimist.ParsedArgs; | ||
/** | ||
* Return an argument object populated with the array arguments from args. Strongly-typed | ||
* to be the intersect of type T with minimist.ParsedArgs. | ||
* | ||
* `T` The type that will be intersected with minimist.ParsedArgs to represent the argument object | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
export declare function minimist<T>(args?: string[], opts?: minimist.Opts): T & minimist.ParsedArgs; | ||
/** | ||
* Return an argument object populated with the array arguments from args. Strongly-typed | ||
* to be the the type T which should extend minimist.ParsedArgs | ||
* | ||
* `T` The type that extends minimist.ParsedArgs and represents the argument object | ||
* | ||
* @param [args] An optional argument array (typically `process.argv.slice(2)`) | ||
* @param [opts] An optional options object to customize the parsing | ||
*/ | ||
export declare function minimist<T extends minimist.ParsedArgs>(args?: string[], opts?: minimist.Opts): T; | ||
export declare namespace minimist { | ||
interface Opts { | ||
/** | ||
* A string or array of strings argument names to always treat as strings | ||
*/ | ||
string?: string | string[] | undefined; | ||
/** | ||
* A boolean, string or array of strings to always treat as booleans. If true will treat | ||
* all double hyphenated arguments without equals signs as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`) | ||
*/ | ||
boolean?: boolean | string | string[] | undefined; | ||
/** | ||
* An object mapping string names to strings or arrays of string argument names to use as aliases | ||
*/ | ||
alias?: { | ||
[key: string]: string | string[]; | ||
} | undefined; | ||
/** | ||
* An object mapping string argument names to default values | ||
*/ | ||
default?: { | ||
[key: string]: any; | ||
} | undefined; | ||
/** | ||
* When true, populate argv._ with everything after the first non-option | ||
*/ | ||
stopEarly?: boolean | undefined; | ||
/** | ||
* A function which is invoked with a command line parameter not defined in the opts | ||
* configuration object. If the function returns false, the unknown option is not added to argv | ||
*/ | ||
unknown?: ((arg: string) => boolean) | undefined; | ||
/** | ||
* When true, populate argv._ with everything before the -- and argv['--'] with everything after the --. | ||
* Note that with -- set, parsing for arguments still stops after the `--`. | ||
*/ | ||
"--"?: boolean | undefined; | ||
} | ||
interface ParsedArgs { | ||
[arg: string]: any; | ||
/** | ||
* If opts['--'] is true, populated with everything after the -- | ||
*/ | ||
"--"?: string[] | undefined; | ||
/** | ||
* Contains all the arguments that didn't have an option associated with them | ||
*/ | ||
_: string[]; | ||
} | ||
} | ||
export declare const createRequire: (filename: string | URL$1) => NodeRequire; | ||
@@ -342,17 +418,56 @@ export declare const globbyModule: { | ||
}; | ||
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: { | ||
export declare const glob: (typeof globbyModule)["globby"] & typeof globbyModule; | ||
export declare const YAML: YAML; | ||
export interface YAML { | ||
parse(text: string): any; | ||
stringify(object: any): string; | ||
}; | ||
/** @deprecated */ | ||
parseAllDocuments(s: string, opts?: any): any[]; | ||
/** @deprecated */ | ||
parseDocument(s: string, opts?: any): any; | ||
/** @deprecated */ | ||
isAlias(v: any): boolean; | ||
/** @deprecated */ | ||
isCollection(v: any): boolean; | ||
/** @deprecated */ | ||
isDocument(v: any): boolean; | ||
/** @deprecated */ | ||
isMap(v: any): boolean; | ||
/** @deprecated */ | ||
isNode(v: any): boolean; | ||
/** @deprecated */ | ||
isPair(v: any): boolean; | ||
/** @deprecated */ | ||
isScalar(v: any): boolean; | ||
/** @deprecated */ | ||
isSeq(v: any): boolean; | ||
/** @deprecated */ | ||
Alias: any; | ||
/** @deprecated */ | ||
Composer: any; | ||
/** @deprecated */ | ||
Document: any; | ||
/** @deprecated */ | ||
Schema: any; | ||
/** @deprecated */ | ||
YAMLSeq: any; | ||
/** @deprecated */ | ||
YAMLMap: any; | ||
/** @deprecated */ | ||
YAMLError: any; | ||
/** @deprecated */ | ||
YAMLParseError: any; | ||
/** @deprecated */ | ||
YAMLWarning: any; | ||
/** @deprecated */ | ||
Pair: any; | ||
/** @deprecated */ | ||
Scalar: any; | ||
/** @deprecated */ | ||
Lexer: any; | ||
/** @deprecated */ | ||
LineCounter: any; | ||
/** @deprecated */ | ||
Parser: any; | ||
} | ||
declare const fs$1: typeof import("fs-extra"); | ||
@@ -364,5 +479,4 @@ | ||
fs$1 as fs, | ||
minimist, | ||
}; | ||
export {}; |
@@ -11,3 +11,42 @@ "use strict"; | ||
minimist, | ||
nodeFetch | ||
nodeFetch, | ||
Alias, | ||
CST, | ||
Composer, | ||
Document, | ||
Lexer, | ||
LineCounter, | ||
Pair, | ||
Parser, | ||
Scalar, | ||
Schema, | ||
YAMLError, | ||
YAMLMap, | ||
YAMLParseError, | ||
YAMLSeq, | ||
YAMLWarning, | ||
isAlias, | ||
isCollection, | ||
isDocument, | ||
isMap, | ||
isNode, | ||
isPair, | ||
isScalar, | ||
isSeq, | ||
parse, | ||
parseAllDocuments, | ||
parseDocument, | ||
stringify, | ||
visit, | ||
visitAsync, | ||
BOM, | ||
DOCUMENT, | ||
FLOW_END, | ||
SCALAR, | ||
createScalarToken, | ||
prettyToken, | ||
resolveAsScalar, | ||
setScalarValue, | ||
tokenType, | ||
default: __default__ | ||
} = require('./vendor-extra.cjs') | ||
@@ -22,4 +61,42 @@ export { | ||
minimist, | ||
nodeFetch | ||
nodeFetch, | ||
Alias, | ||
CST, | ||
Composer, | ||
Document, | ||
Lexer, | ||
LineCounter, | ||
Pair, | ||
Parser, | ||
Scalar, | ||
Schema, | ||
YAMLError, | ||
YAMLMap, | ||
YAMLParseError, | ||
YAMLSeq, | ||
YAMLWarning, | ||
isAlias, | ||
isCollection, | ||
isDocument, | ||
isMap, | ||
isNode, | ||
isPair, | ||
isScalar, | ||
isSeq, | ||
parse, | ||
parseAllDocuments, | ||
parseDocument, | ||
stringify, | ||
visit, | ||
visitAsync, | ||
BOM, | ||
DOCUMENT, | ||
FLOW_END, | ||
SCALAR, | ||
createScalarToken, | ||
prettyToken, | ||
resolveAsScalar, | ||
setScalarValue, | ||
tokenType | ||
} | ||
export default __default__ |
@@ -16,3 +16,42 @@ "use strict"; | ||
minimist, | ||
nodeFetch | ||
nodeFetch, | ||
Alias, | ||
CST, | ||
Composer, | ||
Document, | ||
Lexer, | ||
LineCounter, | ||
Pair, | ||
Parser, | ||
Scalar, | ||
Schema, | ||
YAMLError, | ||
YAMLMap, | ||
YAMLParseError, | ||
YAMLSeq, | ||
YAMLWarning, | ||
isAlias, | ||
isCollection, | ||
isDocument, | ||
isMap, | ||
isNode, | ||
isPair, | ||
isScalar, | ||
isSeq, | ||
parse, | ||
parseAllDocuments, | ||
parseDocument, | ||
stringify, | ||
visit, | ||
visitAsync, | ||
BOM, | ||
DOCUMENT, | ||
FLOW_END, | ||
SCALAR, | ||
createScalarToken, | ||
prettyToken, | ||
resolveAsScalar, | ||
setScalarValue, | ||
tokenType, | ||
default: __default__ | ||
} = require('./vendor.cjs') | ||
@@ -32,4 +71,42 @@ export { | ||
minimist, | ||
nodeFetch | ||
nodeFetch, | ||
Alias, | ||
CST, | ||
Composer, | ||
Document, | ||
Lexer, | ||
LineCounter, | ||
Pair, | ||
Parser, | ||
Scalar, | ||
Schema, | ||
YAMLError, | ||
YAMLMap, | ||
YAMLParseError, | ||
YAMLSeq, | ||
YAMLWarning, | ||
isAlias, | ||
isCollection, | ||
isDocument, | ||
isMap, | ||
isNode, | ||
isPair, | ||
isScalar, | ||
isSeq, | ||
parse, | ||
parseAllDocuments, | ||
parseDocument, | ||
stringify, | ||
visit, | ||
visitAsync, | ||
BOM, | ||
DOCUMENT, | ||
FLOW_END, | ||
SCALAR, | ||
createScalarToken, | ||
prettyToken, | ||
resolveAsScalar, | ||
setScalarValue, | ||
tokenType | ||
} | ||
export default __default__ |
{ | ||
"name": "zx", | ||
"version": "8.1.4", | ||
"version": "8.1.5-dev.92aede5", | ||
"description": "A tool for writing better scripts", | ||
@@ -71,2 +71,3 @@ "type": "module", | ||
"test": "npm run test:size && npm run fmt:check && npm run test:unit && npm run test:types && npm run test:license", | ||
"test:it": "node ./test/it/build.test.js", | ||
"test:unit": "node ./test/all.test.js", | ||
@@ -101,3 +102,3 @@ "test:coverage": "c8 -x build/deno.js -x build/vendor-extra.cjs -x build/vendor-core.cjs -x build/esblib.cjs -x 'test/**' -x scripts --check-coverage npm run test:unit", | ||
"@webpod/ps": "^0.0.0-beta.7", | ||
"c8": "^9.1.0", | ||
"c8": "^10.1.2", | ||
"chalk": "^5.3.0", | ||
@@ -107,7 +108,7 @@ "create-require": "^1.1.1", | ||
"dts-bundle-generator": "^9.5.1", | ||
"esbuild": "^0.21.5", | ||
"esbuild-node-externals": "^1.13.1", | ||
"esbuild": "^0.23.1", | ||
"esbuild-node-externals": "^1.14.0", | ||
"esbuild-plugin-entry-chunks": "^0.1.15", | ||
"esbuild-plugin-extract-helpers": "^0.0.6", | ||
"esbuild-plugin-hybrid-export": "^0.2.4", | ||
"esbuild-plugin-hybrid-export": "^0.2.5", | ||
"esbuild-plugin-resolve": "^2.0.0", | ||
@@ -118,14 +119,14 @@ "esbuild-plugin-transform-hook": "^0.1.1", | ||
"fx": "*", | ||
"globby": "^14.0.1", | ||
"globby": "^14.0.2", | ||
"madge": "^7.0.0", | ||
"minimist": "^1.2.8", | ||
"node-fetch-native": "^1.6.4", | ||
"prettier": "^3.3.2", | ||
"prettier": "^3.3.3", | ||
"size-limit": "^11.1.4", | ||
"ts-node": "^10.9.2", | ||
"tsd": "^0.31.1", | ||
"tsx": "^4.15.6", | ||
"typescript": "^5.4.5", | ||
"tsx": "^4.19.0", | ||
"typescript": "^5.5.4", | ||
"which": "^4.0.0", | ||
"yaml": "^2.4.5", | ||
"yaml": "^2.5.0", | ||
"zurk": "^0.3.0" | ||
@@ -132,0 +133,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
846189
23915
2