@alma-cdk/project 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1603) hide show
  1. package/.gitattributes +22 -0
  2. package/.jsii +5569 -0
  3. package/.nvmrc +1 -0
  4. package/API.md +3500 -0
  5. package/LICENSE +202 -0
  6. package/README.md +201 -0
  7. package/assets/accounts-1x.svg +3 -0
  8. package/assets/accounts-2x.svg +3 -0
  9. package/assets/accounts-3x.svg +3 -0
  10. package/assets/accounts.drawio +1 -0
  11. package/assets/alma-cdk-logo.afdesign +0 -0
  12. package/assets/alma-cdk-project.svg +61 -0
  13. package/lib/configurations/accounts.d.ts +108 -0
  14. package/lib/configurations/accounts.js +176 -0
  15. package/lib/configurations/environments.d.ts +45 -0
  16. package/lib/configurations/environments.js +83 -0
  17. package/lib/configurations/index.d.ts +2 -0
  18. package/lib/configurations/index.js +8 -0
  19. package/lib/context/account.d.ts +12 -0
  20. package/lib/context/account.js +41 -0
  21. package/lib/context/environment.d.ts +144 -0
  22. package/lib/context/environment.js +183 -0
  23. package/lib/context/index.d.ts +2 -0
  24. package/lib/context/index.js +9 -0
  25. package/lib/error/add.d.ts +2 -0
  26. package/lib/error/add.js +9 -0
  27. package/lib/error/index.d.ts +1 -0
  28. package/lib/error/index.js +5 -0
  29. package/lib/index.d.ts +6 -0
  30. package/lib/index.js +19 -0
  31. package/lib/name/index.d.ts +10 -0
  32. package/lib/name/index.js +18 -0
  33. package/lib/name/interfaces.d.ts +4 -0
  34. package/lib/name/interfaces.js +3 -0
  35. package/lib/name/max-length.d.ts +6 -0
  36. package/lib/name/max-length.js +29 -0
  37. package/lib/name/name-path.d.ts +8 -0
  38. package/lib/name/name-path.js +32 -0
  39. package/lib/name/name-path.test.d.ts +1 -0
  40. package/lib/name/name-path.test.js +88 -0
  41. package/lib/name/name-url.d.ts +8 -0
  42. package/lib/name/name-url.js +33 -0
  43. package/lib/name/name-url.test.d.ts +1 -0
  44. package/lib/name/name-url.test.js +84 -0
  45. package/lib/name/name.d.ts +13 -0
  46. package/lib/name/name.js +61 -0
  47. package/lib/name/name.test.d.ts +1 -0
  48. package/lib/name/name.test.js +83 -0
  49. package/lib/name/trim.d.ts +3 -0
  50. package/lib/name/trim.js +24 -0
  51. package/lib/name/trim.test.d.ts +1 -0
  52. package/lib/name/trim.test.js +30 -0
  53. package/lib/project/account-type.d.ts +10 -0
  54. package/lib/project/account-type.js +37 -0
  55. package/lib/project/environment-type.d.ts +9 -0
  56. package/lib/project/environment-type.js +40 -0
  57. package/lib/project/envregexp.d.ts +5 -0
  58. package/lib/project/envregexp.js +17 -0
  59. package/lib/project/index.d.ts +6 -0
  60. package/lib/project/index.js +25 -0
  61. package/lib/project/interfaces.d.ts +102 -0
  62. package/lib/project/interfaces.js +3 -0
  63. package/lib/project/project-context.d.ts +29 -0
  64. package/lib/project/project-context.js +87 -0
  65. package/lib/project/project.d.ts +51 -0
  66. package/lib/project/project.js +82 -0
  67. package/lib/project/resolve-region.d.ts +2 -0
  68. package/lib/project/resolve-region.js +24 -0
  69. package/lib/smartstack/description/index.d.ts +6 -0
  70. package/lib/smartstack/description/index.js +16 -0
  71. package/lib/smartstack/description/index.test.d.ts +1 -0
  72. package/lib/smartstack/description/index.test.js +104 -0
  73. package/lib/smartstack/index.d.ts +1 -0
  74. package/lib/smartstack/index.js +5 -0
  75. package/lib/smartstack/name/index.d.ts +8 -0
  76. package/lib/smartstack/name/index.js +21 -0
  77. package/lib/smartstack/name/index.test.d.ts +1 -0
  78. package/lib/smartstack/name/index.test.js +129 -0
  79. package/lib/smartstack/stack.d.ts +9 -0
  80. package/lib/smartstack/stack.js +66 -0
  81. package/lib/smartstack/tags/checks.d.ts +5 -0
  82. package/lib/smartstack/tags/checks.js +18 -0
  83. package/lib/smartstack/tags/exclude.d.ts +2 -0
  84. package/lib/smartstack/tags/exclude.js +17 -0
  85. package/lib/smartstack/tags/index.d.ts +2 -0
  86. package/lib/smartstack/tags/index.js +23 -0
  87. package/lib/smartstack/tags/taggers.d.ts +13 -0
  88. package/lib/smartstack/tags/taggers.js +41 -0
  89. package/lib/smartstack/tags/values.d.ts +20 -0
  90. package/lib/smartstack/tags/values.js +27 -0
  91. package/lib/smartstack/termination/index.d.ts +5 -0
  92. package/lib/smartstack/termination/index.js +22 -0
  93. package/lib/smartstack/termination/index.test.d.ts +1 -0
  94. package/lib/smartstack/termination/index.test.js +86 -0
  95. package/lib/template/index.d.ts +5 -0
  96. package/lib/template/index.js +28 -0
  97. package/lib/utils/isSet.d.ts +1 -0
  98. package/lib/utils/isSet.js +9 -0
  99. package/lib/wrapper/account.d.ts +4 -0
  100. package/lib/wrapper/account.js +23 -0
  101. package/lib/wrapper/environment.d.ts +4 -0
  102. package/lib/wrapper/environment.js +19 -0
  103. package/lib/wrapper/index.d.ts +2 -0
  104. package/lib/wrapper/index.js +7 -0
  105. package/node_modules/a-sync-waterfall/LICENSE +21 -0
  106. package/node_modules/a-sync-waterfall/README.md +95 -0
  107. package/node_modules/a-sync-waterfall/index.js +83 -0
  108. package/node_modules/a-sync-waterfall/package.json +25 -0
  109. package/node_modules/a-sync-waterfall/test.js +77 -0
  110. package/node_modules/asap/CHANGES.md +70 -0
  111. package/node_modules/asap/LICENSE.md +21 -0
  112. package/node_modules/asap/README.md +237 -0
  113. package/node_modules/asap/asap.js +65 -0
  114. package/node_modules/asap/browser-asap.js +66 -0
  115. package/node_modules/asap/browser-raw.js +223 -0
  116. package/node_modules/asap/package.json +62 -0
  117. package/node_modules/asap/raw.js +101 -0
  118. package/node_modules/camel-case/LICENSE +21 -0
  119. package/node_modules/camel-case/README.md +47 -0
  120. package/node_modules/camel-case/dist/index.d.ts +5 -0
  121. package/node_modules/camel-case/dist/index.js +23 -0
  122. package/node_modules/camel-case/dist/index.js.map +1 -0
  123. package/node_modules/camel-case/dist/index.spec.d.ts +1 -0
  124. package/node_modules/camel-case/dist/index.spec.js +26 -0
  125. package/node_modules/camel-case/dist/index.spec.js.map +1 -0
  126. package/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
  127. package/node_modules/camel-case/dist.es2015/index.js +17 -0
  128. package/node_modules/camel-case/dist.es2015/index.js.map +1 -0
  129. package/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
  130. package/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
  131. package/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
  132. package/node_modules/camel-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  133. package/node_modules/camel-case/node_modules/tslib/LICENSE.txt +12 -0
  134. package/node_modules/camel-case/node_modules/tslib/README.md +164 -0
  135. package/node_modules/camel-case/node_modules/tslib/modules/index.js +55 -0
  136. package/node_modules/camel-case/node_modules/tslib/modules/package.json +3 -0
  137. package/node_modules/camel-case/node_modules/tslib/package.json +42 -0
  138. package/node_modules/camel-case/node_modules/tslib/tslib.d.ts +398 -0
  139. package/node_modules/camel-case/node_modules/tslib/tslib.es6.html +1 -0
  140. package/node_modules/camel-case/node_modules/tslib/tslib.es6.js +248 -0
  141. package/node_modules/camel-case/node_modules/tslib/tslib.html +1 -0
  142. package/node_modules/camel-case/node_modules/tslib/tslib.js +317 -0
  143. package/node_modules/camel-case/package.json +93 -0
  144. package/node_modules/capital-case/LICENSE +21 -0
  145. package/node_modules/capital-case/README.md +37 -0
  146. package/node_modules/capital-case/dist/index.d.ts +4 -0
  147. package/node_modules/capital-case/dist/index.js +16 -0
  148. package/node_modules/capital-case/dist/index.js.map +1 -0
  149. package/node_modules/capital-case/dist/index.spec.d.ts +1 -0
  150. package/node_modules/capital-case/dist/index.spec.js +24 -0
  151. package/node_modules/capital-case/dist/index.spec.js.map +1 -0
  152. package/node_modules/capital-case/dist.es2015/index.d.ts +4 -0
  153. package/node_modules/capital-case/dist.es2015/index.js +11 -0
  154. package/node_modules/capital-case/dist.es2015/index.js.map +1 -0
  155. package/node_modules/capital-case/dist.es2015/index.spec.d.ts +1 -0
  156. package/node_modules/capital-case/dist.es2015/index.spec.js +22 -0
  157. package/node_modules/capital-case/dist.es2015/index.spec.js.map +1 -0
  158. package/node_modules/capital-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  159. package/node_modules/capital-case/node_modules/tslib/LICENSE.txt +12 -0
  160. package/node_modules/capital-case/node_modules/tslib/README.md +164 -0
  161. package/node_modules/capital-case/node_modules/tslib/modules/index.js +55 -0
  162. package/node_modules/capital-case/node_modules/tslib/modules/package.json +3 -0
  163. package/node_modules/capital-case/node_modules/tslib/package.json +42 -0
  164. package/node_modules/capital-case/node_modules/tslib/tslib.d.ts +398 -0
  165. package/node_modules/capital-case/node_modules/tslib/tslib.es6.html +1 -0
  166. package/node_modules/capital-case/node_modules/tslib/tslib.es6.js +248 -0
  167. package/node_modules/capital-case/node_modules/tslib/tslib.html +1 -0
  168. package/node_modules/capital-case/node_modules/tslib/tslib.js +317 -0
  169. package/node_modules/capital-case/package.json +94 -0
  170. package/node_modules/change-case/LICENSE +21 -0
  171. package/node_modules/change-case/README.md +44 -0
  172. package/node_modules/change-case/dist/index.d.ts +11 -0
  173. package/node_modules/change-case/dist/index.js +15 -0
  174. package/node_modules/change-case/dist/index.js.map +1 -0
  175. package/node_modules/change-case/dist/index.spec.d.ts +1 -0
  176. package/node_modules/change-case/dist/index.spec.js +9 -0
  177. package/node_modules/change-case/dist/index.spec.js.map +1 -0
  178. package/node_modules/change-case/dist.es2015/index.d.ts +11 -0
  179. package/node_modules/change-case/dist.es2015/index.js +12 -0
  180. package/node_modules/change-case/dist.es2015/index.js.map +1 -0
  181. package/node_modules/change-case/dist.es2015/index.spec.d.ts +1 -0
  182. package/node_modules/change-case/dist.es2015/index.spec.js +7 -0
  183. package/node_modules/change-case/dist.es2015/index.spec.js.map +1 -0
  184. package/node_modules/change-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  185. package/node_modules/change-case/node_modules/tslib/LICENSE.txt +12 -0
  186. package/node_modules/change-case/node_modules/tslib/README.md +164 -0
  187. package/node_modules/change-case/node_modules/tslib/modules/index.js +55 -0
  188. package/node_modules/change-case/node_modules/tslib/modules/package.json +3 -0
  189. package/node_modules/change-case/node_modules/tslib/package.json +42 -0
  190. package/node_modules/change-case/node_modules/tslib/tslib.d.ts +398 -0
  191. package/node_modules/change-case/node_modules/tslib/tslib.es6.html +1 -0
  192. package/node_modules/change-case/node_modules/tslib/tslib.es6.js +248 -0
  193. package/node_modules/change-case/node_modules/tslib/tslib.html +1 -0
  194. package/node_modules/change-case/node_modules/tslib/tslib.js +317 -0
  195. package/node_modules/change-case/package.json +105 -0
  196. package/node_modules/constant-case/LICENSE +21 -0
  197. package/node_modules/constant-case/README.md +37 -0
  198. package/node_modules/constant-case/dist/index.d.ts +3 -0
  199. package/node_modules/constant-case/dist/index.js +12 -0
  200. package/node_modules/constant-case/dist/index.js.map +1 -0
  201. package/node_modules/constant-case/dist/index.spec.d.ts +1 -0
  202. package/node_modules/constant-case/dist/index.spec.js +26 -0
  203. package/node_modules/constant-case/dist/index.spec.js.map +1 -0
  204. package/node_modules/constant-case/dist.es2015/index.d.ts +3 -0
  205. package/node_modules/constant-case/dist.es2015/index.js +8 -0
  206. package/node_modules/constant-case/dist.es2015/index.js.map +1 -0
  207. package/node_modules/constant-case/dist.es2015/index.spec.d.ts +1 -0
  208. package/node_modules/constant-case/dist.es2015/index.spec.js +24 -0
  209. package/node_modules/constant-case/dist.es2015/index.spec.js.map +1 -0
  210. package/node_modules/constant-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  211. package/node_modules/constant-case/node_modules/tslib/LICENSE.txt +12 -0
  212. package/node_modules/constant-case/node_modules/tslib/README.md +164 -0
  213. package/node_modules/constant-case/node_modules/tslib/modules/index.js +55 -0
  214. package/node_modules/constant-case/node_modules/tslib/modules/package.json +3 -0
  215. package/node_modules/constant-case/node_modules/tslib/package.json +42 -0
  216. package/node_modules/constant-case/node_modules/tslib/tslib.d.ts +398 -0
  217. package/node_modules/constant-case/node_modules/tslib/tslib.es6.html +1 -0
  218. package/node_modules/constant-case/node_modules/tslib/tslib.es6.js +248 -0
  219. package/node_modules/constant-case/node_modules/tslib/tslib.html +1 -0
  220. package/node_modules/constant-case/node_modules/tslib/tslib.js +317 -0
  221. package/node_modules/constant-case/package.json +94 -0
  222. package/node_modules/dot-case/LICENSE +21 -0
  223. package/node_modules/dot-case/README.md +37 -0
  224. package/node_modules/dot-case/dist/index.d.ts +3 -0
  225. package/node_modules/dot-case/dist/index.js +11 -0
  226. package/node_modules/dot-case/dist/index.js.map +1 -0
  227. package/node_modules/dot-case/dist/index.spec.d.ts +1 -0
  228. package/node_modules/dot-case/dist/index.spec.js +26 -0
  229. package/node_modules/dot-case/dist/index.spec.js.map +1 -0
  230. package/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
  231. package/node_modules/dot-case/dist.es2015/index.js +7 -0
  232. package/node_modules/dot-case/dist.es2015/index.js.map +1 -0
  233. package/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
  234. package/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
  235. package/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
  236. package/node_modules/dot-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  237. package/node_modules/dot-case/node_modules/tslib/LICENSE.txt +12 -0
  238. package/node_modules/dot-case/node_modules/tslib/README.md +164 -0
  239. package/node_modules/dot-case/node_modules/tslib/modules/index.js +55 -0
  240. package/node_modules/dot-case/node_modules/tslib/modules/package.json +3 -0
  241. package/node_modules/dot-case/node_modules/tslib/package.json +42 -0
  242. package/node_modules/dot-case/node_modules/tslib/tslib.d.ts +398 -0
  243. package/node_modules/dot-case/node_modules/tslib/tslib.es6.html +1 -0
  244. package/node_modules/dot-case/node_modules/tslib/tslib.es6.js +248 -0
  245. package/node_modules/dot-case/node_modules/tslib/tslib.html +1 -0
  246. package/node_modules/dot-case/node_modules/tslib/tslib.js +317 -0
  247. package/node_modules/dot-case/package.json +93 -0
  248. package/node_modules/header-case/LICENSE +21 -0
  249. package/node_modules/header-case/README.md +37 -0
  250. package/node_modules/header-case/dist/index.d.ts +3 -0
  251. package/node_modules/header-case/dist/index.js +11 -0
  252. package/node_modules/header-case/dist/index.js.map +1 -0
  253. package/node_modules/header-case/dist/index.spec.d.ts +1 -0
  254. package/node_modules/header-case/dist/index.spec.js +24 -0
  255. package/node_modules/header-case/dist/index.spec.js.map +1 -0
  256. package/node_modules/header-case/dist.es2015/index.d.ts +3 -0
  257. package/node_modules/header-case/dist.es2015/index.js +7 -0
  258. package/node_modules/header-case/dist.es2015/index.js.map +1 -0
  259. package/node_modules/header-case/dist.es2015/index.spec.d.ts +1 -0
  260. package/node_modules/header-case/dist.es2015/index.spec.js +22 -0
  261. package/node_modules/header-case/dist.es2015/index.spec.js.map +1 -0
  262. package/node_modules/header-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  263. package/node_modules/header-case/node_modules/tslib/LICENSE.txt +12 -0
  264. package/node_modules/header-case/node_modules/tslib/README.md +164 -0
  265. package/node_modules/header-case/node_modules/tslib/modules/index.js +55 -0
  266. package/node_modules/header-case/node_modules/tslib/modules/package.json +3 -0
  267. package/node_modules/header-case/node_modules/tslib/package.json +42 -0
  268. package/node_modules/header-case/node_modules/tslib/tslib.d.ts +398 -0
  269. package/node_modules/header-case/node_modules/tslib/tslib.es6.html +1 -0
  270. package/node_modules/header-case/node_modules/tslib/tslib.es6.js +248 -0
  271. package/node_modules/header-case/node_modules/tslib/tslib.html +1 -0
  272. package/node_modules/header-case/node_modules/tslib/tslib.js +317 -0
  273. package/node_modules/header-case/package.json +93 -0
  274. package/node_modules/lodash/LICENSE +47 -0
  275. package/node_modules/lodash/README.md +39 -0
  276. package/node_modules/lodash/_DataView.js +7 -0
  277. package/node_modules/lodash/_Hash.js +32 -0
  278. package/node_modules/lodash/_LazyWrapper.js +28 -0
  279. package/node_modules/lodash/_ListCache.js +32 -0
  280. package/node_modules/lodash/_LodashWrapper.js +22 -0
  281. package/node_modules/lodash/_Map.js +7 -0
  282. package/node_modules/lodash/_MapCache.js +32 -0
  283. package/node_modules/lodash/_Promise.js +7 -0
  284. package/node_modules/lodash/_Set.js +7 -0
  285. package/node_modules/lodash/_SetCache.js +27 -0
  286. package/node_modules/lodash/_Stack.js +27 -0
  287. package/node_modules/lodash/_Symbol.js +6 -0
  288. package/node_modules/lodash/_Uint8Array.js +6 -0
  289. package/node_modules/lodash/_WeakMap.js +7 -0
  290. package/node_modules/lodash/_apply.js +21 -0
  291. package/node_modules/lodash/_arrayAggregator.js +22 -0
  292. package/node_modules/lodash/_arrayEach.js +22 -0
  293. package/node_modules/lodash/_arrayEachRight.js +21 -0
  294. package/node_modules/lodash/_arrayEvery.js +23 -0
  295. package/node_modules/lodash/_arrayFilter.js +25 -0
  296. package/node_modules/lodash/_arrayIncludes.js +17 -0
  297. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  298. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  299. package/node_modules/lodash/_arrayMap.js +21 -0
  300. package/node_modules/lodash/_arrayPush.js +20 -0
  301. package/node_modules/lodash/_arrayReduce.js +26 -0
  302. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  303. package/node_modules/lodash/_arraySample.js +15 -0
  304. package/node_modules/lodash/_arraySampleSize.js +17 -0
  305. package/node_modules/lodash/_arrayShuffle.js +15 -0
  306. package/node_modules/lodash/_arraySome.js +23 -0
  307. package/node_modules/lodash/_asciiSize.js +12 -0
  308. package/node_modules/lodash/_asciiToArray.js +12 -0
  309. package/node_modules/lodash/_asciiWords.js +15 -0
  310. package/node_modules/lodash/_assignMergeValue.js +20 -0
  311. package/node_modules/lodash/_assignValue.js +28 -0
  312. package/node_modules/lodash/_assocIndexOf.js +21 -0
  313. package/node_modules/lodash/_baseAggregator.js +21 -0
  314. package/node_modules/lodash/_baseAssign.js +17 -0
  315. package/node_modules/lodash/_baseAssignIn.js +17 -0
  316. package/node_modules/lodash/_baseAssignValue.js +25 -0
  317. package/node_modules/lodash/_baseAt.js +23 -0
  318. package/node_modules/lodash/_baseClamp.js +22 -0
  319. package/node_modules/lodash/_baseClone.js +166 -0
  320. package/node_modules/lodash/_baseConforms.js +18 -0
  321. package/node_modules/lodash/_baseConformsTo.js +27 -0
  322. package/node_modules/lodash/_baseCreate.js +30 -0
  323. package/node_modules/lodash/_baseDelay.js +21 -0
  324. package/node_modules/lodash/_baseDifference.js +67 -0
  325. package/node_modules/lodash/_baseEach.js +14 -0
  326. package/node_modules/lodash/_baseEachRight.js +14 -0
  327. package/node_modules/lodash/_baseEvery.js +21 -0
  328. package/node_modules/lodash/_baseExtremum.js +32 -0
  329. package/node_modules/lodash/_baseFill.js +32 -0
  330. package/node_modules/lodash/_baseFilter.js +21 -0
  331. package/node_modules/lodash/_baseFindIndex.js +24 -0
  332. package/node_modules/lodash/_baseFindKey.js +23 -0
  333. package/node_modules/lodash/_baseFlatten.js +38 -0
  334. package/node_modules/lodash/_baseFor.js +16 -0
  335. package/node_modules/lodash/_baseForOwn.js +16 -0
  336. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  337. package/node_modules/lodash/_baseForRight.js +15 -0
  338. package/node_modules/lodash/_baseFunctions.js +19 -0
  339. package/node_modules/lodash/_baseGet.js +24 -0
  340. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  341. package/node_modules/lodash/_baseGetTag.js +28 -0
  342. package/node_modules/lodash/_baseGt.js +14 -0
  343. package/node_modules/lodash/_baseHas.js +19 -0
  344. package/node_modules/lodash/_baseHasIn.js +13 -0
  345. package/node_modules/lodash/_baseInRange.js +18 -0
  346. package/node_modules/lodash/_baseIndexOf.js +20 -0
  347. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  348. package/node_modules/lodash/_baseIntersection.js +74 -0
  349. package/node_modules/lodash/_baseInverter.js +21 -0
  350. package/node_modules/lodash/_baseInvoke.js +24 -0
  351. package/node_modules/lodash/_baseIsArguments.js +18 -0
  352. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  353. package/node_modules/lodash/_baseIsDate.js +18 -0
  354. package/node_modules/lodash/_baseIsEqual.js +28 -0
  355. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  356. package/node_modules/lodash/_baseIsMap.js +18 -0
  357. package/node_modules/lodash/_baseIsMatch.js +62 -0
  358. package/node_modules/lodash/_baseIsNaN.js +12 -0
  359. package/node_modules/lodash/_baseIsNative.js +47 -0
  360. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  361. package/node_modules/lodash/_baseIsSet.js +18 -0
  362. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  363. package/node_modules/lodash/_baseIteratee.js +31 -0
  364. package/node_modules/lodash/_baseKeys.js +30 -0
  365. package/node_modules/lodash/_baseKeysIn.js +33 -0
  366. package/node_modules/lodash/_baseLodash.js +10 -0
  367. package/node_modules/lodash/_baseLt.js +14 -0
  368. package/node_modules/lodash/_baseMap.js +22 -0
  369. package/node_modules/lodash/_baseMatches.js +22 -0
  370. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  371. package/node_modules/lodash/_baseMean.js +20 -0
  372. package/node_modules/lodash/_baseMerge.js +42 -0
  373. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  374. package/node_modules/lodash/_baseNth.js +20 -0
  375. package/node_modules/lodash/_baseOrderBy.js +49 -0
  376. package/node_modules/lodash/_basePick.js +19 -0
  377. package/node_modules/lodash/_basePickBy.js +30 -0
  378. package/node_modules/lodash/_baseProperty.js +14 -0
  379. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  380. package/node_modules/lodash/_basePropertyOf.js +14 -0
  381. package/node_modules/lodash/_basePullAll.js +51 -0
  382. package/node_modules/lodash/_basePullAt.js +37 -0
  383. package/node_modules/lodash/_baseRandom.js +18 -0
  384. package/node_modules/lodash/_baseRange.js +28 -0
  385. package/node_modules/lodash/_baseReduce.js +23 -0
  386. package/node_modules/lodash/_baseRepeat.js +35 -0
  387. package/node_modules/lodash/_baseRest.js +17 -0
  388. package/node_modules/lodash/_baseSample.js +15 -0
  389. package/node_modules/lodash/_baseSampleSize.js +18 -0
  390. package/node_modules/lodash/_baseSet.js +51 -0
  391. package/node_modules/lodash/_baseSetData.js +17 -0
  392. package/node_modules/lodash/_baseSetToString.js +22 -0
  393. package/node_modules/lodash/_baseShuffle.js +15 -0
  394. package/node_modules/lodash/_baseSlice.js +31 -0
  395. package/node_modules/lodash/_baseSome.js +22 -0
  396. package/node_modules/lodash/_baseSortBy.js +21 -0
  397. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  398. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  399. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  400. package/node_modules/lodash/_baseSum.js +24 -0
  401. package/node_modules/lodash/_baseTimes.js +20 -0
  402. package/node_modules/lodash/_baseToNumber.js +24 -0
  403. package/node_modules/lodash/_baseToPairs.js +18 -0
  404. package/node_modules/lodash/_baseToString.js +37 -0
  405. package/node_modules/lodash/_baseTrim.js +19 -0
  406. package/node_modules/lodash/_baseUnary.js +14 -0
  407. package/node_modules/lodash/_baseUniq.js +72 -0
  408. package/node_modules/lodash/_baseUnset.js +20 -0
  409. package/node_modules/lodash/_baseUpdate.js +18 -0
  410. package/node_modules/lodash/_baseValues.js +19 -0
  411. package/node_modules/lodash/_baseWhile.js +26 -0
  412. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  413. package/node_modules/lodash/_baseXor.js +36 -0
  414. package/node_modules/lodash/_baseZipObject.js +23 -0
  415. package/node_modules/lodash/_cacheHas.js +13 -0
  416. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  417. package/node_modules/lodash/_castFunction.js +14 -0
  418. package/node_modules/lodash/_castPath.js +21 -0
  419. package/node_modules/lodash/_castRest.js +14 -0
  420. package/node_modules/lodash/_castSlice.js +18 -0
  421. package/node_modules/lodash/_charsEndIndex.js +19 -0
  422. package/node_modules/lodash/_charsStartIndex.js +20 -0
  423. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  424. package/node_modules/lodash/_cloneBuffer.js +35 -0
  425. package/node_modules/lodash/_cloneDataView.js +16 -0
  426. package/node_modules/lodash/_cloneRegExp.js +17 -0
  427. package/node_modules/lodash/_cloneSymbol.js +18 -0
  428. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  429. package/node_modules/lodash/_compareAscending.js +41 -0
  430. package/node_modules/lodash/_compareMultiple.js +44 -0
  431. package/node_modules/lodash/_composeArgs.js +39 -0
  432. package/node_modules/lodash/_composeArgsRight.js +41 -0
  433. package/node_modules/lodash/_copyArray.js +20 -0
  434. package/node_modules/lodash/_copyObject.js +40 -0
  435. package/node_modules/lodash/_copySymbols.js +16 -0
  436. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  437. package/node_modules/lodash/_coreJsData.js +6 -0
  438. package/node_modules/lodash/_countHolders.js +21 -0
  439. package/node_modules/lodash/_createAggregator.js +23 -0
  440. package/node_modules/lodash/_createAssigner.js +37 -0
  441. package/node_modules/lodash/_createBaseEach.js +32 -0
  442. package/node_modules/lodash/_createBaseFor.js +25 -0
  443. package/node_modules/lodash/_createBind.js +28 -0
  444. package/node_modules/lodash/_createCaseFirst.js +33 -0
  445. package/node_modules/lodash/_createCompounder.js +24 -0
  446. package/node_modules/lodash/_createCtor.js +37 -0
  447. package/node_modules/lodash/_createCurry.js +46 -0
  448. package/node_modules/lodash/_createFind.js +25 -0
  449. package/node_modules/lodash/_createFlow.js +78 -0
  450. package/node_modules/lodash/_createHybrid.js +92 -0
  451. package/node_modules/lodash/_createInverter.js +17 -0
  452. package/node_modules/lodash/_createMathOperation.js +38 -0
  453. package/node_modules/lodash/_createOver.js +27 -0
  454. package/node_modules/lodash/_createPadding.js +33 -0
  455. package/node_modules/lodash/_createPartial.js +43 -0
  456. package/node_modules/lodash/_createRange.js +30 -0
  457. package/node_modules/lodash/_createRecurry.js +56 -0
  458. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  459. package/node_modules/lodash/_createRound.js +35 -0
  460. package/node_modules/lodash/_createSet.js +19 -0
  461. package/node_modules/lodash/_createToPairs.js +30 -0
  462. package/node_modules/lodash/_createWrap.js +106 -0
  463. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  464. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  465. package/node_modules/lodash/_customOmitClone.js +16 -0
  466. package/node_modules/lodash/_deburrLetter.js +71 -0
  467. package/node_modules/lodash/_defineProperty.js +11 -0
  468. package/node_modules/lodash/_equalArrays.js +84 -0
  469. package/node_modules/lodash/_equalByTag.js +112 -0
  470. package/node_modules/lodash/_equalObjects.js +90 -0
  471. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  472. package/node_modules/lodash/_escapeStringChar.js +22 -0
  473. package/node_modules/lodash/_flatRest.js +16 -0
  474. package/node_modules/lodash/_freeGlobal.js +4 -0
  475. package/node_modules/lodash/_getAllKeys.js +16 -0
  476. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  477. package/node_modules/lodash/_getData.js +15 -0
  478. package/node_modules/lodash/_getFuncName.js +31 -0
  479. package/node_modules/lodash/_getHolder.js +13 -0
  480. package/node_modules/lodash/_getMapData.js +18 -0
  481. package/node_modules/lodash/_getMatchData.js +24 -0
  482. package/node_modules/lodash/_getNative.js +17 -0
  483. package/node_modules/lodash/_getPrototype.js +6 -0
  484. package/node_modules/lodash/_getRawTag.js +46 -0
  485. package/node_modules/lodash/_getSymbols.js +30 -0
  486. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  487. package/node_modules/lodash/_getTag.js +58 -0
  488. package/node_modules/lodash/_getValue.js +13 -0
  489. package/node_modules/lodash/_getView.js +33 -0
  490. package/node_modules/lodash/_getWrapDetails.js +17 -0
  491. package/node_modules/lodash/_hasPath.js +39 -0
  492. package/node_modules/lodash/_hasUnicode.js +26 -0
  493. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  494. package/node_modules/lodash/_hashClear.js +15 -0
  495. package/node_modules/lodash/_hashDelete.js +17 -0
  496. package/node_modules/lodash/_hashGet.js +30 -0
  497. package/node_modules/lodash/_hashHas.js +23 -0
  498. package/node_modules/lodash/_hashSet.js +23 -0
  499. package/node_modules/lodash/_initCloneArray.js +26 -0
  500. package/node_modules/lodash/_initCloneByTag.js +77 -0
  501. package/node_modules/lodash/_initCloneObject.js +18 -0
  502. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  503. package/node_modules/lodash/_isFlattenable.js +20 -0
  504. package/node_modules/lodash/_isIndex.js +25 -0
  505. package/node_modules/lodash/_isIterateeCall.js +30 -0
  506. package/node_modules/lodash/_isKey.js +29 -0
  507. package/node_modules/lodash/_isKeyable.js +15 -0
  508. package/node_modules/lodash/_isLaziable.js +28 -0
  509. package/node_modules/lodash/_isMaskable.js +14 -0
  510. package/node_modules/lodash/_isMasked.js +20 -0
  511. package/node_modules/lodash/_isPrototype.js +18 -0
  512. package/node_modules/lodash/_isStrictComparable.js +15 -0
  513. package/node_modules/lodash/_iteratorToArray.js +18 -0
  514. package/node_modules/lodash/_lazyClone.js +23 -0
  515. package/node_modules/lodash/_lazyReverse.js +23 -0
  516. package/node_modules/lodash/_lazyValue.js +69 -0
  517. package/node_modules/lodash/_listCacheClear.js +13 -0
  518. package/node_modules/lodash/_listCacheDelete.js +35 -0
  519. package/node_modules/lodash/_listCacheGet.js +19 -0
  520. package/node_modules/lodash/_listCacheHas.js +16 -0
  521. package/node_modules/lodash/_listCacheSet.js +26 -0
  522. package/node_modules/lodash/_mapCacheClear.js +21 -0
  523. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  524. package/node_modules/lodash/_mapCacheGet.js +16 -0
  525. package/node_modules/lodash/_mapCacheHas.js +16 -0
  526. package/node_modules/lodash/_mapCacheSet.js +22 -0
  527. package/node_modules/lodash/_mapToArray.js +18 -0
  528. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  529. package/node_modules/lodash/_memoizeCapped.js +26 -0
  530. package/node_modules/lodash/_mergeData.js +90 -0
  531. package/node_modules/lodash/_metaMap.js +6 -0
  532. package/node_modules/lodash/_nativeCreate.js +6 -0
  533. package/node_modules/lodash/_nativeKeys.js +6 -0
  534. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  535. package/node_modules/lodash/_nodeUtil.js +30 -0
  536. package/node_modules/lodash/_objectToString.js +22 -0
  537. package/node_modules/lodash/_overArg.js +15 -0
  538. package/node_modules/lodash/_overRest.js +36 -0
  539. package/node_modules/lodash/_parent.js +16 -0
  540. package/node_modules/lodash/_reEscape.js +4 -0
  541. package/node_modules/lodash/_reEvaluate.js +4 -0
  542. package/node_modules/lodash/_reInterpolate.js +4 -0
  543. package/node_modules/lodash/_realNames.js +4 -0
  544. package/node_modules/lodash/_reorder.js +29 -0
  545. package/node_modules/lodash/_replaceHolders.js +29 -0
  546. package/node_modules/lodash/_root.js +9 -0
  547. package/node_modules/lodash/_safeGet.js +21 -0
  548. package/node_modules/lodash/_setCacheAdd.js +19 -0
  549. package/node_modules/lodash/_setCacheHas.js +14 -0
  550. package/node_modules/lodash/_setData.js +20 -0
  551. package/node_modules/lodash/_setToArray.js +18 -0
  552. package/node_modules/lodash/_setToPairs.js +18 -0
  553. package/node_modules/lodash/_setToString.js +14 -0
  554. package/node_modules/lodash/_setWrapToString.js +21 -0
  555. package/node_modules/lodash/_shortOut.js +37 -0
  556. package/node_modules/lodash/_shuffleSelf.js +28 -0
  557. package/node_modules/lodash/_stackClear.js +15 -0
  558. package/node_modules/lodash/_stackDelete.js +18 -0
  559. package/node_modules/lodash/_stackGet.js +14 -0
  560. package/node_modules/lodash/_stackHas.js +14 -0
  561. package/node_modules/lodash/_stackSet.js +34 -0
  562. package/node_modules/lodash/_strictIndexOf.js +23 -0
  563. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  564. package/node_modules/lodash/_stringSize.js +18 -0
  565. package/node_modules/lodash/_stringToArray.js +18 -0
  566. package/node_modules/lodash/_stringToPath.js +27 -0
  567. package/node_modules/lodash/_toKey.js +21 -0
  568. package/node_modules/lodash/_toSource.js +26 -0
  569. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  570. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  571. package/node_modules/lodash/_unicodeSize.js +44 -0
  572. package/node_modules/lodash/_unicodeToArray.js +40 -0
  573. package/node_modules/lodash/_unicodeWords.js +69 -0
  574. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  575. package/node_modules/lodash/_wrapperClone.js +23 -0
  576. package/node_modules/lodash/add.js +22 -0
  577. package/node_modules/lodash/after.js +42 -0
  578. package/node_modules/lodash/array.js +67 -0
  579. package/node_modules/lodash/ary.js +29 -0
  580. package/node_modules/lodash/assign.js +58 -0
  581. package/node_modules/lodash/assignIn.js +40 -0
  582. package/node_modules/lodash/assignInWith.js +38 -0
  583. package/node_modules/lodash/assignWith.js +37 -0
  584. package/node_modules/lodash/at.js +23 -0
  585. package/node_modules/lodash/attempt.js +35 -0
  586. package/node_modules/lodash/before.js +40 -0
  587. package/node_modules/lodash/bind.js +57 -0
  588. package/node_modules/lodash/bindAll.js +41 -0
  589. package/node_modules/lodash/bindKey.js +68 -0
  590. package/node_modules/lodash/camelCase.js +29 -0
  591. package/node_modules/lodash/capitalize.js +23 -0
  592. package/node_modules/lodash/castArray.js +44 -0
  593. package/node_modules/lodash/ceil.js +26 -0
  594. package/node_modules/lodash/chain.js +38 -0
  595. package/node_modules/lodash/chunk.js +50 -0
  596. package/node_modules/lodash/clamp.js +39 -0
  597. package/node_modules/lodash/clone.js +36 -0
  598. package/node_modules/lodash/cloneDeep.js +29 -0
  599. package/node_modules/lodash/cloneDeepWith.js +40 -0
  600. package/node_modules/lodash/cloneWith.js +42 -0
  601. package/node_modules/lodash/collection.js +30 -0
  602. package/node_modules/lodash/commit.js +33 -0
  603. package/node_modules/lodash/compact.js +31 -0
  604. package/node_modules/lodash/concat.js +43 -0
  605. package/node_modules/lodash/cond.js +60 -0
  606. package/node_modules/lodash/conforms.js +35 -0
  607. package/node_modules/lodash/conformsTo.js +32 -0
  608. package/node_modules/lodash/constant.js +26 -0
  609. package/node_modules/lodash/core.js +3877 -0
  610. package/node_modules/lodash/core.min.js +29 -0
  611. package/node_modules/lodash/countBy.js +40 -0
  612. package/node_modules/lodash/create.js +43 -0
  613. package/node_modules/lodash/curry.js +57 -0
  614. package/node_modules/lodash/curryRight.js +54 -0
  615. package/node_modules/lodash/date.js +3 -0
  616. package/node_modules/lodash/debounce.js +191 -0
  617. package/node_modules/lodash/deburr.js +45 -0
  618. package/node_modules/lodash/defaultTo.js +25 -0
  619. package/node_modules/lodash/defaults.js +64 -0
  620. package/node_modules/lodash/defaultsDeep.js +30 -0
  621. package/node_modules/lodash/defer.js +26 -0
  622. package/node_modules/lodash/delay.js +28 -0
  623. package/node_modules/lodash/difference.js +33 -0
  624. package/node_modules/lodash/differenceBy.js +44 -0
  625. package/node_modules/lodash/differenceWith.js +40 -0
  626. package/node_modules/lodash/divide.js +22 -0
  627. package/node_modules/lodash/drop.js +38 -0
  628. package/node_modules/lodash/dropRight.js +39 -0
  629. package/node_modules/lodash/dropRightWhile.js +45 -0
  630. package/node_modules/lodash/dropWhile.js +45 -0
  631. package/node_modules/lodash/each.js +1 -0
  632. package/node_modules/lodash/eachRight.js +1 -0
  633. package/node_modules/lodash/endsWith.js +43 -0
  634. package/node_modules/lodash/entries.js +1 -0
  635. package/node_modules/lodash/entriesIn.js +1 -0
  636. package/node_modules/lodash/eq.js +37 -0
  637. package/node_modules/lodash/escape.js +43 -0
  638. package/node_modules/lodash/escapeRegExp.js +32 -0
  639. package/node_modules/lodash/every.js +56 -0
  640. package/node_modules/lodash/extend.js +1 -0
  641. package/node_modules/lodash/extendWith.js +1 -0
  642. package/node_modules/lodash/fill.js +45 -0
  643. package/node_modules/lodash/filter.js +52 -0
  644. package/node_modules/lodash/find.js +42 -0
  645. package/node_modules/lodash/findIndex.js +55 -0
  646. package/node_modules/lodash/findKey.js +44 -0
  647. package/node_modules/lodash/findLast.js +25 -0
  648. package/node_modules/lodash/findLastIndex.js +59 -0
  649. package/node_modules/lodash/findLastKey.js +44 -0
  650. package/node_modules/lodash/first.js +1 -0
  651. package/node_modules/lodash/flake.lock +40 -0
  652. package/node_modules/lodash/flake.nix +20 -0
  653. package/node_modules/lodash/flatMap.js +29 -0
  654. package/node_modules/lodash/flatMapDeep.js +31 -0
  655. package/node_modules/lodash/flatMapDepth.js +31 -0
  656. package/node_modules/lodash/flatten.js +22 -0
  657. package/node_modules/lodash/flattenDeep.js +25 -0
  658. package/node_modules/lodash/flattenDepth.js +33 -0
  659. package/node_modules/lodash/flip.js +28 -0
  660. package/node_modules/lodash/floor.js +26 -0
  661. package/node_modules/lodash/flow.js +27 -0
  662. package/node_modules/lodash/flowRight.js +26 -0
  663. package/node_modules/lodash/forEach.js +41 -0
  664. package/node_modules/lodash/forEachRight.js +31 -0
  665. package/node_modules/lodash/forIn.js +39 -0
  666. package/node_modules/lodash/forInRight.js +37 -0
  667. package/node_modules/lodash/forOwn.js +36 -0
  668. package/node_modules/lodash/forOwnRight.js +34 -0
  669. package/node_modules/lodash/fp/F.js +1 -0
  670. package/node_modules/lodash/fp/T.js +1 -0
  671. package/node_modules/lodash/fp/__.js +1 -0
  672. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  673. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  674. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  675. package/node_modules/lodash/fp/_mapping.js +358 -0
  676. package/node_modules/lodash/fp/_util.js +16 -0
  677. package/node_modules/lodash/fp/add.js +5 -0
  678. package/node_modules/lodash/fp/after.js +5 -0
  679. package/node_modules/lodash/fp/all.js +1 -0
  680. package/node_modules/lodash/fp/allPass.js +1 -0
  681. package/node_modules/lodash/fp/always.js +1 -0
  682. package/node_modules/lodash/fp/any.js +1 -0
  683. package/node_modules/lodash/fp/anyPass.js +1 -0
  684. package/node_modules/lodash/fp/apply.js +1 -0
  685. package/node_modules/lodash/fp/array.js +2 -0
  686. package/node_modules/lodash/fp/ary.js +5 -0
  687. package/node_modules/lodash/fp/assign.js +5 -0
  688. package/node_modules/lodash/fp/assignAll.js +5 -0
  689. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  690. package/node_modules/lodash/fp/assignIn.js +5 -0
  691. package/node_modules/lodash/fp/assignInAll.js +5 -0
  692. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  693. package/node_modules/lodash/fp/assignInWith.js +5 -0
  694. package/node_modules/lodash/fp/assignWith.js +5 -0
  695. package/node_modules/lodash/fp/assoc.js +1 -0
  696. package/node_modules/lodash/fp/assocPath.js +1 -0
  697. package/node_modules/lodash/fp/at.js +5 -0
  698. package/node_modules/lodash/fp/attempt.js +5 -0
  699. package/node_modules/lodash/fp/before.js +5 -0
  700. package/node_modules/lodash/fp/bind.js +5 -0
  701. package/node_modules/lodash/fp/bindAll.js +5 -0
  702. package/node_modules/lodash/fp/bindKey.js +5 -0
  703. package/node_modules/lodash/fp/camelCase.js +5 -0
  704. package/node_modules/lodash/fp/capitalize.js +5 -0
  705. package/node_modules/lodash/fp/castArray.js +5 -0
  706. package/node_modules/lodash/fp/ceil.js +5 -0
  707. package/node_modules/lodash/fp/chain.js +5 -0
  708. package/node_modules/lodash/fp/chunk.js +5 -0
  709. package/node_modules/lodash/fp/clamp.js +5 -0
  710. package/node_modules/lodash/fp/clone.js +5 -0
  711. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  712. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  713. package/node_modules/lodash/fp/cloneWith.js +5 -0
  714. package/node_modules/lodash/fp/collection.js +2 -0
  715. package/node_modules/lodash/fp/commit.js +5 -0
  716. package/node_modules/lodash/fp/compact.js +5 -0
  717. package/node_modules/lodash/fp/complement.js +1 -0
  718. package/node_modules/lodash/fp/compose.js +1 -0
  719. package/node_modules/lodash/fp/concat.js +5 -0
  720. package/node_modules/lodash/fp/cond.js +5 -0
  721. package/node_modules/lodash/fp/conforms.js +1 -0
  722. package/node_modules/lodash/fp/conformsTo.js +5 -0
  723. package/node_modules/lodash/fp/constant.js +5 -0
  724. package/node_modules/lodash/fp/contains.js +1 -0
  725. package/node_modules/lodash/fp/convert.js +18 -0
  726. package/node_modules/lodash/fp/countBy.js +5 -0
  727. package/node_modules/lodash/fp/create.js +5 -0
  728. package/node_modules/lodash/fp/curry.js +5 -0
  729. package/node_modules/lodash/fp/curryN.js +5 -0
  730. package/node_modules/lodash/fp/curryRight.js +5 -0
  731. package/node_modules/lodash/fp/curryRightN.js +5 -0
  732. package/node_modules/lodash/fp/date.js +2 -0
  733. package/node_modules/lodash/fp/debounce.js +5 -0
  734. package/node_modules/lodash/fp/deburr.js +5 -0
  735. package/node_modules/lodash/fp/defaultTo.js +5 -0
  736. package/node_modules/lodash/fp/defaults.js +5 -0
  737. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  738. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  739. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  740. package/node_modules/lodash/fp/defer.js +5 -0
  741. package/node_modules/lodash/fp/delay.js +5 -0
  742. package/node_modules/lodash/fp/difference.js +5 -0
  743. package/node_modules/lodash/fp/differenceBy.js +5 -0
  744. package/node_modules/lodash/fp/differenceWith.js +5 -0
  745. package/node_modules/lodash/fp/dissoc.js +1 -0
  746. package/node_modules/lodash/fp/dissocPath.js +1 -0
  747. package/node_modules/lodash/fp/divide.js +5 -0
  748. package/node_modules/lodash/fp/drop.js +5 -0
  749. package/node_modules/lodash/fp/dropLast.js +1 -0
  750. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  751. package/node_modules/lodash/fp/dropRight.js +5 -0
  752. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  753. package/node_modules/lodash/fp/dropWhile.js +5 -0
  754. package/node_modules/lodash/fp/each.js +1 -0
  755. package/node_modules/lodash/fp/eachRight.js +1 -0
  756. package/node_modules/lodash/fp/endsWith.js +5 -0
  757. package/node_modules/lodash/fp/entries.js +1 -0
  758. package/node_modules/lodash/fp/entriesIn.js +1 -0
  759. package/node_modules/lodash/fp/eq.js +5 -0
  760. package/node_modules/lodash/fp/equals.js +1 -0
  761. package/node_modules/lodash/fp/escape.js +5 -0
  762. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  763. package/node_modules/lodash/fp/every.js +5 -0
  764. package/node_modules/lodash/fp/extend.js +1 -0
  765. package/node_modules/lodash/fp/extendAll.js +1 -0
  766. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  767. package/node_modules/lodash/fp/extendWith.js +1 -0
  768. package/node_modules/lodash/fp/fill.js +5 -0
  769. package/node_modules/lodash/fp/filter.js +5 -0
  770. package/node_modules/lodash/fp/find.js +5 -0
  771. package/node_modules/lodash/fp/findFrom.js +5 -0
  772. package/node_modules/lodash/fp/findIndex.js +5 -0
  773. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  774. package/node_modules/lodash/fp/findKey.js +5 -0
  775. package/node_modules/lodash/fp/findLast.js +5 -0
  776. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  777. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  778. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  779. package/node_modules/lodash/fp/findLastKey.js +5 -0
  780. package/node_modules/lodash/fp/first.js +1 -0
  781. package/node_modules/lodash/fp/flatMap.js +5 -0
  782. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  783. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  784. package/node_modules/lodash/fp/flatten.js +5 -0
  785. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  786. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  787. package/node_modules/lodash/fp/flip.js +5 -0
  788. package/node_modules/lodash/fp/floor.js +5 -0
  789. package/node_modules/lodash/fp/flow.js +5 -0
  790. package/node_modules/lodash/fp/flowRight.js +5 -0
  791. package/node_modules/lodash/fp/forEach.js +5 -0
  792. package/node_modules/lodash/fp/forEachRight.js +5 -0
  793. package/node_modules/lodash/fp/forIn.js +5 -0
  794. package/node_modules/lodash/fp/forInRight.js +5 -0
  795. package/node_modules/lodash/fp/forOwn.js +5 -0
  796. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  797. package/node_modules/lodash/fp/fromPairs.js +5 -0
  798. package/node_modules/lodash/fp/function.js +2 -0
  799. package/node_modules/lodash/fp/functions.js +5 -0
  800. package/node_modules/lodash/fp/functionsIn.js +5 -0
  801. package/node_modules/lodash/fp/get.js +5 -0
  802. package/node_modules/lodash/fp/getOr.js +5 -0
  803. package/node_modules/lodash/fp/groupBy.js +5 -0
  804. package/node_modules/lodash/fp/gt.js +5 -0
  805. package/node_modules/lodash/fp/gte.js +5 -0
  806. package/node_modules/lodash/fp/has.js +5 -0
  807. package/node_modules/lodash/fp/hasIn.js +5 -0
  808. package/node_modules/lodash/fp/head.js +5 -0
  809. package/node_modules/lodash/fp/identical.js +1 -0
  810. package/node_modules/lodash/fp/identity.js +5 -0
  811. package/node_modules/lodash/fp/inRange.js +5 -0
  812. package/node_modules/lodash/fp/includes.js +5 -0
  813. package/node_modules/lodash/fp/includesFrom.js +5 -0
  814. package/node_modules/lodash/fp/indexBy.js +1 -0
  815. package/node_modules/lodash/fp/indexOf.js +5 -0
  816. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  817. package/node_modules/lodash/fp/init.js +1 -0
  818. package/node_modules/lodash/fp/initial.js +5 -0
  819. package/node_modules/lodash/fp/intersection.js +5 -0
  820. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  821. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  822. package/node_modules/lodash/fp/invert.js +5 -0
  823. package/node_modules/lodash/fp/invertBy.js +5 -0
  824. package/node_modules/lodash/fp/invertObj.js +1 -0
  825. package/node_modules/lodash/fp/invoke.js +5 -0
  826. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  827. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  828. package/node_modules/lodash/fp/invokeMap.js +5 -0
  829. package/node_modules/lodash/fp/isArguments.js +5 -0
  830. package/node_modules/lodash/fp/isArray.js +5 -0
  831. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  832. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  833. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  834. package/node_modules/lodash/fp/isBoolean.js +5 -0
  835. package/node_modules/lodash/fp/isBuffer.js +5 -0
  836. package/node_modules/lodash/fp/isDate.js +5 -0
  837. package/node_modules/lodash/fp/isElement.js +5 -0
  838. package/node_modules/lodash/fp/isEmpty.js +5 -0
  839. package/node_modules/lodash/fp/isEqual.js +5 -0
  840. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  841. package/node_modules/lodash/fp/isError.js +5 -0
  842. package/node_modules/lodash/fp/isFinite.js +5 -0
  843. package/node_modules/lodash/fp/isFunction.js +5 -0
  844. package/node_modules/lodash/fp/isInteger.js +5 -0
  845. package/node_modules/lodash/fp/isLength.js +5 -0
  846. package/node_modules/lodash/fp/isMap.js +5 -0
  847. package/node_modules/lodash/fp/isMatch.js +5 -0
  848. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  849. package/node_modules/lodash/fp/isNaN.js +5 -0
  850. package/node_modules/lodash/fp/isNative.js +5 -0
  851. package/node_modules/lodash/fp/isNil.js +5 -0
  852. package/node_modules/lodash/fp/isNull.js +5 -0
  853. package/node_modules/lodash/fp/isNumber.js +5 -0
  854. package/node_modules/lodash/fp/isObject.js +5 -0
  855. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  856. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  857. package/node_modules/lodash/fp/isRegExp.js +5 -0
  858. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  859. package/node_modules/lodash/fp/isSet.js +5 -0
  860. package/node_modules/lodash/fp/isString.js +5 -0
  861. package/node_modules/lodash/fp/isSymbol.js +5 -0
  862. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  863. package/node_modules/lodash/fp/isUndefined.js +5 -0
  864. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  865. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  866. package/node_modules/lodash/fp/iteratee.js +5 -0
  867. package/node_modules/lodash/fp/join.js +5 -0
  868. package/node_modules/lodash/fp/juxt.js +1 -0
  869. package/node_modules/lodash/fp/kebabCase.js +5 -0
  870. package/node_modules/lodash/fp/keyBy.js +5 -0
  871. package/node_modules/lodash/fp/keys.js +5 -0
  872. package/node_modules/lodash/fp/keysIn.js +5 -0
  873. package/node_modules/lodash/fp/lang.js +2 -0
  874. package/node_modules/lodash/fp/last.js +5 -0
  875. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  876. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  877. package/node_modules/lodash/fp/lowerCase.js +5 -0
  878. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  879. package/node_modules/lodash/fp/lt.js +5 -0
  880. package/node_modules/lodash/fp/lte.js +5 -0
  881. package/node_modules/lodash/fp/map.js +5 -0
  882. package/node_modules/lodash/fp/mapKeys.js +5 -0
  883. package/node_modules/lodash/fp/mapValues.js +5 -0
  884. package/node_modules/lodash/fp/matches.js +1 -0
  885. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  886. package/node_modules/lodash/fp/math.js +2 -0
  887. package/node_modules/lodash/fp/max.js +5 -0
  888. package/node_modules/lodash/fp/maxBy.js +5 -0
  889. package/node_modules/lodash/fp/mean.js +5 -0
  890. package/node_modules/lodash/fp/meanBy.js +5 -0
  891. package/node_modules/lodash/fp/memoize.js +5 -0
  892. package/node_modules/lodash/fp/merge.js +5 -0
  893. package/node_modules/lodash/fp/mergeAll.js +5 -0
  894. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  895. package/node_modules/lodash/fp/mergeWith.js +5 -0
  896. package/node_modules/lodash/fp/method.js +5 -0
  897. package/node_modules/lodash/fp/methodOf.js +5 -0
  898. package/node_modules/lodash/fp/min.js +5 -0
  899. package/node_modules/lodash/fp/minBy.js +5 -0
  900. package/node_modules/lodash/fp/mixin.js +5 -0
  901. package/node_modules/lodash/fp/multiply.js +5 -0
  902. package/node_modules/lodash/fp/nAry.js +1 -0
  903. package/node_modules/lodash/fp/negate.js +5 -0
  904. package/node_modules/lodash/fp/next.js +5 -0
  905. package/node_modules/lodash/fp/noop.js +5 -0
  906. package/node_modules/lodash/fp/now.js +5 -0
  907. package/node_modules/lodash/fp/nth.js +5 -0
  908. package/node_modules/lodash/fp/nthArg.js +5 -0
  909. package/node_modules/lodash/fp/number.js +2 -0
  910. package/node_modules/lodash/fp/object.js +2 -0
  911. package/node_modules/lodash/fp/omit.js +5 -0
  912. package/node_modules/lodash/fp/omitAll.js +1 -0
  913. package/node_modules/lodash/fp/omitBy.js +5 -0
  914. package/node_modules/lodash/fp/once.js +5 -0
  915. package/node_modules/lodash/fp/orderBy.js +5 -0
  916. package/node_modules/lodash/fp/over.js +5 -0
  917. package/node_modules/lodash/fp/overArgs.js +5 -0
  918. package/node_modules/lodash/fp/overEvery.js +5 -0
  919. package/node_modules/lodash/fp/overSome.js +5 -0
  920. package/node_modules/lodash/fp/pad.js +5 -0
  921. package/node_modules/lodash/fp/padChars.js +5 -0
  922. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  923. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  924. package/node_modules/lodash/fp/padEnd.js +5 -0
  925. package/node_modules/lodash/fp/padStart.js +5 -0
  926. package/node_modules/lodash/fp/parseInt.js +5 -0
  927. package/node_modules/lodash/fp/partial.js +5 -0
  928. package/node_modules/lodash/fp/partialRight.js +5 -0
  929. package/node_modules/lodash/fp/partition.js +5 -0
  930. package/node_modules/lodash/fp/path.js +1 -0
  931. package/node_modules/lodash/fp/pathEq.js +1 -0
  932. package/node_modules/lodash/fp/pathOr.js +1 -0
  933. package/node_modules/lodash/fp/paths.js +1 -0
  934. package/node_modules/lodash/fp/pick.js +5 -0
  935. package/node_modules/lodash/fp/pickAll.js +1 -0
  936. package/node_modules/lodash/fp/pickBy.js +5 -0
  937. package/node_modules/lodash/fp/pipe.js +1 -0
  938. package/node_modules/lodash/fp/placeholder.js +6 -0
  939. package/node_modules/lodash/fp/plant.js +5 -0
  940. package/node_modules/lodash/fp/pluck.js +1 -0
  941. package/node_modules/lodash/fp/prop.js +1 -0
  942. package/node_modules/lodash/fp/propEq.js +1 -0
  943. package/node_modules/lodash/fp/propOr.js +1 -0
  944. package/node_modules/lodash/fp/property.js +1 -0
  945. package/node_modules/lodash/fp/propertyOf.js +5 -0
  946. package/node_modules/lodash/fp/props.js +1 -0
  947. package/node_modules/lodash/fp/pull.js +5 -0
  948. package/node_modules/lodash/fp/pullAll.js +5 -0
  949. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  950. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  951. package/node_modules/lodash/fp/pullAt.js +5 -0
  952. package/node_modules/lodash/fp/random.js +5 -0
  953. package/node_modules/lodash/fp/range.js +5 -0
  954. package/node_modules/lodash/fp/rangeRight.js +5 -0
  955. package/node_modules/lodash/fp/rangeStep.js +5 -0
  956. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  957. package/node_modules/lodash/fp/rearg.js +5 -0
  958. package/node_modules/lodash/fp/reduce.js +5 -0
  959. package/node_modules/lodash/fp/reduceRight.js +5 -0
  960. package/node_modules/lodash/fp/reject.js +5 -0
  961. package/node_modules/lodash/fp/remove.js +5 -0
  962. package/node_modules/lodash/fp/repeat.js +5 -0
  963. package/node_modules/lodash/fp/replace.js +5 -0
  964. package/node_modules/lodash/fp/rest.js +5 -0
  965. package/node_modules/lodash/fp/restFrom.js +5 -0
  966. package/node_modules/lodash/fp/result.js +5 -0
  967. package/node_modules/lodash/fp/reverse.js +5 -0
  968. package/node_modules/lodash/fp/round.js +5 -0
  969. package/node_modules/lodash/fp/sample.js +5 -0
  970. package/node_modules/lodash/fp/sampleSize.js +5 -0
  971. package/node_modules/lodash/fp/seq.js +2 -0
  972. package/node_modules/lodash/fp/set.js +5 -0
  973. package/node_modules/lodash/fp/setWith.js +5 -0
  974. package/node_modules/lodash/fp/shuffle.js +5 -0
  975. package/node_modules/lodash/fp/size.js +5 -0
  976. package/node_modules/lodash/fp/slice.js +5 -0
  977. package/node_modules/lodash/fp/snakeCase.js +5 -0
  978. package/node_modules/lodash/fp/some.js +5 -0
  979. package/node_modules/lodash/fp/sortBy.js +5 -0
  980. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  981. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  982. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  983. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  984. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  985. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  986. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  987. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  988. package/node_modules/lodash/fp/split.js +5 -0
  989. package/node_modules/lodash/fp/spread.js +5 -0
  990. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  991. package/node_modules/lodash/fp/startCase.js +5 -0
  992. package/node_modules/lodash/fp/startsWith.js +5 -0
  993. package/node_modules/lodash/fp/string.js +2 -0
  994. package/node_modules/lodash/fp/stubArray.js +5 -0
  995. package/node_modules/lodash/fp/stubFalse.js +5 -0
  996. package/node_modules/lodash/fp/stubObject.js +5 -0
  997. package/node_modules/lodash/fp/stubString.js +5 -0
  998. package/node_modules/lodash/fp/stubTrue.js +5 -0
  999. package/node_modules/lodash/fp/subtract.js +5 -0
  1000. package/node_modules/lodash/fp/sum.js +5 -0
  1001. package/node_modules/lodash/fp/sumBy.js +5 -0
  1002. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1003. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1004. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1005. package/node_modules/lodash/fp/tail.js +5 -0
  1006. package/node_modules/lodash/fp/take.js +5 -0
  1007. package/node_modules/lodash/fp/takeLast.js +1 -0
  1008. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1009. package/node_modules/lodash/fp/takeRight.js +5 -0
  1010. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1011. package/node_modules/lodash/fp/takeWhile.js +5 -0
  1012. package/node_modules/lodash/fp/tap.js +5 -0
  1013. package/node_modules/lodash/fp/template.js +5 -0
  1014. package/node_modules/lodash/fp/templateSettings.js +5 -0
  1015. package/node_modules/lodash/fp/throttle.js +5 -0
  1016. package/node_modules/lodash/fp/thru.js +5 -0
  1017. package/node_modules/lodash/fp/times.js +5 -0
  1018. package/node_modules/lodash/fp/toArray.js +5 -0
  1019. package/node_modules/lodash/fp/toFinite.js +5 -0
  1020. package/node_modules/lodash/fp/toInteger.js +5 -0
  1021. package/node_modules/lodash/fp/toIterator.js +5 -0
  1022. package/node_modules/lodash/fp/toJSON.js +5 -0
  1023. package/node_modules/lodash/fp/toLength.js +5 -0
  1024. package/node_modules/lodash/fp/toLower.js +5 -0
  1025. package/node_modules/lodash/fp/toNumber.js +5 -0
  1026. package/node_modules/lodash/fp/toPairs.js +5 -0
  1027. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  1028. package/node_modules/lodash/fp/toPath.js +5 -0
  1029. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  1030. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1031. package/node_modules/lodash/fp/toString.js +5 -0
  1032. package/node_modules/lodash/fp/toUpper.js +5 -0
  1033. package/node_modules/lodash/fp/transform.js +5 -0
  1034. package/node_modules/lodash/fp/trim.js +5 -0
  1035. package/node_modules/lodash/fp/trimChars.js +5 -0
  1036. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1037. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1038. package/node_modules/lodash/fp/trimEnd.js +5 -0
  1039. package/node_modules/lodash/fp/trimStart.js +5 -0
  1040. package/node_modules/lodash/fp/truncate.js +5 -0
  1041. package/node_modules/lodash/fp/unapply.js +1 -0
  1042. package/node_modules/lodash/fp/unary.js +5 -0
  1043. package/node_modules/lodash/fp/unescape.js +5 -0
  1044. package/node_modules/lodash/fp/union.js +5 -0
  1045. package/node_modules/lodash/fp/unionBy.js +5 -0
  1046. package/node_modules/lodash/fp/unionWith.js +5 -0
  1047. package/node_modules/lodash/fp/uniq.js +5 -0
  1048. package/node_modules/lodash/fp/uniqBy.js +5 -0
  1049. package/node_modules/lodash/fp/uniqWith.js +5 -0
  1050. package/node_modules/lodash/fp/uniqueId.js +5 -0
  1051. package/node_modules/lodash/fp/unnest.js +1 -0
  1052. package/node_modules/lodash/fp/unset.js +5 -0
  1053. package/node_modules/lodash/fp/unzip.js +5 -0
  1054. package/node_modules/lodash/fp/unzipWith.js +5 -0
  1055. package/node_modules/lodash/fp/update.js +5 -0
  1056. package/node_modules/lodash/fp/updateWith.js +5 -0
  1057. package/node_modules/lodash/fp/upperCase.js +5 -0
  1058. package/node_modules/lodash/fp/upperFirst.js +5 -0
  1059. package/node_modules/lodash/fp/useWith.js +1 -0
  1060. package/node_modules/lodash/fp/util.js +2 -0
  1061. package/node_modules/lodash/fp/value.js +5 -0
  1062. package/node_modules/lodash/fp/valueOf.js +5 -0
  1063. package/node_modules/lodash/fp/values.js +5 -0
  1064. package/node_modules/lodash/fp/valuesIn.js +5 -0
  1065. package/node_modules/lodash/fp/where.js +1 -0
  1066. package/node_modules/lodash/fp/whereEq.js +1 -0
  1067. package/node_modules/lodash/fp/without.js +5 -0
  1068. package/node_modules/lodash/fp/words.js +5 -0
  1069. package/node_modules/lodash/fp/wrap.js +5 -0
  1070. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  1071. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  1072. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1073. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1074. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  1075. package/node_modules/lodash/fp/xor.js +5 -0
  1076. package/node_modules/lodash/fp/xorBy.js +5 -0
  1077. package/node_modules/lodash/fp/xorWith.js +5 -0
  1078. package/node_modules/lodash/fp/zip.js +5 -0
  1079. package/node_modules/lodash/fp/zipAll.js +5 -0
  1080. package/node_modules/lodash/fp/zipObj.js +1 -0
  1081. package/node_modules/lodash/fp/zipObject.js +5 -0
  1082. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1083. package/node_modules/lodash/fp/zipWith.js +5 -0
  1084. package/node_modules/lodash/fp.js +2 -0
  1085. package/node_modules/lodash/fromPairs.js +28 -0
  1086. package/node_modules/lodash/function.js +25 -0
  1087. package/node_modules/lodash/functions.js +31 -0
  1088. package/node_modules/lodash/functionsIn.js +31 -0
  1089. package/node_modules/lodash/get.js +33 -0
  1090. package/node_modules/lodash/groupBy.js +41 -0
  1091. package/node_modules/lodash/gt.js +29 -0
  1092. package/node_modules/lodash/gte.js +30 -0
  1093. package/node_modules/lodash/has.js +35 -0
  1094. package/node_modules/lodash/hasIn.js +34 -0
  1095. package/node_modules/lodash/head.js +23 -0
  1096. package/node_modules/lodash/identity.js +21 -0
  1097. package/node_modules/lodash/inRange.js +55 -0
  1098. package/node_modules/lodash/includes.js +53 -0
  1099. package/node_modules/lodash/index.js +1 -0
  1100. package/node_modules/lodash/indexOf.js +42 -0
  1101. package/node_modules/lodash/initial.js +22 -0
  1102. package/node_modules/lodash/intersection.js +30 -0
  1103. package/node_modules/lodash/intersectionBy.js +45 -0
  1104. package/node_modules/lodash/intersectionWith.js +41 -0
  1105. package/node_modules/lodash/invert.js +42 -0
  1106. package/node_modules/lodash/invertBy.js +56 -0
  1107. package/node_modules/lodash/invoke.js +24 -0
  1108. package/node_modules/lodash/invokeMap.js +41 -0
  1109. package/node_modules/lodash/isArguments.js +36 -0
  1110. package/node_modules/lodash/isArray.js +26 -0
  1111. package/node_modules/lodash/isArrayBuffer.js +27 -0
  1112. package/node_modules/lodash/isArrayLike.js +33 -0
  1113. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  1114. package/node_modules/lodash/isBoolean.js +29 -0
  1115. package/node_modules/lodash/isBuffer.js +38 -0
  1116. package/node_modules/lodash/isDate.js +27 -0
  1117. package/node_modules/lodash/isElement.js +25 -0
  1118. package/node_modules/lodash/isEmpty.js +77 -0
  1119. package/node_modules/lodash/isEqual.js +35 -0
  1120. package/node_modules/lodash/isEqualWith.js +41 -0
  1121. package/node_modules/lodash/isError.js +36 -0
  1122. package/node_modules/lodash/isFinite.js +36 -0
  1123. package/node_modules/lodash/isFunction.js +37 -0
  1124. package/node_modules/lodash/isInteger.js +33 -0
  1125. package/node_modules/lodash/isLength.js +35 -0
  1126. package/node_modules/lodash/isMap.js +27 -0
  1127. package/node_modules/lodash/isMatch.js +36 -0
  1128. package/node_modules/lodash/isMatchWith.js +41 -0
  1129. package/node_modules/lodash/isNaN.js +38 -0
  1130. package/node_modules/lodash/isNative.js +40 -0
  1131. package/node_modules/lodash/isNil.js +25 -0
  1132. package/node_modules/lodash/isNull.js +22 -0
  1133. package/node_modules/lodash/isNumber.js +38 -0
  1134. package/node_modules/lodash/isObject.js +31 -0
  1135. package/node_modules/lodash/isObjectLike.js +29 -0
  1136. package/node_modules/lodash/isPlainObject.js +62 -0
  1137. package/node_modules/lodash/isRegExp.js +27 -0
  1138. package/node_modules/lodash/isSafeInteger.js +37 -0
  1139. package/node_modules/lodash/isSet.js +27 -0
  1140. package/node_modules/lodash/isString.js +30 -0
  1141. package/node_modules/lodash/isSymbol.js +29 -0
  1142. package/node_modules/lodash/isTypedArray.js +27 -0
  1143. package/node_modules/lodash/isUndefined.js +22 -0
  1144. package/node_modules/lodash/isWeakMap.js +28 -0
  1145. package/node_modules/lodash/isWeakSet.js +28 -0
  1146. package/node_modules/lodash/iteratee.js +53 -0
  1147. package/node_modules/lodash/join.js +26 -0
  1148. package/node_modules/lodash/kebabCase.js +28 -0
  1149. package/node_modules/lodash/keyBy.js +36 -0
  1150. package/node_modules/lodash/keys.js +37 -0
  1151. package/node_modules/lodash/keysIn.js +32 -0
  1152. package/node_modules/lodash/lang.js +58 -0
  1153. package/node_modules/lodash/last.js +20 -0
  1154. package/node_modules/lodash/lastIndexOf.js +46 -0
  1155. package/node_modules/lodash/lodash.js +17209 -0
  1156. package/node_modules/lodash/lodash.min.js +140 -0
  1157. package/node_modules/lodash/lowerCase.js +27 -0
  1158. package/node_modules/lodash/lowerFirst.js +22 -0
  1159. package/node_modules/lodash/lt.js +29 -0
  1160. package/node_modules/lodash/lte.js +30 -0
  1161. package/node_modules/lodash/map.js +53 -0
  1162. package/node_modules/lodash/mapKeys.js +36 -0
  1163. package/node_modules/lodash/mapValues.js +43 -0
  1164. package/node_modules/lodash/matches.js +46 -0
  1165. package/node_modules/lodash/matchesProperty.js +44 -0
  1166. package/node_modules/lodash/math.js +17 -0
  1167. package/node_modules/lodash/max.js +29 -0
  1168. package/node_modules/lodash/maxBy.js +34 -0
  1169. package/node_modules/lodash/mean.js +22 -0
  1170. package/node_modules/lodash/meanBy.js +31 -0
  1171. package/node_modules/lodash/memoize.js +73 -0
  1172. package/node_modules/lodash/merge.js +39 -0
  1173. package/node_modules/lodash/mergeWith.js +39 -0
  1174. package/node_modules/lodash/method.js +34 -0
  1175. package/node_modules/lodash/methodOf.js +33 -0
  1176. package/node_modules/lodash/min.js +29 -0
  1177. package/node_modules/lodash/minBy.js +34 -0
  1178. package/node_modules/lodash/mixin.js +74 -0
  1179. package/node_modules/lodash/multiply.js +22 -0
  1180. package/node_modules/lodash/negate.js +40 -0
  1181. package/node_modules/lodash/next.js +35 -0
  1182. package/node_modules/lodash/noop.js +17 -0
  1183. package/node_modules/lodash/now.js +23 -0
  1184. package/node_modules/lodash/nth.js +29 -0
  1185. package/node_modules/lodash/nthArg.js +32 -0
  1186. package/node_modules/lodash/number.js +5 -0
  1187. package/node_modules/lodash/object.js +49 -0
  1188. package/node_modules/lodash/omit.js +57 -0
  1189. package/node_modules/lodash/omitBy.js +29 -0
  1190. package/node_modules/lodash/once.js +25 -0
  1191. package/node_modules/lodash/orderBy.js +47 -0
  1192. package/node_modules/lodash/over.js +24 -0
  1193. package/node_modules/lodash/overArgs.js +61 -0
  1194. package/node_modules/lodash/overEvery.js +34 -0
  1195. package/node_modules/lodash/overSome.js +37 -0
  1196. package/node_modules/lodash/package.json +21 -0
  1197. package/node_modules/lodash/pad.js +49 -0
  1198. package/node_modules/lodash/padEnd.js +39 -0
  1199. package/node_modules/lodash/padStart.js +39 -0
  1200. package/node_modules/lodash/parseInt.js +43 -0
  1201. package/node_modules/lodash/partial.js +50 -0
  1202. package/node_modules/lodash/partialRight.js +49 -0
  1203. package/node_modules/lodash/partition.js +43 -0
  1204. package/node_modules/lodash/pick.js +25 -0
  1205. package/node_modules/lodash/pickBy.js +37 -0
  1206. package/node_modules/lodash/plant.js +48 -0
  1207. package/node_modules/lodash/property.js +32 -0
  1208. package/node_modules/lodash/propertyOf.js +30 -0
  1209. package/node_modules/lodash/pull.js +29 -0
  1210. package/node_modules/lodash/pullAll.js +29 -0
  1211. package/node_modules/lodash/pullAllBy.js +33 -0
  1212. package/node_modules/lodash/pullAllWith.js +32 -0
  1213. package/node_modules/lodash/pullAt.js +43 -0
  1214. package/node_modules/lodash/random.js +82 -0
  1215. package/node_modules/lodash/range.js +46 -0
  1216. package/node_modules/lodash/rangeRight.js +41 -0
  1217. package/node_modules/lodash/rearg.js +33 -0
  1218. package/node_modules/lodash/reduce.js +51 -0
  1219. package/node_modules/lodash/reduceRight.js +36 -0
  1220. package/node_modules/lodash/reject.js +46 -0
  1221. package/node_modules/lodash/release.md +48 -0
  1222. package/node_modules/lodash/remove.js +53 -0
  1223. package/node_modules/lodash/repeat.js +37 -0
  1224. package/node_modules/lodash/replace.js +29 -0
  1225. package/node_modules/lodash/rest.js +40 -0
  1226. package/node_modules/lodash/result.js +56 -0
  1227. package/node_modules/lodash/reverse.js +34 -0
  1228. package/node_modules/lodash/round.js +26 -0
  1229. package/node_modules/lodash/sample.js +24 -0
  1230. package/node_modules/lodash/sampleSize.js +37 -0
  1231. package/node_modules/lodash/seq.js +16 -0
  1232. package/node_modules/lodash/set.js +35 -0
  1233. package/node_modules/lodash/setWith.js +32 -0
  1234. package/node_modules/lodash/shuffle.js +25 -0
  1235. package/node_modules/lodash/size.js +46 -0
  1236. package/node_modules/lodash/slice.js +37 -0
  1237. package/node_modules/lodash/snakeCase.js +28 -0
  1238. package/node_modules/lodash/some.js +51 -0
  1239. package/node_modules/lodash/sortBy.js +48 -0
  1240. package/node_modules/lodash/sortedIndex.js +24 -0
  1241. package/node_modules/lodash/sortedIndexBy.js +33 -0
  1242. package/node_modules/lodash/sortedIndexOf.js +31 -0
  1243. package/node_modules/lodash/sortedLastIndex.js +25 -0
  1244. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1245. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1246. package/node_modules/lodash/sortedUniq.js +24 -0
  1247. package/node_modules/lodash/sortedUniqBy.js +26 -0
  1248. package/node_modules/lodash/split.js +52 -0
  1249. package/node_modules/lodash/spread.js +63 -0
  1250. package/node_modules/lodash/startCase.js +29 -0
  1251. package/node_modules/lodash/startsWith.js +39 -0
  1252. package/node_modules/lodash/string.js +33 -0
  1253. package/node_modules/lodash/stubArray.js +23 -0
  1254. package/node_modules/lodash/stubFalse.js +18 -0
  1255. package/node_modules/lodash/stubObject.js +23 -0
  1256. package/node_modules/lodash/stubString.js +18 -0
  1257. package/node_modules/lodash/stubTrue.js +18 -0
  1258. package/node_modules/lodash/subtract.js +22 -0
  1259. package/node_modules/lodash/sum.js +24 -0
  1260. package/node_modules/lodash/sumBy.js +33 -0
  1261. package/node_modules/lodash/tail.js +22 -0
  1262. package/node_modules/lodash/take.js +37 -0
  1263. package/node_modules/lodash/takeRight.js +39 -0
  1264. package/node_modules/lodash/takeRightWhile.js +45 -0
  1265. package/node_modules/lodash/takeWhile.js +45 -0
  1266. package/node_modules/lodash/tap.js +29 -0
  1267. package/node_modules/lodash/template.js +272 -0
  1268. package/node_modules/lodash/templateSettings.js +67 -0
  1269. package/node_modules/lodash/throttle.js +69 -0
  1270. package/node_modules/lodash/thru.js +28 -0
  1271. package/node_modules/lodash/times.js +51 -0
  1272. package/node_modules/lodash/toArray.js +58 -0
  1273. package/node_modules/lodash/toFinite.js +42 -0
  1274. package/node_modules/lodash/toInteger.js +36 -0
  1275. package/node_modules/lodash/toIterator.js +23 -0
  1276. package/node_modules/lodash/toJSON.js +1 -0
  1277. package/node_modules/lodash/toLength.js +38 -0
  1278. package/node_modules/lodash/toLower.js +28 -0
  1279. package/node_modules/lodash/toNumber.js +64 -0
  1280. package/node_modules/lodash/toPairs.js +30 -0
  1281. package/node_modules/lodash/toPairsIn.js +30 -0
  1282. package/node_modules/lodash/toPath.js +33 -0
  1283. package/node_modules/lodash/toPlainObject.js +32 -0
  1284. package/node_modules/lodash/toSafeInteger.js +37 -0
  1285. package/node_modules/lodash/toString.js +28 -0
  1286. package/node_modules/lodash/toUpper.js +28 -0
  1287. package/node_modules/lodash/transform.js +65 -0
  1288. package/node_modules/lodash/trim.js +47 -0
  1289. package/node_modules/lodash/trimEnd.js +41 -0
  1290. package/node_modules/lodash/trimStart.js +43 -0
  1291. package/node_modules/lodash/truncate.js +111 -0
  1292. package/node_modules/lodash/unary.js +22 -0
  1293. package/node_modules/lodash/unescape.js +34 -0
  1294. package/node_modules/lodash/union.js +26 -0
  1295. package/node_modules/lodash/unionBy.js +39 -0
  1296. package/node_modules/lodash/unionWith.js +34 -0
  1297. package/node_modules/lodash/uniq.js +25 -0
  1298. package/node_modules/lodash/uniqBy.js +31 -0
  1299. package/node_modules/lodash/uniqWith.js +28 -0
  1300. package/node_modules/lodash/uniqueId.js +28 -0
  1301. package/node_modules/lodash/unset.js +34 -0
  1302. package/node_modules/lodash/unzip.js +45 -0
  1303. package/node_modules/lodash/unzipWith.js +39 -0
  1304. package/node_modules/lodash/update.js +35 -0
  1305. package/node_modules/lodash/updateWith.js +33 -0
  1306. package/node_modules/lodash/upperCase.js +27 -0
  1307. package/node_modules/lodash/upperFirst.js +22 -0
  1308. package/node_modules/lodash/util.js +34 -0
  1309. package/node_modules/lodash/value.js +1 -0
  1310. package/node_modules/lodash/valueOf.js +1 -0
  1311. package/node_modules/lodash/values.js +34 -0
  1312. package/node_modules/lodash/valuesIn.js +32 -0
  1313. package/node_modules/lodash/without.js +31 -0
  1314. package/node_modules/lodash/words.js +35 -0
  1315. package/node_modules/lodash/wrap.js +30 -0
  1316. package/node_modules/lodash/wrapperAt.js +48 -0
  1317. package/node_modules/lodash/wrapperChain.js +34 -0
  1318. package/node_modules/lodash/wrapperLodash.js +147 -0
  1319. package/node_modules/lodash/wrapperReverse.js +44 -0
  1320. package/node_modules/lodash/wrapperValue.js +21 -0
  1321. package/node_modules/lodash/xor.js +28 -0
  1322. package/node_modules/lodash/xorBy.js +39 -0
  1323. package/node_modules/lodash/xorWith.js +34 -0
  1324. package/node_modules/lodash/zip.js +22 -0
  1325. package/node_modules/lodash/zipObject.js +24 -0
  1326. package/node_modules/lodash/zipObjectDeep.js +23 -0
  1327. package/node_modules/lodash/zipWith.js +32 -0
  1328. package/node_modules/lower-case/LICENSE +21 -0
  1329. package/node_modules/lower-case/README.md +35 -0
  1330. package/node_modules/lower-case/dist/index.d.ts +8 -0
  1331. package/node_modules/lower-case/dist/index.js +53 -0
  1332. package/node_modules/lower-case/dist/index.js.map +1 -0
  1333. package/node_modules/lower-case/dist/index.spec.d.ts +1 -0
  1334. package/node_modules/lower-case/dist/index.spec.js +36 -0
  1335. package/node_modules/lower-case/dist/index.spec.js.map +1 -0
  1336. package/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
  1337. package/node_modules/lower-case/dist.es2015/index.js +48 -0
  1338. package/node_modules/lower-case/dist.es2015/index.js.map +1 -0
  1339. package/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
  1340. package/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
  1341. package/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
  1342. package/node_modules/lower-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1343. package/node_modules/lower-case/node_modules/tslib/LICENSE.txt +12 -0
  1344. package/node_modules/lower-case/node_modules/tslib/README.md +164 -0
  1345. package/node_modules/lower-case/node_modules/tslib/modules/index.js +55 -0
  1346. package/node_modules/lower-case/node_modules/tslib/modules/package.json +3 -0
  1347. package/node_modules/lower-case/node_modules/tslib/package.json +42 -0
  1348. package/node_modules/lower-case/node_modules/tslib/tslib.d.ts +398 -0
  1349. package/node_modules/lower-case/node_modules/tslib/tslib.es6.html +1 -0
  1350. package/node_modules/lower-case/node_modules/tslib/tslib.es6.js +248 -0
  1351. package/node_modules/lower-case/node_modules/tslib/tslib.html +1 -0
  1352. package/node_modules/lower-case/node_modules/tslib/tslib.js +317 -0
  1353. package/node_modules/lower-case/package.json +91 -0
  1354. package/node_modules/no-case/LICENSE +21 -0
  1355. package/node_modules/no-case/README.md +37 -0
  1356. package/node_modules/no-case/dist/index.d.ts +10 -0
  1357. package/node_modules/no-case/dist/index.js +35 -0
  1358. package/node_modules/no-case/dist/index.js.map +1 -0
  1359. package/node_modules/no-case/dist/index.spec.d.ts +1 -0
  1360. package/node_modules/no-case/dist/index.spec.js +59 -0
  1361. package/node_modules/no-case/dist/index.spec.js.map +1 -0
  1362. package/node_modules/no-case/dist.es2015/index.d.ts +10 -0
  1363. package/node_modules/no-case/dist.es2015/index.js +31 -0
  1364. package/node_modules/no-case/dist.es2015/index.js.map +1 -0
  1365. package/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
  1366. package/node_modules/no-case/dist.es2015/index.spec.js +57 -0
  1367. package/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
  1368. package/node_modules/no-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1369. package/node_modules/no-case/node_modules/tslib/LICENSE.txt +12 -0
  1370. package/node_modules/no-case/node_modules/tslib/README.md +164 -0
  1371. package/node_modules/no-case/node_modules/tslib/modules/index.js +55 -0
  1372. package/node_modules/no-case/node_modules/tslib/modules/package.json +3 -0
  1373. package/node_modules/no-case/node_modules/tslib/package.json +42 -0
  1374. package/node_modules/no-case/node_modules/tslib/tslib.d.ts +398 -0
  1375. package/node_modules/no-case/node_modules/tslib/tslib.es6.html +1 -0
  1376. package/node_modules/no-case/node_modules/tslib/tslib.es6.js +248 -0
  1377. package/node_modules/no-case/node_modules/tslib/tslib.html +1 -0
  1378. package/node_modules/no-case/node_modules/tslib/tslib.js +317 -0
  1379. package/node_modules/no-case/package.json +89 -0
  1380. package/node_modules/nunjucks/CHANGELOG.md +736 -0
  1381. package/node_modules/nunjucks/LICENSE +26 -0
  1382. package/node_modules/nunjucks/README.md +58 -0
  1383. package/node_modules/nunjucks/bin/precompile +58 -0
  1384. package/node_modules/nunjucks/bin/precompile.cmd +5 -0
  1385. package/node_modules/nunjucks/browser/nunjucks-slim.js +4263 -0
  1386. package/node_modules/nunjucks/browser/nunjucks-slim.js.map +1 -0
  1387. package/node_modules/nunjucks/browser/nunjucks-slim.min.js +3 -0
  1388. package/node_modules/nunjucks/browser/nunjucks-slim.min.js.map +1 -0
  1389. package/node_modules/nunjucks/browser/nunjucks.js +8423 -0
  1390. package/node_modules/nunjucks/browser/nunjucks.js.map +1 -0
  1391. package/node_modules/nunjucks/browser/nunjucks.min.js +3 -0
  1392. package/node_modules/nunjucks/browser/nunjucks.min.js.map +1 -0
  1393. package/node_modules/nunjucks/index.js +103 -0
  1394. package/node_modules/nunjucks/node_modules/commander/CHANGELOG.md +385 -0
  1395. package/node_modules/nunjucks/node_modules/commander/LICENSE +22 -0
  1396. package/node_modules/nunjucks/node_modules/commander/Readme.md +737 -0
  1397. package/node_modules/nunjucks/node_modules/commander/index.js +1756 -0
  1398. package/node_modules/nunjucks/node_modules/commander/package.json +52 -0
  1399. package/node_modules/nunjucks/node_modules/commander/typings/index.d.ts +386 -0
  1400. package/node_modules/nunjucks/package.json +116 -0
  1401. package/node_modules/nunjucks/src/compiler.js +1449 -0
  1402. package/node_modules/nunjucks/src/environment.js +659 -0
  1403. package/node_modules/nunjucks/src/express-app.js +28 -0
  1404. package/node_modules/nunjucks/src/filters.js +680 -0
  1405. package/node_modules/nunjucks/src/globals.js +72 -0
  1406. package/node_modules/nunjucks/src/jinja-compat.js +358 -0
  1407. package/node_modules/nunjucks/src/lexer.js +542 -0
  1408. package/node_modules/nunjucks/src/lib.js +417 -0
  1409. package/node_modules/nunjucks/src/loader.js +30 -0
  1410. package/node_modules/nunjucks/src/loaders.js +5 -0
  1411. package/node_modules/nunjucks/src/node-loaders.js +177 -0
  1412. package/node_modules/nunjucks/src/nodes.js +394 -0
  1413. package/node_modules/nunjucks/src/object.js +129 -0
  1414. package/node_modules/nunjucks/src/parser.js +1267 -0
  1415. package/node_modules/nunjucks/src/precompile-global.js +22 -0
  1416. package/node_modules/nunjucks/src/precompile.js +131 -0
  1417. package/node_modules/nunjucks/src/precompiled-loader.js +41 -0
  1418. package/node_modules/nunjucks/src/runtime.js +405 -0
  1419. package/node_modules/nunjucks/src/tests.js +286 -0
  1420. package/node_modules/nunjucks/src/transformer.js +197 -0
  1421. package/node_modules/nunjucks/src/web-loaders.js +110 -0
  1422. package/node_modules/param-case/LICENSE +21 -0
  1423. package/node_modules/param-case/README.md +37 -0
  1424. package/node_modules/param-case/dist/index.d.ts +3 -0
  1425. package/node_modules/param-case/dist/index.js +11 -0
  1426. package/node_modules/param-case/dist/index.js.map +1 -0
  1427. package/node_modules/param-case/dist/index.spec.d.ts +1 -0
  1428. package/node_modules/param-case/dist/index.spec.js +24 -0
  1429. package/node_modules/param-case/dist/index.spec.js.map +1 -0
  1430. package/node_modules/param-case/dist.es2015/index.d.ts +3 -0
  1431. package/node_modules/param-case/dist.es2015/index.js +7 -0
  1432. package/node_modules/param-case/dist.es2015/index.js.map +1 -0
  1433. package/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
  1434. package/node_modules/param-case/dist.es2015/index.spec.js +22 -0
  1435. package/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
  1436. package/node_modules/param-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1437. package/node_modules/param-case/node_modules/tslib/LICENSE.txt +12 -0
  1438. package/node_modules/param-case/node_modules/tslib/README.md +164 -0
  1439. package/node_modules/param-case/node_modules/tslib/modules/index.js +55 -0
  1440. package/node_modules/param-case/node_modules/tslib/modules/package.json +3 -0
  1441. package/node_modules/param-case/node_modules/tslib/package.json +42 -0
  1442. package/node_modules/param-case/node_modules/tslib/tslib.d.ts +398 -0
  1443. package/node_modules/param-case/node_modules/tslib/tslib.es6.html +1 -0
  1444. package/node_modules/param-case/node_modules/tslib/tslib.es6.js +248 -0
  1445. package/node_modules/param-case/node_modules/tslib/tslib.html +1 -0
  1446. package/node_modules/param-case/node_modules/tslib/tslib.js +317 -0
  1447. package/node_modules/param-case/package.json +95 -0
  1448. package/node_modules/pascal-case/LICENSE +21 -0
  1449. package/node_modules/pascal-case/README.md +47 -0
  1450. package/node_modules/pascal-case/dist/index.d.ts +5 -0
  1451. package/node_modules/pascal-case/dist/index.js +24 -0
  1452. package/node_modules/pascal-case/dist/index.js.map +1 -0
  1453. package/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
  1454. package/node_modules/pascal-case/dist/index.spec.js +25 -0
  1455. package/node_modules/pascal-case/dist/index.spec.js.map +1 -0
  1456. package/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
  1457. package/node_modules/pascal-case/dist.es2015/index.js +18 -0
  1458. package/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
  1459. package/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
  1460. package/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
  1461. package/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
  1462. package/node_modules/pascal-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1463. package/node_modules/pascal-case/node_modules/tslib/LICENSE.txt +12 -0
  1464. package/node_modules/pascal-case/node_modules/tslib/README.md +164 -0
  1465. package/node_modules/pascal-case/node_modules/tslib/modules/index.js +55 -0
  1466. package/node_modules/pascal-case/node_modules/tslib/modules/package.json +3 -0
  1467. package/node_modules/pascal-case/node_modules/tslib/package.json +42 -0
  1468. package/node_modules/pascal-case/node_modules/tslib/tslib.d.ts +398 -0
  1469. package/node_modules/pascal-case/node_modules/tslib/tslib.es6.html +1 -0
  1470. package/node_modules/pascal-case/node_modules/tslib/tslib.es6.js +248 -0
  1471. package/node_modules/pascal-case/node_modules/tslib/tslib.html +1 -0
  1472. package/node_modules/pascal-case/node_modules/tslib/tslib.js +317 -0
  1473. package/node_modules/pascal-case/package.json +94 -0
  1474. package/node_modules/path-case/LICENSE +21 -0
  1475. package/node_modules/path-case/README.md +37 -0
  1476. package/node_modules/path-case/dist/index.d.ts +3 -0
  1477. package/node_modules/path-case/dist/index.js +11 -0
  1478. package/node_modules/path-case/dist/index.js.map +1 -0
  1479. package/node_modules/path-case/dist/index.spec.d.ts +1 -0
  1480. package/node_modules/path-case/dist/index.spec.js +24 -0
  1481. package/node_modules/path-case/dist/index.spec.js.map +1 -0
  1482. package/node_modules/path-case/dist.es2015/index.d.ts +3 -0
  1483. package/node_modules/path-case/dist.es2015/index.js +7 -0
  1484. package/node_modules/path-case/dist.es2015/index.js.map +1 -0
  1485. package/node_modules/path-case/dist.es2015/index.spec.d.ts +1 -0
  1486. package/node_modules/path-case/dist.es2015/index.spec.js +22 -0
  1487. package/node_modules/path-case/dist.es2015/index.spec.js.map +1 -0
  1488. package/node_modules/path-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1489. package/node_modules/path-case/node_modules/tslib/LICENSE.txt +12 -0
  1490. package/node_modules/path-case/node_modules/tslib/README.md +164 -0
  1491. package/node_modules/path-case/node_modules/tslib/modules/index.js +55 -0
  1492. package/node_modules/path-case/node_modules/tslib/modules/package.json +3 -0
  1493. package/node_modules/path-case/node_modules/tslib/package.json +42 -0
  1494. package/node_modules/path-case/node_modules/tslib/tslib.d.ts +398 -0
  1495. package/node_modules/path-case/node_modules/tslib/tslib.es6.html +1 -0
  1496. package/node_modules/path-case/node_modules/tslib/tslib.es6.js +248 -0
  1497. package/node_modules/path-case/node_modules/tslib/tslib.html +1 -0
  1498. package/node_modules/path-case/node_modules/tslib/tslib.js +317 -0
  1499. package/node_modules/path-case/package.json +92 -0
  1500. package/node_modules/sentence-case/LICENSE +21 -0
  1501. package/node_modules/sentence-case/README.md +37 -0
  1502. package/node_modules/sentence-case/dist/index.d.ts +4 -0
  1503. package/node_modules/sentence-case/dist/index.js +19 -0
  1504. package/node_modules/sentence-case/dist/index.js.map +1 -0
  1505. package/node_modules/sentence-case/dist/index.spec.d.ts +1 -0
  1506. package/node_modules/sentence-case/dist/index.spec.js +24 -0
  1507. package/node_modules/sentence-case/dist/index.spec.js.map +1 -0
  1508. package/node_modules/sentence-case/dist.es2015/index.d.ts +4 -0
  1509. package/node_modules/sentence-case/dist.es2015/index.js +14 -0
  1510. package/node_modules/sentence-case/dist.es2015/index.js.map +1 -0
  1511. package/node_modules/sentence-case/dist.es2015/index.spec.d.ts +1 -0
  1512. package/node_modules/sentence-case/dist.es2015/index.spec.js +22 -0
  1513. package/node_modules/sentence-case/dist.es2015/index.spec.js.map +1 -0
  1514. package/node_modules/sentence-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1515. package/node_modules/sentence-case/node_modules/tslib/LICENSE.txt +12 -0
  1516. package/node_modules/sentence-case/node_modules/tslib/README.md +164 -0
  1517. package/node_modules/sentence-case/node_modules/tslib/modules/index.js +55 -0
  1518. package/node_modules/sentence-case/node_modules/tslib/modules/package.json +3 -0
  1519. package/node_modules/sentence-case/node_modules/tslib/package.json +42 -0
  1520. package/node_modules/sentence-case/node_modules/tslib/tslib.d.ts +398 -0
  1521. package/node_modules/sentence-case/node_modules/tslib/tslib.es6.html +1 -0
  1522. package/node_modules/sentence-case/node_modules/tslib/tslib.es6.js +248 -0
  1523. package/node_modules/sentence-case/node_modules/tslib/tslib.html +1 -0
  1524. package/node_modules/sentence-case/node_modules/tslib/tslib.js +317 -0
  1525. package/node_modules/sentence-case/package.json +93 -0
  1526. package/node_modules/snake-case/LICENSE +21 -0
  1527. package/node_modules/snake-case/README.md +37 -0
  1528. package/node_modules/snake-case/dist/index.d.ts +3 -0
  1529. package/node_modules/snake-case/dist/index.js +11 -0
  1530. package/node_modules/snake-case/dist/index.js.map +1 -0
  1531. package/node_modules/snake-case/dist/index.spec.d.ts +1 -0
  1532. package/node_modules/snake-case/dist/index.spec.js +25 -0
  1533. package/node_modules/snake-case/dist/index.spec.js.map +1 -0
  1534. package/node_modules/snake-case/dist.es2015/index.d.ts +3 -0
  1535. package/node_modules/snake-case/dist.es2015/index.js +7 -0
  1536. package/node_modules/snake-case/dist.es2015/index.js.map +1 -0
  1537. package/node_modules/snake-case/dist.es2015/index.spec.d.ts +1 -0
  1538. package/node_modules/snake-case/dist.es2015/index.spec.js +23 -0
  1539. package/node_modules/snake-case/dist.es2015/index.spec.js.map +1 -0
  1540. package/node_modules/snake-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1541. package/node_modules/snake-case/node_modules/tslib/LICENSE.txt +12 -0
  1542. package/node_modules/snake-case/node_modules/tslib/README.md +164 -0
  1543. package/node_modules/snake-case/node_modules/tslib/modules/index.js +55 -0
  1544. package/node_modules/snake-case/node_modules/tslib/modules/package.json +3 -0
  1545. package/node_modules/snake-case/node_modules/tslib/package.json +42 -0
  1546. package/node_modules/snake-case/node_modules/tslib/tslib.d.ts +398 -0
  1547. package/node_modules/snake-case/node_modules/tslib/tslib.es6.html +1 -0
  1548. package/node_modules/snake-case/node_modules/tslib/tslib.es6.js +248 -0
  1549. package/node_modules/snake-case/node_modules/tslib/tslib.html +1 -0
  1550. package/node_modules/snake-case/node_modules/tslib/tslib.js +317 -0
  1551. package/node_modules/snake-case/package.json +94 -0
  1552. package/node_modules/upper-case/README.md +34 -0
  1553. package/node_modules/upper-case/dist/index.d.ts +8 -0
  1554. package/node_modules/upper-case/dist/index.js +49 -0
  1555. package/node_modules/upper-case/dist/index.js.map +1 -0
  1556. package/node_modules/upper-case/dist/index.spec.d.ts +1 -0
  1557. package/node_modules/upper-case/dist/index.spec.js +34 -0
  1558. package/node_modules/upper-case/dist/index.spec.js.map +1 -0
  1559. package/node_modules/upper-case/dist.es2015/index.d.ts +8 -0
  1560. package/node_modules/upper-case/dist.es2015/index.js +44 -0
  1561. package/node_modules/upper-case/dist.es2015/index.js.map +1 -0
  1562. package/node_modules/upper-case/dist.es2015/index.spec.d.ts +1 -0
  1563. package/node_modules/upper-case/dist.es2015/index.spec.js +32 -0
  1564. package/node_modules/upper-case/dist.es2015/index.spec.js.map +1 -0
  1565. package/node_modules/upper-case/node_modules/tslib/CopyrightNotice.txt +15 -0
  1566. package/node_modules/upper-case/node_modules/tslib/LICENSE.txt +12 -0
  1567. package/node_modules/upper-case/node_modules/tslib/README.md +164 -0
  1568. package/node_modules/upper-case/node_modules/tslib/modules/index.js +55 -0
  1569. package/node_modules/upper-case/node_modules/tslib/modules/package.json +3 -0
  1570. package/node_modules/upper-case/node_modules/tslib/package.json +42 -0
  1571. package/node_modules/upper-case/node_modules/tslib/tslib.d.ts +398 -0
  1572. package/node_modules/upper-case/node_modules/tslib/tslib.es6.html +1 -0
  1573. package/node_modules/upper-case/node_modules/tslib/tslib.es6.js +248 -0
  1574. package/node_modules/upper-case/node_modules/tslib/tslib.html +1 -0
  1575. package/node_modules/upper-case/node_modules/tslib/tslib.js +317 -0
  1576. package/node_modules/upper-case/package.json +90 -0
  1577. package/node_modules/upper-case-first/LICENSE +21 -0
  1578. package/node_modules/upper-case-first/README.md +32 -0
  1579. package/node_modules/upper-case-first/dist/index.d.ts +4 -0
  1580. package/node_modules/upper-case-first/dist/index.js +11 -0
  1581. package/node_modules/upper-case-first/dist/index.js.map +1 -0
  1582. package/node_modules/upper-case-first/dist/index.spec.d.ts +1 -0
  1583. package/node_modules/upper-case-first/dist/index.spec.js +20 -0
  1584. package/node_modules/upper-case-first/dist/index.spec.js.map +1 -0
  1585. package/node_modules/upper-case-first/dist.es2015/index.d.ts +4 -0
  1586. package/node_modules/upper-case-first/dist.es2015/index.js +7 -0
  1587. package/node_modules/upper-case-first/dist.es2015/index.js.map +1 -0
  1588. package/node_modules/upper-case-first/dist.es2015/index.spec.d.ts +1 -0
  1589. package/node_modules/upper-case-first/dist.es2015/index.spec.js +18 -0
  1590. package/node_modules/upper-case-first/dist.es2015/index.spec.js.map +1 -0
  1591. package/node_modules/upper-case-first/node_modules/tslib/CopyrightNotice.txt +15 -0
  1592. package/node_modules/upper-case-first/node_modules/tslib/LICENSE.txt +12 -0
  1593. package/node_modules/upper-case-first/node_modules/tslib/README.md +164 -0
  1594. package/node_modules/upper-case-first/node_modules/tslib/modules/index.js +55 -0
  1595. package/node_modules/upper-case-first/node_modules/tslib/modules/package.json +3 -0
  1596. package/node_modules/upper-case-first/node_modules/tslib/package.json +42 -0
  1597. package/node_modules/upper-case-first/node_modules/tslib/tslib.d.ts +398 -0
  1598. package/node_modules/upper-case-first/node_modules/tslib/tslib.es6.html +1 -0
  1599. package/node_modules/upper-case-first/node_modules/tslib/tslib.es6.js +248 -0
  1600. package/node_modules/upper-case-first/node_modules/tslib/tslib.html +1 -0
  1601. package/node_modules/upper-case-first/node_modules/tslib/tslib.js +317 -0
  1602. package/node_modules/upper-case-first/package.json +91 -0
  1603. package/package.json +149 -0
@@ -0,0 +1,1756 @@
1
+ /**
2
+ * Module dependencies.
3
+ */
4
+
5
+ const EventEmitter = require('events').EventEmitter;
6
+ const spawn = require('child_process').spawn;
7
+ const path = require('path');
8
+ const fs = require('fs');
9
+
10
+ // @ts-check
11
+
12
+ class Option {
13
+ /**
14
+ * Initialize a new `Option` with the given `flags` and `description`.
15
+ *
16
+ * @param {string} flags
17
+ * @param {string} description
18
+ * @api public
19
+ */
20
+
21
+ constructor(flags, description) {
22
+ this.flags = flags;
23
+ this.required = flags.indexOf('<') >= 0; // A value must be supplied when the option is specified.
24
+ this.optional = flags.indexOf('[') >= 0; // A value is optional when the option is specified.
25
+ this.mandatory = false; // The option must have a value after parsing, which usually means it must be specified on command line.
26
+ this.negate = flags.indexOf('-no-') !== -1;
27
+ const flagParts = flags.split(/[ ,|]+/);
28
+ if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1])) this.short = flagParts.shift();
29
+ this.long = flagParts.shift();
30
+ this.description = description || '';
31
+ this.defaultValue = undefined;
32
+ }
33
+
34
+ /**
35
+ * Return option name.
36
+ *
37
+ * @return {string}
38
+ * @api private
39
+ */
40
+
41
+ name() {
42
+ return this.long.replace(/^--/, '');
43
+ };
44
+
45
+ /**
46
+ * Return option name, in a camelcase format that can be used
47
+ * as a object attribute key.
48
+ *
49
+ * @return {string}
50
+ * @api private
51
+ */
52
+
53
+ attributeName() {
54
+ return camelcase(this.name().replace(/^no-/, ''));
55
+ };
56
+
57
+ /**
58
+ * Check if `arg` matches the short or long flag.
59
+ *
60
+ * @param {string} arg
61
+ * @return {boolean}
62
+ * @api private
63
+ */
64
+
65
+ is(arg) {
66
+ return this.short === arg || this.long === arg;
67
+ };
68
+ }
69
+
70
+ /**
71
+ * CommanderError class
72
+ * @class
73
+ */
74
+ class CommanderError extends Error {
75
+ /**
76
+ * Constructs the CommanderError class
77
+ * @param {number} exitCode suggested exit code which could be used with process.exit
78
+ * @param {string} code an id string representing the error
79
+ * @param {string} message human-readable description of the error
80
+ * @constructor
81
+ */
82
+ constructor(exitCode, code, message) {
83
+ super(message);
84
+ // properly capture stack trace in Node.js
85
+ Error.captureStackTrace(this, this.constructor);
86
+ this.name = this.constructor.name;
87
+ this.code = code;
88
+ this.exitCode = exitCode;
89
+ this.nestedError = undefined;
90
+ }
91
+ }
92
+
93
+ class Command extends EventEmitter {
94
+ /**
95
+ * Initialize a new `Command`.
96
+ *
97
+ * @param {string} [name]
98
+ * @api public
99
+ */
100
+
101
+ constructor(name) {
102
+ super();
103
+ this.commands = [];
104
+ this.options = [];
105
+ this.parent = null;
106
+ this._allowUnknownOption = false;
107
+ this._args = [];
108
+ this.rawArgs = null;
109
+ this._scriptPath = null;
110
+ this._name = name || '';
111
+ this._optionValues = {};
112
+ this._storeOptionsAsProperties = true; // backwards compatible by default
113
+ this._passCommandToAction = true; // backwards compatible by default
114
+ this._actionResults = [];
115
+ this._actionHandler = null;
116
+ this._executableHandler = false;
117
+ this._executableFile = null; // custom name for executable
118
+ this._defaultCommandName = null;
119
+ this._exitCallback = null;
120
+ this._aliases = [];
121
+
122
+ this._hidden = false;
123
+ this._helpFlags = '-h, --help';
124
+ this._helpDescription = 'display help for command';
125
+ this._helpShortFlag = '-h';
126
+ this._helpLongFlag = '--help';
127
+ this._hasImplicitHelpCommand = undefined; // Deliberately undefined, not decided whether true or false
128
+ this._helpCommandName = 'help';
129
+ this._helpCommandnameAndArgs = 'help [command]';
130
+ this._helpCommandDescription = 'display help for command';
131
+ }
132
+
133
+ /**
134
+ * Define a command.
135
+ *
136
+ * There are two styles of command: pay attention to where to put the description.
137
+ *
138
+ * Examples:
139
+ *
140
+ * // Command implemented using action handler (description is supplied separately to `.command`)
141
+ * program
142
+ * .command('clone <source> [destination]')
143
+ * .description('clone a repository into a newly created directory')
144
+ * .action((source, destination) => {
145
+ * console.log('clone command called');
146
+ * });
147
+ *
148
+ * // Command implemented using separate executable file (description is second parameter to `.command`)
149
+ * program
150
+ * .command('start <service>', 'start named service')
151
+ * .command('stop [service]', 'stop named service, or all if no name supplied');
152
+ *
153
+ * @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
154
+ * @param {Object|string} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
155
+ * @param {Object} [execOpts] - configuration options (for executable)
156
+ * @return {Command} returns new command for action handler, or `this` for executable command
157
+ * @api public
158
+ */
159
+
160
+ command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
161
+ let desc = actionOptsOrExecDesc;
162
+ let opts = execOpts;
163
+ if (typeof desc === 'object' && desc !== null) {
164
+ opts = desc;
165
+ desc = null;
166
+ }
167
+ opts = opts || {};
168
+ const args = nameAndArgs.split(/ +/);
169
+ const cmd = this.createCommand(args.shift());
170
+
171
+ if (desc) {
172
+ cmd.description(desc);
173
+ cmd._executableHandler = true;
174
+ }
175
+ if (opts.isDefault) this._defaultCommandName = cmd._name;
176
+
177
+ cmd._hidden = !!(opts.noHelp || opts.hidden);
178
+ cmd._helpFlags = this._helpFlags;
179
+ cmd._helpDescription = this._helpDescription;
180
+ cmd._helpShortFlag = this._helpShortFlag;
181
+ cmd._helpLongFlag = this._helpLongFlag;
182
+ cmd._helpCommandName = this._helpCommandName;
183
+ cmd._helpCommandnameAndArgs = this._helpCommandnameAndArgs;
184
+ cmd._helpCommandDescription = this._helpCommandDescription;
185
+ cmd._exitCallback = this._exitCallback;
186
+ cmd._storeOptionsAsProperties = this._storeOptionsAsProperties;
187
+ cmd._passCommandToAction = this._passCommandToAction;
188
+
189
+ cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
190
+ this.commands.push(cmd);
191
+ cmd._parseExpectedArgs(args);
192
+ cmd.parent = this;
193
+
194
+ if (desc) return this;
195
+ return cmd;
196
+ };
197
+
198
+ /**
199
+ * Factory routine to create a new unattached command.
200
+ *
201
+ * See .command() for creating an attached subcommand, which uses this routine to
202
+ * create the command. You can override createCommand to customise subcommands.
203
+ *
204
+ * @param {string} [name]
205
+ * @return {Command} new command
206
+ * @api public
207
+ */
208
+
209
+ createCommand(name) {
210
+ return new Command(name);
211
+ };
212
+
213
+ /**
214
+ * Add a prepared subcommand.
215
+ *
216
+ * See .command() for creating an attached subcommand which inherits settings from its parent.
217
+ *
218
+ * @param {Command} cmd - new subcommand
219
+ * @param {Object} [opts] - configuration options
220
+ * @return {Command} `this` command for chaining
221
+ * @api public
222
+ */
223
+
224
+ addCommand(cmd, opts) {
225
+ if (!cmd._name) throw new Error('Command passed to .addCommand() must have a name');
226
+
227
+ // To keep things simple, block automatic name generation for deeply nested executables.
228
+ // Fail fast and detect when adding rather than later when parsing.
229
+ function checkExplicitNames(commandArray) {
230
+ commandArray.forEach((cmd) => {
231
+ if (cmd._executableHandler && !cmd._executableFile) {
232
+ throw new Error(`Must specify executableFile for deeply nested executable: ${cmd.name()}`);
233
+ }
234
+ checkExplicitNames(cmd.commands);
235
+ });
236
+ }
237
+ checkExplicitNames(cmd.commands);
238
+
239
+ opts = opts || {};
240
+ if (opts.isDefault) this._defaultCommandName = cmd._name;
241
+ if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
242
+
243
+ this.commands.push(cmd);
244
+ cmd.parent = this;
245
+ return this;
246
+ };
247
+
248
+ /**
249
+ * Define argument syntax for the command.
250
+ *
251
+ * @api public
252
+ */
253
+
254
+ arguments(desc) {
255
+ return this._parseExpectedArgs(desc.split(/ +/));
256
+ };
257
+
258
+ /**
259
+ * Override default decision whether to add implicit help command.
260
+ *
261
+ * addHelpCommand() // force on
262
+ * addHelpCommand(false); // force off
263
+ * addHelpCommand('help [cmd]', 'display help for [cmd]'); // force on with custom detais
264
+ *
265
+ * @return {Command} `this` command for chaining
266
+ * @api public
267
+ */
268
+
269
+ addHelpCommand(enableOrNameAndArgs, description) {
270
+ if (enableOrNameAndArgs === false) {
271
+ this._hasImplicitHelpCommand = false;
272
+ } else {
273
+ this._hasImplicitHelpCommand = true;
274
+ if (typeof enableOrNameAndArgs === 'string') {
275
+ this._helpCommandName = enableOrNameAndArgs.split(' ')[0];
276
+ this._helpCommandnameAndArgs = enableOrNameAndArgs;
277
+ }
278
+ this._helpCommandDescription = description || this._helpCommandDescription;
279
+ }
280
+ return this;
281
+ };
282
+
283
+ /**
284
+ * @return {boolean}
285
+ * @api private
286
+ */
287
+
288
+ _lazyHasImplicitHelpCommand() {
289
+ if (this._hasImplicitHelpCommand === undefined) {
290
+ this._hasImplicitHelpCommand = this.commands.length && !this._actionHandler && !this._findCommand('help');
291
+ }
292
+ return this._hasImplicitHelpCommand;
293
+ };
294
+
295
+ /**
296
+ * Parse expected `args`.
297
+ *
298
+ * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
299
+ *
300
+ * @param {Array} args
301
+ * @return {Command} `this` command for chaining
302
+ * @api private
303
+ */
304
+
305
+ _parseExpectedArgs(args) {
306
+ if (!args.length) return;
307
+ args.forEach((arg) => {
308
+ const argDetails = {
309
+ required: false,
310
+ name: '',
311
+ variadic: false
312
+ };
313
+
314
+ switch (arg[0]) {
315
+ case '<':
316
+ argDetails.required = true;
317
+ argDetails.name = arg.slice(1, -1);
318
+ break;
319
+ case '[':
320
+ argDetails.name = arg.slice(1, -1);
321
+ break;
322
+ }
323
+
324
+ if (argDetails.name.length > 3 && argDetails.name.slice(-3) === '...') {
325
+ argDetails.variadic = true;
326
+ argDetails.name = argDetails.name.slice(0, -3);
327
+ }
328
+ if (argDetails.name) {
329
+ this._args.push(argDetails);
330
+ }
331
+ });
332
+ this._args.forEach((arg, i) => {
333
+ if (arg.variadic && i < this._args.length - 1) {
334
+ throw new Error(`only the last argument can be variadic '${arg.name}'`);
335
+ }
336
+ });
337
+ return this;
338
+ };
339
+
340
+ /**
341
+ * Register callback to use as replacement for calling process.exit.
342
+ *
343
+ * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
344
+ * @return {Command} `this` command for chaining
345
+ * @api public
346
+ */
347
+
348
+ exitOverride(fn) {
349
+ if (fn) {
350
+ this._exitCallback = fn;
351
+ } else {
352
+ this._exitCallback = (err) => {
353
+ if (err.code !== 'commander.executeSubCommandAsync') {
354
+ throw err;
355
+ } else {
356
+ // Async callback from spawn events, not useful to throw.
357
+ }
358
+ };
359
+ }
360
+ return this;
361
+ };
362
+
363
+ /**
364
+ * Call process.exit, and _exitCallback if defined.
365
+ *
366
+ * @param {number} exitCode exit code for using with process.exit
367
+ * @param {string} code an id string representing the error
368
+ * @param {string} message human-readable description of the error
369
+ * @return never
370
+ * @api private
371
+ */
372
+
373
+ _exit(exitCode, code, message) {
374
+ if (this._exitCallback) {
375
+ this._exitCallback(new CommanderError(exitCode, code, message));
376
+ // Expecting this line is not reached.
377
+ }
378
+ process.exit(exitCode);
379
+ };
380
+
381
+ /**
382
+ * Register callback `fn` for the command.
383
+ *
384
+ * Examples:
385
+ *
386
+ * program
387
+ * .command('help')
388
+ * .description('display verbose help')
389
+ * .action(function() {
390
+ * // output help here
391
+ * });
392
+ *
393
+ * @param {Function} fn
394
+ * @return {Command} `this` command for chaining
395
+ * @api public
396
+ */
397
+
398
+ action(fn) {
399
+ const listener = (args) => {
400
+ // The .action callback takes an extra parameter which is the command or options.
401
+ const expectedArgsCount = this._args.length;
402
+ const actionArgs = args.slice(0, expectedArgsCount);
403
+ if (this._passCommandToAction) {
404
+ actionArgs[expectedArgsCount] = this;
405
+ } else {
406
+ actionArgs[expectedArgsCount] = this.opts();
407
+ }
408
+ // Add the extra arguments so available too.
409
+ if (args.length > expectedArgsCount) {
410
+ actionArgs.push(args.slice(expectedArgsCount));
411
+ }
412
+
413
+ const actionResult = fn.apply(this, actionArgs);
414
+ // Remember result in case it is async. Assume parseAsync getting called on root.
415
+ let rootCommand = this;
416
+ while (rootCommand.parent) {
417
+ rootCommand = rootCommand.parent;
418
+ }
419
+ rootCommand._actionResults.push(actionResult);
420
+ };
421
+ this._actionHandler = listener;
422
+ return this;
423
+ };
424
+
425
+ /**
426
+ * Internal implementation shared by .option() and .requiredOption()
427
+ *
428
+ * @param {Object} config
429
+ * @param {string} flags
430
+ * @param {string} description
431
+ * @param {Function|*} [fn] - custom option processing function or default vaue
432
+ * @param {*} [defaultValue]
433
+ * @return {Command} `this` command for chaining
434
+ * @api private
435
+ */
436
+
437
+ _optionEx(config, flags, description, fn, defaultValue) {
438
+ const option = new Option(flags, description);
439
+ const oname = option.name();
440
+ const name = option.attributeName();
441
+ option.mandatory = !!config.mandatory;
442
+
443
+ // default as 3rd arg
444
+ if (typeof fn !== 'function') {
445
+ if (fn instanceof RegExp) {
446
+ // This is a bit simplistic (especially no error messages), and probably better handled by caller using custom option processing.
447
+ // No longer documented in README, but still present for backwards compatibility.
448
+ const regex = fn;
449
+ fn = (val, def) => {
450
+ const m = regex.exec(val);
451
+ return m ? m[0] : def;
452
+ };
453
+ } else {
454
+ defaultValue = fn;
455
+ fn = null;
456
+ }
457
+ }
458
+
459
+ // preassign default value for --no-*, [optional], <required>, or plain flag if boolean value
460
+ if (option.negate || option.optional || option.required || typeof defaultValue === 'boolean') {
461
+ // when --no-foo we make sure default is true, unless a --foo option is already defined
462
+ if (option.negate) {
463
+ const positiveLongFlag = option.long.replace(/^--no-/, '--');
464
+ defaultValue = this._findOption(positiveLongFlag) ? this._getOptionValue(name) : true;
465
+ }
466
+ // preassign only if we have a default
467
+ if (defaultValue !== undefined) {
468
+ this._setOptionValue(name, defaultValue);
469
+ option.defaultValue = defaultValue;
470
+ }
471
+ }
472
+
473
+ // register the option
474
+ this.options.push(option);
475
+
476
+ // when it's passed assign the value
477
+ // and conditionally invoke the callback
478
+ this.on('option:' + oname, (val) => {
479
+ // coercion
480
+ if (val !== null && fn) {
481
+ val = fn(val, this._getOptionValue(name) === undefined ? defaultValue : this._getOptionValue(name));
482
+ }
483
+
484
+ // unassigned or boolean value
485
+ if (typeof this._getOptionValue(name) === 'boolean' || typeof this._getOptionValue(name) === 'undefined') {
486
+ // if no value, negate false, and we have a default, then use it!
487
+ if (val == null) {
488
+ this._setOptionValue(name, option.negate
489
+ ? false
490
+ : defaultValue || true);
491
+ } else {
492
+ this._setOptionValue(name, val);
493
+ }
494
+ } else if (val !== null) {
495
+ // reassign
496
+ this._setOptionValue(name, option.negate ? false : val);
497
+ }
498
+ });
499
+
500
+ return this;
501
+ };
502
+
503
+ /**
504
+ * Define option with `flags`, `description` and optional
505
+ * coercion `fn`.
506
+ *
507
+ * The `flags` string should contain both the short and long flags,
508
+ * separated by comma, a pipe or space. The following are all valid
509
+ * all will output this way when `--help` is used.
510
+ *
511
+ * "-p, --pepper"
512
+ * "-p|--pepper"
513
+ * "-p --pepper"
514
+ *
515
+ * Examples:
516
+ *
517
+ * // simple boolean defaulting to undefined
518
+ * program.option('-p, --pepper', 'add pepper');
519
+ *
520
+ * program.pepper
521
+ * // => undefined
522
+ *
523
+ * --pepper
524
+ * program.pepper
525
+ * // => true
526
+ *
527
+ * // simple boolean defaulting to true (unless non-negated option is also defined)
528
+ * program.option('-C, --no-cheese', 'remove cheese');
529
+ *
530
+ * program.cheese
531
+ * // => true
532
+ *
533
+ * --no-cheese
534
+ * program.cheese
535
+ * // => false
536
+ *
537
+ * // required argument
538
+ * program.option('-C, --chdir <path>', 'change the working directory');
539
+ *
540
+ * --chdir /tmp
541
+ * program.chdir
542
+ * // => "/tmp"
543
+ *
544
+ * // optional argument
545
+ * program.option('-c, --cheese [type]', 'add cheese [marble]');
546
+ *
547
+ * @param {string} flags
548
+ * @param {string} description
549
+ * @param {Function|*} [fn] - custom option processing function or default vaue
550
+ * @param {*} [defaultValue]
551
+ * @return {Command} `this` command for chaining
552
+ * @api public
553
+ */
554
+
555
+ option(flags, description, fn, defaultValue) {
556
+ return this._optionEx({}, flags, description, fn, defaultValue);
557
+ };
558
+
559
+ /*
560
+ * Add a required option which must have a value after parsing. This usually means
561
+ * the option must be specified on the command line. (Otherwise the same as .option().)
562
+ *
563
+ * The `flags` string should contain both the short and long flags, separated by comma, a pipe or space.
564
+ *
565
+ * @param {string} flags
566
+ * @param {string} description
567
+ * @param {Function|*} [fn] - custom option processing function or default vaue
568
+ * @param {*} [defaultValue]
569
+ * @return {Command} `this` command for chaining
570
+ * @api public
571
+ */
572
+
573
+ requiredOption(flags, description, fn, defaultValue) {
574
+ return this._optionEx({ mandatory: true }, flags, description, fn, defaultValue);
575
+ };
576
+
577
+ /**
578
+ * Allow unknown options on the command line.
579
+ *
580
+ * @param {Boolean} [arg] - if `true` or omitted, no error will be thrown
581
+ * for unknown options.
582
+ * @api public
583
+ */
584
+ allowUnknownOption(arg) {
585
+ this._allowUnknownOption = (arg === undefined) || arg;
586
+ return this;
587
+ };
588
+
589
+ /**
590
+ * Whether to store option values as properties on command object,
591
+ * or store separately (specify false). In both cases the option values can be accessed using .opts().
592
+ *
593
+ * @param {boolean} value
594
+ * @return {Command} `this` command for chaining
595
+ * @api public
596
+ */
597
+
598
+ storeOptionsAsProperties(value) {
599
+ this._storeOptionsAsProperties = (value === undefined) || value;
600
+ if (this.options.length) {
601
+ throw new Error('call .storeOptionsAsProperties() before adding options');
602
+ }
603
+ return this;
604
+ };
605
+
606
+ /**
607
+ * Whether to pass command to action handler,
608
+ * or just the options (specify false).
609
+ *
610
+ * @param {boolean} value
611
+ * @return {Command} `this` command for chaining
612
+ * @api public
613
+ */
614
+
615
+ passCommandToAction(value) {
616
+ this._passCommandToAction = (value === undefined) || value;
617
+ return this;
618
+ };
619
+
620
+ /**
621
+ * Store option value
622
+ *
623
+ * @param {string} key
624
+ * @param {Object} value
625
+ * @api private
626
+ */
627
+
628
+ _setOptionValue(key, value) {
629
+ if (this._storeOptionsAsProperties) {
630
+ this[key] = value;
631
+ } else {
632
+ this._optionValues[key] = value;
633
+ }
634
+ };
635
+
636
+ /**
637
+ * Retrieve option value
638
+ *
639
+ * @param {string} key
640
+ * @return {Object} value
641
+ * @api private
642
+ */
643
+
644
+ _getOptionValue(key) {
645
+ if (this._storeOptionsAsProperties) {
646
+ return this[key];
647
+ }
648
+ return this._optionValues[key];
649
+ };
650
+
651
+ /**
652
+ * Parse `argv`, setting options and invoking commands when defined.
653
+ *
654
+ * The default expectation is that the arguments are from node and have the application as argv[0]
655
+ * and the script being run in argv[1], with user parameters after that.
656
+ *
657
+ * Examples:
658
+ *
659
+ * program.parse(process.argv);
660
+ * program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
661
+ * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
662
+ *
663
+ * @param {string[]} [argv] - optional, defaults to process.argv
664
+ * @param {Object} [parseOptions] - optionally specify style of options with from: node/user/electron
665
+ * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
666
+ * @return {Command} `this` command for chaining
667
+ * @api public
668
+ */
669
+
670
+ parse(argv, parseOptions) {
671
+ if (argv !== undefined && !Array.isArray(argv)) {
672
+ throw new Error('first parameter to parse must be array or undefined');
673
+ }
674
+ parseOptions = parseOptions || {};
675
+
676
+ // Default to using process.argv
677
+ if (argv === undefined) {
678
+ argv = process.argv;
679
+ // @ts-ignore
680
+ if (process.versions && process.versions.electron) {
681
+ parseOptions.from = 'electron';
682
+ }
683
+ }
684
+ this.rawArgs = argv.slice();
685
+
686
+ // make it a little easier for callers by supporting various argv conventions
687
+ let userArgs;
688
+ switch (parseOptions.from) {
689
+ case undefined:
690
+ case 'node':
691
+ this._scriptPath = argv[1];
692
+ userArgs = argv.slice(2);
693
+ break;
694
+ case 'electron':
695
+ // @ts-ignore
696
+ if (process.defaultApp) {
697
+ this._scriptPath = argv[1];
698
+ userArgs = argv.slice(2);
699
+ } else {
700
+ userArgs = argv.slice(1);
701
+ }
702
+ break;
703
+ case 'user':
704
+ userArgs = argv.slice(0);
705
+ break;
706
+ default:
707
+ throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
708
+ }
709
+ if (!this._scriptPath && process.mainModule) {
710
+ this._scriptPath = process.mainModule.filename;
711
+ }
712
+
713
+ // Guess name, used in usage in help.
714
+ this._name = this._name || (this._scriptPath && path.basename(this._scriptPath, path.extname(this._scriptPath)));
715
+
716
+ // Let's go!
717
+ this._parseCommand([], userArgs);
718
+
719
+ return this;
720
+ };
721
+
722
+ /**
723
+ * Parse `argv`, setting options and invoking commands when defined.
724
+ *
725
+ * Use parseAsync instead of parse if any of your action handlers are async. Returns a Promise.
726
+ *
727
+ * The default expectation is that the arguments are from node and have the application as argv[0]
728
+ * and the script being run in argv[1], with user parameters after that.
729
+ *
730
+ * Examples:
731
+ *
732
+ * program.parseAsync(process.argv);
733
+ * program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions
734
+ * program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
735
+ *
736
+ * @param {string[]} [argv]
737
+ * @param {Object} [parseOptions]
738
+ * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
739
+ * @return {Promise}
740
+ * @api public
741
+ */
742
+
743
+ parseAsync(argv, parseOptions) {
744
+ this.parse(argv, parseOptions);
745
+ return Promise.all(this._actionResults).then(() => this);
746
+ };
747
+
748
+ /**
749
+ * Execute a sub-command executable.
750
+ *
751
+ * @api private
752
+ */
753
+
754
+ _executeSubCommand(subcommand, args) {
755
+ args = args.slice();
756
+ let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
757
+ const sourceExt = ['.js', '.ts', '.mjs'];
758
+
759
+ // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
760
+ this._checkForMissingMandatoryOptions();
761
+
762
+ // Want the entry script as the reference for command name and directory for searching for other files.
763
+ const scriptPath = this._scriptPath;
764
+
765
+ let baseDir;
766
+ try {
767
+ const resolvedLink = fs.realpathSync(scriptPath);
768
+ baseDir = path.dirname(resolvedLink);
769
+ } catch (e) {
770
+ baseDir = '.'; // dummy, probably not going to find executable!
771
+ }
772
+
773
+ // name of the subcommand, like `pm-install`
774
+ let bin = path.basename(scriptPath, path.extname(scriptPath)) + '-' + subcommand._name;
775
+ if (subcommand._executableFile) {
776
+ bin = subcommand._executableFile;
777
+ }
778
+
779
+ const localBin = path.join(baseDir, bin);
780
+ if (fs.existsSync(localBin)) {
781
+ // prefer local `./<bin>` to bin in the $PATH
782
+ bin = localBin;
783
+ } else {
784
+ // Look for source files.
785
+ sourceExt.forEach((ext) => {
786
+ if (fs.existsSync(`${localBin}${ext}`)) {
787
+ bin = `${localBin}${ext}`;
788
+ }
789
+ });
790
+ }
791
+ launchWithNode = sourceExt.includes(path.extname(bin));
792
+
793
+ let proc;
794
+ if (process.platform !== 'win32') {
795
+ if (launchWithNode) {
796
+ args.unshift(bin);
797
+ // add executable arguments to spawn
798
+ args = incrementNodeInspectorPort(process.execArgv).concat(args);
799
+
800
+ proc = spawn(process.argv[0], args, { stdio: 'inherit' });
801
+ } else {
802
+ proc = spawn(bin, args, { stdio: 'inherit' });
803
+ }
804
+ } else {
805
+ args.unshift(bin);
806
+ // add executable arguments to spawn
807
+ args = incrementNodeInspectorPort(process.execArgv).concat(args);
808
+ proc = spawn(process.execPath, args, { stdio: 'inherit' });
809
+ }
810
+
811
+ const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
812
+ signals.forEach((signal) => {
813
+ // @ts-ignore
814
+ process.on(signal, () => {
815
+ if (proc.killed === false && proc.exitCode === null) {
816
+ proc.kill(signal);
817
+ }
818
+ });
819
+ });
820
+
821
+ // By default terminate process when spawned process terminates.
822
+ // Suppressing the exit if exitCallback defined is a bit messy and of limited use, but does allow process to stay running!
823
+ const exitCallback = this._exitCallback;
824
+ if (!exitCallback) {
825
+ proc.on('close', process.exit.bind(process));
826
+ } else {
827
+ proc.on('close', () => {
828
+ exitCallback(new CommanderError(process.exitCode || 0, 'commander.executeSubCommandAsync', '(close)'));
829
+ });
830
+ }
831
+ proc.on('error', (err) => {
832
+ // @ts-ignore
833
+ if (err.code === 'ENOENT') {
834
+ const executableMissing = `'${bin}' does not exist
835
+ - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
836
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name`;
837
+ throw new Error(executableMissing);
838
+ // @ts-ignore
839
+ } else if (err.code === 'EACCES') {
840
+ throw new Error(`'${bin}' not executable`);
841
+ }
842
+ if (!exitCallback) {
843
+ process.exit(1);
844
+ } else {
845
+ const wrappedError = new CommanderError(1, 'commander.executeSubCommandAsync', '(error)');
846
+ wrappedError.nestedError = err;
847
+ exitCallback(wrappedError);
848
+ }
849
+ });
850
+
851
+ // Store the reference to the child process
852
+ this.runningCommand = proc;
853
+ };
854
+
855
+ /**
856
+ * @api private
857
+ */
858
+ _dispatchSubcommand(commandName, operands, unknown) {
859
+ const subCommand = this._findCommand(commandName);
860
+ if (!subCommand) this._helpAndError();
861
+
862
+ if (subCommand._executableHandler) {
863
+ this._executeSubCommand(subCommand, operands.concat(unknown));
864
+ } else {
865
+ subCommand._parseCommand(operands, unknown);
866
+ }
867
+ };
868
+
869
+ /**
870
+ * Process arguments in context of this command.
871
+ *
872
+ * @api private
873
+ */
874
+
875
+ _parseCommand(operands, unknown) {
876
+ const parsed = this.parseOptions(unknown);
877
+ operands = operands.concat(parsed.operands);
878
+ unknown = parsed.unknown;
879
+ this.args = operands.concat(unknown);
880
+
881
+ if (operands && this._findCommand(operands[0])) {
882
+ this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
883
+ } else if (this._lazyHasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
884
+ if (operands.length === 1) {
885
+ this.help();
886
+ } else {
887
+ this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
888
+ }
889
+ } else if (this._defaultCommandName) {
890
+ outputHelpIfRequested(this, unknown); // Run the help for default command from parent rather than passing to default command
891
+ this._dispatchSubcommand(this._defaultCommandName, operands, unknown);
892
+ } else {
893
+ if (this.commands.length && this.args.length === 0 && !this._actionHandler && !this._defaultCommandName) {
894
+ // probaby missing subcommand and no handler, user needs help
895
+ this._helpAndError();
896
+ }
897
+
898
+ outputHelpIfRequested(this, parsed.unknown);
899
+ this._checkForMissingMandatoryOptions();
900
+ if (parsed.unknown.length > 0) {
901
+ this.unknownOption(parsed.unknown[0]);
902
+ }
903
+
904
+ if (this._actionHandler) {
905
+ const args = this.args.slice();
906
+ this._args.forEach((arg, i) => {
907
+ if (arg.required && args[i] == null) {
908
+ this.missingArgument(arg.name);
909
+ } else if (arg.variadic) {
910
+ args[i] = args.splice(i);
911
+ }
912
+ });
913
+
914
+ this._actionHandler(args);
915
+ this.emit('command:' + this.name(), operands, unknown);
916
+ } else if (operands.length) {
917
+ if (this._findCommand('*')) {
918
+ this._dispatchSubcommand('*', operands, unknown);
919
+ } else if (this.listenerCount('command:*')) {
920
+ this.emit('command:*', operands, unknown);
921
+ } else if (this.commands.length) {
922
+ this.unknownCommand();
923
+ }
924
+ } else if (this.commands.length) {
925
+ // This command has subcommands and nothing hooked up at this level, so display help.
926
+ this._helpAndError();
927
+ } else {
928
+ // fall through for caller to handle after calling .parse()
929
+ }
930
+ }
931
+ };
932
+
933
+ /**
934
+ * Find matching command.
935
+ *
936
+ * @api private
937
+ */
938
+ _findCommand(name) {
939
+ if (!name) return undefined;
940
+ return this.commands.find(cmd => cmd._name === name || cmd._aliases.includes(name));
941
+ };
942
+
943
+ /**
944
+ * Return an option matching `arg` if any.
945
+ *
946
+ * @param {string} arg
947
+ * @return {Option}
948
+ * @api private
949
+ */
950
+
951
+ _findOption(arg) {
952
+ return this.options.find(option => option.is(arg));
953
+ };
954
+
955
+ /**
956
+ * Display an error message if a mandatory option does not have a value.
957
+ * Lazy calling after checking for help flags from leaf subcommand.
958
+ *
959
+ * @api private
960
+ */
961
+
962
+ _checkForMissingMandatoryOptions() {
963
+ // Walk up hierarchy so can call in subcommand after checking for displaying help.
964
+ for (let cmd = this; cmd; cmd = cmd.parent) {
965
+ cmd.options.forEach((anOption) => {
966
+ if (anOption.mandatory && (cmd._getOptionValue(anOption.attributeName()) === undefined)) {
967
+ cmd.missingMandatoryOptionValue(anOption);
968
+ }
969
+ });
970
+ }
971
+ };
972
+
973
+ /**
974
+ * Parse options from `argv` removing known options,
975
+ * and return argv split into operands and unknown arguments.
976
+ *
977
+ * Examples:
978
+ *
979
+ * argv => operands, unknown
980
+ * --known kkk op => [op], []
981
+ * op --known kkk => [op], []
982
+ * sub --unknown uuu op => [sub], [--unknown uuu op]
983
+ * sub -- --unknown uuu op => [sub --unknown uuu op], []
984
+ *
985
+ * @param {String[]} argv
986
+ * @return {{operands: String[], unknown: String[]}}
987
+ * @api public
988
+ */
989
+
990
+ parseOptions(argv) {
991
+ const operands = []; // operands, not options or values
992
+ const unknown = []; // first unknown option and remaining unknown args
993
+ let dest = operands;
994
+ const args = argv.slice();
995
+
996
+ function maybeOption(arg) {
997
+ return arg.length > 1 && arg[0] === '-';
998
+ }
999
+
1000
+ // parse options
1001
+ while (args.length) {
1002
+ const arg = args.shift();
1003
+
1004
+ // literal
1005
+ if (arg === '--') {
1006
+ if (dest === unknown) dest.push(arg);
1007
+ dest.push(...args);
1008
+ break;
1009
+ }
1010
+
1011
+ if (maybeOption(arg)) {
1012
+ const option = this._findOption(arg);
1013
+ // recognised option, call listener to assign value with possible custom processing
1014
+ if (option) {
1015
+ if (option.required) {
1016
+ const value = args.shift();
1017
+ if (value === undefined) this.optionMissingArgument(option);
1018
+ this.emit(`option:${option.name()}`, value);
1019
+ } else if (option.optional) {
1020
+ let value = null;
1021
+ // historical behaviour is optional value is following arg unless an option
1022
+ if (args.length > 0 && !maybeOption(args[0])) {
1023
+ value = args.shift();
1024
+ }
1025
+ this.emit(`option:${option.name()}`, value);
1026
+ } else { // boolean flag
1027
+ this.emit(`option:${option.name()}`);
1028
+ }
1029
+ continue;
1030
+ }
1031
+ }
1032
+
1033
+ // Look for combo options following single dash, eat first one if known.
1034
+ if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') {
1035
+ const option = this._findOption(`-${arg[1]}`);
1036
+ if (option) {
1037
+ if (option.required || option.optional) {
1038
+ // option with value following in same argument
1039
+ this.emit(`option:${option.name()}`, arg.slice(2));
1040
+ } else {
1041
+ // boolean option, emit and put back remainder of arg for further processing
1042
+ this.emit(`option:${option.name()}`);
1043
+ args.unshift(`-${arg.slice(2)}`);
1044
+ }
1045
+ continue;
1046
+ }
1047
+ }
1048
+
1049
+ // Look for known long flag with value, like --foo=bar
1050
+ if (/^--[^=]+=/.test(arg)) {
1051
+ const index = arg.indexOf('=');
1052
+ const option = this._findOption(arg.slice(0, index));
1053
+ if (option && (option.required || option.optional)) {
1054
+ this.emit(`option:${option.name()}`, arg.slice(index + 1));
1055
+ continue;
1056
+ }
1057
+ }
1058
+
1059
+ // looks like an option but unknown, unknowns from here
1060
+ if (arg.length > 1 && arg[0] === '-') {
1061
+ dest = unknown;
1062
+ }
1063
+
1064
+ // add arg
1065
+ dest.push(arg);
1066
+ }
1067
+
1068
+ return { operands, unknown };
1069
+ };
1070
+
1071
+ /**
1072
+ * Return an object containing options as key-value pairs
1073
+ *
1074
+ * @return {Object}
1075
+ * @api public
1076
+ */
1077
+ opts() {
1078
+ if (this._storeOptionsAsProperties) {
1079
+ // Preserve original behaviour so backwards compatible when still using properties
1080
+ const result = {};
1081
+ const len = this.options.length;
1082
+
1083
+ for (let i = 0; i < len; i++) {
1084
+ const key = this.options[i].attributeName();
1085
+ result[key] = key === this._versionOptionName ? this._version : this[key];
1086
+ }
1087
+ return result;
1088
+ }
1089
+
1090
+ return this._optionValues;
1091
+ };
1092
+
1093
+ /**
1094
+ * Argument `name` is missing.
1095
+ *
1096
+ * @param {string} name
1097
+ * @api private
1098
+ */
1099
+
1100
+ missingArgument(name) {
1101
+ const message = `error: missing required argument '${name}'`;
1102
+ console.error(message);
1103
+ this._exit(1, 'commander.missingArgument', message);
1104
+ };
1105
+
1106
+ /**
1107
+ * `Option` is missing an argument, but received `flag` or nothing.
1108
+ *
1109
+ * @param {Option} option
1110
+ * @param {string} [flag]
1111
+ * @api private
1112
+ */
1113
+
1114
+ optionMissingArgument(option, flag) {
1115
+ let message;
1116
+ if (flag) {
1117
+ message = `error: option '${option.flags}' argument missing, got '${flag}'`;
1118
+ } else {
1119
+ message = `error: option '${option.flags}' argument missing`;
1120
+ }
1121
+ console.error(message);
1122
+ this._exit(1, 'commander.optionMissingArgument', message);
1123
+ };
1124
+
1125
+ /**
1126
+ * `Option` does not have a value, and is a mandatory option.
1127
+ *
1128
+ * @param {Option} option
1129
+ * @api private
1130
+ */
1131
+
1132
+ missingMandatoryOptionValue(option) {
1133
+ const message = `error: required option '${option.flags}' not specified`;
1134
+ console.error(message);
1135
+ this._exit(1, 'commander.missingMandatoryOptionValue', message);
1136
+ };
1137
+
1138
+ /**
1139
+ * Unknown option `flag`.
1140
+ *
1141
+ * @param {string} flag
1142
+ * @api private
1143
+ */
1144
+
1145
+ unknownOption(flag) {
1146
+ if (this._allowUnknownOption) return;
1147
+ const message = `error: unknown option '${flag}'`;
1148
+ console.error(message);
1149
+ this._exit(1, 'commander.unknownOption', message);
1150
+ };
1151
+
1152
+ /**
1153
+ * Unknown command.
1154
+ *
1155
+ * @api private
1156
+ */
1157
+
1158
+ unknownCommand() {
1159
+ const partCommands = [this.name()];
1160
+ for (let parentCmd = this.parent; parentCmd; parentCmd = parentCmd.parent) {
1161
+ partCommands.unshift(parentCmd.name());
1162
+ }
1163
+ const fullCommand = partCommands.join(' ');
1164
+ const message = `error: unknown command '${this.args[0]}'. See '${fullCommand} ${this._helpLongFlag}'.`;
1165
+ console.error(message);
1166
+ this._exit(1, 'commander.unknownCommand', message);
1167
+ };
1168
+
1169
+ /**
1170
+ * Set the program version to `str`.
1171
+ *
1172
+ * This method auto-registers the "-V, --version" flag
1173
+ * which will print the version number when passed.
1174
+ *
1175
+ * You can optionally supply the flags and description to override the defaults.
1176
+ *
1177
+ * @param {string} str
1178
+ * @param {string} [flags]
1179
+ * @param {string} [description]
1180
+ * @return {this | string} `this` command for chaining, or version string if no arguments
1181
+ * @api public
1182
+ */
1183
+
1184
+ version(str, flags, description) {
1185
+ if (str === undefined) return this._version;
1186
+ this._version = str;
1187
+ flags = flags || '-V, --version';
1188
+ description = description || 'output the version number';
1189
+ const versionOption = new Option(flags, description);
1190
+ this._versionOptionName = versionOption.long.substr(2) || 'version';
1191
+ this.options.push(versionOption);
1192
+ this.on('option:' + this._versionOptionName, () => {
1193
+ process.stdout.write(str + '\n');
1194
+ this._exit(0, 'commander.version', str);
1195
+ });
1196
+ return this;
1197
+ };
1198
+
1199
+ /**
1200
+ * Set the description to `str`.
1201
+ *
1202
+ * @param {string} str
1203
+ * @param {Object} [argsDescription]
1204
+ * @return {string|Command}
1205
+ * @api public
1206
+ */
1207
+
1208
+ description(str, argsDescription) {
1209
+ if (str === undefined && argsDescription === undefined) return this._description;
1210
+ this._description = str;
1211
+ this._argsDescription = argsDescription;
1212
+ return this;
1213
+ };
1214
+
1215
+ /**
1216
+ * Set an alias for the command.
1217
+ *
1218
+ * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
1219
+ *
1220
+ * @param {string} [alias]
1221
+ * @return {string|Command}
1222
+ * @api public
1223
+ */
1224
+
1225
+ alias(alias) {
1226
+ if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
1227
+
1228
+ let command = this;
1229
+ if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) {
1230
+ // assume adding alias for last added executable subcommand, rather than this
1231
+ command = this.commands[this.commands.length - 1];
1232
+ }
1233
+
1234
+ if (alias === command._name) throw new Error('Command alias can\'t be the same as its name');
1235
+
1236
+ command._aliases.push(alias);
1237
+ return this;
1238
+ };
1239
+
1240
+ /**
1241
+ * Set aliases for the command.
1242
+ *
1243
+ * Only the first alias is shown in the auto-generated help.
1244
+ *
1245
+ * @param {string[]} [aliases]
1246
+ * @return {string[]|Command}
1247
+ * @api public
1248
+ */
1249
+
1250
+ aliases(aliases) {
1251
+ // Getter for the array of aliases is the main reason for having aliases() in addition to alias().
1252
+ if (aliases === undefined) return this._aliases;
1253
+
1254
+ aliases.forEach((alias) => this.alias(alias));
1255
+ return this;
1256
+ };
1257
+
1258
+ /**
1259
+ * Set / get the command usage `str`.
1260
+ *
1261
+ * @param {string} [str]
1262
+ * @return {String|Command}
1263
+ * @api public
1264
+ */
1265
+
1266
+ usage(str) {
1267
+ if (str === undefined) {
1268
+ if (this._usage) return this._usage;
1269
+
1270
+ const args = this._args.map((arg) => {
1271
+ return humanReadableArgName(arg);
1272
+ });
1273
+ return '[options]' +
1274
+ (this.commands.length ? ' [command]' : '') +
1275
+ (this._args.length ? ' ' + args.join(' ') : '');
1276
+ }
1277
+
1278
+ this._usage = str;
1279
+ return this;
1280
+ };
1281
+
1282
+ /**
1283
+ * Get or set the name of the command
1284
+ *
1285
+ * @param {string} [str]
1286
+ * @return {String|Command}
1287
+ * @api public
1288
+ */
1289
+
1290
+ name(str) {
1291
+ if (str === undefined) return this._name;
1292
+ this._name = str;
1293
+ return this;
1294
+ };
1295
+
1296
+ /**
1297
+ * Return prepared commands.
1298
+ *
1299
+ * @return {Array}
1300
+ * @api private
1301
+ */
1302
+
1303
+ prepareCommands() {
1304
+ const commandDetails = this.commands.filter((cmd) => {
1305
+ return !cmd._hidden;
1306
+ }).map((cmd) => {
1307
+ const args = cmd._args.map((arg) => {
1308
+ return humanReadableArgName(arg);
1309
+ }).join(' ');
1310
+
1311
+ return [
1312
+ cmd._name +
1313
+ (cmd._aliases[0] ? '|' + cmd._aliases[0] : '') +
1314
+ (cmd.options.length ? ' [options]' : '') +
1315
+ (args ? ' ' + args : ''),
1316
+ cmd._description
1317
+ ];
1318
+ });
1319
+
1320
+ if (this._lazyHasImplicitHelpCommand()) {
1321
+ commandDetails.push([this._helpCommandnameAndArgs, this._helpCommandDescription]);
1322
+ }
1323
+ return commandDetails;
1324
+ };
1325
+
1326
+ /**
1327
+ * Return the largest command length.
1328
+ *
1329
+ * @return {number}
1330
+ * @api private
1331
+ */
1332
+
1333
+ largestCommandLength() {
1334
+ const commands = this.prepareCommands();
1335
+ return commands.reduce((max, command) => {
1336
+ return Math.max(max, command[0].length);
1337
+ }, 0);
1338
+ };
1339
+
1340
+ /**
1341
+ * Return the largest option length.
1342
+ *
1343
+ * @return {number}
1344
+ * @api private
1345
+ */
1346
+
1347
+ largestOptionLength() {
1348
+ const options = [].slice.call(this.options);
1349
+ options.push({
1350
+ flags: this._helpFlags
1351
+ });
1352
+
1353
+ return options.reduce((max, option) => {
1354
+ return Math.max(max, option.flags.length);
1355
+ }, 0);
1356
+ };
1357
+
1358
+ /**
1359
+ * Return the largest arg length.
1360
+ *
1361
+ * @return {number}
1362
+ * @api private
1363
+ */
1364
+
1365
+ largestArgLength() {
1366
+ return this._args.reduce((max, arg) => {
1367
+ return Math.max(max, arg.name.length);
1368
+ }, 0);
1369
+ };
1370
+
1371
+ /**
1372
+ * Return the pad width.
1373
+ *
1374
+ * @return {number}
1375
+ * @api private
1376
+ */
1377
+
1378
+ padWidth() {
1379
+ let width = this.largestOptionLength();
1380
+ if (this._argsDescription && this._args.length) {
1381
+ if (this.largestArgLength() > width) {
1382
+ width = this.largestArgLength();
1383
+ }
1384
+ }
1385
+
1386
+ if (this.commands && this.commands.length) {
1387
+ if (this.largestCommandLength() > width) {
1388
+ width = this.largestCommandLength();
1389
+ }
1390
+ }
1391
+
1392
+ return width;
1393
+ };
1394
+
1395
+ /**
1396
+ * Return help for options.
1397
+ *
1398
+ * @return {string}
1399
+ * @api private
1400
+ */
1401
+
1402
+ optionHelp() {
1403
+ const width = this.padWidth();
1404
+ const columns = process.stdout.columns || 80;
1405
+ const descriptionWidth = columns - width - 4;
1406
+ function padOptionDetails(flags, description) {
1407
+ return pad(flags, width) + ' ' + optionalWrap(description, descriptionWidth, width + 2);
1408
+ };
1409
+
1410
+ // Explicit options (including version)
1411
+ const help = this.options.map((option) => {
1412
+ const fullDesc = option.description +
1413
+ ((!option.negate && option.defaultValue !== undefined) ? ' (default: ' + JSON.stringify(option.defaultValue) + ')' : '');
1414
+ return padOptionDetails(option.flags, fullDesc);
1415
+ });
1416
+
1417
+ // Implicit help
1418
+ const showShortHelpFlag = this._helpShortFlag && !this._findOption(this._helpShortFlag);
1419
+ const showLongHelpFlag = !this._findOption(this._helpLongFlag);
1420
+ if (showShortHelpFlag || showLongHelpFlag) {
1421
+ let helpFlags = this._helpFlags;
1422
+ if (!showShortHelpFlag) {
1423
+ helpFlags = this._helpLongFlag;
1424
+ } else if (!showLongHelpFlag) {
1425
+ helpFlags = this._helpShortFlag;
1426
+ }
1427
+ help.push(padOptionDetails(helpFlags, this._helpDescription));
1428
+ }
1429
+
1430
+ return help.join('\n');
1431
+ };
1432
+
1433
+ /**
1434
+ * Return command help documentation.
1435
+ *
1436
+ * @return {string}
1437
+ * @api private
1438
+ */
1439
+
1440
+ commandHelp() {
1441
+ if (!this.commands.length && !this._lazyHasImplicitHelpCommand()) return '';
1442
+
1443
+ const commands = this.prepareCommands();
1444
+ const width = this.padWidth();
1445
+
1446
+ const columns = process.stdout.columns || 80;
1447
+ const descriptionWidth = columns - width - 4;
1448
+
1449
+ return [
1450
+ 'Commands:',
1451
+ commands.map((cmd) => {
1452
+ const desc = cmd[1] ? ' ' + cmd[1] : '';
1453
+ return (desc ? pad(cmd[0], width) : cmd[0]) + optionalWrap(desc, descriptionWidth, width + 2);
1454
+ }).join('\n').replace(/^/gm, ' '),
1455
+ ''
1456
+ ].join('\n');
1457
+ };
1458
+
1459
+ /**
1460
+ * Return program help documentation.
1461
+ *
1462
+ * @return {string}
1463
+ * @api public
1464
+ */
1465
+
1466
+ helpInformation() {
1467
+ let desc = [];
1468
+ if (this._description) {
1469
+ desc = [
1470
+ this._description,
1471
+ ''
1472
+ ];
1473
+
1474
+ const argsDescription = this._argsDescription;
1475
+ if (argsDescription && this._args.length) {
1476
+ const width = this.padWidth();
1477
+ const columns = process.stdout.columns || 80;
1478
+ const descriptionWidth = columns - width - 5;
1479
+ desc.push('Arguments:');
1480
+ desc.push('');
1481
+ this._args.forEach((arg) => {
1482
+ desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name], descriptionWidth, width + 4));
1483
+ });
1484
+ desc.push('');
1485
+ }
1486
+ }
1487
+
1488
+ let cmdName = this._name;
1489
+ if (this._aliases[0]) {
1490
+ cmdName = cmdName + '|' + this._aliases[0];
1491
+ }
1492
+ let parentCmdNames = '';
1493
+ for (let parentCmd = this.parent; parentCmd; parentCmd = parentCmd.parent) {
1494
+ parentCmdNames = parentCmd.name() + ' ' + parentCmdNames;
1495
+ }
1496
+ const usage = [
1497
+ 'Usage: ' + parentCmdNames + cmdName + ' ' + this.usage(),
1498
+ ''
1499
+ ];
1500
+
1501
+ let cmds = [];
1502
+ const commandHelp = this.commandHelp();
1503
+ if (commandHelp) cmds = [commandHelp];
1504
+
1505
+ const options = [
1506
+ 'Options:',
1507
+ '' + this.optionHelp().replace(/^/gm, ' '),
1508
+ ''
1509
+ ];
1510
+
1511
+ return usage
1512
+ .concat(desc)
1513
+ .concat(options)
1514
+ .concat(cmds)
1515
+ .join('\n');
1516
+ };
1517
+
1518
+ /**
1519
+ * Output help information for this command.
1520
+ *
1521
+ * When listener(s) are available for the helpLongFlag
1522
+ * those callbacks are invoked.
1523
+ *
1524
+ * @api public
1525
+ */
1526
+
1527
+ outputHelp(cb) {
1528
+ if (!cb) {
1529
+ cb = (passthru) => {
1530
+ return passthru;
1531
+ };
1532
+ }
1533
+ const cbOutput = cb(this.helpInformation());
1534
+ if (typeof cbOutput !== 'string' && !Buffer.isBuffer(cbOutput)) {
1535
+ throw new Error('outputHelp callback must return a string or a Buffer');
1536
+ }
1537
+ process.stdout.write(cbOutput);
1538
+ this.emit(this._helpLongFlag);
1539
+ };
1540
+
1541
+ /**
1542
+ * You can pass in flags and a description to override the help
1543
+ * flags and help description for your command.
1544
+ *
1545
+ * @param {string} [flags]
1546
+ * @param {string} [description]
1547
+ * @return {Command} `this` command for chaining
1548
+ * @api public
1549
+ */
1550
+
1551
+ helpOption(flags, description) {
1552
+ this._helpFlags = flags || this._helpFlags;
1553
+ this._helpDescription = description || this._helpDescription;
1554
+
1555
+ const splitFlags = this._helpFlags.split(/[ ,|]+/);
1556
+
1557
+ this._helpShortFlag = undefined;
1558
+ if (splitFlags.length > 1) this._helpShortFlag = splitFlags.shift();
1559
+
1560
+ this._helpLongFlag = splitFlags.shift();
1561
+
1562
+ return this;
1563
+ };
1564
+
1565
+ /**
1566
+ * Output help information and exit.
1567
+ *
1568
+ * @param {Function} [cb]
1569
+ * @api public
1570
+ */
1571
+
1572
+ help(cb) {
1573
+ this.outputHelp(cb);
1574
+ // exitCode: preserving original behaviour which was calling process.exit()
1575
+ // message: do not have all displayed text available so only passing placeholder.
1576
+ this._exit(process.exitCode || 0, 'commander.help', '(outputHelp)');
1577
+ };
1578
+
1579
+ /**
1580
+ * Output help information and exit. Display for error situations.
1581
+ *
1582
+ * @api private
1583
+ */
1584
+
1585
+ _helpAndError() {
1586
+ this.outputHelp();
1587
+ // message: do not have all displayed text available so only passing placeholder.
1588
+ this._exit(1, 'commander.help', '(outputHelp)');
1589
+ };
1590
+ };
1591
+
1592
+ /**
1593
+ * Expose the root command.
1594
+ */
1595
+
1596
+ exports = module.exports = new Command();
1597
+ exports.program = exports; // More explicit access to global command.
1598
+
1599
+ /**
1600
+ * Expose classes
1601
+ */
1602
+
1603
+ exports.Command = Command;
1604
+ exports.Option = Option;
1605
+ exports.CommanderError = CommanderError;
1606
+
1607
+ /**
1608
+ * Camel-case the given `flag`
1609
+ *
1610
+ * @param {string} flag
1611
+ * @return {string}
1612
+ * @api private
1613
+ */
1614
+
1615
+ function camelcase(flag) {
1616
+ return flag.split('-').reduce((str, word) => {
1617
+ return str + word[0].toUpperCase() + word.slice(1);
1618
+ });
1619
+ }
1620
+
1621
+ /**
1622
+ * Pad `str` to `width`.
1623
+ *
1624
+ * @param {string} str
1625
+ * @param {number} width
1626
+ * @return {string}
1627
+ * @api private
1628
+ */
1629
+
1630
+ function pad(str, width) {
1631
+ const len = Math.max(0, width - str.length);
1632
+ return str + Array(len + 1).join(' ');
1633
+ }
1634
+
1635
+ /**
1636
+ * Wraps the given string with line breaks at the specified width while breaking
1637
+ * words and indenting every but the first line on the left.
1638
+ *
1639
+ * @param {string} str
1640
+ * @param {number} width
1641
+ * @param {number} indent
1642
+ * @return {string}
1643
+ * @api private
1644
+ */
1645
+ function wrap(str, width, indent) {
1646
+ const regex = new RegExp('.{1,' + (width - 1) + '}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)', 'g');
1647
+ const lines = str.match(regex) || [];
1648
+ return lines.map((line, i) => {
1649
+ if (line.slice(-1) === '\n') {
1650
+ line = line.slice(0, line.length - 1);
1651
+ }
1652
+ return ((i > 0 && indent) ? Array(indent + 1).join(' ') : '') + line.trimRight();
1653
+ }).join('\n');
1654
+ }
1655
+
1656
+ /**
1657
+ * Optionally wrap the given str to a max width of width characters per line
1658
+ * while indenting with indent spaces. Do not wrap if insufficient width or
1659
+ * string is manually formatted.
1660
+ *
1661
+ * @param {string} str
1662
+ * @param {number} width
1663
+ * @param {number} indent
1664
+ * @return {string}
1665
+ * @api private
1666
+ */
1667
+ function optionalWrap(str, width, indent) {
1668
+ // Detect manually wrapped and indented strings by searching for line breaks
1669
+ // followed by multiple spaces/tabs.
1670
+ if (str.match(/[\n]\s+/)) return str;
1671
+ // Do not wrap to narrow columns (or can end up with a word per line).
1672
+ const minWidth = 40;
1673
+ if (width < minWidth) return str;
1674
+
1675
+ return wrap(str, width, indent);
1676
+ }
1677
+
1678
+ /**
1679
+ * Output help information if help flags specified
1680
+ *
1681
+ * @param {Command} cmd - command to output help for
1682
+ * @param {Array} args - array of options to search for help flags
1683
+ * @api private
1684
+ */
1685
+
1686
+ function outputHelpIfRequested(cmd, args) {
1687
+ const helpOption = args.find(arg => arg === cmd._helpLongFlag || arg === cmd._helpShortFlag);
1688
+ if (helpOption) {
1689
+ cmd.outputHelp();
1690
+ // (Do not have all displayed text available so only passing placeholder.)
1691
+ cmd._exit(0, 'commander.helpDisplayed', '(outputHelp)');
1692
+ }
1693
+ }
1694
+
1695
+ /**
1696
+ * Takes an argument and returns its human readable equivalent for help usage.
1697
+ *
1698
+ * @param {Object} arg
1699
+ * @return {string}
1700
+ * @api private
1701
+ */
1702
+
1703
+ function humanReadableArgName(arg) {
1704
+ const nameOutput = arg.name + (arg.variadic === true ? '...' : '');
1705
+
1706
+ return arg.required
1707
+ ? '<' + nameOutput + '>'
1708
+ : '[' + nameOutput + ']';
1709
+ }
1710
+
1711
+ /**
1712
+ * Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command).
1713
+ *
1714
+ * @param {string[]} args - array of arguments from node.execArgv
1715
+ * @returns {string[]}
1716
+ * @api private
1717
+ */
1718
+
1719
+ function incrementNodeInspectorPort(args) {
1720
+ // Testing for these options:
1721
+ // --inspect[=[host:]port]
1722
+ // --inspect-brk[=[host:]port]
1723
+ // --inspect-port=[host:]port
1724
+ return args.map((arg) => {
1725
+ let result = arg;
1726
+ if (arg.indexOf('--inspect') === 0) {
1727
+ let debugOption;
1728
+ let debugHost = '127.0.0.1';
1729
+ let debugPort = '9229';
1730
+ let match;
1731
+ if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
1732
+ // e.g. --inspect
1733
+ debugOption = match[1];
1734
+ } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
1735
+ debugOption = match[1];
1736
+ if (/^\d+$/.test(match[3])) {
1737
+ // e.g. --inspect=1234
1738
+ debugPort = match[3];
1739
+ } else {
1740
+ // e.g. --inspect=localhost
1741
+ debugHost = match[3];
1742
+ }
1743
+ } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
1744
+ // e.g. --inspect=localhost:1234
1745
+ debugOption = match[1];
1746
+ debugHost = match[3];
1747
+ debugPort = match[4];
1748
+ }
1749
+
1750
+ if (debugOption && debugPort !== '0') {
1751
+ result = `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
1752
+ }
1753
+ }
1754
+ return result;
1755
+ });
1756
+ }