Changeset e29cc2e for trip-planner-front/node_modules/yargs-parser
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/yargs-parser
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/yargs-parser/CHANGELOG.md
r59329aa re29cc2e 3 3 All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 4 5 ### [20.2.9](https://www.github.com/yargs/yargs-parser/compare/yargs-parser-v20.2.8...yargs-parser-v20.2.9) (2021-06-20) 6 7 8 ### Bug Fixes 9 10 * **build:** fixed automated release pipeline ([1fe9135](https://www.github.com/yargs/yargs-parser/commit/1fe9135884790a083615419b2861683e2597dac3)) 11 12 ### [20.2.8](https://www.github.com/yargs/yargs-parser/compare/yargs-parser-v20.2.7...yargs-parser-v20.2.8) (2021-06-20) 13 14 15 ### Bug Fixes 16 17 * **locale:** Turkish camelize and decamelize issues with toLocaleLowerCase/toLocaleUpperCase ([2617303](https://www.github.com/yargs/yargs-parser/commit/261730383e02448562f737b94bbd1f164aed5143)) 18 * **perf:** address slow parse when using unknown-options-as-args ([#394](https://www.github.com/yargs/yargs-parser/issues/394)) ([441f059](https://www.github.com/yargs/yargs-parser/commit/441f059d585d446551068ad213db79ac91daf83a)) 19 * **string-utils:** detect [0,1] ranged values as numbers ([#388](https://www.github.com/yargs/yargs-parser/issues/388)) ([efcc32c](https://www.github.com/yargs/yargs-parser/commit/efcc32c2d6b09aba31abfa2db9bd947befe5586b)) 20 21 ### [20.2.7](https://www.github.com/yargs/yargs-parser/compare/v20.2.6...v20.2.7) (2021-03-10) 22 23 24 ### Bug Fixes 25 26 * **deno:** force release for Deno ([6687c97](https://www.github.com/yargs/yargs-parser/commit/6687c972d0f3ca7865a97908dde3080b05f8b026)) 27 28 ### [20.2.6](https://www.github.com/yargs/yargs-parser/compare/v20.2.5...v20.2.6) (2021-02-22) 29 30 31 ### Bug Fixes 32 33 * **populate--:** -- should always be array ([#354](https://www.github.com/yargs/yargs-parser/issues/354)) ([585ae8f](https://www.github.com/yargs/yargs-parser/commit/585ae8ffad74cc02974f92d788e750137fd65146)) 34 35 ### [20.2.5](https://www.github.com/yargs/yargs-parser/compare/v20.2.4...v20.2.5) (2021-02-13) 36 37 38 ### Bug Fixes 39 40 * do not lowercase camel cased string ([#348](https://www.github.com/yargs/yargs-parser/issues/348)) ([5f4da1f](https://www.github.com/yargs/yargs-parser/commit/5f4da1f17d9d50542d2aaa206c9806ce3e320335)) 41 42 ### [20.2.4](https://www.github.com/yargs/yargs-parser/compare/v20.2.3...v20.2.4) (2020-11-09) 43 44 45 ### Bug Fixes 46 47 * **deno:** address import issues in Deno ([#339](https://www.github.com/yargs/yargs-parser/issues/339)) ([3b54e5e](https://www.github.com/yargs/yargs-parser/commit/3b54e5eef6e9a7b7c6eec7c12bab3ba3b8ba8306)) 48 49 ### [20.2.3](https://www.github.com/yargs/yargs-parser/compare/v20.2.2...v20.2.3) (2020-10-16) 50 51 52 ### Bug Fixes 53 54 * **exports:** node 13.0 and 13.1 require the dotted object form _with_ a string fallback ([#336](https://www.github.com/yargs/yargs-parser/issues/336)) ([3ae7242](https://www.github.com/yargs/yargs-parser/commit/3ae7242040ff876d28dabded60ac226e00150c88)) 55 56 ### [20.2.2](https://www.github.com/yargs/yargs-parser/compare/v20.2.1...v20.2.2) (2020-10-14) 57 58 59 ### Bug Fixes 60 61 * **exports:** node 13.0-13.6 require a string fallback ([#333](https://www.github.com/yargs/yargs-parser/issues/333)) ([291aeda](https://www.github.com/yargs/yargs-parser/commit/291aeda06b685b7a015d83bdf2558e180b37388d)) 62 63 ### [20.2.1](https://www.github.com/yargs/yargs-parser/compare/v20.2.0...v20.2.1) (2020-10-01) 64 65 66 ### Bug Fixes 67 68 * **deno:** update types for deno ^1.4.0 ([#330](https://www.github.com/yargs/yargs-parser/issues/330)) ([0ab92e5](https://www.github.com/yargs/yargs-parser/commit/0ab92e50b090f11196334c048c9c92cecaddaf56)) 69 70 ## [20.2.0](https://www.github.com/yargs/yargs-parser/compare/v20.1.0...v20.2.0) (2020-09-21) 71 72 73 ### Features 74 75 * **string-utils:** export looksLikeNumber helper ([#324](https://www.github.com/yargs/yargs-parser/issues/324)) ([c8580a2](https://www.github.com/yargs/yargs-parser/commit/c8580a2327b55f6342acecb6e72b62963d506750)) 76 77 78 ### Bug Fixes 79 80 * **unknown-options-as-args:** convert positionals that look like numbers ([#326](https://www.github.com/yargs/yargs-parser/issues/326)) ([f85ebb4](https://www.github.com/yargs/yargs-parser/commit/f85ebb4face9d4b0f56147659404cbe0002f3dad)) 81 82 ## [20.1.0](https://www.github.com/yargs/yargs-parser/compare/v20.0.0...v20.1.0) (2020-09-20) 83 84 85 ### Features 86 87 * adds parse-positional-numbers configuration ([#321](https://www.github.com/yargs/yargs-parser/issues/321)) ([9cec00a](https://www.github.com/yargs/yargs-parser/commit/9cec00a622251292ffb7dce6f78f5353afaa0d4c)) 88 89 90 ### Bug Fixes 91 92 * **build:** update release-please; make labels kick off builds ([#323](https://www.github.com/yargs/yargs-parser/issues/323)) ([09f448b](https://www.github.com/yargs/yargs-parser/commit/09f448b4cd66e25d2872544718df46dab8af062a)) 93 94 ## [20.0.0](https://www.github.com/yargs/yargs-parser/compare/v19.0.4...v20.0.0) (2020-09-09) 95 96 97 ### ⚠ BREAKING CHANGES 98 99 * do not ship type definitions (#318) 100 101 ### Bug Fixes 102 103 * only strip camel case if hyphenated ([#316](https://www.github.com/yargs/yargs-parser/issues/316)) ([95a9e78](https://www.github.com/yargs/yargs-parser/commit/95a9e785127b9bbf2d1db1f1f808ca1fb100e82a)), closes [#315](https://www.github.com/yargs/yargs-parser/issues/315) 104 105 106 ### Code Refactoring 107 108 * do not ship type definitions ([#318](https://www.github.com/yargs/yargs-parser/issues/318)) ([8fbd56f](https://www.github.com/yargs/yargs-parser/commit/8fbd56f1d0b6c44c30fca62708812151ca0ce330)) 109 110 ### [19.0.4](https://www.github.com/yargs/yargs-parser/compare/v19.0.3...v19.0.4) (2020-08-27) 111 112 113 ### Bug Fixes 114 115 * **build:** fixing publication ([#310](https://www.github.com/yargs/yargs-parser/issues/310)) ([5d3c6c2](https://www.github.com/yargs/yargs-parser/commit/5d3c6c29a9126248ba601920d9cf87c78e161ff5)) 116 117 ### [19.0.3](https://www.github.com/yargs/yargs-parser/compare/v19.0.2...v19.0.3) (2020-08-27) 118 119 120 ### Bug Fixes 121 122 * **build:** switch to action for publish ([#308](https://www.github.com/yargs/yargs-parser/issues/308)) ([5c2f305](https://www.github.com/yargs/yargs-parser/commit/5c2f30585342bcd8aaf926407c863099d256d174)) 123 124 ### [19.0.2](https://www.github.com/yargs/yargs-parser/compare/v19.0.1...v19.0.2) (2020-08-27) 125 126 127 ### Bug Fixes 128 129 * **types:** envPrefix should be optional ([#305](https://www.github.com/yargs/yargs-parser/issues/305)) ([ae3f180](https://www.github.com/yargs/yargs-parser/commit/ae3f180e14df2de2fd962145f4518f9aa0e76523)) 130 131 ### [19.0.1](https://www.github.com/yargs/yargs-parser/compare/v19.0.0...v19.0.1) (2020-08-09) 132 133 134 ### Bug Fixes 135 136 * **build:** push tag created for deno ([2186a14](https://www.github.com/yargs/yargs-parser/commit/2186a14989749887d56189867602e39e6679f8b0)) 137 138 ## [19.0.0](https://www.github.com/yargs/yargs-parser/compare/v18.1.3...v19.0.0) (2020-08-09) 139 140 141 ### ⚠ BREAKING CHANGES 142 143 * adds support for ESM and Deno (#295) 144 * **ts:** projects using `@types/yargs-parser` may see variations in type definitions. 145 * drops Node 6. begin following Node.js LTS schedule (#278) 146 147 ### Features 148 149 * adds support for ESM and Deno ([#295](https://www.github.com/yargs/yargs-parser/issues/295)) ([195bc4a](https://www.github.com/yargs/yargs-parser/commit/195bc4a7f20c2a8f8e33fbb6ba96ef6e9a0120a1)) 150 * expose camelCase and decamelize helpers ([#296](https://www.github.com/yargs/yargs-parser/issues/296)) ([39154ce](https://www.github.com/yargs/yargs-parser/commit/39154ceb5bdcf76b5f59a9219b34cedb79b67f26)) 151 * **deps:** update to latest camelcase/decamelize ([#281](https://www.github.com/yargs/yargs-parser/issues/281)) ([8931ab0](https://www.github.com/yargs/yargs-parser/commit/8931ab08f686cc55286f33a95a83537da2be5516)) 152 153 154 ### Bug Fixes 155 156 * boolean numeric short option ([#294](https://www.github.com/yargs/yargs-parser/issues/294)) ([f600082](https://www.github.com/yargs/yargs-parser/commit/f600082c959e092076caf420bbbc9d7a231e2418)) 157 * raise permission error for Deno if config load fails ([#298](https://www.github.com/yargs/yargs-parser/issues/298)) ([1174e2b](https://www.github.com/yargs/yargs-parser/commit/1174e2b3f0c845a1cd64e14ffc3703e730567a84)) 158 * **deps:** update dependency decamelize to v3 ([#274](https://www.github.com/yargs/yargs-parser/issues/274)) ([4d98698](https://www.github.com/yargs/yargs-parser/commit/4d98698bc6767e84ec54a0842908191739be73b7)) 159 * **types:** switch back to using Partial types ([#293](https://www.github.com/yargs/yargs-parser/issues/293)) ([bdc80ba](https://www.github.com/yargs/yargs-parser/commit/bdc80ba59fa13bc3025ce0a85e8bad9f9da24ea7)) 160 161 162 ### Build System 163 164 * drops Node 6. begin following Node.js LTS schedule ([#278](https://www.github.com/yargs/yargs-parser/issues/278)) ([9014ed7](https://www.github.com/yargs/yargs-parser/commit/9014ed722a32768b96b829e65a31705db5c1458a)) 165 166 167 ### Code Refactoring 168 169 * **ts:** move index.js to TypeScript ([#292](https://www.github.com/yargs/yargs-parser/issues/292)) ([f78d2b9](https://www.github.com/yargs/yargs-parser/commit/f78d2b97567ac4828624406e420b4047c710b789)) 170 171 ### [18.1.3](https://www.github.com/yargs/yargs-parser/compare/v18.1.2...v18.1.3) (2020-04-16) 172 173 174 ### Bug Fixes 175 176 * **setArg:** options using camel-case and dot-notation populated twice ([#268](https://www.github.com/yargs/yargs-parser/issues/268)) ([f7e15b9](https://www.github.com/yargs/yargs-parser/commit/f7e15b9800900b9856acac1a830a5f35847be73e)) 177 178 ### [18.1.2](https://www.github.com/yargs/yargs-parser/compare/v18.1.1...v18.1.2) (2020-03-26) 179 180 181 ### Bug Fixes 182 183 * **array, nargs:** support -o=--value and --option=--value format ([#262](https://www.github.com/yargs/yargs-parser/issues/262)) ([41d3f81](https://www.github.com/yargs/yargs-parser/commit/41d3f8139e116706b28de9b0de3433feb08d2f13)) 184 185 ### [18.1.1](https://www.github.com/yargs/yargs-parser/compare/v18.1.0...v18.1.1) (2020-03-16) 186 187 188 ### Bug Fixes 189 190 * \_\_proto\_\_ will now be replaced with \_\_\_proto\_\_\_ in parse ([#258](https://www.github.com/yargs/yargs-parser/issues/258)), patching a potential 191 prototype pollution vulnerability. This was reported by the Snyk Security Research Team.([63810ca](https://www.github.com/yargs/yargs-parser/commit/63810ca1ae1a24b08293a4d971e70e058c7a41e2)) 192 193 ## [18.1.0](https://www.github.com/yargs/yargs-parser/compare/v18.0.0...v18.1.0) (2020-03-07) 194 195 196 ### Features 197 198 * introduce single-digit boolean aliases ([#255](https://www.github.com/yargs/yargs-parser/issues/255)) ([9c60265](https://www.github.com/yargs/yargs-parser/commit/9c60265fd7a03cb98e6df3e32c8c5e7508d9f56f)) 199 200 ## [18.0.0](https://www.github.com/yargs/yargs-parser/compare/v17.1.0...v18.0.0) (2020-03-02) 201 202 203 ### ⚠ BREAKING CHANGES 204 205 * the narg count is now enforced when parsing arrays. 206 207 ### Features 208 209 * NaN can now be provided as a value for nargs, indicating "at least" one value is expected for array ([#251](https://www.github.com/yargs/yargs-parser/issues/251)) ([9db4be8](https://www.github.com/yargs/yargs-parser/commit/9db4be81417a2c7097128db34d86fe70ef4af70c)) 210 211 ## [17.1.0](https://www.github.com/yargs/yargs-parser/compare/v17.0.1...v17.1.0) (2020-03-01) 212 213 214 ### Features 215 216 * introduce greedy-arrays config, for specifying whether arrays consume multiple positionals ([#249](https://www.github.com/yargs/yargs-parser/issues/249)) ([60e880a](https://www.github.com/yargs/yargs-parser/commit/60e880a837046314d89fa4725f923837fd33a9eb)) 217 218 ### [17.0.1](https://www.github.com/yargs/yargs-parser/compare/v17.0.0...v17.0.1) (2020-02-29) 219 220 221 ### Bug Fixes 222 223 * normalized keys were not enumerable ([#247](https://www.github.com/yargs/yargs-parser/issues/247)) ([57119f9](https://www.github.com/yargs/yargs-parser/commit/57119f9f17cf27499bd95e61c2f72d18314f11ba)) 224 225 ## [17.0.0](https://www.github.com/yargs/yargs-parser/compare/v16.1.0...v17.0.0) (2020-02-10) 226 227 228 ### ⚠ BREAKING CHANGES 229 230 * this reverts parsing behavior of booleans to that of yargs@14 231 * objects used during parsing are now created with a null 232 prototype. There may be some scenarios where this change in behavior 233 leaks externally. 234 235 ### Features 236 237 * boolean arguments will not be collected into an implicit array ([#236](https://www.github.com/yargs/yargs-parser/issues/236)) ([34c4e19](https://www.github.com/yargs/yargs-parser/commit/34c4e19bae4e7af63e3cb6fa654a97ed476e5eb5)) 238 * introduce nargs-eats-options config option ([#246](https://www.github.com/yargs/yargs-parser/issues/246)) ([d50822a](https://www.github.com/yargs/yargs-parser/commit/d50822ac10e1b05f2e9643671ca131ac251b6732)) 239 240 241 ### Bug Fixes 242 243 * address bugs with "uknown-options-as-args" ([bc023e3](https://www.github.com/yargs/yargs-parser/commit/bc023e3b13e20a118353f9507d1c999bf388a346)) 244 * array should take precedence over nargs, but enforce nargs ([#243](https://www.github.com/yargs/yargs-parser/issues/243)) ([4cbc188](https://www.github.com/yargs/yargs-parser/commit/4cbc188b7abb2249529a19c090338debdad2fe6c)) 245 * support keys that collide with object prototypes ([#234](https://www.github.com/yargs/yargs-parser/issues/234)) ([1587b6d](https://www.github.com/yargs/yargs-parser/commit/1587b6d91db853a9109f1be6b209077993fee4de)) 246 * unknown options terminated with digits now handled by unknown-options-as-args ([#238](https://www.github.com/yargs/yargs-parser/issues/238)) ([d36cdfa](https://www.github.com/yargs/yargs-parser/commit/d36cdfa854254d7c7e0fe1d583818332ac46c2a5)) 247 248 ## [16.1.0](https://www.github.com/yargs/yargs-parser/compare/v16.0.0...v16.1.0) (2019-11-01) 249 250 251 ### ⚠ BREAKING CHANGES 252 253 * populate error if incompatible narg/count or array/count options are used (#191) 254 255 ### Features 256 257 * options that have had their default value used are now tracked ([#211](https://www.github.com/yargs/yargs-parser/issues/211)) ([a525234](https://www.github.com/yargs/yargs-parser/commit/a525234558c847deedd73f8792e0a3b77b26e2c0)) 258 * populate error if incompatible narg/count or array/count options are used ([#191](https://www.github.com/yargs/yargs-parser/issues/191)) ([84a401f](https://www.github.com/yargs/yargs-parser/commit/84a401f0fa3095e0a19661670d1570d0c3b9d3c9)) 5 ### [13.1.1](https://www.github.com/yargs/yargs-parser/compare/v13.1.0...v13.1.1) (2019-06-10) 6 7 8 ### Bug Fixes 9 10 * convert values to strings when tokenizing ([#167](https://www.github.com/yargs/yargs-parser/issues/167)) ([57b7883](https://www.github.com/yargs/yargs-parser/commit/57b7883)) 11 * nargs should allow duplicates when duplicate-arguments-array=false ([#164](https://www.github.com/yargs/yargs-parser/issues/164)) ([47ccb0b](https://www.github.com/yargs/yargs-parser/commit/47ccb0b)) 12 * should populate "_" when given config with "short-option-groups" false ([#179](https://www.github.com/yargs/yargs-parser/issues/179)) ([6055974](https://www.github.com/yargs/yargs-parser/commit/6055974)) 13 14 ## [13.1.0](https://github.com/yargs/yargs-parser/compare/v13.0.0...v13.1.0) (2019-05-05) 15 16 17 ### Features 18 19 * add `strip-aliased` and `strip-dashed` configuration options. ([#172](https://github.com/yargs/yargs-parser/issues/172)) ([a3936aa](https://github.com/yargs/yargs-parser/commit/a3936aa)) 20 * support boolean which do not consume next argument. ([#171](https://github.com/yargs/yargs-parser/issues/171)) ([0ae7fcb](https://github.com/yargs/yargs-parser/commit/0ae7fcb)) 21 22 23 24 <a name="13.0.0"></a> 25 # [13.0.0](https://github.com/yargs/yargs-parser/compare/v12.0.0...v13.0.0) (2019-02-02) 26 27 28 ### Features 29 30 * don't coerce number from string with leading '0' or '+' ([#158](https://github.com/yargs/yargs-parser/issues/158)) ([18d0fd5](https://github.com/yargs/yargs-parser/commit/18d0fd5)) 31 32 33 ### BREAKING CHANGES 34 35 * options with leading '+' or '0' now parse as strings 36 37 38 39 <a name="12.0.0"></a> 40 # [12.0.0](https://github.com/yargs/yargs-parser/compare/v11.1.1...v12.0.0) (2019-01-29) 41 42 43 ### Bug Fixes 44 45 * better handling of quoted strings ([#153](https://github.com/yargs/yargs-parser/issues/153)) ([2fb71b2](https://github.com/yargs/yargs-parser/commit/2fb71b2)) 46 47 48 ### Features 49 50 * default value is now used if no right-hand value provided for numbers/strings ([#156](https://github.com/yargs/yargs-parser/issues/156)) ([5a7c46a](https://github.com/yargs/yargs-parser/commit/5a7c46a)) 51 52 53 ### BREAKING CHANGES 54 55 * a flag with no right-hand value no longer populates defaulted options with `undefined`. 56 * quotes at beginning and endings of strings are not removed during parsing. 57 58 59 60 <a name="11.1.1"></a> 61 ## [11.1.1](https://github.com/yargs/yargs-parser/compare/v11.1.0...v11.1.1) (2018-11-19) 62 63 64 ### Bug Fixes 65 66 * ensure empty string is added into argv._ ([#140](https://github.com/yargs/yargs-parser/issues/140)) ([79cda98](https://github.com/yargs/yargs-parser/commit/79cda98)) 259 67 260 68 261 69 ### Reverts 262 70 263 * revert 16.0.0 CHANGELOG entry ([920320a](https://www.github.com/yargs/yargs-parser/commit/920320ad9861bbfd58eda39221ae211540fc1daf)) 71 * make requiresArg work in conjunction with arrays ([#136](https://github.com/yargs/yargs-parser/issues/136)) ([f4a3063](https://github.com/yargs/yargs-parser/commit/f4a3063)) 72 73 74 75 <a name="11.1.0"></a> 76 # [11.1.0](https://github.com/yargs/yargs-parser/compare/v11.0.0...v11.1.0) (2018-11-10) 77 78 79 ### Bug Fixes 80 81 * handling of one char alias ([#139](https://github.com/yargs/yargs-parser/issues/139)) ([ee56e31](https://github.com/yargs/yargs-parser/commit/ee56e31)) 82 83 84 ### Features 85 86 * add halt-at-non-option configuration option ([#130](https://github.com/yargs/yargs-parser/issues/130)) ([a849fce](https://github.com/yargs/yargs-parser/commit/a849fce)) 87 88 89 90 <a name="11.0.0"></a> 91 # [11.0.0](https://github.com/yargs/yargs-parser/compare/v10.1.0...v11.0.0) (2018-10-06) 92 93 94 ### Bug Fixes 95 96 * flatten-duplicate-arrays:false for more than 2 arrays ([#128](https://github.com/yargs/yargs-parser/issues/128)) ([2bc395f](https://github.com/yargs/yargs-parser/commit/2bc395f)) 97 * hyphenated flags combined with dot notation broke parsing ([#131](https://github.com/yargs/yargs-parser/issues/131)) ([dc788da](https://github.com/yargs/yargs-parser/commit/dc788da)) 98 * make requiresArg work in conjunction with arrays ([#136](https://github.com/yargs/yargs-parser/issues/136)) ([77ae1d4](https://github.com/yargs/yargs-parser/commit/77ae1d4)) 99 100 101 ### Chores 102 103 * update dependencies ([6dc42a1](https://github.com/yargs/yargs-parser/commit/6dc42a1)) 104 105 106 ### Features 107 108 * also add camelCase array options ([#125](https://github.com/yargs/yargs-parser/issues/125)) ([08c0117](https://github.com/yargs/yargs-parser/commit/08c0117)) 109 * array.type can now be provided, supporting coercion ([#132](https://github.com/yargs/yargs-parser/issues/132)) ([4b8cfce](https://github.com/yargs/yargs-parser/commit/4b8cfce)) 110 111 112 ### BREAKING CHANGES 113 114 * drops Node 4 support 115 * the argv object is now populated differently (correctly) when hyphens and dot notation are used in conjunction. 116 117 118 119 <a name="10.1.0"></a> 120 # [10.1.0](https://github.com/yargs/yargs-parser/compare/v10.0.0...v10.1.0) (2018-06-29) 121 122 123 ### Features 124 125 * add `set-placeholder-key` configuration ([#123](https://github.com/yargs/yargs-parser/issues/123)) ([19386ee](https://github.com/yargs/yargs-parser/commit/19386ee)) 126 127 128 129 <a name="10.0.0"></a> 130 # [10.0.0](https://github.com/yargs/yargs-parser/compare/v9.0.2...v10.0.0) (2018-04-04) 131 132 133 ### Bug Fixes 134 135 * do not set boolean flags if not defined in `argv` ([#119](https://github.com/yargs/yargs-parser/issues/119)) ([f6e6599](https://github.com/yargs/yargs-parser/commit/f6e6599)) 136 137 138 ### BREAKING CHANGES 139 140 * `boolean` flags defined without a `default` value will now behave like other option type and won't be set in the parsed results when the user doesn't set the corresponding CLI arg. 141 142 Previous behavior: 143 ```js 144 var parse = require('yargs-parser'); 145 146 parse('--flag', {boolean: ['flag']}); 147 // => { _: [], flag: true } 148 149 parse('--no-flag', {boolean: ['flag']}); 150 // => { _: [], flag: false } 151 152 parse('', {boolean: ['flag']}); 153 // => { _: [], flag: false } 154 ``` 155 156 New behavior: 157 ```js 158 var parse = require('yargs-parser'); 159 160 parse('--flag', {boolean: ['flag']}); 161 // => { _: [], flag: true } 162 163 parse('--no-flag', {boolean: ['flag']}); 164 // => { _: [], flag: false } 165 166 parse('', {boolean: ['flag']}); 167 // => { _: [] } => flag not set similarly to other option type 168 ``` 169 170 171 172 <a name="9.0.2"></a> 173 ## [9.0.2](https://github.com/yargs/yargs-parser/compare/v9.0.1...v9.0.2) (2018-01-20) 174 175 176 ### Bug Fixes 177 178 * nargs was still aggressively consuming too many arguments ([9b28aad](https://github.com/yargs/yargs-parser/commit/9b28aad)) 179 180 181 182 <a name="9.0.1"></a> 183 ## [9.0.1](https://github.com/yargs/yargs-parser/compare/v9.0.0...v9.0.1) (2018-01-20) 184 185 186 ### Bug Fixes 187 188 * nargs was consuming too many arguments ([4fef206](https://github.com/yargs/yargs-parser/commit/4fef206)) 189 190 191 192 <a name="9.0.0"></a> 193 # [9.0.0](https://github.com/yargs/yargs-parser/compare/v8.1.0...v9.0.0) (2018-01-20) 194 195 196 ### Features 197 198 * narg arguments no longer consume flag arguments ([#114](https://github.com/yargs/yargs-parser/issues/114)) ([60bb9b3](https://github.com/yargs/yargs-parser/commit/60bb9b3)) 199 200 201 ### BREAKING CHANGES 202 203 * arguments of form --foo, -abc, will no longer be consumed by nargs 204 205 206 207 <a name="8.1.0"></a> 208 # [8.1.0](https://github.com/yargs/yargs-parser/compare/v8.0.0...v8.1.0) (2017-12-20) 209 210 211 ### Bug Fixes 212 213 * allow null config values ([#108](https://github.com/yargs/yargs-parser/issues/108)) ([d8b14f9](https://github.com/yargs/yargs-parser/commit/d8b14f9)) 214 * ensure consistent parsing of dot-notation arguments ([#102](https://github.com/yargs/yargs-parser/issues/102)) ([c9bd79c](https://github.com/yargs/yargs-parser/commit/c9bd79c)) 215 * implement [@antoniom](https://github.com/antoniom)'s fix for camel-case expansion ([3087e1d](https://github.com/yargs/yargs-parser/commit/3087e1d)) 216 * only run coercion functions once, despite aliases. ([#76](https://github.com/yargs/yargs-parser/issues/76)) ([#103](https://github.com/yargs/yargs-parser/issues/103)) ([507aaef](https://github.com/yargs/yargs-parser/commit/507aaef)) 217 * scientific notation circumvented bounds check ([#110](https://github.com/yargs/yargs-parser/issues/110)) ([3571f57](https://github.com/yargs/yargs-parser/commit/3571f57)) 218 * tokenizer should ignore spaces at the beginning of the argString ([#106](https://github.com/yargs/yargs-parser/issues/106)) ([f34ead9](https://github.com/yargs/yargs-parser/commit/f34ead9)) 219 220 221 ### Features 222 223 * make combining arrays a configurable option ([#111](https://github.com/yargs/yargs-parser/issues/111)) ([c8bf536](https://github.com/yargs/yargs-parser/commit/c8bf536)) 224 * merge array from arguments with array from config ([#83](https://github.com/yargs/yargs-parser/issues/83)) ([806ddd6](https://github.com/yargs/yargs-parser/commit/806ddd6)) 225 226 227 228 <a name="8.0.0"></a> 229 # [8.0.0](https://github.com/yargs/yargs-parser/compare/v7.0.0...v8.0.0) (2017-10-05) 230 231 232 ### Bug Fixes 233 234 * Ignore multiple spaces between arguments. ([#100](https://github.com/yargs/yargs-parser/issues/100)) ([d137227](https://github.com/yargs/yargs-parser/commit/d137227)) 235 236 237 ### Features 238 239 * allow configuration of prefix for boolean negation ([#94](https://github.com/yargs/yargs-parser/issues/94)) ([00bde7d](https://github.com/yargs/yargs-parser/commit/00bde7d)) 240 * reworking how numbers are parsed ([#104](https://github.com/yargs/yargs-parser/issues/104)) ([fba00eb](https://github.com/yargs/yargs-parser/commit/fba00eb)) 241 242 243 ### BREAKING CHANGES 244 245 * strings that fail `Number.isSafeInteger()` are no longer coerced into numbers. 246 247 248 249 <a name="7.0.0"></a> 250 # [7.0.0](https://github.com/yargs/yargs-parser/compare/v6.0.1...v7.0.0) (2017-05-02) 251 252 253 ### Chores 254 255 * revert populate-- logic ([#91](https://github.com/yargs/yargs-parser/issues/91)) ([6003e6d](https://github.com/yargs/yargs-parser/commit/6003e6d)) 256 257 258 ### BREAKING CHANGES 259 260 * populate-- now defaults to false. 261 262 263 264 <a name="6.0.1"></a> 265 ## [6.0.1](https://github.com/yargs/yargs-parser/compare/v6.0.0...v6.0.1) (2017-05-01) 266 267 268 ### Bug Fixes 269 270 * default '--' to undefined when not provided; this is closer to the array API ([#90](https://github.com/yargs/yargs-parser/issues/90)) ([4e739cc](https://github.com/yargs/yargs-parser/commit/4e739cc)) 271 272 273 274 <a name="6.0.0"></a> 275 # [6.0.0](https://github.com/yargs/yargs-parser/compare/v4.2.1...v6.0.0) (2017-05-01) 276 277 278 ### Bug Fixes 279 280 * environment variables should take precedence over config file ([#81](https://github.com/yargs/yargs-parser/issues/81)) ([76cee1f](https://github.com/yargs/yargs-parser/commit/76cee1f)) 281 * parsing hints should apply for dot notation keys ([#86](https://github.com/yargs/yargs-parser/issues/86)) ([3e47d62](https://github.com/yargs/yargs-parser/commit/3e47d62)) 282 283 284 ### Chores 285 286 * upgrade to newest version of camelcase ([#87](https://github.com/yargs/yargs-parser/issues/87)) ([f1903aa](https://github.com/yargs/yargs-parser/commit/f1903aa)) 287 288 289 ### Features 290 291 * add -- option which allows arguments after the -- flag to be returned separated from positional arguments ([#84](https://github.com/yargs/yargs-parser/issues/84)) ([2572ca8](https://github.com/yargs/yargs-parser/commit/2572ca8)) 292 * when parsing stops, we now populate "--" by default ([#88](https://github.com/yargs/yargs-parser/issues/88)) ([cd666db](https://github.com/yargs/yargs-parser/commit/cd666db)) 293 294 295 ### BREAKING CHANGES 296 297 * rather than placing arguments in "_", when parsing is stopped via "--"; we now populate an array called "--" by default. 298 * camelcase now requires Node 4+. 299 * environment variables will now override config files (args, env, config-file, config-object) 300 301 302 303 <a name="5.0.0"></a> 304 # [5.0.0](https://github.com/yargs/yargs-parser/compare/v4.2.1...v5.0.0) (2017-02-18) 305 306 307 ### Bug Fixes 308 309 * environment variables should take precedence over config file ([#81](https://github.com/yargs/yargs-parser/issues/81)) ([76cee1f](https://github.com/yargs/yargs-parser/commit/76cee1f)) 310 311 312 ### BREAKING CHANGES 313 314 * environment variables will now override config files (args, env, config-file, config-object) 315 316 317 318 <a name="4.2.1"></a> 319 ## [4.2.1](https://github.com/yargs/yargs-parser/compare/v4.2.0...v4.2.1) (2017-01-02) 320 321 322 ### Bug Fixes 323 324 * flatten/duplicate regression ([#75](https://github.com/yargs/yargs-parser/issues/75)) ([68d68a0](https://github.com/yargs/yargs-parser/commit/68d68a0)) 325 326 327 328 <a name="4.2.0"></a> 329 # [4.2.0](https://github.com/yargs/yargs-parser/compare/v4.1.0...v4.2.0) (2016-12-01) 330 331 332 ### Bug Fixes 333 334 * inner objects in configs had their keys appended to top-level key when dot-notation was disabled ([#72](https://github.com/yargs/yargs-parser/issues/72)) ([0b1b5f9](https://github.com/yargs/yargs-parser/commit/0b1b5f9)) 335 336 337 ### Features 338 339 * allow multiple arrays to be provided, rather than always combining ([#71](https://github.com/yargs/yargs-parser/issues/71)) ([0f0fb2d](https://github.com/yargs/yargs-parser/commit/0f0fb2d)) 340 341 342 343 <a name="4.1.0"></a> 344 # [4.1.0](https://github.com/yargs/yargs-parser/compare/v4.0.2...v4.1.0) (2016-11-07) 345 346 347 ### Features 348 349 * apply coercions to default options ([#65](https://github.com/yargs/yargs-parser/issues/65)) ([c79052b](https://github.com/yargs/yargs-parser/commit/c79052b)) 350 * handle dot notation boolean options ([#63](https://github.com/yargs/yargs-parser/issues/63)) ([02c3545](https://github.com/yargs/yargs-parser/commit/02c3545)) 351 352 353 354 <a name="4.0.2"></a> 355 ## [4.0.2](https://github.com/yargs/yargs-parser/compare/v4.0.1...v4.0.2) (2016-09-30) 356 357 358 ### Bug Fixes 359 360 * whoops, let's make the assign not change the Object key order ([29d069a](https://github.com/yargs/yargs-parser/commit/29d069a)) 361 362 363 364 <a name="4.0.1"></a> 365 ## [4.0.1](https://github.com/yargs/yargs-parser/compare/v4.0.0...v4.0.1) (2016-09-30) 366 367 368 ### Bug Fixes 369 370 * lodash.assign was deprecated ([#59](https://github.com/yargs/yargs-parser/issues/59)) ([5e7eb11](https://github.com/yargs/yargs-parser/commit/5e7eb11)) 371 372 373 374 <a name="4.0.0"></a> 375 # [4.0.0](https://github.com/yargs/yargs-parser/compare/v3.2.0...v4.0.0) (2016-09-26) 376 377 378 ### Bug Fixes 379 380 * coerce should be applied to the final objects and arrays created ([#57](https://github.com/yargs/yargs-parser/issues/57)) ([4ca69da](https://github.com/yargs/yargs-parser/commit/4ca69da)) 381 382 383 ### BREAKING CHANGES 384 385 * coerce is no longer applied to individual arguments in an implicit array. 386 387 388 389 <a name="3.2.0"></a> 390 # [3.2.0](https://github.com/yargs/yargs-parser/compare/v3.1.0...v3.2.0) (2016-08-13) 391 392 393 ### Features 394 395 * coerce full array instead of each element ([#51](https://github.com/yargs/yargs-parser/issues/51)) ([cc4dc56](https://github.com/yargs/yargs-parser/commit/cc4dc56)) 396 397 398 399 <a name="3.1.0"></a> 400 # [3.1.0](https://github.com/yargs/yargs-parser/compare/v3.0.0...v3.1.0) (2016-08-09) 401 402 403 ### Bug Fixes 404 405 * address pkgConf parsing bug outlined in [#37](https://github.com/yargs/yargs-parser/issues/37) ([#45](https://github.com/yargs/yargs-parser/issues/45)) ([be76ee6](https://github.com/yargs/yargs-parser/commit/be76ee6)) 406 * better parsing of negative values ([#44](https://github.com/yargs/yargs-parser/issues/44)) ([2e43692](https://github.com/yargs/yargs-parser/commit/2e43692)) 407 * check aliases when guessing defaults for arguments fixes [#41](https://github.com/yargs/yargs-parser/issues/41) ([#43](https://github.com/yargs/yargs-parser/issues/43)) ([f3e4616](https://github.com/yargs/yargs-parser/commit/f3e4616)) 408 409 410 ### Features 411 412 * added coerce option, for providing specialized argument parsing ([#42](https://github.com/yargs/yargs-parser/issues/42)) ([7b49cd2](https://github.com/yargs/yargs-parser/commit/7b49cd2)) 413 414 415 416 <a name="3.0.0"></a> 417 # [3.0.0](https://github.com/yargs/yargs-parser/compare/v2.4.1...v3.0.0) (2016-08-07) 418 419 420 ### Bug Fixes 421 422 * parsing issue with numeric character in group of options ([#19](https://github.com/yargs/yargs-parser/issues/19)) ([f743236](https://github.com/yargs/yargs-parser/commit/f743236)) 423 * upgraded lodash.assign ([5d7fdf4](https://github.com/yargs/yargs-parser/commit/5d7fdf4)) 424 425 ### BREAKING CHANGES 426 427 * subtle change to how values are parsed in a group of single-character arguments. 428 * _first released in 3.1.0, better handling of negative values should be considered a breaking change._ 429 430 431 432 <a name="2.4.1"></a> 433 ## [2.4.1](https://github.com/yargs/yargs-parser/compare/v2.4.0...v2.4.1) (2016-07-16) 434 435 436 ### Bug Fixes 437 438 * **count:** do not increment a default value ([#39](https://github.com/yargs/yargs-parser/issues/39)) ([b04a189](https://github.com/yargs/yargs-parser/commit/b04a189)) 439 440 441 442 <a name="2.4.0"></a> 443 # [2.4.0](https://github.com/yargs/yargs-parser/compare/v2.3.0...v2.4.0) (2016-04-11) 444 445 446 ### Features 447 448 * **environment:** Support nested options in environment variables ([#26](https://github.com/yargs/yargs-parser/issues/26)) thanks [@elas7](https://github.com/elas7) \o/ ([020778b](https://github.com/yargs/yargs-parser/commit/020778b)) 449 450 451 452 <a name="2.3.0"></a> 453 # [2.3.0](https://github.com/yargs/yargs-parser/compare/v2.2.0...v2.3.0) (2016-04-09) 454 455 456 ### Bug Fixes 457 458 * **boolean:** fix for boolean options with non boolean defaults (#20) ([2dbe86b](https://github.com/yargs/yargs-parser/commit/2dbe86b)), closes [(#20](https://github.com/(/issues/20) 459 * **package:** remove tests from tarball ([0353c0d](https://github.com/yargs/yargs-parser/commit/0353c0d)) 460 * **parsing:** handle calling short option with an empty string as the next value. ([a867165](https://github.com/yargs/yargs-parser/commit/a867165)) 461 * boolean flag when next value contains the strings 'true' or 'false'. ([69941a6](https://github.com/yargs/yargs-parser/commit/69941a6)) 462 * update dependencies; add standard-version bin for next release (#24) ([822d9d5](https://github.com/yargs/yargs-parser/commit/822d9d5)) 463 464 ### Features 465 466 * **configuration:** Allow to pass configuration objects to yargs-parser ([0780900](https://github.com/yargs/yargs-parser/commit/0780900)) 467 * **normalize:** allow normalize to work with arrays ([e0eaa1a](https://github.com/yargs/yargs-parser/commit/e0eaa1a)) -
trip-planner-front/node_modules/yargs-parser/README.md
r59329aa re29cc2e 1 1 # yargs-parser 2 2 3 ![ci](https://github.com/yargs/yargs-parser/workflows/ci/badge.svg) 3 [![Build Status](https://travis-ci.org/yargs/yargs-parser.svg)](https://travis-ci.org/yargs/yargs-parser) 4 [![Coverage Status](https://coveralls.io/repos/yargs/yargs-parser/badge.svg?branch=)](https://coveralls.io/r/yargs/yargs-parser?branch=master) 4 5 [![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser) 5 [![ Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)6 ![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/yargs-parser) 6 [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) 7 7 8 8 9 The mighty option parser used by [yargs](https://github.com/yargs/yargs). … … 10 11 visit the [yargs website](http://yargs.js.org/) for more examples, and thorough usage instructions. 11 12 12 <img width="250" src="https://raw.githubusercontent.com/yargs/yargs-parser/ma in/yargs-logo.png">13 <img width="250" src="https://raw.githubusercontent.com/yargs/yargs-parser/master/yargs-logo.png"> 13 14 14 15 ## Example … … 19 20 20 21 ```js 21 constargv = require('yargs-parser')(process.argv.slice(2))22 var argv = require('yargs-parser')(process.argv.slice(2)) 22 23 console.log(argv) 23 24 ``` 24 25 25 ``` console26 $node example.js --foo=33 --bar hello26 ```sh 27 node example.js --foo=33 --bar hello 27 28 { _: [], foo: 33, bar: 'hello' } 28 29 ``` … … 31 32 32 33 ```js 33 const argv = require('yargs-parser')('--foo=99 --bar=33')34 var argv = require('./')('--foo=99 --bar=33') 34 35 console.log(argv) 35 36 ``` 36 37 37 ``` console38 ```sh 38 39 { _: [], foo: 99, bar: 33 } 39 40 ``` … … 42 43 43 44 ```js 44 constparse = require('yargs-parser')45 var parse = require('yargs-parser') 45 46 parse(['-f', 11, '--zoom', 55].join(' ')) // <-- array to string 46 47 parse(['-f', 11, '--zoom', 55].map(String)) // <-- array of strings 47 48 ``` 48 49 49 ## Deno Example50 51 As of `v19` `yargs-parser` supports [Deno](https://github.com/denoland/deno):52 53 ```typescript54 import parser from "https://deno.land/x/yargs_parser/deno.ts";55 56 const argv = parser('--foo=99 --bar=9987930', {57 string: ['bar']58 })59 console.log(argv)60 ```61 62 ## ESM Example63 64 As of `v19` `yargs-parser` supports ESM (_both in Node.js and in the browser_):65 66 **Node.js:**67 68 ```js69 import parser from 'yargs-parser'70 71 const argv = parser('--foo=99 --bar=9987930', {72 string: ['bar']73 })74 console.log(argv)75 ```76 77 **Browsers:**78 79 ```html80 <!doctype html>81 <body>82 <script type="module">83 import parser from "https://unpkg.com/yargs-parser@19.0.0/browser.js";84 85 const argv = parser('--foo=99 --bar=9987930', {86 string: ['bar']87 })88 console.log(argv)89 </script>90 </body>91 ```92 93 50 ## API 94 51 95 ### parser(args, opts={})52 ### require('yargs-parser')(args, opts={}) 96 53 97 54 Parses command line arguments returning a simple mapping of keys and values. … … 143 100 * `key/value`: key value pairs for each argument and their aliases. 144 101 * `_`: an array representing the positional arguments. 145 * [optional] `--`: an array with arguments after the end-of-options flag `--`.146 102 * `error`: populated with an error object if an exception occurred during parsing. 147 103 * `aliases`: the inferred list of aliases built by combining lists in `opts.alias`. 148 * `newAliases`: any new aliases added via camel-case expansion: 149 * `boolean`: `{ fooBar: true }` 150 * `defaulted`: any new argument created by `opts.default`, no aliases included. 151 * `boolean`: `{ foo: true }` 152 * `configuration`: given by default settings and `opts.configuration`. 104 * `newAliases`: any new aliases added via camel-case expansion. 105 * `configuration`: the configuration loaded from the `yargs` stanza in package.json. 153 106 154 107 <a name="configuration"></a> … … 175 128 Should a group of short-options be treated as boolean flags? 176 129 177 ``` console178 $node example.js -abc130 ```sh 131 node example.js -abc 179 132 { _: [], a: true, b: true, c: true } 180 133 ``` … … 182 135 _if disabled:_ 183 136 184 ``` console185 $node example.js -abc137 ```sh 138 node example.js -abc 186 139 { _: [], abc: true } 187 140 ``` … … 194 147 Should hyphenated arguments be expanded into camel-case aliases? 195 148 196 ``` console197 $node example.js --foo-bar149 ```sh 150 node example.js --foo-bar 198 151 { _: [], 'foo-bar': true, fooBar: true } 199 152 ``` … … 201 154 _if disabled:_ 202 155 203 ``` console204 $node example.js --foo-bar156 ```sh 157 node example.js --foo-bar 205 158 { _: [], 'foo-bar': true } 206 159 ``` … … 213 166 Should keys that contain `.` be treated as objects? 214 167 215 ``` console216 $node example.js --foo.bar168 ```sh 169 node example.js --foo.bar 217 170 { _: [], foo: { bar: true } } 218 171 ``` … … 220 173 _if disabled:_ 221 174 222 ``` console223 $node example.js --foo.bar175 ```sh 176 node example.js --foo.bar 224 177 { _: [], "foo.bar": true } 225 178 ``` … … 232 185 Should keys that look like numbers be treated as such? 233 186 234 ``` console235 $node example.js --foo=99.3187 ```sh 188 node example.js --foo=99.3 236 189 { _: [], foo: 99.3 } 237 190 ``` … … 239 192 _if disabled:_ 240 193 241 ``` console242 $node example.js --foo=99.3194 ```sh 195 node example.js --foo=99.3 243 196 { _: [], foo: "99.3" } 244 197 ``` 245 198 246 ### parse positional numbers247 248 * default: `true`249 * key: `parse-positional-numbers`250 251 Should positional keys that look like numbers be treated as such.252 253 ```console254 $ node example.js 99.3255 { _: [99.3] }256 ```257 258 _if disabled:_259 260 ```console261 $ node example.js 99.3262 { _: ['99.3'] }263 ```264 265 199 ### boolean negation 266 200 … … 270 204 Should variables prefixed with `--no` be treated as negations? 271 205 272 ``` console273 $node example.js --no-foo206 ```sh 207 node example.js --no-foo 274 208 { _: [], foo: false } 275 209 ``` … … 277 211 _if disabled:_ 278 212 279 ``` console280 $node example.js --no-foo213 ```sh 214 node example.js --no-foo 281 215 { _: [], "no-foo": true } 282 216 ``` … … 297 231 Should arguments be coerced into an array when duplicated: 298 232 299 ``` console300 $node example.js -x 1 -x 2233 ```sh 234 node example.js -x 1 -x 2 301 235 { _: [], x: [1, 2] } 302 236 ``` … … 304 238 _if disabled:_ 305 239 306 ``` console307 $node example.js -x 1 -x 2240 ```sh 241 node example.js -x 1 -x 2 308 242 { _: [], x: 2 } 309 243 ``` … … 316 250 Should array arguments be coerced into a single array when duplicated: 317 251 318 ``` console319 $node example.js -x 1 2 -x 3 4252 ```sh 253 node example.js -x 1 2 -x 3 4 320 254 { _: [], x: [1, 2, 3, 4] } 321 255 ``` … … 323 257 _if disabled:_ 324 258 325 ``` console326 $node example.js -x 1 2 -x 3 4259 ```sh 260 node example.js -x 1 2 -x 3 4 327 261 { _: [], x: [[1, 2], [3, 4]] } 328 262 ``` 329 330 ### greedy arrays331 332 * default: `true`333 * key: `greedy-arrays`334 335 Should arrays consume more than one positional argument following their flag.336 337 ```console338 $ node example --arr 1 2339 { _: [], arr: [1, 2] }340 ```341 342 _if disabled:_343 344 ```console345 $ node example --arr 1 2346 { _: [2], arr: [1] }347 ```348 349 **Note: in `v18.0.0` we are considering defaulting greedy arrays to `false`.**350 351 ### nargs eats options352 353 * default: `false`354 * key: `nargs-eats-options`355 356 Should nargs consume dash options as well as positional arguments.357 263 358 264 ### negation prefix … … 363 269 The prefix to use for negated boolean variables. 364 270 365 ``` console366 $node example.js --no-foo271 ```sh 272 node example.js --no-foo 367 273 { _: [], foo: false } 368 274 ``` … … 370 276 _if set to `quux`:_ 371 277 372 ``` console373 $node example.js --quuxfoo278 ```sh 279 node example.js --quuxfoo 374 280 { _: [], foo: false } 375 281 ``` … … 384 290 _If disabled:_ 385 291 386 ``` console387 $node example.js a -b -- x y292 ```sh 293 node example.js a -b -- x y 388 294 { _: [ 'a', 'x', 'y' ], b: true } 389 295 ``` … … 391 297 _If enabled:_ 392 298 393 ``` console394 $node example.js a -b -- x y299 ```sh 300 node example.js a -b -- x y 395 301 { _: [ 'a' ], '--': [ 'x', 'y' ], b: true } 396 302 ``` … … 405 311 _If disabled:_ 406 312 407 ``` console408 $node example.js -a 1 -c 2313 ```sh 314 node example.js -a 1 -c 2 409 315 { _: [], a: 1, c: 2 } 410 316 ``` … … 412 318 _If enabled:_ 413 319 414 ``` console415 $node example.js -a 1 -c 2320 ```sh 321 node example.js -a 1 -c 2 416 322 { _: [], a: 1, b: undefined, c: 2 } 417 323 ``` … … 426 332 _If disabled:_ 427 333 428 ``` console429 $node example.js -a run b -x y334 ```sh 335 node example.js -a run b -x y 430 336 { _: [ 'b' ], a: 'run', x: 'y' } 431 337 ``` … … 433 339 _If enabled:_ 434 340 435 ``` console436 $node example.js -a run b -x y341 ```sh 342 node example.js -a run b -x y 437 343 { _: [ 'b', '-x', 'y' ], a: 'run' } 438 344 ``` … … 447 353 _If disabled:_ 448 354 449 ``` console450 $node example.js --test-field 1355 ```sh 356 node example.js --test-field 1 451 357 { _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 } 452 358 ``` … … 454 360 _If enabled:_ 455 361 456 ``` console457 $node example.js --test-field 1362 ```sh 363 node example.js --test-field 1 458 364 { _: [], 'test-field': 1, testField: 1 } 459 365 ``` … … 465 371 466 372 Should dashed keys be removed before returning results? This option has no effect if 467 `camel-case-ex pansion` is disabled.468 469 _If disabled:_ 470 471 ``` console472 $node example.js --test-field 1373 `camel-case-exansion` is disabled. 374 375 _If disabled:_ 376 377 ```sh 378 node example.js --test-field 1 473 379 { _: [], 'test-field': 1, testField: 1 } 474 380 ``` … … 476 382 _If enabled:_ 477 383 478 ``` console479 $node example.js --test-field 1384 ```sh 385 node example.js --test-field 1 480 386 { _: [], testField: 1 } 481 387 ``` 482 483 ### unknown options as args484 485 * default: `false`486 * key: `unknown-options-as-args`487 488 Should unknown options be treated like regular arguments? An unknown option is one that is not489 configured in `opts`.490 491 _If disabled_492 493 ```console494 $ node example.js --unknown-option --known-option 2 --string-option --unknown-option2495 { _: [], unknownOption: true, knownOption: 2, stringOption: '', unknownOption2: true }496 ```497 498 _If enabled_499 500 ```console501 $ node example.js --unknown-option --known-option 2 --string-option --unknown-option2502 { _: ['--unknown-option'], knownOption: 2, stringOption: '--unknown-option2' }503 ```504 505 ## Supported Node.js Versions506 507 Libraries in this ecosystem make a best effort to track508 [Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a509 post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).510 388 511 389 ## Special Thanks -
trip-planner-front/node_modules/yargs-parser/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "yargs-parser@20.2.9", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "yargs-parser@20.2.9", 10 "_id": "yargs-parser@20.2.9", 2 "_from": "yargs-parser@^13.1.2", 3 "_id": "yargs-parser@13.1.2", 11 4 "_inBundle": false, 12 "_integrity": "sha512- y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",5 "_integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", 13 6 "_location": "/yargs-parser", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "yargs-parser@ 20.2.9",11 "raw": "yargs-parser@^13.1.2", 19 12 "name": "yargs-parser", 20 13 "escapedName": "yargs-parser", 21 "rawSpec": " 20.2.9",14 "rawSpec": "^13.1.2", 22 15 "saveSpec": null, 23 "fetchSpec": " 20.2.9"16 "fetchSpec": "^13.1.2" 24 17 }, 25 18 "_requiredBy": [ 26 "/karma/yargs",27 19 "/yargs" 28 20 ], 29 "_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", 30 "_spec": "20.2.9", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 21 "_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", 22 "_shasum": "130f09702ebaeef2650d54ce6e3e5706f7a4fb38", 23 "_spec": "yargs-parser@^13.1.2", 24 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\yargs", 32 25 "author": { 33 26 "name": "Ben Coe", … … 37 30 "url": "https://github.com/yargs/yargs-parser/issues" 38 31 }, 32 "bundleDependencies": false, 33 "dependencies": { 34 "camelcase": "^5.0.0", 35 "decamelize": "^1.2.0" 36 }, 37 "deprecated": false, 39 38 "description": "the mighty option parser used by yargs", 40 39 "devDependencies": { 41 "@types/chai": "^4.2.11",42 "@types/mocha": "^8.0.0",43 "@types/node": "^14.0.0",44 "@typescript-eslint/eslint-plugin": "^3.10.1",45 "@typescript-eslint/parser": "^3.10.1",46 "@wessberg/rollup-plugin-ts": "^1.2.28",47 "c8": "^7.3.0",48 40 "chai": "^4.2.0", 49 "cross-env": "^7.0.2", 50 "eslint": "^7.0.0", 51 "eslint-plugin-import": "^2.20.1", 52 "eslint-plugin-node": "^11.0.0", 53 "gts": "^3.0.0", 54 "mocha": "^9.0.0", 55 "puppeteer": "^10.0.0", 56 "rimraf": "^3.0.2", 57 "rollup": "^2.22.1", 58 "rollup-plugin-cleanup": "^3.1.1", 59 "serve": "^12.0.0", 60 "standardx": "^7.0.0", 61 "start-server-and-test": "^1.11.2", 62 "ts-transform-default-export": "^1.0.2", 63 "typescript": "^4.0.0" 41 "coveralls": "^3.0.2", 42 "mocha": "^5.2.0", 43 "nyc": "^14.1.0", 44 "standard": "^12.0.1", 45 "standard-version": "^6.0.0" 64 46 }, 65 "engines": { 66 "node": ">=10" 67 }, 68 "exports": { 69 ".": [ 70 { 71 "import": "./build/lib/index.js", 72 "require": "./build/index.cjs" 73 }, 74 "./build/index.cjs" 75 ] 47 "engine": { 48 "node": ">=6" 76 49 }, 77 50 "files": [ 78 "browser.js", 79 "build", 80 "!*.d.ts" 51 "lib", 52 "index.js" 81 53 ], 82 54 "homepage": "https://github.com/yargs/yargs-parser#readme", … … 93 65 ], 94 66 "license": "ISC", 95 "main": "build/index.cjs", 96 "module": "./build/lib/index.js", 67 "main": "index.js", 97 68 "name": "yargs-parser", 98 69 "repository": { 99 "type": "git", 100 "url": "git+https://github.com/yargs/yargs-parser.git" 70 "url": "git+ssh://git@github.com/yargs/yargs-parser.git" 101 71 }, 102 72 "scripts": { 103 "build:cjs": "rollup -c", 104 "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'", 105 "compile": "tsc", 106 "coverage": "c8 report --check-coverage", 107 "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'", 108 "postcompile": "npm run build:cjs", 109 "precompile": "rimraf build", 110 "prepare": "npm run compile", 111 "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", 112 "pretest:typescript": "npm run pretest", 113 "test": "c8 --reporter=text --reporter=html mocha test/*.cjs", 114 "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'", 115 "test:typescript": "c8 mocha ./build/test/typescript/*.js" 73 "coverage": "nyc report --reporter=text-lcov | coveralls", 74 "posttest": "standard", 75 "release": "standard-version", 76 "test": "nyc mocha test/*.js" 116 77 }, 117 "standardx": { 118 "ignore": [ 119 "build" 120 ] 121 }, 122 "type": "module", 123 "version": "20.2.9" 78 "version": "13.1.2" 124 79 }
Note:
See TracChangeset
for help on using the changeset viewer.