@@ -198,5 +198,17 @@ import { inspect, InspectOptions, ParseArgsConfig } from 'node:util'; | ||
| constructor(options?: JackOptions); | ||
| /** | ||
| * Resulting definitions, suitable to be passed to Node's `util.parseArgs`, | ||
| * but also including `description` and `short` fields, if set. | ||
| */ | ||
| get definitions(): C; | ||
| /** map of `{ <short>: <long> }` strings for each short name defined */ | ||
| get shorts(): Record<string, string>; | ||
| /** | ||
| * options passed to the {@link Jack} constructor | ||
| */ | ||
| get jackOptions(): JackOptions; | ||
| /** | ||
| * the data used to generate {@link Jack#usage} and | ||
| * {@link Jack#usageMarkdown} content. | ||
| */ | ||
| get usageFields(): UsageField[]; | ||
@@ -203,0 +215,0 @@ /** |
@@ -246,11 +246,23 @@ "use strict"; | ||
| } | ||
| /** | ||
| * Resulting definitions, suitable to be passed to Node's `util.parseArgs`, | ||
| * but also including `description` and `short` fields, if set. | ||
| */ | ||
| get definitions() { | ||
| return this.#configSet; | ||
| } | ||
| /** map of `{ <short>: <long> }` strings for each short name defined */ | ||
| get shorts() { | ||
| return this.#shorts; | ||
| } | ||
| /** | ||
| * options passed to the {@link Jack} constructor | ||
| */ | ||
| get jackOptions() { | ||
| return this.#options; | ||
| } | ||
| /** | ||
| * the data used to generate {@link Jack#usage} and | ||
| * {@link Jack#usageMarkdown} content. | ||
| */ | ||
| get usageFields() { | ||
@@ -274,2 +286,3 @@ return this.#fields; | ||
| er.cause = { ...cause, path: source }; | ||
| Error.captureStackTrace(er, this.setConfigValues); | ||
| } | ||
@@ -276,0 +289,0 @@ throw er; |
+12
-0
@@ -198,5 +198,17 @@ import { inspect, InspectOptions, ParseArgsConfig } from 'node:util'; | ||
| constructor(options?: JackOptions); | ||
| /** | ||
| * Resulting definitions, suitable to be passed to Node's `util.parseArgs`, | ||
| * but also including `description` and `short` fields, if set. | ||
| */ | ||
| get definitions(): C; | ||
| /** map of `{ <short>: <long> }` strings for each short name defined */ | ||
| get shorts(): Record<string, string>; | ||
| /** | ||
| * options passed to the {@link Jack} constructor | ||
| */ | ||
| get jackOptions(): JackOptions; | ||
| /** | ||
| * the data used to generate {@link Jack#usage} and | ||
| * {@link Jack#usageMarkdown} content. | ||
| */ | ||
| get usageFields(): UsageField[]; | ||
@@ -203,0 +215,0 @@ /** |
+13
-0
@@ -237,11 +237,23 @@ import { inspect, parseArgs, } from 'node:util'; | ||
| } | ||
| /** | ||
| * Resulting definitions, suitable to be passed to Node's `util.parseArgs`, | ||
| * but also including `description` and `short` fields, if set. | ||
| */ | ||
| get definitions() { | ||
| return this.#configSet; | ||
| } | ||
| /** map of `{ <short>: <long> }` strings for each short name defined */ | ||
| get shorts() { | ||
| return this.#shorts; | ||
| } | ||
| /** | ||
| * options passed to the {@link Jack} constructor | ||
| */ | ||
| get jackOptions() { | ||
| return this.#options; | ||
| } | ||
| /** | ||
| * the data used to generate {@link Jack#usage} and | ||
| * {@link Jack#usageMarkdown} content. | ||
| */ | ||
| get usageFields() { | ||
@@ -265,2 +277,3 @@ return this.#fields; | ||
| er.cause = { ...cause, path: source }; | ||
| Error.captureStackTrace(er, this.setConfigValues); | ||
| } | ||
@@ -267,0 +280,0 @@ throw er; |
+1
-1
| { | ||
| "name": "jackspeak", | ||
| "version": "4.1.0", | ||
| "version": "4.1.1", | ||
| "description": "A very strict and proper argument parser.", | ||
@@ -5,0 +5,0 @@ "tshy": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
287780
1.09%2531
2.02%12
200%