Skip to content

Commit

Permalink
deps: jackspeak@3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 21, 2024
1 parent df58b0c commit d7e462b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions node_modules/jackspeak/dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class Jack {
cause = { name: field, found: value, validOptions: validOptions };
}
if (valid && !valid(value)) {
cause ??= { name: field, found: value };
cause = cause || { name: field, found: value };
}
if (cause) {
throw new Error(`Invalid value provided for --${field}: ${JSON.stringify(value)}`, { cause });
Expand Down Expand Up @@ -565,7 +565,7 @@ class Jack {
};
}
if (config.validate && !config.validate(value)) {
cause ??= { name: field, found: value };
cause = cause || { name: field, found: value };
}
if (cause) {
throw new Error(`Invalid config value for ${field}: ${value}`, {
Expand Down
4 changes: 2 additions & 2 deletions node_modules/jackspeak/dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export class Jack {
cause = { name: field, found: value, validOptions: validOptions };
}
if (valid && !valid(value)) {
cause ??= { name: field, found: value };
cause = cause || { name: field, found: value };
}
if (cause) {
throw new Error(`Invalid value provided for --${field}: ${JSON.stringify(value)}`, { cause });
Expand Down Expand Up @@ -557,7 +557,7 @@ export class Jack {
};
}
if (config.validate && !config.validate(value)) {
cause ??= { name: field, found: value };
cause = cause || { name: field, found: value };
}
if (cause) {
throw new Error(`Invalid config value for ${field}: ${value}`, {
Expand Down
8 changes: 4 additions & 4 deletions node_modules/jackspeak/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "jackspeak",
"version": "3.4.0",
"publishConfig": {
"tag": "v3-legacy"
},
"version": "3.4.3",
"description": "A very strict and proper argument parser.",
"tshy": {
"main": true,
Expand Down Expand Up @@ -66,9 +69,6 @@
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
Expand Down
9 changes: 3 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7345,17 +7345,14 @@
}
},
"node_modules/jackspeak": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz",
"integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==",
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
"integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
"inBundle": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
},
Expand Down

0 comments on commit d7e462b

Please sign in to comment.