File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ class Jack {
501501 cause = { name : field , found : value , validOptions : validOptions } ;
502502 }
503503 if ( valid && ! valid ( value ) ) {
504- cause ??= { name : field , found : value } ;
504+ cause = cause || { name : field , found : value } ;
505505 }
506506 if ( cause ) {
507507 throw new Error ( `Invalid value provided for --${ field } : ${ JSON . stringify ( value ) } ` , { cause } ) ;
@@ -565,7 +565,7 @@ class Jack {
565565 } ;
566566 }
567567 if ( config . validate && ! config . validate ( value ) ) {
568- cause ??= { name : field , found : value } ;
568+ cause = cause || { name : field , found : value } ;
569569 }
570570 if ( cause ) {
571571 throw new Error ( `Invalid config value for ${ field } : ${ value } ` , {
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ export class Jack {
493493 cause = { name : field , found : value , validOptions : validOptions } ;
494494 }
495495 if ( valid && ! valid ( value ) ) {
496- cause ??= { name : field , found : value } ;
496+ cause = cause || { name : field , found : value } ;
497497 }
498498 if ( cause ) {
499499 throw new Error ( `Invalid value provided for --${ field } : ${ JSON . stringify ( value ) } ` , { cause } ) ;
@@ -557,7 +557,7 @@ export class Jack {
557557 } ;
558558 }
559559 if ( config . validate && ! config . validate ( value ) ) {
560- cause ??= { name : field , found : value } ;
560+ cause = cause || { name : field , found : value } ;
561561 }
562562 if ( cause ) {
563563 throw new Error ( `Invalid config value for ${ field } : ${ value } ` , {
Original file line number Diff line number Diff line change 11{
22 "name" : " jackspeak" ,
3- "version" : " 3.4.0" ,
3+ "publishConfig" : {
4+ "tag" : " v3-legacy"
5+ },
6+ "version" : " 3.4.3" ,
47 "description" : " A very strict and proper argument parser." ,
58 "tshy" : {
69 "main" : true ,
6669 "dependencies" : {
6770 "@isaacs/cliui" : " ^8.0.2"
6871 },
69- "engines" : {
70- "node" : " >=14"
71- },
7272 "funding" : {
7373 "url" : " https://github.com/sponsors/isaacs"
7474 },
Original file line number Diff line number Diff line change 73457345 }
73467346 },
73477347 "node_modules/jackspeak": {
7348- "version": "3.4.0 ",
7349- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0 .tgz",
7350- "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw ==",
7348+ "version": "3.4.3 ",
7349+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3 .tgz",
7350+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw ==",
73517351 "inBundle": true,
73527352 "license": "BlueOak-1.0.0",
73537353 "dependencies": {
73547354 "@isaacs/cliui": "^8.0.2"
73557355 },
7356- "engines": {
7357- "node": ">=14"
7358- },
73597356 "funding": {
73607357 "url": "https://github.com/sponsors/isaacs"
73617358 },
You can’t perform that action at this time.
0 commit comments