@brainai/satp-client 2.0.7 → 2.0.8

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 (2110) hide show
  1. package/{node_modules/@solana/web3.js/node_modules/borsh/LICENSE-APACHE → LICENSE} +1 -1
  2. package/README.md +20 -30
  3. package/package.json +4 -7
  4. package/examples/adoption-quickstarts.js +0 -173
  5. package/examples/integration-patterns.js +0 -495
  6. package/examples/runtime-policy-adapter.js +0 -107
  7. package/examples/x402-discovery-evidence-lookup.js +0 -66
  8. package/examples/x402-reputation-evidence-lookup-client.js +0 -182
  9. package/node_modules/@babel/runtime/LICENSE +0 -22
  10. package/node_modules/@babel/runtime/README.md +0 -19
  11. package/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
  12. package/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
  13. package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
  14. package/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
  15. package/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
  16. package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
  17. package/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
  18. package/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
  19. package/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
  20. package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
  21. package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
  22. package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
  23. package/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
  24. package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
  25. package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
  26. package/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
  27. package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
  28. package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
  29. package/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
  30. package/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
  31. package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
  32. package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
  33. package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
  34. package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
  35. package/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
  36. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
  37. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
  38. package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
  39. package/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
  40. package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
  41. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
  42. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
  43. package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
  44. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
  45. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
  46. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
  47. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
  48. package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
  49. package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
  50. package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
  51. package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
  52. package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
  53. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
  54. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
  55. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
  56. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
  57. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
  58. package/node_modules/@babel/runtime/helpers/construct.js +0 -10
  59. package/node_modules/@babel/runtime/helpers/createClass.js +0 -13
  60. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
  61. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
  62. package/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
  63. package/node_modules/@babel/runtime/helpers/decorate.js +0 -250
  64. package/node_modules/@babel/runtime/helpers/defaults.js +0 -9
  65. package/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
  66. package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
  67. package/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
  68. package/node_modules/@babel/runtime/helpers/dispose.js +0 -28
  69. package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
  70. package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
  71. package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
  72. package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
  73. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
  74. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
  75. package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
  76. package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
  77. package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
  78. package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
  79. package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
  80. package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
  81. package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
  82. package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
  83. package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
  84. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
  85. package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
  86. package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
  87. package/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
  88. package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
  89. package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
  90. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
  91. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
  92. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
  93. package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
  94. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
  95. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
  96. package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
  97. package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
  98. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
  99. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
  100. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
  101. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
  102. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
  103. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
  104. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
  105. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
  106. package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
  107. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
  108. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
  109. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
  110. package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
  111. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
  112. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
  113. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
  114. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
  115. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
  116. package/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
  117. package/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
  118. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
  119. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
  120. package/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
  121. package/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
  122. package/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
  123. package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
  124. package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
  125. package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
  126. package/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
  127. package/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
  128. package/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
  129. package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
  130. package/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
  131. package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
  132. package/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
  133. package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
  134. package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
  135. package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
  136. package/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
  137. package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
  138. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -22
  139. package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
  140. package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
  141. package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
  142. package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
  143. package/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
  144. package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
  145. package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
  146. package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
  147. package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
  148. package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
  149. package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
  150. package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
  151. package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
  152. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
  153. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
  154. package/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
  155. package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
  156. package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
  157. package/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -89
  158. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -8
  159. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -6
  160. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -33
  161. package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -22
  162. package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -10
  163. package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -77
  164. package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -19
  165. package/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
  166. package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
  167. package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
  168. package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
  169. package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
  170. package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
  171. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +0 -9
  172. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +0 -6
  173. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
  174. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
  175. package/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
  176. package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
  177. package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
  178. package/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
  179. package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
  180. package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
  181. package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
  182. package/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
  183. package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -6
  184. package/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
  185. package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
  186. package/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
  187. package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -59
  188. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -69
  189. package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
  190. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -52
  191. package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
  192. package/node_modules/@babel/runtime/helpers/extends.js +0 -10
  193. package/node_modules/@babel/runtime/helpers/get.js +0 -11
  194. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
  195. package/node_modules/@babel/runtime/helpers/identity.js +0 -4
  196. package/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
  197. package/node_modules/@babel/runtime/helpers/inherits.js +0 -14
  198. package/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
  199. package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
  200. package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
  201. package/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
  202. package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
  203. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -22
  204. package/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
  205. package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
  206. package/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
  207. package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
  208. package/node_modules/@babel/runtime/helpers/jsx.js +0 -22
  209. package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
  210. package/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
  211. package/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
  212. package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
  213. package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
  214. package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
  215. package/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
  216. package/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
  217. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
  218. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
  219. package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
  220. package/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
  221. package/node_modules/@babel/runtime/helpers/regenerator.js +0 -89
  222. package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +0 -8
  223. package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -6
  224. package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -33
  225. package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +0 -22
  226. package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +0 -10
  227. package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -77
  228. package/node_modules/@babel/runtime/helpers/regeneratorValues.js +0 -19
  229. package/node_modules/@babel/runtime/helpers/set.js +0 -22
  230. package/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
  231. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
  232. package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
  233. package/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
  234. package/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
  235. package/node_modules/@babel/runtime/helpers/superPropGet.js +0 -9
  236. package/node_modules/@babel/runtime/helpers/superPropSet.js +0 -6
  237. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
  238. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
  239. package/node_modules/@babel/runtime/helpers/tdz.js +0 -4
  240. package/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
  241. package/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
  242. package/node_modules/@babel/runtime/helpers/toArray.js +0 -8
  243. package/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
  244. package/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
  245. package/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
  246. package/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
  247. package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -6
  248. package/node_modules/@babel/runtime/helpers/typeof.js +0 -10
  249. package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
  250. package/node_modules/@babel/runtime/helpers/using.js +0 -12
  251. package/node_modules/@babel/runtime/helpers/usingCtx.js +0 -59
  252. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -69
  253. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
  254. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -52
  255. package/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
  256. package/node_modules/@babel/runtime/package.json +0 -1107
  257. package/node_modules/@babel/runtime/regenerator/index.js +0 -15
  258. package/node_modules/@noble/curves/LICENSE +0 -21
  259. package/node_modules/@noble/curves/README.md +0 -1009
  260. package/node_modules/@noble/curves/_shortw_utils.d.ts +0 -19
  261. package/node_modules/@noble/curves/_shortw_utils.d.ts.map +0 -1
  262. package/node_modules/@noble/curves/_shortw_utils.js +0 -20
  263. package/node_modules/@noble/curves/_shortw_utils.js.map +0 -1
  264. package/node_modules/@noble/curves/abstract/bls.d.ts +0 -190
  265. package/node_modules/@noble/curves/abstract/bls.d.ts.map +0 -1
  266. package/node_modules/@noble/curves/abstract/bls.js +0 -411
  267. package/node_modules/@noble/curves/abstract/bls.js.map +0 -1
  268. package/node_modules/@noble/curves/abstract/curve.d.ts +0 -231
  269. package/node_modules/@noble/curves/abstract/curve.d.ts.map +0 -1
  270. package/node_modules/@noble/curves/abstract/curve.js +0 -476
  271. package/node_modules/@noble/curves/abstract/curve.js.map +0 -1
  272. package/node_modules/@noble/curves/abstract/edwards.d.ts +0 -243
  273. package/node_modules/@noble/curves/abstract/edwards.d.ts.map +0 -1
  274. package/node_modules/@noble/curves/abstract/edwards.js +0 -634
  275. package/node_modules/@noble/curves/abstract/edwards.js.map +0 -1
  276. package/node_modules/@noble/curves/abstract/fft.d.ts +0 -122
  277. package/node_modules/@noble/curves/abstract/fft.d.ts.map +0 -1
  278. package/node_modules/@noble/curves/abstract/fft.js +0 -438
  279. package/node_modules/@noble/curves/abstract/fft.js.map +0 -1
  280. package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +0 -102
  281. package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +0 -1
  282. package/node_modules/@noble/curves/abstract/hash-to-curve.js +0 -211
  283. package/node_modules/@noble/curves/abstract/hash-to-curve.js.map +0 -1
  284. package/node_modules/@noble/curves/abstract/modular.d.ts +0 -171
  285. package/node_modules/@noble/curves/abstract/modular.d.ts.map +0 -1
  286. package/node_modules/@noble/curves/abstract/modular.js +0 -554
  287. package/node_modules/@noble/curves/abstract/modular.js.map +0 -1
  288. package/node_modules/@noble/curves/abstract/montgomery.d.ts +0 -30
  289. package/node_modules/@noble/curves/abstract/montgomery.d.ts.map +0 -1
  290. package/node_modules/@noble/curves/abstract/montgomery.js +0 -160
  291. package/node_modules/@noble/curves/abstract/montgomery.js.map +0 -1
  292. package/node_modules/@noble/curves/abstract/poseidon.d.ts +0 -68
  293. package/node_modules/@noble/curves/abstract/poseidon.d.ts.map +0 -1
  294. package/node_modules/@noble/curves/abstract/poseidon.js +0 -305
  295. package/node_modules/@noble/curves/abstract/poseidon.js.map +0 -1
  296. package/node_modules/@noble/curves/abstract/tower.d.ts +0 -95
  297. package/node_modules/@noble/curves/abstract/tower.d.ts.map +0 -1
  298. package/node_modules/@noble/curves/abstract/tower.js +0 -718
  299. package/node_modules/@noble/curves/abstract/tower.js.map +0 -1
  300. package/node_modules/@noble/curves/abstract/utils.d.ts +0 -78
  301. package/node_modules/@noble/curves/abstract/utils.d.ts.map +0 -1
  302. package/node_modules/@noble/curves/abstract/utils.js +0 -73
  303. package/node_modules/@noble/curves/abstract/utils.js.map +0 -1
  304. package/node_modules/@noble/curves/abstract/weierstrass.d.ts +0 -416
  305. package/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +0 -1
  306. package/node_modules/@noble/curves/abstract/weierstrass.js +0 -1427
  307. package/node_modules/@noble/curves/abstract/weierstrass.js.map +0 -1
  308. package/node_modules/@noble/curves/bls12-381.d.ts +0 -16
  309. package/node_modules/@noble/curves/bls12-381.d.ts.map +0 -1
  310. package/node_modules/@noble/curves/bls12-381.js +0 -708
  311. package/node_modules/@noble/curves/bls12-381.js.map +0 -1
  312. package/node_modules/@noble/curves/bn254.d.ts +0 -18
  313. package/node_modules/@noble/curves/bn254.d.ts.map +0 -1
  314. package/node_modules/@noble/curves/bn254.js +0 -218
  315. package/node_modules/@noble/curves/bn254.js.map +0 -1
  316. package/node_modules/@noble/curves/ed25519.d.ts +0 -106
  317. package/node_modules/@noble/curves/ed25519.d.ts.map +0 -1
  318. package/node_modules/@noble/curves/ed25519.js +0 -472
  319. package/node_modules/@noble/curves/ed25519.js.map +0 -1
  320. package/node_modules/@noble/curves/ed448.d.ts +0 -100
  321. package/node_modules/@noble/curves/ed448.d.ts.map +0 -1
  322. package/node_modules/@noble/curves/ed448.js +0 -463
  323. package/node_modules/@noble/curves/ed448.js.map +0 -1
  324. package/node_modules/@noble/curves/esm/_shortw_utils.d.ts +0 -19
  325. package/node_modules/@noble/curves/esm/_shortw_utils.d.ts.map +0 -1
  326. package/node_modules/@noble/curves/esm/_shortw_utils.js +0 -16
  327. package/node_modules/@noble/curves/esm/_shortw_utils.js.map +0 -1
  328. package/node_modules/@noble/curves/esm/abstract/bls.d.ts +0 -190
  329. package/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +0 -1
  330. package/node_modules/@noble/curves/esm/abstract/bls.js +0 -408
  331. package/node_modules/@noble/curves/esm/abstract/bls.js.map +0 -1
  332. package/node_modules/@noble/curves/esm/abstract/curve.d.ts +0 -231
  333. package/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +0 -1
  334. package/node_modules/@noble/curves/esm/abstract/curve.js +0 -465
  335. package/node_modules/@noble/curves/esm/abstract/curve.js.map +0 -1
  336. package/node_modules/@noble/curves/esm/abstract/edwards.d.ts +0 -243
  337. package/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +0 -1
  338. package/node_modules/@noble/curves/esm/abstract/edwards.js +0 -627
  339. package/node_modules/@noble/curves/esm/abstract/edwards.js.map +0 -1
  340. package/node_modules/@noble/curves/esm/abstract/fft.d.ts +0 -122
  341. package/node_modules/@noble/curves/esm/abstract/fft.d.ts.map +0 -1
  342. package/node_modules/@noble/curves/esm/abstract/fft.js +0 -425
  343. package/node_modules/@noble/curves/esm/abstract/fft.js.map +0 -1
  344. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts +0 -102
  345. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +0 -1
  346. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +0 -203
  347. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +0 -1
  348. package/node_modules/@noble/curves/esm/abstract/modular.d.ts +0 -171
  349. package/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +0 -1
  350. package/node_modules/@noble/curves/esm/abstract/modular.js +0 -530
  351. package/node_modules/@noble/curves/esm/abstract/modular.js.map +0 -1
  352. package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts +0 -30
  353. package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +0 -1
  354. package/node_modules/@noble/curves/esm/abstract/montgomery.js +0 -157
  355. package/node_modules/@noble/curves/esm/abstract/montgomery.js.map +0 -1
  356. package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +0 -68
  357. package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +0 -1
  358. package/node_modules/@noble/curves/esm/abstract/poseidon.js +0 -296
  359. package/node_modules/@noble/curves/esm/abstract/poseidon.js.map +0 -1
  360. package/node_modules/@noble/curves/esm/abstract/tower.d.ts +0 -95
  361. package/node_modules/@noble/curves/esm/abstract/tower.d.ts.map +0 -1
  362. package/node_modules/@noble/curves/esm/abstract/tower.js +0 -714
  363. package/node_modules/@noble/curves/esm/abstract/tower.js.map +0 -1
  364. package/node_modules/@noble/curves/esm/abstract/utils.d.ts +0 -78
  365. package/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +0 -1
  366. package/node_modules/@noble/curves/esm/abstract/utils.js +0 -70
  367. package/node_modules/@noble/curves/esm/abstract/utils.js.map +0 -1
  368. package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts +0 -416
  369. package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +0 -1
  370. package/node_modules/@noble/curves/esm/abstract/weierstrass.js +0 -1413
  371. package/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +0 -1
  372. package/node_modules/@noble/curves/esm/bls12-381.d.ts +0 -16
  373. package/node_modules/@noble/curves/esm/bls12-381.d.ts.map +0 -1
  374. package/node_modules/@noble/curves/esm/bls12-381.js +0 -705
  375. package/node_modules/@noble/curves/esm/bls12-381.js.map +0 -1
  376. package/node_modules/@noble/curves/esm/bn254.d.ts +0 -18
  377. package/node_modules/@noble/curves/esm/bn254.d.ts.map +0 -1
  378. package/node_modules/@noble/curves/esm/bn254.js +0 -214
  379. package/node_modules/@noble/curves/esm/bn254.js.map +0 -1
  380. package/node_modules/@noble/curves/esm/ed25519.d.ts +0 -106
  381. package/node_modules/@noble/curves/esm/ed25519.d.ts.map +0 -1
  382. package/node_modules/@noble/curves/esm/ed25519.js +0 -467
  383. package/node_modules/@noble/curves/esm/ed25519.js.map +0 -1
  384. package/node_modules/@noble/curves/esm/ed448.d.ts +0 -100
  385. package/node_modules/@noble/curves/esm/ed448.d.ts.map +0 -1
  386. package/node_modules/@noble/curves/esm/ed448.js +0 -459
  387. package/node_modules/@noble/curves/esm/ed448.js.map +0 -1
  388. package/node_modules/@noble/curves/esm/index.d.ts +0 -2
  389. package/node_modules/@noble/curves/esm/index.d.ts.map +0 -1
  390. package/node_modules/@noble/curves/esm/index.js +0 -17
  391. package/node_modules/@noble/curves/esm/index.js.map +0 -1
  392. package/node_modules/@noble/curves/esm/jubjub.d.ts +0 -12
  393. package/node_modules/@noble/curves/esm/jubjub.d.ts.map +0 -1
  394. package/node_modules/@noble/curves/esm/jubjub.js +0 -12
  395. package/node_modules/@noble/curves/esm/jubjub.js.map +0 -1
  396. package/node_modules/@noble/curves/esm/misc.d.ts +0 -19
  397. package/node_modules/@noble/curves/esm/misc.d.ts.map +0 -1
  398. package/node_modules/@noble/curves/esm/misc.js +0 -109
  399. package/node_modules/@noble/curves/esm/misc.js.map +0 -1
  400. package/node_modules/@noble/curves/esm/nist.d.ts +0 -21
  401. package/node_modules/@noble/curves/esm/nist.d.ts.map +0 -1
  402. package/node_modules/@noble/curves/esm/nist.js +0 -132
  403. package/node_modules/@noble/curves/esm/nist.js.map +0 -1
  404. package/node_modules/@noble/curves/esm/p256.d.ts +0 -16
  405. package/node_modules/@noble/curves/esm/p256.d.ts.map +0 -1
  406. package/node_modules/@noble/curves/esm/p256.js +0 -16
  407. package/node_modules/@noble/curves/esm/p256.js.map +0 -1
  408. package/node_modules/@noble/curves/esm/p384.d.ts +0 -16
  409. package/node_modules/@noble/curves/esm/p384.d.ts.map +0 -1
  410. package/node_modules/@noble/curves/esm/p384.js +0 -16
  411. package/node_modules/@noble/curves/esm/p384.js.map +0 -1
  412. package/node_modules/@noble/curves/esm/p521.d.ts +0 -16
  413. package/node_modules/@noble/curves/esm/p521.d.ts.map +0 -1
  414. package/node_modules/@noble/curves/esm/p521.js +0 -16
  415. package/node_modules/@noble/curves/esm/p521.js.map +0 -1
  416. package/node_modules/@noble/curves/esm/package.json +0 -4
  417. package/node_modules/@noble/curves/esm/pasta.d.ts +0 -10
  418. package/node_modules/@noble/curves/esm/pasta.d.ts.map +0 -1
  419. package/node_modules/@noble/curves/esm/pasta.js +0 -10
  420. package/node_modules/@noble/curves/esm/pasta.js.map +0 -1
  421. package/node_modules/@noble/curves/esm/secp256k1.d.ts +0 -89
  422. package/node_modules/@noble/curves/esm/secp256k1.d.ts.map +0 -1
  423. package/node_modules/@noble/curves/esm/secp256k1.js +0 -294
  424. package/node_modules/@noble/curves/esm/secp256k1.js.map +0 -1
  425. package/node_modules/@noble/curves/esm/utils.d.ts +0 -110
  426. package/node_modules/@noble/curves/esm/utils.d.ts.map +0 -1
  427. package/node_modules/@noble/curves/esm/utils.js +0 -322
  428. package/node_modules/@noble/curves/esm/utils.js.map +0 -1
  429. package/node_modules/@noble/curves/index.d.ts +0 -1
  430. package/node_modules/@noble/curves/index.d.ts.map +0 -1
  431. package/node_modules/@noble/curves/index.js +0 -17
  432. package/node_modules/@noble/curves/index.js.map +0 -1
  433. package/node_modules/@noble/curves/jubjub.d.ts +0 -12
  434. package/node_modules/@noble/curves/jubjub.d.ts.map +0 -1
  435. package/node_modules/@noble/curves/jubjub.js +0 -15
  436. package/node_modules/@noble/curves/jubjub.js.map +0 -1
  437. package/node_modules/@noble/curves/misc.d.ts +0 -19
  438. package/node_modules/@noble/curves/misc.d.ts.map +0 -1
  439. package/node_modules/@noble/curves/misc.js +0 -114
  440. package/node_modules/@noble/curves/misc.js.map +0 -1
  441. package/node_modules/@noble/curves/nist.d.ts +0 -21
  442. package/node_modules/@noble/curves/nist.d.ts.map +0 -1
  443. package/node_modules/@noble/curves/nist.js +0 -135
  444. package/node_modules/@noble/curves/nist.js.map +0 -1
  445. package/node_modules/@noble/curves/p256.d.ts +0 -16
  446. package/node_modules/@noble/curves/p256.d.ts.map +0 -1
  447. package/node_modules/@noble/curves/p256.js +0 -13
  448. package/node_modules/@noble/curves/p256.js.map +0 -1
  449. package/node_modules/@noble/curves/p384.d.ts +0 -16
  450. package/node_modules/@noble/curves/p384.d.ts.map +0 -1
  451. package/node_modules/@noble/curves/p384.js +0 -13
  452. package/node_modules/@noble/curves/p384.js.map +0 -1
  453. package/node_modules/@noble/curves/p521.d.ts +0 -16
  454. package/node_modules/@noble/curves/p521.d.ts.map +0 -1
  455. package/node_modules/@noble/curves/p521.js +0 -13
  456. package/node_modules/@noble/curves/p521.js.map +0 -1
  457. package/node_modules/@noble/curves/package.json +0 -295
  458. package/node_modules/@noble/curves/pasta.d.ts +0 -10
  459. package/node_modules/@noble/curves/pasta.d.ts.map +0 -1
  460. package/node_modules/@noble/curves/pasta.js +0 -13
  461. package/node_modules/@noble/curves/pasta.js.map +0 -1
  462. package/node_modules/@noble/curves/secp256k1.d.ts +0 -89
  463. package/node_modules/@noble/curves/secp256k1.d.ts.map +0 -1
  464. package/node_modules/@noble/curves/secp256k1.js +0 -297
  465. package/node_modules/@noble/curves/secp256k1.js.map +0 -1
  466. package/node_modules/@noble/curves/src/_shortw_utils.ts +0 -21
  467. package/node_modules/@noble/curves/src/abstract/bls.ts +0 -747
  468. package/node_modules/@noble/curves/src/abstract/curve.ts +0 -692
  469. package/node_modules/@noble/curves/src/abstract/edwards.ts +0 -914
  470. package/node_modules/@noble/curves/src/abstract/fft.ts +0 -519
  471. package/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +0 -306
  472. package/node_modules/@noble/curves/src/abstract/modular.ts +0 -605
  473. package/node_modules/@noble/curves/src/abstract/montgomery.ts +0 -194
  474. package/node_modules/@noble/curves/src/abstract/poseidon.ts +0 -335
  475. package/node_modules/@noble/curves/src/abstract/tower.ts +0 -867
  476. package/node_modules/@noble/curves/src/abstract/utils.ts +0 -80
  477. package/node_modules/@noble/curves/src/abstract/weierstrass.ts +0 -1884
  478. package/node_modules/@noble/curves/src/bls12-381.ts +0 -781
  479. package/node_modules/@noble/curves/src/bn254.ts +0 -243
  480. package/node_modules/@noble/curves/src/ed25519.ts +0 -554
  481. package/node_modules/@noble/curves/src/ed448.ts +0 -552
  482. package/node_modules/@noble/curves/src/index.ts +0 -15
  483. package/node_modules/@noble/curves/src/jubjub.ts +0 -12
  484. package/node_modules/@noble/curves/src/misc.ts +0 -124
  485. package/node_modules/@noble/curves/src/nist.ts +0 -197
  486. package/node_modules/@noble/curves/src/p256.ts +0 -15
  487. package/node_modules/@noble/curves/src/p384.ts +0 -15
  488. package/node_modules/@noble/curves/src/p521.ts +0 -15
  489. package/node_modules/@noble/curves/src/package.json +0 -3
  490. package/node_modules/@noble/curves/src/pasta.ts +0 -9
  491. package/node_modules/@noble/curves/src/secp256k1.ts +0 -362
  492. package/node_modules/@noble/curves/src/utils.ts +0 -376
  493. package/node_modules/@noble/curves/utils.d.ts +0 -110
  494. package/node_modules/@noble/curves/utils.d.ts.map +0 -1
  495. package/node_modules/@noble/curves/utils.js +0 -360
  496. package/node_modules/@noble/curves/utils.js.map +0 -1
  497. package/node_modules/@noble/hashes/LICENSE +0 -21
  498. package/node_modules/@noble/hashes/README.md +0 -521
  499. package/node_modules/@noble/hashes/_assert.d.ts +0 -17
  500. package/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
  501. package/node_modules/@noble/hashes/_assert.js +0 -18
  502. package/node_modules/@noble/hashes/_assert.js.map +0 -1
  503. package/node_modules/@noble/hashes/_blake.d.ts +0 -14
  504. package/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
  505. package/node_modules/@noble/hashes/_blake.js +0 -50
  506. package/node_modules/@noble/hashes/_blake.js.map +0 -1
  507. package/node_modules/@noble/hashes/_md.d.ts +0 -51
  508. package/node_modules/@noble/hashes/_md.d.ts.map +0 -1
  509. package/node_modules/@noble/hashes/_md.js +0 -162
  510. package/node_modules/@noble/hashes/_md.js.map +0 -1
  511. package/node_modules/@noble/hashes/_u64.d.ts +0 -55
  512. package/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
  513. package/node_modules/@noble/hashes/_u64.js +0 -90
  514. package/node_modules/@noble/hashes/_u64.js.map +0 -1
  515. package/node_modules/@noble/hashes/argon2.d.ts +0 -32
  516. package/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
  517. package/node_modules/@noble/hashes/argon2.js +0 -401
  518. package/node_modules/@noble/hashes/argon2.js.map +0 -1
  519. package/node_modules/@noble/hashes/blake1.d.ts +0 -106
  520. package/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
  521. package/node_modules/@noble/hashes/blake1.js +0 -459
  522. package/node_modules/@noble/hashes/blake1.js.map +0 -1
  523. package/node_modules/@noble/hashes/blake2.d.ts +0 -116
  524. package/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
  525. package/node_modules/@noble/hashes/blake2.js +0 -420
  526. package/node_modules/@noble/hashes/blake2.js.map +0 -1
  527. package/node_modules/@noble/hashes/blake2b.d.ts +0 -11
  528. package/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
  529. package/node_modules/@noble/hashes/blake2b.js +0 -14
  530. package/node_modules/@noble/hashes/blake2b.js.map +0 -1
  531. package/node_modules/@noble/hashes/blake2s.d.ts +0 -20
  532. package/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
  533. package/node_modules/@noble/hashes/blake2s.js +0 -24
  534. package/node_modules/@noble/hashes/blake2s.js.map +0 -1
  535. package/node_modules/@noble/hashes/blake3.d.ts +0 -54
  536. package/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
  537. package/node_modules/@noble/hashes/blake3.js +0 -255
  538. package/node_modules/@noble/hashes/blake3.js.map +0 -1
  539. package/node_modules/@noble/hashes/crypto.d.ts +0 -2
  540. package/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
  541. package/node_modules/@noble/hashes/crypto.js +0 -5
  542. package/node_modules/@noble/hashes/crypto.js.map +0 -1
  543. package/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
  544. package/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
  545. package/node_modules/@noble/hashes/cryptoNode.js +0 -18
  546. package/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
  547. package/node_modules/@noble/hashes/eskdf.d.ts +0 -47
  548. package/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
  549. package/node_modules/@noble/hashes/eskdf.js +0 -166
  550. package/node_modules/@noble/hashes/eskdf.js.map +0 -1
  551. package/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
  552. package/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
  553. package/node_modules/@noble/hashes/esm/_assert.js +0 -15
  554. package/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
  555. package/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
  556. package/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
  557. package/node_modules/@noble/hashes/esm/_blake.js +0 -45
  558. package/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
  559. package/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
  560. package/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
  561. package/node_modules/@noble/hashes/esm/_md.js +0 -155
  562. package/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  563. package/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
  564. package/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
  565. package/node_modules/@noble/hashes/esm/_u64.js +0 -67
  566. package/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  567. package/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
  568. package/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
  569. package/node_modules/@noble/hashes/esm/argon2.js +0 -392
  570. package/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
  571. package/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
  572. package/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
  573. package/node_modules/@noble/hashes/esm/blake1.js +0 -452
  574. package/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
  575. package/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
  576. package/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
  577. package/node_modules/@noble/hashes/esm/blake2.js +0 -413
  578. package/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
  579. package/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
  580. package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
  581. package/node_modules/@noble/hashes/esm/blake2b.js +0 -11
  582. package/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
  583. package/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
  584. package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
  585. package/node_modules/@noble/hashes/esm/blake2s.js +0 -21
  586. package/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
  587. package/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
  588. package/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
  589. package/node_modules/@noble/hashes/esm/blake3.js +0 -251
  590. package/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
  591. package/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
  592. package/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
  593. package/node_modules/@noble/hashes/esm/crypto.js +0 -2
  594. package/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  595. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
  596. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
  597. package/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
  598. package/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
  599. package/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
  600. package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
  601. package/node_modules/@noble/hashes/esm/eskdf.js +0 -160
  602. package/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
  603. package/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
  604. package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
  605. package/node_modules/@noble/hashes/esm/hkdf.js +0 -82
  606. package/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
  607. package/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
  608. package/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
  609. package/node_modules/@noble/hashes/esm/hmac.js +0 -86
  610. package/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  611. package/node_modules/@noble/hashes/esm/index.d.ts +0 -2
  612. package/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
  613. package/node_modules/@noble/hashes/esm/index.js +0 -33
  614. package/node_modules/@noble/hashes/esm/index.js.map +0 -1
  615. package/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
  616. package/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
  617. package/node_modules/@noble/hashes/esm/legacy.js +0 -281
  618. package/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
  619. package/node_modules/@noble/hashes/esm/package.json +0 -10
  620. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
  621. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
  622. package/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
  623. package/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
  624. package/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
  625. package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
  626. package/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
  627. package/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
  628. package/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
  629. package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
  630. package/node_modules/@noble/hashes/esm/scrypt.js +0 -228
  631. package/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
  632. package/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
  633. package/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
  634. package/node_modules/@noble/hashes/esm/sha1.js +0 -11
  635. package/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
  636. package/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
  637. package/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
  638. package/node_modules/@noble/hashes/esm/sha2.js +0 -375
  639. package/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  640. package/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
  641. package/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
  642. package/node_modules/@noble/hashes/esm/sha256.js +0 -20
  643. package/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  644. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
  645. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
  646. package/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
  647. package/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
  648. package/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
  649. package/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
  650. package/node_modules/@noble/hashes/esm/sha3.js +0 -234
  651. package/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  652. package/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
  653. package/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
  654. package/node_modules/@noble/hashes/esm/sha512.js +0 -26
  655. package/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
  656. package/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
  657. package/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
  658. package/node_modules/@noble/hashes/esm/utils.js +0 -281
  659. package/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  660. package/node_modules/@noble/hashes/hkdf.d.ts +0 -36
  661. package/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
  662. package/node_modules/@noble/hashes/hkdf.js +0 -88
  663. package/node_modules/@noble/hashes/hkdf.js.map +0 -1
  664. package/node_modules/@noble/hashes/hmac.d.ts +0 -35
  665. package/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
  666. package/node_modules/@noble/hashes/hmac.js +0 -91
  667. package/node_modules/@noble/hashes/hmac.js.map +0 -1
  668. package/node_modules/@noble/hashes/index.d.ts +0 -1
  669. package/node_modules/@noble/hashes/index.d.ts.map +0 -1
  670. package/node_modules/@noble/hashes/index.js +0 -33
  671. package/node_modules/@noble/hashes/index.js.map +0 -1
  672. package/node_modules/@noble/hashes/legacy.d.ts +0 -71
  673. package/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
  674. package/node_modules/@noble/hashes/legacy.js +0 -287
  675. package/node_modules/@noble/hashes/legacy.js.map +0 -1
  676. package/node_modules/@noble/hashes/package.json +0 -266
  677. package/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
  678. package/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
  679. package/node_modules/@noble/hashes/pbkdf2.js +0 -101
  680. package/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
  681. package/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
  682. package/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
  683. package/node_modules/@noble/hashes/ripemd160.js +0 -16
  684. package/node_modules/@noble/hashes/ripemd160.js.map +0 -1
  685. package/node_modules/@noble/hashes/scrypt.d.ts +0 -34
  686. package/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
  687. package/node_modules/@noble/hashes/scrypt.js +0 -232
  688. package/node_modules/@noble/hashes/scrypt.js.map +0 -1
  689. package/node_modules/@noble/hashes/sha1.d.ts +0 -11
  690. package/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
  691. package/node_modules/@noble/hashes/sha1.js +0 -14
  692. package/node_modules/@noble/hashes/sha1.js.map +0 -1
  693. package/node_modules/@noble/hashes/sha2.d.ts +0 -159
  694. package/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
  695. package/node_modules/@noble/hashes/sha2.js +0 -384
  696. package/node_modules/@noble/hashes/sha2.js.map +0 -1
  697. package/node_modules/@noble/hashes/sha256.d.ts +0 -20
  698. package/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
  699. package/node_modules/@noble/hashes/sha256.js +0 -23
  700. package/node_modules/@noble/hashes/sha256.js.map +0 -1
  701. package/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
  702. package/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
  703. package/node_modules/@noble/hashes/sha3-addons.js +0 -402
  704. package/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
  705. package/node_modules/@noble/hashes/sha3.d.ts +0 -53
  706. package/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
  707. package/node_modules/@noble/hashes/sha3.js +0 -239
  708. package/node_modules/@noble/hashes/sha3.js.map +0 -1
  709. package/node_modules/@noble/hashes/sha512.d.ts +0 -26
  710. package/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
  711. package/node_modules/@noble/hashes/sha512.js +0 -29
  712. package/node_modules/@noble/hashes/sha512.js.map +0 -1
  713. package/node_modules/@noble/hashes/src/_assert.ts +0 -22
  714. package/node_modules/@noble/hashes/src/_blake.ts +0 -50
  715. package/node_modules/@noble/hashes/src/_md.ts +0 -176
  716. package/node_modules/@noble/hashes/src/_u64.ts +0 -91
  717. package/node_modules/@noble/hashes/src/argon2.ts +0 -497
  718. package/node_modules/@noble/hashes/src/blake1.ts +0 -534
  719. package/node_modules/@noble/hashes/src/blake2.ts +0 -486
  720. package/node_modules/@noble/hashes/src/blake2b.ts +0 -10
  721. package/node_modules/@noble/hashes/src/blake2s.ts +0 -20
  722. package/node_modules/@noble/hashes/src/blake3.ts +0 -272
  723. package/node_modules/@noble/hashes/src/crypto.ts +0 -9
  724. package/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
  725. package/node_modules/@noble/hashes/src/eskdf.ts +0 -187
  726. package/node_modules/@noble/hashes/src/hkdf.ts +0 -88
  727. package/node_modules/@noble/hashes/src/hmac.ts +0 -94
  728. package/node_modules/@noble/hashes/src/index.ts +0 -31
  729. package/node_modules/@noble/hashes/src/legacy.ts +0 -293
  730. package/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
  731. package/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
  732. package/node_modules/@noble/hashes/src/scrypt.ts +0 -257
  733. package/node_modules/@noble/hashes/src/sha1.ts +0 -10
  734. package/node_modules/@noble/hashes/src/sha2.ts +0 -402
  735. package/node_modules/@noble/hashes/src/sha256.ts +0 -24
  736. package/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
  737. package/node_modules/@noble/hashes/src/sha3.ts +0 -258
  738. package/node_modules/@noble/hashes/src/sha512.ts +0 -34
  739. package/node_modules/@noble/hashes/src/utils.ts +0 -395
  740. package/node_modules/@noble/hashes/utils.d.ts +0 -161
  741. package/node_modules/@noble/hashes/utils.d.ts.map +0 -1
  742. package/node_modules/@noble/hashes/utils.js +0 -313
  743. package/node_modules/@noble/hashes/utils.js.map +0 -1
  744. package/node_modules/@solana/buffer-layout/LICENSE +0 -21
  745. package/node_modules/@solana/buffer-layout/README.md +0 -403
  746. package/node_modules/@solana/buffer-layout/lib/Layout.d.ts +0 -1191
  747. package/node_modules/@solana/buffer-layout/lib/Layout.js +0 -2390
  748. package/node_modules/@solana/buffer-layout/lib/Layout.js.map +0 -1
  749. package/node_modules/@solana/buffer-layout/package.json +0 -55
  750. package/node_modules/@solana/codecs-core/LICENSE +0 -20
  751. package/node_modules/@solana/codecs-core/README.md +0 -662
  752. package/node_modules/@solana/codecs-core/dist/index.browser.cjs +0 -504
  753. package/node_modules/@solana/codecs-core/dist/index.browser.cjs.map +0 -1
  754. package/node_modules/@solana/codecs-core/dist/index.browser.mjs +0 -460
  755. package/node_modules/@solana/codecs-core/dist/index.browser.mjs.map +0 -1
  756. package/node_modules/@solana/codecs-core/dist/index.native.mjs +0 -460
  757. package/node_modules/@solana/codecs-core/dist/index.native.mjs.map +0 -1
  758. package/node_modules/@solana/codecs-core/dist/index.node.cjs +0 -504
  759. package/node_modules/@solana/codecs-core/dist/index.node.cjs.map +0 -1
  760. package/node_modules/@solana/codecs-core/dist/index.node.mjs +0 -460
  761. package/node_modules/@solana/codecs-core/dist/index.node.mjs.map +0 -1
  762. package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts +0 -70
  763. package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts.map +0 -1
  764. package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts +0 -67
  765. package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts.map +0 -1
  766. package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts +0 -62
  767. package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts.map +0 -1
  768. package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts +0 -92
  769. package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts.map +0 -1
  770. package/node_modules/@solana/codecs-core/dist/types/codec.d.ts +0 -827
  771. package/node_modules/@solana/codecs-core/dist/types/codec.d.ts.map +0 -1
  772. package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts +0 -75
  773. package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts.map +0 -1
  774. package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts +0 -111
  775. package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts.map +0 -1
  776. package/node_modules/@solana/codecs-core/dist/types/index.d.ts +0 -667
  777. package/node_modules/@solana/codecs-core/dist/types/index.d.ts.map +0 -1
  778. package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts +0 -328
  779. package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts.map +0 -1
  780. package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts +0 -162
  781. package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts.map +0 -1
  782. package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts +0 -19
  783. package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts.map +0 -1
  784. package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts +0 -129
  785. package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts.map +0 -1
  786. package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts +0 -92
  787. package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts.map +0 -1
  788. package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts +0 -114
  789. package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts.map +0 -1
  790. package/node_modules/@solana/codecs-core/package.json +0 -83
  791. package/node_modules/@solana/codecs-numbers/LICENSE +0 -20
  792. package/node_modules/@solana/codecs-numbers/README.md +0 -130
  793. package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs +0 -331
  794. package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs.map +0 -1
  795. package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs +0 -289
  796. package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs.map +0 -1
  797. package/node_modules/@solana/codecs-numbers/dist/index.native.mjs +0 -289
  798. package/node_modules/@solana/codecs-numbers/dist/index.native.mjs.map +0 -1
  799. package/node_modules/@solana/codecs-numbers/dist/index.node.cjs +0 -331
  800. package/node_modules/@solana/codecs-numbers/dist/index.node.cjs.map +0 -1
  801. package/node_modules/@solana/codecs-numbers/dist/index.node.mjs +0 -289
  802. package/node_modules/@solana/codecs-numbers/dist/index.node.mjs.map +0 -1
  803. package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts +0 -27
  804. package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts.map +0 -1
  805. package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts +0 -84
  806. package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts.map +0 -1
  807. package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts +0 -87
  808. package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts.map +0 -1
  809. package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts +0 -87
  810. package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts.map +0 -1
  811. package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts +0 -91
  812. package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts.map +0 -1
  813. package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts +0 -87
  814. package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts.map +0 -1
  815. package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts +0 -87
  816. package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts.map +0 -1
  817. package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts +0 -90
  818. package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts.map +0 -1
  819. package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts +0 -75
  820. package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts.map +0 -1
  821. package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts +0 -26
  822. package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts.map +0 -1
  823. package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts +0 -96
  824. package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts.map +0 -1
  825. package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts +0 -87
  826. package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts.map +0 -1
  827. package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts +0 -85
  828. package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts.map +0 -1
  829. package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts +0 -85
  830. package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts.map +0 -1
  831. package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts +0 -88
  832. package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts.map +0 -1
  833. package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts +0 -71
  834. package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts.map +0 -1
  835. package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts +0 -18
  836. package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts.map +0 -1
  837. package/node_modules/@solana/codecs-numbers/package.json +0 -83
  838. package/node_modules/@solana/errors/LICENSE +0 -20
  839. package/node_modules/@solana/errors/README.md +0 -87
  840. package/node_modules/@solana/errors/bin/cli.mjs +0 -7
  841. package/node_modules/@solana/errors/dist/cli.mjs +0 -574
  842. package/node_modules/@solana/errors/dist/index.browser.cjs +0 -1090
  843. package/node_modules/@solana/errors/dist/index.browser.cjs.map +0 -1
  844. package/node_modules/@solana/errors/dist/index.browser.mjs +0 -856
  845. package/node_modules/@solana/errors/dist/index.browser.mjs.map +0 -1
  846. package/node_modules/@solana/errors/dist/index.native.mjs +0 -856
  847. package/node_modules/@solana/errors/dist/index.native.mjs.map +0 -1
  848. package/node_modules/@solana/errors/dist/index.node.cjs +0 -1090
  849. package/node_modules/@solana/errors/dist/index.node.cjs.map +0 -1
  850. package/node_modules/@solana/errors/dist/index.node.mjs +0 -856
  851. package/node_modules/@solana/errors/dist/index.node.mjs.map +0 -1
  852. package/node_modules/@solana/errors/dist/types/codes.d.ts +0 -277
  853. package/node_modules/@solana/errors/dist/types/codes.d.ts.map +0 -1
  854. package/node_modules/@solana/errors/dist/types/context.d.ts +0 -404
  855. package/node_modules/@solana/errors/dist/types/context.d.ts.map +0 -1
  856. package/node_modules/@solana/errors/dist/types/error.d.ts +0 -75
  857. package/node_modules/@solana/errors/dist/types/error.d.ts.map +0 -1
  858. package/node_modules/@solana/errors/dist/types/index.d.ts +0 -72
  859. package/node_modules/@solana/errors/dist/types/index.d.ts.map +0 -1
  860. package/node_modules/@solana/errors/dist/types/instruction-error.d.ts +0 -9
  861. package/node_modules/@solana/errors/dist/types/instruction-error.d.ts.map +0 -1
  862. package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts +0 -52
  863. package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts.map +0 -1
  864. package/node_modules/@solana/errors/dist/types/message-formatter.d.ts +0 -4
  865. package/node_modules/@solana/errors/dist/types/message-formatter.d.ts.map +0 -1
  866. package/node_modules/@solana/errors/dist/types/messages.d.ts +0 -16
  867. package/node_modules/@solana/errors/dist/types/messages.d.ts.map +0 -1
  868. package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts +0 -31
  869. package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts.map +0 -1
  870. package/node_modules/@solana/errors/dist/types/stack-trace.d.ts +0 -2
  871. package/node_modules/@solana/errors/dist/types/stack-trace.d.ts.map +0 -1
  872. package/node_modules/@solana/errors/dist/types/transaction-error.d.ts +0 -5
  873. package/node_modules/@solana/errors/dist/types/transaction-error.d.ts.map +0 -1
  874. package/node_modules/@solana/errors/package.json +0 -84
  875. package/node_modules/@solana/web3.js/LICENSE +0 -20
  876. package/node_modules/@solana/web3.js/README.md +0 -145
  877. package/node_modules/@solana/web3.js/lib/index.browser.cjs.js +0 -10564
  878. package/node_modules/@solana/web3.js/lib/index.browser.cjs.js.map +0 -1
  879. package/node_modules/@solana/web3.js/lib/index.browser.esm.js +0 -10463
  880. package/node_modules/@solana/web3.js/lib/index.browser.esm.js.map +0 -1
  881. package/node_modules/@solana/web3.js/lib/index.cjs.js +0 -11313
  882. package/node_modules/@solana/web3.js/lib/index.cjs.js.map +0 -1
  883. package/node_modules/@solana/web3.js/lib/index.d.ts +0 -4025
  884. package/node_modules/@solana/web3.js/lib/index.esm.js +0 -11208
  885. package/node_modules/@solana/web3.js/lib/index.esm.js.map +0 -1
  886. package/node_modules/@solana/web3.js/lib/index.iife.js +0 -26085
  887. package/node_modules/@solana/web3.js/lib/index.iife.js.map +0 -1
  888. package/node_modules/@solana/web3.js/lib/index.iife.min.js +0 -20
  889. package/node_modules/@solana/web3.js/lib/index.iife.min.js.map +0 -1
  890. package/node_modules/@solana/web3.js/lib/index.native.js +0 -10564
  891. package/node_modules/@solana/web3.js/lib/index.native.js.map +0 -1
  892. package/node_modules/@solana/web3.js/node_modules/base-x/LICENSE.md +0 -22
  893. package/node_modules/@solana/web3.js/node_modules/base-x/README.md +0 -67
  894. package/node_modules/@solana/web3.js/node_modules/base-x/package.json +0 -49
  895. package/node_modules/@solana/web3.js/node_modules/base-x/src/index.d.ts +0 -10
  896. package/node_modules/@solana/web3.js/node_modules/base-x/src/index.js +0 -123
  897. package/node_modules/@solana/web3.js/node_modules/borsh/LICENSE-MIT.txt +0 -23
  898. package/node_modules/@solana/web3.js/node_modules/borsh/README.md +0 -83
  899. package/node_modules/@solana/web3.js/node_modules/borsh/lib/index.d.ts +0 -52
  900. package/node_modules/@solana/web3.js/node_modules/borsh/lib/index.js +0 -440
  901. package/node_modules/@solana/web3.js/node_modules/borsh/package.json +0 -61
  902. package/node_modules/@solana/web3.js/node_modules/bs58/CHANGELOG.md +0 -61
  903. package/node_modules/@solana/web3.js/node_modules/bs58/README.md +0 -71
  904. package/node_modules/@solana/web3.js/node_modules/bs58/index.js +0 -4
  905. package/node_modules/@solana/web3.js/node_modules/bs58/package.json +0 -37
  906. package/node_modules/@solana/web3.js/package.json +0 -75
  907. package/node_modules/@solana/web3.js/src/__forks__/browser/fetch-impl.ts +0 -4
  908. package/node_modules/@solana/web3.js/src/__forks__/react-native/fetch-impl.ts +0 -4
  909. package/node_modules/@solana/web3.js/src/account-data.ts +0 -39
  910. package/node_modules/@solana/web3.js/src/account.ts +0 -55
  911. package/node_modules/@solana/web3.js/src/blockhash.ts +0 -4
  912. package/node_modules/@solana/web3.js/src/bpf-loader-deprecated.ts +0 -5
  913. package/node_modules/@solana/web3.js/src/bpf-loader.ts +0 -50
  914. package/node_modules/@solana/web3.js/src/connection.ts +0 -6961
  915. package/node_modules/@solana/web3.js/src/epoch-schedule.ts +0 -102
  916. package/node_modules/@solana/web3.js/src/errors.ts +0 -133
  917. package/node_modules/@solana/web3.js/src/fee-calculator.ts +0 -18
  918. package/node_modules/@solana/web3.js/src/fetch-impl.ts +0 -16
  919. package/node_modules/@solana/web3.js/src/index.ts +0 -24
  920. package/node_modules/@solana/web3.js/src/instruction.ts +0 -58
  921. package/node_modules/@solana/web3.js/src/keypair.ts +0 -102
  922. package/node_modules/@solana/web3.js/src/layout.ts +0 -188
  923. package/node_modules/@solana/web3.js/src/loader.ts +0 -267
  924. package/node_modules/@solana/web3.js/src/message/account-keys.ts +0 -79
  925. package/node_modules/@solana/web3.js/src/message/compiled-keys.ts +0 -165
  926. package/node_modules/@solana/web3.js/src/message/index.ts +0 -47
  927. package/node_modules/@solana/web3.js/src/message/legacy.ts +0 -323
  928. package/node_modules/@solana/web3.js/src/message/v0.ts +0 -513
  929. package/node_modules/@solana/web3.js/src/message/versioned.ts +0 -36
  930. package/node_modules/@solana/web3.js/src/nonce-account.ts +0 -82
  931. package/node_modules/@solana/web3.js/src/programs/address-lookup-table/index.ts +0 -438
  932. package/node_modules/@solana/web3.js/src/programs/address-lookup-table/state.ts +0 -84
  933. package/node_modules/@solana/web3.js/src/programs/compute-budget.ts +0 -281
  934. package/node_modules/@solana/web3.js/src/programs/ed25519.ts +0 -157
  935. package/node_modules/@solana/web3.js/src/programs/index.ts +0 -7
  936. package/node_modules/@solana/web3.js/src/programs/secp256k1.ts +0 -228
  937. package/node_modules/@solana/web3.js/src/programs/stake.ts +0 -952
  938. package/node_modules/@solana/web3.js/src/programs/system.ts +0 -1048
  939. package/node_modules/@solana/web3.js/src/programs/vote.ts +0 -586
  940. package/node_modules/@solana/web3.js/src/publickey.ts +0 -259
  941. package/node_modules/@solana/web3.js/src/rpc-websocket.ts +0 -75
  942. package/node_modules/@solana/web3.js/src/sysvar.ts +0 -37
  943. package/node_modules/@solana/web3.js/src/timing.ts +0 -23
  944. package/node_modules/@solana/web3.js/src/transaction/constants.ts +0 -12
  945. package/node_modules/@solana/web3.js/src/transaction/expiry-custom-errors.ts +0 -48
  946. package/node_modules/@solana/web3.js/src/transaction/index.ts +0 -5
  947. package/node_modules/@solana/web3.js/src/transaction/legacy.ts +0 -970
  948. package/node_modules/@solana/web3.js/src/transaction/message.ts +0 -140
  949. package/node_modules/@solana/web3.js/src/transaction/versioned.ts +0 -127
  950. package/node_modules/@solana/web3.js/src/utils/assert.ts +0 -8
  951. package/node_modules/@solana/web3.js/src/utils/bigint.ts +0 -24
  952. package/node_modules/@solana/web3.js/src/utils/borsh-schema.ts +0 -38
  953. package/node_modules/@solana/web3.js/src/utils/cluster.ts +0 -35
  954. package/node_modules/@solana/web3.js/src/utils/ed25519.ts +0 -43
  955. package/node_modules/@solana/web3.js/src/utils/guarded-array-utils.ts +0 -34
  956. package/node_modules/@solana/web3.js/src/utils/index.ts +0 -5
  957. package/node_modules/@solana/web3.js/src/utils/makeWebsocketUrl.ts +0 -26
  958. package/node_modules/@solana/web3.js/src/utils/promise-timeout.ts +0 -14
  959. package/node_modules/@solana/web3.js/src/utils/secp256k1.ts +0 -11
  960. package/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts +0 -110
  961. package/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts +0 -106
  962. package/node_modules/@solana/web3.js/src/utils/shortvec-encoding.ts +0 -28
  963. package/node_modules/@solana/web3.js/src/utils/sleep.ts +0 -4
  964. package/node_modules/@solana/web3.js/src/utils/to-buffer.ts +0 -11
  965. package/node_modules/@solana/web3.js/src/validator-info.ts +0 -108
  966. package/node_modules/@solana/web3.js/src/vote-account.ts +0 -236
  967. package/node_modules/@swc/helpers/LICENSE +0 -201
  968. package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +0 -4
  969. package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +0 -4
  970. package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +0 -4
  971. package/node_modules/@swc/helpers/_/_array_with_holes/package.json +0 -4
  972. package/node_modules/@swc/helpers/_/_array_without_holes/package.json +0 -4
  973. package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +0 -4
  974. package/node_modules/@swc/helpers/_/_async_generator/package.json +0 -4
  975. package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +0 -4
  976. package/node_modules/@swc/helpers/_/_async_iterator/package.json +0 -4
  977. package/node_modules/@swc/helpers/_/_async_to_generator/package.json +0 -4
  978. package/node_modules/@swc/helpers/_/_await_async_generator/package.json +0 -4
  979. package/node_modules/@swc/helpers/_/_await_value/package.json +0 -4
  980. package/node_modules/@swc/helpers/_/_call_super/package.json +0 -4
  981. package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +0 -4
  982. package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +0 -4
  983. package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +0 -4
  984. package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +0 -4
  985. package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +0 -4
  986. package/node_modules/@swc/helpers/_/_class_call_check/package.json +0 -4
  987. package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +0 -4
  988. package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +0 -4
  989. package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +0 -4
  990. package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +0 -4
  991. package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +0 -4
  992. package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +0 -4
  993. package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +0 -4
  994. package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +0 -4
  995. package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +0 -4
  996. package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +0 -4
  997. package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +0 -4
  998. package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +0 -4
  999. package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +0 -4
  1000. package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +0 -4
  1001. package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +0 -4
  1002. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +0 -4
  1003. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +0 -4
  1004. package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +0 -4
  1005. package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +0 -4
  1006. package/node_modules/@swc/helpers/_/_construct/package.json +0 -4
  1007. package/node_modules/@swc/helpers/_/_create_class/package.json +0 -4
  1008. package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +0 -4
  1009. package/node_modules/@swc/helpers/_/_create_super/package.json +0 -4
  1010. package/node_modules/@swc/helpers/_/_decorate/package.json +0 -4
  1011. package/node_modules/@swc/helpers/_/_defaults/package.json +0 -4
  1012. package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +0 -4
  1013. package/node_modules/@swc/helpers/_/_define_property/package.json +0 -4
  1014. package/node_modules/@swc/helpers/_/_dispose/package.json +0 -4
  1015. package/node_modules/@swc/helpers/_/_export_star/package.json +0 -4
  1016. package/node_modules/@swc/helpers/_/_extends/package.json +0 -4
  1017. package/node_modules/@swc/helpers/_/_get/package.json +0 -4
  1018. package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +0 -4
  1019. package/node_modules/@swc/helpers/_/_identity/package.json +0 -4
  1020. package/node_modules/@swc/helpers/_/_inherits/package.json +0 -4
  1021. package/node_modules/@swc/helpers/_/_inherits_loose/package.json +0 -4
  1022. package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +0 -4
  1023. package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +0 -4
  1024. package/node_modules/@swc/helpers/_/_instanceof/package.json +0 -4
  1025. package/node_modules/@swc/helpers/_/_interop_require_default/package.json +0 -4
  1026. package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +0 -4
  1027. package/node_modules/@swc/helpers/_/_is_native_function/package.json +0 -4
  1028. package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +0 -4
  1029. package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +0 -4
  1030. package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +0 -4
  1031. package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +0 -4
  1032. package/node_modules/@swc/helpers/_/_jsx/package.json +0 -4
  1033. package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +0 -4
  1034. package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +0 -4
  1035. package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +0 -4
  1036. package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +0 -4
  1037. package/node_modules/@swc/helpers/_/_object_spread/package.json +0 -4
  1038. package/node_modules/@swc/helpers/_/_object_spread_props/package.json +0 -4
  1039. package/node_modules/@swc/helpers/_/_object_without_properties/package.json +0 -4
  1040. package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +0 -4
  1041. package/node_modules/@swc/helpers/_/_overload_yield/package.json +0 -4
  1042. package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +0 -4
  1043. package/node_modules/@swc/helpers/_/_read_only_error/package.json +0 -4
  1044. package/node_modules/@swc/helpers/_/_set/package.json +0 -4
  1045. package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +0 -4
  1046. package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +0 -4
  1047. package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +0 -4
  1048. package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +0 -4
  1049. package/node_modules/@swc/helpers/_/_super_prop_base/package.json +0 -4
  1050. package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +0 -4
  1051. package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +0 -4
  1052. package/node_modules/@swc/helpers/_/_throw/package.json +0 -4
  1053. package/node_modules/@swc/helpers/_/_to_array/package.json +0 -4
  1054. package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +0 -4
  1055. package/node_modules/@swc/helpers/_/_to_primitive/package.json +0 -4
  1056. package/node_modules/@swc/helpers/_/_to_property_key/package.json +0 -4
  1057. package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +0 -4
  1058. package/node_modules/@swc/helpers/_/_ts_decorate/package.json +0 -4
  1059. package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +0 -4
  1060. package/node_modules/@swc/helpers/_/_ts_generator/package.json +0 -4
  1061. package/node_modules/@swc/helpers/_/_ts_metadata/package.json +0 -4
  1062. package/node_modules/@swc/helpers/_/_ts_param/package.json +0 -4
  1063. package/node_modules/@swc/helpers/_/_ts_rewrite_relative_import_extension/package.json +0 -4
  1064. package/node_modules/@swc/helpers/_/_ts_values/package.json +0 -4
  1065. package/node_modules/@swc/helpers/_/_type_of/package.json +0 -4
  1066. package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +0 -4
  1067. package/node_modules/@swc/helpers/_/_update/package.json +0 -4
  1068. package/node_modules/@swc/helpers/_/_using/package.json +0 -4
  1069. package/node_modules/@swc/helpers/_/_using_ctx/package.json +0 -4
  1070. package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +0 -4
  1071. package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +0 -4
  1072. package/node_modules/@swc/helpers/_/_write_only_error/package.json +0 -4
  1073. package/node_modules/@swc/helpers/_/index/package.json +0 -4
  1074. package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +0 -35
  1075. package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +0 -550
  1076. package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +0 -10
  1077. package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +0 -6
  1078. package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +0 -8
  1079. package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +0 -8
  1080. package/node_modules/@swc/helpers/cjs/_async_generator.cjs +0 -76
  1081. package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +0 -53
  1082. package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +0 -46
  1083. package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +0 -33
  1084. package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +0 -8
  1085. package/node_modules/@swc/helpers/cjs/_await_value.cjs +0 -6
  1086. package/node_modules/@swc/helpers/cjs/_call_super.cjs +0 -19
  1087. package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +0 -8
  1088. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +0 -25
  1089. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +0 -8
  1090. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +0 -15
  1091. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +0 -30
  1092. package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +0 -6
  1093. package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +0 -6
  1094. package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +0 -8
  1095. package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +0 -8
  1096. package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +0 -6
  1097. package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +0 -10
  1098. package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +0 -10
  1099. package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +0 -9
  1100. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +0 -10
  1101. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +0 -8
  1102. package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +0 -11
  1103. package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +0 -10
  1104. package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +0 -8
  1105. package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +0 -9
  1106. package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +0 -6
  1107. package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +0 -13
  1108. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +0 -13
  1109. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +0 -14
  1110. package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +0 -13
  1111. package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +0 -10
  1112. package/node_modules/@swc/helpers/cjs/_construct.cjs +0 -22
  1113. package/node_modules/@swc/helpers/cjs/_create_class.cjs +0 -20
  1114. package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +0 -24
  1115. package/node_modules/@swc/helpers/cjs/_create_super.cjs +0 -23
  1116. package/node_modules/@swc/helpers/cjs/_decorate.cjs +0 -270
  1117. package/node_modules/@swc/helpers/cjs/_defaults.cjs +0 -15
  1118. package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +0 -26
  1119. package/node_modules/@swc/helpers/cjs/_define_property.cjs +0 -10
  1120. package/node_modules/@swc/helpers/cjs/_dispose.cjs +0 -43
  1121. package/node_modules/@swc/helpers/cjs/_export_star.cjs +0 -17
  1122. package/node_modules/@swc/helpers/cjs/_extends.cjs +0 -15
  1123. package/node_modules/@swc/helpers/cjs/_get.cjs +0 -23
  1124. package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +0 -10
  1125. package/node_modules/@swc/helpers/cjs/_identity.cjs +0 -7
  1126. package/node_modules/@swc/helpers/cjs/_inherits.cjs +0 -14
  1127. package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +0 -8
  1128. package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +0 -13
  1129. package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +0 -11
  1130. package/node_modules/@swc/helpers/cjs/_instanceof.cjs +0 -8
  1131. package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +0 -6
  1132. package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +0 -38
  1133. package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +0 -6
  1134. package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +0 -18
  1135. package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +0 -8
  1136. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +0 -31
  1137. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +0 -17
  1138. package/node_modules/@swc/helpers/cjs/_jsx.cjs +0 -28
  1139. package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +0 -6
  1140. package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +0 -6
  1141. package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +0 -6
  1142. package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +0 -8
  1143. package/node_modules/@swc/helpers/cjs/_object_spread.cjs +0 -25
  1144. package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +0 -30
  1145. package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +0 -35
  1146. package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +0 -16
  1147. package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +0 -8
  1148. package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +0 -11
  1149. package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +0 -6
  1150. package/node_modules/@swc/helpers/cjs/_set.cjs +0 -44
  1151. package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +0 -12
  1152. package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +0 -11
  1153. package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +0 -11
  1154. package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +0 -11
  1155. package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +0 -13
  1156. package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +0 -8
  1157. package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +0 -10
  1158. package/node_modules/@swc/helpers/cjs/_throw.cjs +0 -6
  1159. package/node_modules/@swc/helpers/cjs/_to_array.cjs +0 -11
  1160. package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +0 -11
  1161. package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +0 -18
  1162. package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +0 -11
  1163. package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +0 -3
  1164. package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +0 -3
  1165. package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +0 -3
  1166. package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +0 -31
  1167. package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +0 -3
  1168. package/node_modules/@swc/helpers/cjs/_ts_param.cjs +0 -3
  1169. package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +0 -3
  1170. package/node_modules/@swc/helpers/cjs/_ts_values.cjs +0 -3
  1171. package/node_modules/@swc/helpers/cjs/_type_of.cjs +0 -8
  1172. package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +0 -15
  1173. package/node_modules/@swc/helpers/cjs/_update.cjs +0 -16
  1174. package/node_modules/@swc/helpers/cjs/_using.cjs +0 -24
  1175. package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +0 -75
  1176. package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +0 -10
  1177. package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +0 -28
  1178. package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +0 -6
  1179. package/node_modules/@swc/helpers/cjs/index.cjs +0 -431
  1180. package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +0 -33
  1181. package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +0 -548
  1182. package/node_modules/@swc/helpers/esm/_array_like_to_array.js +0 -8
  1183. package/node_modules/@swc/helpers/esm/_array_with_holes.js +0 -4
  1184. package/node_modules/@swc/helpers/esm/_array_without_holes.js +0 -6
  1185. package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +0 -6
  1186. package/node_modules/@swc/helpers/esm/_async_generator.js +0 -74
  1187. package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +0 -51
  1188. package/node_modules/@swc/helpers/esm/_async_iterator.js +0 -44
  1189. package/node_modules/@swc/helpers/esm/_async_to_generator.js +0 -31
  1190. package/node_modules/@swc/helpers/esm/_await_async_generator.js +0 -6
  1191. package/node_modules/@swc/helpers/esm/_await_value.js +0 -4
  1192. package/node_modules/@swc/helpers/esm/_call_super.js +0 -17
  1193. package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -6
  1194. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +0 -23
  1195. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +0 -6
  1196. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +0 -13
  1197. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +0 -28
  1198. package/node_modules/@swc/helpers/esm/_class_call_check.js +0 -4
  1199. package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +0 -4
  1200. package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +0 -6
  1201. package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +0 -6
  1202. package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +0 -4
  1203. package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +0 -8
  1204. package/node_modules/@swc/helpers/esm/_class_private_field_get.js +0 -8
  1205. package/node_modules/@swc/helpers/esm/_class_private_field_init.js +0 -7
  1206. package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +0 -8
  1207. package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +0 -6
  1208. package/node_modules/@swc/helpers/esm/_class_private_field_set.js +0 -9
  1209. package/node_modules/@swc/helpers/esm/_class_private_field_update.js +0 -8
  1210. package/node_modules/@swc/helpers/esm/_class_private_method_get.js +0 -6
  1211. package/node_modules/@swc/helpers/esm/_class_private_method_init.js +0 -7
  1212. package/node_modules/@swc/helpers/esm/_class_private_method_set.js +0 -4
  1213. package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +0 -11
  1214. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +0 -11
  1215. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +0 -12
  1216. package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +0 -11
  1217. package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +0 -8
  1218. package/node_modules/@swc/helpers/esm/_construct.js +0 -20
  1219. package/node_modules/@swc/helpers/esm/_create_class.js +0 -18
  1220. package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +0 -22
  1221. package/node_modules/@swc/helpers/esm/_create_super.js +0 -21
  1222. package/node_modules/@swc/helpers/esm/_decorate.js +0 -268
  1223. package/node_modules/@swc/helpers/esm/_defaults.js +0 -13
  1224. package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +0 -24
  1225. package/node_modules/@swc/helpers/esm/_define_property.js +0 -8
  1226. package/node_modules/@swc/helpers/esm/_dispose.js +0 -41
  1227. package/node_modules/@swc/helpers/esm/_export_star.js +0 -15
  1228. package/node_modules/@swc/helpers/esm/_extends.js +0 -13
  1229. package/node_modules/@swc/helpers/esm/_get.js +0 -21
  1230. package/node_modules/@swc/helpers/esm/_get_prototype_of.js +0 -8
  1231. package/node_modules/@swc/helpers/esm/_identity.js +0 -5
  1232. package/node_modules/@swc/helpers/esm/_inherits.js +0 -12
  1233. package/node_modules/@swc/helpers/esm/_inherits_loose.js +0 -6
  1234. package/node_modules/@swc/helpers/esm/_initializer_define_property.js +0 -11
  1235. package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +0 -9
  1236. package/node_modules/@swc/helpers/esm/_instanceof.js +0 -6
  1237. package/node_modules/@swc/helpers/esm/_interop_require_default.js +0 -4
  1238. package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +0 -36
  1239. package/node_modules/@swc/helpers/esm/_is_native_function.js +0 -4
  1240. package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +0 -16
  1241. package/node_modules/@swc/helpers/esm/_iterable_to_array.js +0 -6
  1242. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +0 -29
  1243. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +0 -15
  1244. package/node_modules/@swc/helpers/esm/_jsx.js +0 -26
  1245. package/node_modules/@swc/helpers/esm/_new_arrow_check.js +0 -4
  1246. package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +0 -4
  1247. package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +0 -4
  1248. package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +0 -6
  1249. package/node_modules/@swc/helpers/esm/_object_spread.js +0 -23
  1250. package/node_modules/@swc/helpers/esm/_object_spread_props.js +0 -28
  1251. package/node_modules/@swc/helpers/esm/_object_without_properties.js +0 -33
  1252. package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +0 -14
  1253. package/node_modules/@swc/helpers/esm/_overload_yield.js +0 -6
  1254. package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +0 -9
  1255. package/node_modules/@swc/helpers/esm/_read_only_error.js +0 -4
  1256. package/node_modules/@swc/helpers/esm/_set.js +0 -42
  1257. package/node_modules/@swc/helpers/esm/_set_prototype_of.js +0 -10
  1258. package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +0 -9
  1259. package/node_modules/@swc/helpers/esm/_sliced_to_array.js +0 -9
  1260. package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +0 -9
  1261. package/node_modules/@swc/helpers/esm/_super_prop_base.js +0 -11
  1262. package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +0 -6
  1263. package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +0 -8
  1264. package/node_modules/@swc/helpers/esm/_throw.js +0 -4
  1265. package/node_modules/@swc/helpers/esm/_to_array.js +0 -9
  1266. package/node_modules/@swc/helpers/esm/_to_consumable_array.js +0 -9
  1267. package/node_modules/@swc/helpers/esm/_to_primitive.js +0 -16
  1268. package/node_modules/@swc/helpers/esm/_to_property_key.js +0 -9
  1269. package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +0 -1
  1270. package/node_modules/@swc/helpers/esm/_ts_decorate.js +0 -1
  1271. package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +0 -1
  1272. package/node_modules/@swc/helpers/esm/_ts_generator.js +0 -29
  1273. package/node_modules/@swc/helpers/esm/_ts_metadata.js +0 -1
  1274. package/node_modules/@swc/helpers/esm/_ts_param.js +0 -1
  1275. package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +0 -1
  1276. package/node_modules/@swc/helpers/esm/_ts_values.js +0 -1
  1277. package/node_modules/@swc/helpers/esm/_type_of.js +0 -6
  1278. package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +0 -13
  1279. package/node_modules/@swc/helpers/esm/_update.js +0 -14
  1280. package/node_modules/@swc/helpers/esm/_using.js +0 -22
  1281. package/node_modules/@swc/helpers/esm/_using_ctx.js +0 -73
  1282. package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +0 -8
  1283. package/node_modules/@swc/helpers/esm/_wrap_native_super.js +0 -26
  1284. package/node_modules/@swc/helpers/esm/_write_only_error.js +0 -4
  1285. package/node_modules/@swc/helpers/esm/index.js +0 -108
  1286. package/node_modules/@swc/helpers/package.json +0 -694
  1287. package/node_modules/@swc/helpers/scripts/ast_grep.js +0 -218
  1288. package/node_modules/@swc/helpers/scripts/build.js +0 -133
  1289. package/node_modules/@swc/helpers/scripts/errors.js +0 -1
  1290. package/node_modules/@swc/helpers/scripts/utils.js +0 -3
  1291. package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +0 -1
  1292. package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +0 -1
  1293. package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +0 -1
  1294. package/node_modules/@swc/helpers/src/_array_with_holes.mjs +0 -1
  1295. package/node_modules/@swc/helpers/src/_array_without_holes.mjs +0 -1
  1296. package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +0 -1
  1297. package/node_modules/@swc/helpers/src/_async_generator.mjs +0 -1
  1298. package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +0 -1
  1299. package/node_modules/@swc/helpers/src/_async_iterator.mjs +0 -1
  1300. package/node_modules/@swc/helpers/src/_async_to_generator.mjs +0 -1
  1301. package/node_modules/@swc/helpers/src/_await_async_generator.mjs +0 -1
  1302. package/node_modules/@swc/helpers/src/_await_value.mjs +0 -1
  1303. package/node_modules/@swc/helpers/src/_call_super.mjs +0 -1
  1304. package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +0 -1
  1305. package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +0 -1
  1306. package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +0 -1
  1307. package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +0 -1
  1308. package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +0 -1
  1309. package/node_modules/@swc/helpers/src/_class_call_check.mjs +0 -1
  1310. package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +0 -1
  1311. package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +0 -1
  1312. package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +0 -1
  1313. package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +0 -1
  1314. package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +0 -1
  1315. package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +0 -1
  1316. package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +0 -1
  1317. package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +0 -1
  1318. package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +0 -1
  1319. package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +0 -1
  1320. package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +0 -1
  1321. package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +0 -1
  1322. package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +0 -1
  1323. package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +0 -1
  1324. package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +0 -1
  1325. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +0 -1
  1326. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +0 -1
  1327. package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +0 -1
  1328. package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +0 -1
  1329. package/node_modules/@swc/helpers/src/_construct.mjs +0 -1
  1330. package/node_modules/@swc/helpers/src/_create_class.mjs +0 -1
  1331. package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +0 -1
  1332. package/node_modules/@swc/helpers/src/_create_super.mjs +0 -1
  1333. package/node_modules/@swc/helpers/src/_decorate.mjs +0 -1
  1334. package/node_modules/@swc/helpers/src/_defaults.mjs +0 -1
  1335. package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +0 -1
  1336. package/node_modules/@swc/helpers/src/_define_property.mjs +0 -1
  1337. package/node_modules/@swc/helpers/src/_dispose.mjs +0 -1
  1338. package/node_modules/@swc/helpers/src/_export_star.mjs +0 -1
  1339. package/node_modules/@swc/helpers/src/_extends.mjs +0 -1
  1340. package/node_modules/@swc/helpers/src/_get.mjs +0 -1
  1341. package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +0 -1
  1342. package/node_modules/@swc/helpers/src/_identity.mjs +0 -1
  1343. package/node_modules/@swc/helpers/src/_inherits.mjs +0 -1
  1344. package/node_modules/@swc/helpers/src/_inherits_loose.mjs +0 -1
  1345. package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +0 -1
  1346. package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +0 -1
  1347. package/node_modules/@swc/helpers/src/_instanceof.mjs +0 -1
  1348. package/node_modules/@swc/helpers/src/_interop_require_default.mjs +0 -1
  1349. package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +0 -1
  1350. package/node_modules/@swc/helpers/src/_is_native_function.mjs +0 -1
  1351. package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +0 -1
  1352. package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +0 -1
  1353. package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +0 -1
  1354. package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +0 -1
  1355. package/node_modules/@swc/helpers/src/_jsx.mjs +0 -1
  1356. package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +0 -1
  1357. package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +0 -1
  1358. package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +0 -1
  1359. package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +0 -1
  1360. package/node_modules/@swc/helpers/src/_object_spread.mjs +0 -1
  1361. package/node_modules/@swc/helpers/src/_object_spread_props.mjs +0 -1
  1362. package/node_modules/@swc/helpers/src/_object_without_properties.mjs +0 -1
  1363. package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +0 -1
  1364. package/node_modules/@swc/helpers/src/_overload_yield.mjs +0 -1
  1365. package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +0 -1
  1366. package/node_modules/@swc/helpers/src/_read_only_error.mjs +0 -1
  1367. package/node_modules/@swc/helpers/src/_set.mjs +0 -1
  1368. package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +0 -1
  1369. package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +0 -1
  1370. package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +0 -1
  1371. package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +0 -1
  1372. package/node_modules/@swc/helpers/src/_super_prop_base.mjs +0 -1
  1373. package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +0 -1
  1374. package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +0 -1
  1375. package/node_modules/@swc/helpers/src/_throw.mjs +0 -1
  1376. package/node_modules/@swc/helpers/src/_to_array.mjs +0 -1
  1377. package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +0 -1
  1378. package/node_modules/@swc/helpers/src/_to_primitive.mjs +0 -1
  1379. package/node_modules/@swc/helpers/src/_to_property_key.mjs +0 -1
  1380. package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +0 -1
  1381. package/node_modules/@swc/helpers/src/_ts_decorate.mjs +0 -1
  1382. package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +0 -1
  1383. package/node_modules/@swc/helpers/src/_ts_generator.mjs +0 -1
  1384. package/node_modules/@swc/helpers/src/_ts_metadata.mjs +0 -1
  1385. package/node_modules/@swc/helpers/src/_ts_param.mjs +0 -1
  1386. package/node_modules/@swc/helpers/src/_ts_rewrite_relative_import_extension.mjs +0 -1
  1387. package/node_modules/@swc/helpers/src/_ts_values.mjs +0 -1
  1388. package/node_modules/@swc/helpers/src/_type_of.mjs +0 -1
  1389. package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +0 -1
  1390. package/node_modules/@swc/helpers/src/_update.mjs +0 -1
  1391. package/node_modules/@swc/helpers/src/_using.mjs +0 -1
  1392. package/node_modules/@swc/helpers/src/_using_ctx.mjs +0 -1
  1393. package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +0 -1
  1394. package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +0 -1
  1395. package/node_modules/@swc/helpers/src/_write_only_error.mjs +0 -1
  1396. package/node_modules/@swc/helpers/src/index.mjs +0 -1
  1397. package/node_modules/@types/connect/LICENSE +0 -21
  1398. package/node_modules/@types/connect/README.md +0 -15
  1399. package/node_modules/@types/connect/index.d.ts +0 -91
  1400. package/node_modules/@types/connect/package.json +0 -32
  1401. package/node_modules/@types/node/LICENSE +0 -21
  1402. package/node_modules/@types/node/README.md +0 -16
  1403. package/node_modules/@types/node/assert.d.ts +0 -117
  1404. package/node_modules/@types/node/async_hooks.d.ts +0 -246
  1405. package/node_modules/@types/node/buffer.d.ts +0 -22
  1406. package/node_modules/@types/node/child_process.d.ts +0 -507
  1407. package/node_modules/@types/node/cluster.d.ts +0 -260
  1408. package/node_modules/@types/node/console.d.ts +0 -3
  1409. package/node_modules/@types/node/constants.d.ts +0 -448
  1410. package/node_modules/@types/node/crypto.d.ts +0 -1183
  1411. package/node_modules/@types/node/dgram.d.ts +0 -118
  1412. package/node_modules/@types/node/dns.d.ts +0 -372
  1413. package/node_modules/@types/node/domain.d.ts +0 -16
  1414. package/node_modules/@types/node/events.d.ts +0 -47
  1415. package/node_modules/@types/node/fs.d.ts +0 -2567
  1416. package/node_modules/@types/node/globals.d.ts +0 -1351
  1417. package/node_modules/@types/node/globals.global.d.ts +0 -1
  1418. package/node_modules/@types/node/http.d.ts +0 -456
  1419. package/node_modules/@types/node/http2.d.ts +0 -952
  1420. package/node_modules/@types/node/https.d.ts +0 -156
  1421. package/node_modules/@types/node/index.d.ts +0 -91
  1422. package/node_modules/@types/node/inspector.d.ts +0 -3040
  1423. package/node_modules/@types/node/module.d.ts +0 -3
  1424. package/node_modules/@types/node/net.d.ts +0 -290
  1425. package/node_modules/@types/node/os.d.ts +0 -263
  1426. package/node_modules/@types/node/package.json +0 -195
  1427. package/node_modules/@types/node/path.d.ts +0 -159
  1428. package/node_modules/@types/node/perf_hooks.d.ts +0 -259
  1429. package/node_modules/@types/node/process.d.ts +0 -15
  1430. package/node_modules/@types/node/punycode.d.ts +0 -75
  1431. package/node_modules/@types/node/querystring.d.ts +0 -29
  1432. package/node_modules/@types/node/readline.d.ts +0 -158
  1433. package/node_modules/@types/node/repl.d.ts +0 -390
  1434. package/node_modules/@types/node/stream.d.ts +0 -334
  1435. package/node_modules/@types/node/string_decoder.d.ts +0 -7
  1436. package/node_modules/@types/node/timers.d.ts +0 -16
  1437. package/node_modules/@types/node/tls.d.ts +0 -713
  1438. package/node_modules/@types/node/trace_events.d.ts +0 -61
  1439. package/node_modules/@types/node/tty.d.ts +0 -66
  1440. package/node_modules/@types/node/url.d.ts +0 -147
  1441. package/node_modules/@types/node/util.d.ts +0 -200
  1442. package/node_modules/@types/node/v8.d.ts +0 -197
  1443. package/node_modules/@types/node/vm.d.ts +0 -112
  1444. package/node_modules/@types/node/wasi.d.ts +0 -55
  1445. package/node_modules/@types/node/worker_threads.d.ts +0 -207
  1446. package/node_modules/@types/node/zlib.d.ts +0 -356
  1447. package/node_modules/@types/uuid/LICENSE +0 -21
  1448. package/node_modules/@types/uuid/README.md +0 -15
  1449. package/node_modules/@types/uuid/index.d.mts +0 -19
  1450. package/node_modules/@types/uuid/index.d.ts +0 -113
  1451. package/node_modules/@types/uuid/package.json +0 -54
  1452. package/node_modules/@types/ws/LICENSE +0 -21
  1453. package/node_modules/@types/ws/README.md +0 -16
  1454. package/node_modules/@types/ws/index.d.ts +0 -353
  1455. package/node_modules/@types/ws/package.json +0 -57
  1456. package/node_modules/agentkeepalive/LICENSE +0 -23
  1457. package/node_modules/agentkeepalive/README.md +0 -256
  1458. package/node_modules/agentkeepalive/browser.js +0 -5
  1459. package/node_modules/agentkeepalive/index.d.ts +0 -69
  1460. package/node_modules/agentkeepalive/index.js +0 -7
  1461. package/node_modules/agentkeepalive/lib/agent.js +0 -402
  1462. package/node_modules/agentkeepalive/lib/constants.js +0 -14
  1463. package/node_modules/agentkeepalive/lib/https_agent.js +0 -51
  1464. package/node_modules/agentkeepalive/package.json +0 -56
  1465. package/node_modules/base64-js/LICENSE +0 -21
  1466. package/node_modules/base64-js/README.md +0 -34
  1467. package/node_modules/base64-js/base64js.min.js +0 -1
  1468. package/node_modules/base64-js/index.d.ts +0 -3
  1469. package/node_modules/base64-js/index.js +0 -150
  1470. package/node_modules/base64-js/package.json +0 -47
  1471. package/node_modules/bn.js/LICENSE +0 -19
  1472. package/node_modules/bn.js/README.md +0 -214
  1473. package/node_modules/bn.js/lib/bn.js +0 -3553
  1474. package/node_modules/bn.js/package.json +0 -39
  1475. package/node_modules/buffer/AUTHORS.md +0 -73
  1476. package/node_modules/buffer/LICENSE +0 -21
  1477. package/node_modules/buffer/README.md +0 -410
  1478. package/node_modules/buffer/index.d.ts +0 -194
  1479. package/node_modules/buffer/index.js +0 -2106
  1480. package/node_modules/buffer/package.json +0 -93
  1481. package/node_modules/bufferutil/LICENSE +0 -20
  1482. package/node_modules/bufferutil/README.md +0 -79
  1483. package/node_modules/bufferutil/binding.gyp +0 -19
  1484. package/node_modules/bufferutil/fallback.js +0 -34
  1485. package/node_modules/bufferutil/index.js +0 -7
  1486. package/node_modules/bufferutil/package.json +0 -35
  1487. package/node_modules/bufferutil/prebuilds/darwin-arm64/bufferutil.node +0 -0
  1488. package/node_modules/bufferutil/prebuilds/darwin-x64/bufferutil.node +0 -0
  1489. package/node_modules/bufferutil/prebuilds/linux-x64/bufferutil.node +0 -0
  1490. package/node_modules/bufferutil/prebuilds/win32-ia32/bufferutil.node +0 -0
  1491. package/node_modules/bufferutil/prebuilds/win32-x64/bufferutil.node +0 -0
  1492. package/node_modules/bufferutil/src/bufferutil.c +0 -169
  1493. package/node_modules/chalk/license +0 -9
  1494. package/node_modules/chalk/package.json +0 -83
  1495. package/node_modules/chalk/readme.md +0 -297
  1496. package/node_modules/chalk/source/index.d.ts +0 -325
  1497. package/node_modules/chalk/source/index.js +0 -225
  1498. package/node_modules/chalk/source/utilities.js +0 -33
  1499. package/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  1500. package/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  1501. package/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  1502. package/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  1503. package/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  1504. package/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  1505. package/node_modules/commander/LICENSE +0 -22
  1506. package/node_modules/commander/Readme.md +0 -1176
  1507. package/node_modules/commander/esm.mjs +0 -16
  1508. package/node_modules/commander/index.js +0 -24
  1509. package/node_modules/commander/lib/argument.js +0 -150
  1510. package/node_modules/commander/lib/command.js +0 -2777
  1511. package/node_modules/commander/lib/error.js +0 -39
  1512. package/node_modules/commander/lib/help.js +0 -747
  1513. package/node_modules/commander/lib/option.js +0 -380
  1514. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  1515. package/node_modules/commander/package-support.json +0 -19
  1516. package/node_modules/commander/package.json +0 -82
  1517. package/node_modules/commander/typings/esm.d.mts +0 -3
  1518. package/node_modules/commander/typings/index.d.ts +0 -1113
  1519. package/node_modules/delay/index.d.ts +0 -107
  1520. package/node_modules/delay/index.js +0 -72
  1521. package/node_modules/delay/license +0 -9
  1522. package/node_modules/delay/package.json +0 -54
  1523. package/node_modules/delay/readme.md +0 -173
  1524. package/node_modules/es6-promise/CHANGELOG.md +0 -155
  1525. package/node_modules/es6-promise/LICENSE +0 -19
  1526. package/node_modules/es6-promise/README.md +0 -97
  1527. package/node_modules/es6-promise/auto.js +0 -4
  1528. package/node_modules/es6-promise/dist/es6-promise.auto.js +0 -1176
  1529. package/node_modules/es6-promise/dist/es6-promise.auto.map +0 -1
  1530. package/node_modules/es6-promise/dist/es6-promise.auto.min.js +0 -1
  1531. package/node_modules/es6-promise/dist/es6-promise.auto.min.map +0 -1
  1532. package/node_modules/es6-promise/dist/es6-promise.js +0 -1174
  1533. package/node_modules/es6-promise/dist/es6-promise.map +0 -1
  1534. package/node_modules/es6-promise/dist/es6-promise.min.js +0 -1
  1535. package/node_modules/es6-promise/dist/es6-promise.min.map +0 -1
  1536. package/node_modules/es6-promise/es6-promise.d.ts +0 -85
  1537. package/node_modules/es6-promise/lib/es6-promise/-internal.js +0 -243
  1538. package/node_modules/es6-promise/lib/es6-promise/asap.js +0 -119
  1539. package/node_modules/es6-promise/lib/es6-promise/enumerator.js +0 -124
  1540. package/node_modules/es6-promise/lib/es6-promise/polyfill.js +0 -35
  1541. package/node_modules/es6-promise/lib/es6-promise/promise/all.js +0 -52
  1542. package/node_modules/es6-promise/lib/es6-promise/promise/race.js +0 -84
  1543. package/node_modules/es6-promise/lib/es6-promise/promise/reject.js +0 -46
  1544. package/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +0 -48
  1545. package/node_modules/es6-promise/lib/es6-promise/promise.js +0 -431
  1546. package/node_modules/es6-promise/lib/es6-promise/then.js +0 -32
  1547. package/node_modules/es6-promise/lib/es6-promise/utils.js +0 -21
  1548. package/node_modules/es6-promise/lib/es6-promise.auto.js +0 -3
  1549. package/node_modules/es6-promise/lib/es6-promise.js +0 -7
  1550. package/node_modules/es6-promise/package.json +0 -78
  1551. package/node_modules/es6-promisify/README.md +0 -89
  1552. package/node_modules/es6-promisify/dist/promise.js +0 -73
  1553. package/node_modules/es6-promisify/dist/promisify.js +0 -85
  1554. package/node_modules/es6-promisify/package.json +0 -41
  1555. package/node_modules/eventemitter3/LICENSE +0 -21
  1556. package/node_modules/eventemitter3/README.md +0 -85
  1557. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -355
  1558. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
  1559. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +0 -1
  1560. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -363
  1561. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
  1562. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +0 -1
  1563. package/node_modules/eventemitter3/index.d.ts +0 -135
  1564. package/node_modules/eventemitter3/index.js +0 -336
  1565. package/node_modules/eventemitter3/index.mjs +0 -4
  1566. package/node_modules/eventemitter3/package.json +0 -62
  1567. package/node_modules/eyes/LICENSE +0 -20
  1568. package/node_modules/eyes/Makefile +0 -4
  1569. package/node_modules/eyes/README.md +0 -73
  1570. package/node_modules/eyes/lib/eyes.js +0 -236
  1571. package/node_modules/eyes/package.json +0 -14
  1572. package/node_modules/eyes/test/eyes-test.js +0 -56
  1573. package/node_modules/fast-stable-stringify/.npmignore +0 -4
  1574. package/node_modules/fast-stable-stringify/.travis.yml +0 -10
  1575. package/node_modules/fast-stable-stringify/LICENSE +0 -21
  1576. package/node_modules/fast-stable-stringify/README.md +0 -81
  1577. package/node_modules/fast-stable-stringify/cli/files-to-comparison-results.js +0 -67
  1578. package/node_modules/fast-stable-stringify/cli/format-table.js +0 -70
  1579. package/node_modules/fast-stable-stringify/cli/index.js +0 -19
  1580. package/node_modules/fast-stable-stringify/fixtures/index.js +0 -5
  1581. package/node_modules/fast-stable-stringify/fixtures/input-data-types.js +0 -191
  1582. package/node_modules/fast-stable-stringify/fixtures/log-result.json +0 -22
  1583. package/node_modules/fast-stable-stringify/fixtures/log.txt +0 -24
  1584. package/node_modules/fast-stable-stringify/index.js +0 -73
  1585. package/node_modules/fast-stable-stringify/karma.conf.js +0 -124
  1586. package/node_modules/fast-stable-stringify/karma.conf.travis.js +0 -95
  1587. package/node_modules/fast-stable-stringify/package.json +0 -47
  1588. package/node_modules/fast-stable-stringify/results/escape-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -57
  1589. package/node_modules/fast-stable-stringify/results/escape-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -57
  1590. package/node_modules/fast-stable-stringify/results/escape-long/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -57
  1591. package/node_modules/fast-stable-stringify/results/escape-long/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -57
  1592. package/node_modules/fast-stable-stringify/results/escape-long/IE 10.0.0 (Windows 7 0.0.0).json +0 -57
  1593. package/node_modules/fast-stable-stringify/results/escape-long/IE 11.0.0 (Windows 7 0.0.0).json +0 -57
  1594. package/node_modules/fast-stable-stringify/results/escape-long/IE 9.0.0 (Windows 7 0.0.0).json +0 -57
  1595. package/node_modules/fast-stable-stringify/results/escape-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -57
  1596. package/node_modules/fast-stable-stringify/results/escape-long/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -57
  1597. package/node_modules/fast-stable-stringify/results/escape-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -57
  1598. package/node_modules/fast-stable-stringify/results/escape-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -57
  1599. package/node_modules/fast-stable-stringify/results/escape-short/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -57
  1600. package/node_modules/fast-stable-stringify/results/escape-short/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -57
  1601. package/node_modules/fast-stable-stringify/results/escape-short/IE 10.0.0 (Windows 7 0.0.0).json +0 -57
  1602. package/node_modules/fast-stable-stringify/results/escape-short/IE 11.0.0 (Windows 7 0.0.0).json +0 -57
  1603. package/node_modules/fast-stable-stringify/results/escape-short/IE 9.0.0 (Windows 7 0.0.0).json +0 -57
  1604. package/node_modules/fast-stable-stringify/results/escape-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -57
  1605. package/node_modules/fast-stable-stringify/results/escape-short/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -57
  1606. package/node_modules/fast-stable-stringify/results/escape.md +0 -20
  1607. package/node_modules/fast-stable-stringify/results/itar-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -35
  1608. package/node_modules/fast-stable-stringify/results/itar-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -35
  1609. package/node_modules/fast-stable-stringify/results/itar-long/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -35
  1610. package/node_modules/fast-stable-stringify/results/itar-long/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -35
  1611. package/node_modules/fast-stable-stringify/results/itar-long/IE 10.0.0 (Windows 7 0.0.0).json +0 -35
  1612. package/node_modules/fast-stable-stringify/results/itar-long/IE 11.0.0 (Windows 7 0.0.0).json +0 -35
  1613. package/node_modules/fast-stable-stringify/results/itar-long/IE 9.0.0 (Windows 7 0.0.0).json +0 -35
  1614. package/node_modules/fast-stable-stringify/results/itar-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -35
  1615. package/node_modules/fast-stable-stringify/results/itar-long/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -35
  1616. package/node_modules/fast-stable-stringify/results/itar-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -35
  1617. package/node_modules/fast-stable-stringify/results/itar-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -35
  1618. package/node_modules/fast-stable-stringify/results/itar-short/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -35
  1619. package/node_modules/fast-stable-stringify/results/itar-short/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -35
  1620. package/node_modules/fast-stable-stringify/results/itar-short/IE 10.0.0 (Windows 7 0.0.0).json +0 -35
  1621. package/node_modules/fast-stable-stringify/results/itar-short/IE 11.0.0 (Windows 7 0.0.0).json +0 -35
  1622. package/node_modules/fast-stable-stringify/results/itar-short/IE 9.0.0 (Windows 7 0.0.0).json +0 -35
  1623. package/node_modules/fast-stable-stringify/results/itar-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -35
  1624. package/node_modules/fast-stable-stringify/results/itar-short/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -35
  1625. package/node_modules/fast-stable-stringify/results/itar.md +0 -20
  1626. package/node_modules/fast-stable-stringify/results/iter/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -35
  1627. package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 39.0.0 (Android 5.1.1).json +0 -35
  1628. package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -35
  1629. package/node_modules/fast-stable-stringify/results/iter/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -35
  1630. package/node_modules/fast-stable-stringify/results/iter/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -35
  1631. package/node_modules/fast-stable-stringify/results/iter/IE 10.0.0 (Windows 7 0.0.0).json +0 -35
  1632. package/node_modules/fast-stable-stringify/results/iter/IE 11.0.0 (Windows 7 0.0.0).json +0 -35
  1633. package/node_modules/fast-stable-stringify/results/iter/IE 9.0.0 (Windows 7 0.0.0).json +0 -35
  1634. package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -35
  1635. package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 9.0.0 (iOS 9.2.0).json +0 -35
  1636. package/node_modules/fast-stable-stringify/results/iter/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -35
  1637. package/node_modules/fast-stable-stringify/results/iter/Safari 9.1.2 (Mac OS X 10.11.6).json +0 -35
  1638. package/node_modules/fast-stable-stringify/results/iter.md +0 -14
  1639. package/node_modules/fast-stable-stringify/results/libs/Chrome 60.0.3112 (Windows 7 0.0.0).json +0 -46
  1640. package/node_modules/fast-stable-stringify/results/libs/Chrome Mobile 55.0.2883 (Android 6.0.0).json +0 -46
  1641. package/node_modules/fast-stable-stringify/results/libs/Edge 14.14393.0 (Windows 10 0.0.0).json +0 -46
  1642. package/node_modules/fast-stable-stringify/results/libs/Firefox 54.0.0 (Windows 7 0.0.0).json +0 -46
  1643. package/node_modules/fast-stable-stringify/results/libs/IE 10.0.0 (Windows 7 0.0.0).json +0 -35
  1644. package/node_modules/fast-stable-stringify/results/libs/IE 11.0.0 (Windows 7 0.0.0).json +0 -35
  1645. package/node_modules/fast-stable-stringify/results/libs/IE 9.0.0 (Windows 7 0.0.0).json +0 -35
  1646. package/node_modules/fast-stable-stringify/results/libs/Mobile Safari 10.0.0 (iOS 10.3.0).json +0 -46
  1647. package/node_modules/fast-stable-stringify/results/libs/Safari 10.0.1 (Mac OS X 10.12.1).json +0 -46
  1648. package/node_modules/fast-stable-stringify/results/libs.md +0 -15
  1649. package/node_modules/fast-stable-stringify/test/escape-long.js +0 -147
  1650. package/node_modules/fast-stable-stringify/test/escape-short.js +0 -147
  1651. package/node_modules/fast-stable-stringify/test/index.js +0 -6
  1652. package/node_modules/fast-stable-stringify/test/itar-long.js +0 -52
  1653. package/node_modules/fast-stable-stringify/test/itar-short.js +0 -52
  1654. package/node_modules/fast-stable-stringify/test/iter.js +0 -84
  1655. package/node_modules/fast-stable-stringify/test/libs.js +0 -57
  1656. package/node_modules/fast-stable-stringify/test/travis.js +0 -43
  1657. package/node_modules/fast-stable-stringify/test/validate.js +0 -24
  1658. package/node_modules/fast-stable-stringify/util/eachRecursive.js +0 -9
  1659. package/node_modules/fast-stable-stringify/util/get-git-hash-sync.js +0 -21
  1660. package/node_modules/fast-stable-stringify/util/get-lib-info.js +0 -22
  1661. package/node_modules/fast-stable-stringify/util/object-path.js +0 -47
  1662. package/node_modules/fast-stable-stringify/v8-profile/bench.js +0 -8
  1663. package/node_modules/fast-stable-stringify/v8-profile/run.sh +0 -2
  1664. package/node_modules/fast-stable-stringify/zuul-local.sh +0 -2
  1665. package/node_modules/humanize-ms/History.md +0 -25
  1666. package/node_modules/humanize-ms/LICENSE +0 -17
  1667. package/node_modules/humanize-ms/README.md +0 -40
  1668. package/node_modules/humanize-ms/index.js +0 -24
  1669. package/node_modules/humanize-ms/package.json +0 -37
  1670. package/node_modules/ieee754/LICENSE +0 -11
  1671. package/node_modules/ieee754/README.md +0 -51
  1672. package/node_modules/ieee754/index.d.ts +0 -10
  1673. package/node_modules/ieee754/index.js +0 -85
  1674. package/node_modules/ieee754/package.json +0 -52
  1675. package/node_modules/isomorphic-ws/LICENSE +0 -21
  1676. package/node_modules/isomorphic-ws/README.md +0 -58
  1677. package/node_modules/isomorphic-ws/browser.js +0 -17
  1678. package/node_modules/isomorphic-ws/index.d.ts +0 -8
  1679. package/node_modules/isomorphic-ws/node.js +0 -3
  1680. package/node_modules/isomorphic-ws/package.json +0 -34
  1681. package/node_modules/jayson/.npmignore +0 -8
  1682. package/node_modules/jayson/LICENSE +0 -22
  1683. package/node_modules/jayson/README.md +0 -1387
  1684. package/node_modules/jayson/bin/jayson.js +0 -111
  1685. package/node_modules/jayson/index.d.ts +0 -391
  1686. package/node_modules/jayson/index.js +0 -1
  1687. package/node_modules/jayson/lib/client/browser/index.d.ts +0 -14
  1688. package/node_modules/jayson/lib/client/browser/index.js +0 -167
  1689. package/node_modules/jayson/lib/client/http.js +0 -118
  1690. package/node_modules/jayson/lib/client/https.js +0 -34
  1691. package/node_modules/jayson/lib/client/index.js +0 -221
  1692. package/node_modules/jayson/lib/client/tcp.js +0 -92
  1693. package/node_modules/jayson/lib/client/tls.js +0 -91
  1694. package/node_modules/jayson/lib/client/websocket.js +0 -135
  1695. package/node_modules/jayson/lib/generateRequest.js +0 -63
  1696. package/node_modules/jayson/lib/index.js +0 -31
  1697. package/node_modules/jayson/lib/method.js +0 -120
  1698. package/node_modules/jayson/lib/server/http.js +0 -26
  1699. package/node_modules/jayson/lib/server/https.js +0 -26
  1700. package/node_modules/jayson/lib/server/index.js +0 -476
  1701. package/node_modules/jayson/lib/server/middleware.js +0 -75
  1702. package/node_modules/jayson/lib/server/tcp.js +0 -72
  1703. package/node_modules/jayson/lib/server/tls.js +0 -72
  1704. package/node_modules/jayson/lib/server/websocket.js +0 -62
  1705. package/node_modules/jayson/lib/utils.js +0 -517
  1706. package/node_modules/jayson/node_modules/commander/CHANGELOG.md +0 -419
  1707. package/node_modules/jayson/node_modules/commander/LICENSE +0 -22
  1708. package/node_modules/jayson/node_modules/commander/Readme.md +0 -428
  1709. package/node_modules/jayson/node_modules/commander/index.js +0 -1224
  1710. package/node_modules/jayson/node_modules/commander/package.json +0 -38
  1711. package/node_modules/jayson/node_modules/commander/typings/index.d.ts +0 -310
  1712. package/node_modules/jayson/package.json +0 -87
  1713. package/node_modules/jayson/promise/index.d.ts +0 -391
  1714. package/node_modules/jayson/promise/index.js +0 -3
  1715. package/node_modules/jayson/promise/lib/client/browser/index.d.ts +0 -12
  1716. package/node_modules/jayson/promise/lib/client/browser/index.js +0 -28
  1717. package/node_modules/jayson/promise/lib/client/http.js +0 -23
  1718. package/node_modules/jayson/promise/lib/client/https.js +0 -24
  1719. package/node_modules/jayson/promise/lib/client/index.js +0 -53
  1720. package/node_modules/jayson/promise/lib/client/tcp.js +0 -23
  1721. package/node_modules/jayson/promise/lib/client/tls.js +0 -23
  1722. package/node_modules/jayson/promise/lib/client/websocket.js +0 -23
  1723. package/node_modules/jayson/promise/lib/index.js +0 -33
  1724. package/node_modules/jayson/promise/lib/method.js +0 -54
  1725. package/node_modules/jayson/promise/lib/server.js +0 -23
  1726. package/node_modules/jayson/promise/lib/utils.js +0 -23
  1727. package/node_modules/json-stringify-safe/.npmignore +0 -1
  1728. package/node_modules/json-stringify-safe/CHANGELOG.md +0 -14
  1729. package/node_modules/json-stringify-safe/LICENSE +0 -15
  1730. package/node_modules/json-stringify-safe/Makefile +0 -35
  1731. package/node_modules/json-stringify-safe/README.md +0 -52
  1732. package/node_modules/json-stringify-safe/package.json +0 -31
  1733. package/node_modules/json-stringify-safe/stringify.js +0 -27
  1734. package/node_modules/json-stringify-safe/test/mocha.opts +0 -2
  1735. package/node_modules/json-stringify-safe/test/stringify_test.js +0 -246
  1736. package/node_modules/ms/index.js +0 -162
  1737. package/node_modules/ms/license.md +0 -21
  1738. package/node_modules/ms/package.json +0 -38
  1739. package/node_modules/ms/readme.md +0 -59
  1740. package/node_modules/node-fetch/LICENSE.md +0 -22
  1741. package/node_modules/node-fetch/README.md +0 -634
  1742. package/node_modules/node-fetch/browser.js +0 -25
  1743. package/node_modules/node-fetch/lib/index.es.js +0 -1777
  1744. package/node_modules/node-fetch/lib/index.js +0 -1787
  1745. package/node_modules/node-fetch/lib/index.mjs +0 -1775
  1746. package/node_modules/node-fetch/package.json +0 -89
  1747. package/node_modules/node-gyp-build/LICENSE +0 -21
  1748. package/node_modules/node-gyp-build/README.md +0 -58
  1749. package/node_modules/node-gyp-build/SECURITY.md +0 -5
  1750. package/node_modules/node-gyp-build/bin.js +0 -84
  1751. package/node_modules/node-gyp-build/build-test.js +0 -19
  1752. package/node_modules/node-gyp-build/index.js +0 -6
  1753. package/node_modules/node-gyp-build/node-gyp-build.js +0 -207
  1754. package/node_modules/node-gyp-build/optional.js +0 -7
  1755. package/node_modules/node-gyp-build/package.json +0 -43
  1756. package/node_modules/rpc-websockets/LICENSE +0 -10
  1757. package/node_modules/rpc-websockets/README.md +0 -153
  1758. package/node_modules/rpc-websockets/dist/index.browser-bundle.js +0 -5
  1759. package/node_modules/rpc-websockets/dist/index.browser.cjs +0 -425
  1760. package/node_modules/rpc-websockets/dist/index.browser.cjs.map +0 -1
  1761. package/node_modules/rpc-websockets/dist/index.browser.d.mts +0 -255
  1762. package/node_modules/rpc-websockets/dist/index.browser.d.ts +0 -255
  1763. package/node_modules/rpc-websockets/dist/index.browser.mjs +0 -420
  1764. package/node_modules/rpc-websockets/dist/index.browser.mjs.map +0 -1
  1765. package/node_modules/rpc-websockets/dist/index.cjs +0 -936
  1766. package/node_modules/rpc-websockets/dist/index.cjs.map +0 -1
  1767. package/node_modules/rpc-websockets/dist/index.d.mts +0 -452
  1768. package/node_modules/rpc-websockets/dist/index.d.ts +0 -452
  1769. package/node_modules/rpc-websockets/dist/index.mjs +0 -924
  1770. package/node_modules/rpc-websockets/dist/index.mjs.map +0 -1
  1771. package/node_modules/rpc-websockets/node_modules/@types/ws/LICENSE +0 -21
  1772. package/node_modules/rpc-websockets/node_modules/@types/ws/README.md +0 -15
  1773. package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.mts +0 -451
  1774. package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.ts +0 -445
  1775. package/node_modules/rpc-websockets/node_modules/@types/ws/package.json +0 -72
  1776. package/node_modules/rpc-websockets/node_modules/utf-8-validate/LICENSE +0 -51
  1777. package/node_modules/rpc-websockets/node_modules/utf-8-validate/README.md +0 -52
  1778. package/node_modules/rpc-websockets/node_modules/utf-8-validate/binding.gyp +0 -22
  1779. package/node_modules/rpc-websockets/node_modules/utf-8-validate/deps/is_utf8/LICENSE-MIT +0 -18
  1780. package/node_modules/rpc-websockets/node_modules/utf-8-validate/deps/is_utf8/include/is_utf8.h +0 -10
  1781. package/node_modules/rpc-websockets/node_modules/utf-8-validate/deps/is_utf8/src/is_utf8.cpp +0 -6755
  1782. package/node_modules/rpc-websockets/node_modules/utf-8-validate/fallback.js +0 -62
  1783. package/node_modules/rpc-websockets/node_modules/utf-8-validate/index.js +0 -7
  1784. package/node_modules/rpc-websockets/node_modules/utf-8-validate/package.json +0 -47
  1785. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/darwin-arm64/utf-8-validate.node +0 -0
  1786. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/darwin-x64/utf-8-validate.node +0 -0
  1787. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/linux-x64/utf-8-validate.musl.node +0 -0
  1788. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/linux-x64/utf-8-validate.node +0 -0
  1789. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/win32-ia32/utf-8-validate.node +0 -0
  1790. package/node_modules/rpc-websockets/node_modules/utf-8-validate/prebuilds/win32-x64/utf-8-validate.node +0 -0
  1791. package/node_modules/rpc-websockets/node_modules/utf-8-validate/src/validation.cc +0 -40
  1792. package/node_modules/rpc-websockets/package.json +0 -91
  1793. package/node_modules/safe-buffer/LICENSE +0 -21
  1794. package/node_modules/safe-buffer/README.md +0 -584
  1795. package/node_modules/safe-buffer/index.d.ts +0 -187
  1796. package/node_modules/safe-buffer/index.js +0 -65
  1797. package/node_modules/safe-buffer/package.json +0 -51
  1798. package/node_modules/stream-chain/LICENSE +0 -11
  1799. package/node_modules/stream-chain/README.md +0 -334
  1800. package/node_modules/stream-chain/defs.js +0 -22
  1801. package/node_modules/stream-chain/index.js +0 -203
  1802. package/node_modules/stream-chain/package.json +0 -31
  1803. package/node_modules/stream-chain/utils/FromIterable.js +0 -94
  1804. package/node_modules/stream-chain/utils/Reduce.js +0 -40
  1805. package/node_modules/stream-chain/utils/asFun.js +0 -85
  1806. package/node_modules/stream-chain/utils/asGen.js +0 -77
  1807. package/node_modules/stream-chain/utils/comp.js +0 -20
  1808. package/node_modules/stream-chain/utils/fold.js +0 -43
  1809. package/node_modules/stream-chain/utils/gen.js +0 -24
  1810. package/node_modules/stream-chain/utils/scan.js +0 -41
  1811. package/node_modules/stream-chain/utils/skip.js +0 -32
  1812. package/node_modules/stream-chain/utils/skipWhile.js +0 -46
  1813. package/node_modules/stream-chain/utils/take.js +0 -39
  1814. package/node_modules/stream-chain/utils/takeWhile.js +0 -47
  1815. package/node_modules/stream-json/Assembler.js +0 -154
  1816. package/node_modules/stream-json/Disassembler.js +0 -209
  1817. package/node_modules/stream-json/Emitter.js +0 -22
  1818. package/node_modules/stream-json/LICENSE +0 -34
  1819. package/node_modules/stream-json/Parser.js +0 -545
  1820. package/node_modules/stream-json/README.md +0 -128
  1821. package/node_modules/stream-json/Stringer.js +0 -153
  1822. package/node_modules/stream-json/filters/Filter.js +0 -130
  1823. package/node_modules/stream-json/filters/FilterBase.js +0 -201
  1824. package/node_modules/stream-json/filters/Ignore.js +0 -24
  1825. package/node_modules/stream-json/filters/Pick.js +0 -58
  1826. package/node_modules/stream-json/filters/Replace.js +0 -115
  1827. package/node_modules/stream-json/index.js +0 -11
  1828. package/node_modules/stream-json/jsonl/Parser.js +0 -131
  1829. package/node_modules/stream-json/jsonl/Stringer.js +0 -29
  1830. package/node_modules/stream-json/package.json +0 -45
  1831. package/node_modules/stream-json/streamers/StreamArray.js +0 -44
  1832. package/node_modules/stream-json/streamers/StreamBase.js +0 -101
  1833. package/node_modules/stream-json/streamers/StreamObject.js +0 -43
  1834. package/node_modules/stream-json/streamers/StreamValues.js +0 -33
  1835. package/node_modules/stream-json/utils/Batch.js +0 -44
  1836. package/node_modules/stream-json/utils/Utf8Stream.js +0 -53
  1837. package/node_modules/stream-json/utils/Verifier.js +0 -485
  1838. package/node_modules/stream-json/utils/emit.js +0 -5
  1839. package/node_modules/stream-json/utils/withParser.js +0 -10
  1840. package/node_modules/superstruct/License.md +0 -9
  1841. package/node_modules/superstruct/Readme.md +0 -230
  1842. package/node_modules/superstruct/dist/error.d.ts +0 -33
  1843. package/node_modules/superstruct/dist/error.d.ts.map +0 -1
  1844. package/node_modules/superstruct/dist/index.cjs +0 -1084
  1845. package/node_modules/superstruct/dist/index.cjs.map +0 -1
  1846. package/node_modules/superstruct/dist/index.d.ts +0 -7
  1847. package/node_modules/superstruct/dist/index.d.ts.map +0 -1
  1848. package/node_modules/superstruct/dist/index.mjs +0 -1026
  1849. package/node_modules/superstruct/dist/index.mjs.map +0 -1
  1850. package/node_modules/superstruct/dist/struct.d.ts +0 -119
  1851. package/node_modules/superstruct/dist/struct.d.ts.map +0 -1
  1852. package/node_modules/superstruct/dist/structs/coercions.d.ts +0 -29
  1853. package/node_modules/superstruct/dist/structs/coercions.d.ts.map +0 -1
  1854. package/node_modules/superstruct/dist/structs/refinements.d.ts +0 -38
  1855. package/node_modules/superstruct/dist/structs/refinements.d.ts.map +0 -1
  1856. package/node_modules/superstruct/dist/structs/types.d.ts +0 -142
  1857. package/node_modules/superstruct/dist/structs/types.d.ts.map +0 -1
  1858. package/node_modules/superstruct/dist/structs/utilities.d.ts +0 -66
  1859. package/node_modules/superstruct/dist/structs/utilities.d.ts.map +0 -1
  1860. package/node_modules/superstruct/dist/utils.d.ts +0 -144
  1861. package/node_modules/superstruct/dist/utils.d.ts.map +0 -1
  1862. package/node_modules/superstruct/package.json +0 -85
  1863. package/node_modules/text-encoding-utf-8/LICENSE.md +0 -29
  1864. package/node_modules/text-encoding-utf-8/README.md +0 -63
  1865. package/node_modules/text-encoding-utf-8/lib/encoding.js +0 -655
  1866. package/node_modules/text-encoding-utf-8/lib/encoding.lib.js +0 -642
  1867. package/node_modules/text-encoding-utf-8/lib/encoding.lib.mjs +0 -665
  1868. package/node_modules/text-encoding-utf-8/package.json +0 -26
  1869. package/node_modules/text-encoding-utf-8/src/encoding.js +0 -665
  1870. package/node_modules/text-encoding-utf-8/src/polyfill.js +0 -21
  1871. package/node_modules/tr46/.npmignore +0 -4
  1872. package/node_modules/tr46/index.js +0 -193
  1873. package/node_modules/tr46/lib/.gitkeep +0 -0
  1874. package/node_modules/tr46/lib/mappingTable.json +0 -1
  1875. package/node_modules/tr46/package.json +0 -31
  1876. package/node_modules/tslib/CopyrightNotice.txt +0 -15
  1877. package/node_modules/tslib/LICENSE.txt +0 -12
  1878. package/node_modules/tslib/README.md +0 -164
  1879. package/node_modules/tslib/SECURITY.md +0 -41
  1880. package/node_modules/tslib/modules/index.d.ts +0 -38
  1881. package/node_modules/tslib/modules/index.js +0 -70
  1882. package/node_modules/tslib/modules/package.json +0 -3
  1883. package/node_modules/tslib/package.json +0 -47
  1884. package/node_modules/tslib/tslib.d.ts +0 -460
  1885. package/node_modules/tslib/tslib.es6.html +0 -1
  1886. package/node_modules/tslib/tslib.es6.js +0 -402
  1887. package/node_modules/tslib/tslib.es6.mjs +0 -401
  1888. package/node_modules/tslib/tslib.html +0 -1
  1889. package/node_modules/tslib/tslib.js +0 -484
  1890. package/node_modules/uuid/LICENSE.md +0 -9
  1891. package/node_modules/uuid/README.md +0 -510
  1892. package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
  1893. package/node_modules/uuid/dist/cjs/index.js +0 -31
  1894. package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
  1895. package/node_modules/uuid/dist/cjs/max.js +0 -3
  1896. package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
  1897. package/node_modules/uuid/dist/cjs/md5.js +0 -13
  1898. package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
  1899. package/node_modules/uuid/dist/cjs/native.js +0 -4
  1900. package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
  1901. package/node_modules/uuid/dist/cjs/nil.js +0 -3
  1902. package/node_modules/uuid/dist/cjs/package.json +0 -1
  1903. package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
  1904. package/node_modules/uuid/dist/cjs/parse.js +0 -11
  1905. package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
  1906. package/node_modules/uuid/dist/cjs/regex.js +0 -3
  1907. package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
  1908. package/node_modules/uuid/dist/cjs/rng.js +0 -13
  1909. package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
  1910. package/node_modules/uuid/dist/cjs/sha1.js +0 -13
  1911. package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
  1912. package/node_modules/uuid/dist/cjs/stringify.js +0 -39
  1913. package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
  1914. package/node_modules/uuid/dist/cjs/types.js +0 -2
  1915. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
  1916. package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  1917. package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
  1918. package/node_modules/uuid/dist/cjs/v1.js +0 -87
  1919. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
  1920. package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  1921. package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
  1922. package/node_modules/uuid/dist/cjs/v3.js +0 -14
  1923. package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
  1924. package/node_modules/uuid/dist/cjs/v35.js +0 -44
  1925. package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
  1926. package/node_modules/uuid/dist/cjs/v4.js +0 -29
  1927. package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
  1928. package/node_modules/uuid/dist/cjs/v5.js +0 -14
  1929. package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
  1930. package/node_modules/uuid/dist/cjs/v6.js +0 -22
  1931. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
  1932. package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  1933. package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
  1934. package/node_modules/uuid/dist/cjs/v7.js +0 -69
  1935. package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
  1936. package/node_modules/uuid/dist/cjs/validate.js +0 -7
  1937. package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
  1938. package/node_modules/uuid/dist/cjs/version.js +0 -10
  1939. package/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
  1940. package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  1941. package/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
  1942. package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  1943. package/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
  1944. package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  1945. package/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
  1946. package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  1947. package/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
  1948. package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  1949. package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  1950. package/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
  1951. package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  1952. package/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
  1953. package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  1954. package/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
  1955. package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  1956. package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
  1957. package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  1958. package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
  1959. package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  1960. package/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
  1961. package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  1962. package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +0 -1
  1963. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  1964. package/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
  1965. package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  1966. package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
  1967. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  1968. package/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
  1969. package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  1970. package/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
  1971. package/node_modules/uuid/dist/cjs-browser/v35.js +0 -44
  1972. package/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
  1973. package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  1974. package/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
  1975. package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  1976. package/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
  1977. package/node_modules/uuid/dist/cjs-browser/v6.js +0 -22
  1978. package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
  1979. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  1980. package/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
  1981. package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  1982. package/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
  1983. package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  1984. package/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
  1985. package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  1986. package/node_modules/uuid/dist/esm/bin/uuid +0 -2
  1987. package/node_modules/uuid/dist/esm/index.d.ts +0 -15
  1988. package/node_modules/uuid/dist/esm/index.js +0 -14
  1989. package/node_modules/uuid/dist/esm/max.d.ts +0 -2
  1990. package/node_modules/uuid/dist/esm/max.js +0 -1
  1991. package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
  1992. package/node_modules/uuid/dist/esm/md5.js +0 -11
  1993. package/node_modules/uuid/dist/esm/native.d.ts +0 -6
  1994. package/node_modules/uuid/dist/esm/native.js +0 -2
  1995. package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
  1996. package/node_modules/uuid/dist/esm/nil.js +0 -1
  1997. package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
  1998. package/node_modules/uuid/dist/esm/parse.js +0 -9
  1999. package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
  2000. package/node_modules/uuid/dist/esm/regex.js +0 -1
  2001. package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
  2002. package/node_modules/uuid/dist/esm/rng.js +0 -10
  2003. package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
  2004. package/node_modules/uuid/dist/esm/sha1.js +0 -11
  2005. package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
  2006. package/node_modules/uuid/dist/esm/stringify.js +0 -35
  2007. package/node_modules/uuid/dist/esm/types.d.ts +0 -21
  2008. package/node_modules/uuid/dist/esm/types.js +0 -1
  2009. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
  2010. package/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
  2011. package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
  2012. package/node_modules/uuid/dist/esm/v1.js +0 -83
  2013. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
  2014. package/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
  2015. package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
  2016. package/node_modules/uuid/dist/esm/v3.js +0 -9
  2017. package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
  2018. package/node_modules/uuid/dist/esm/v35.js +0 -39
  2019. package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
  2020. package/node_modules/uuid/dist/esm/v4.js +0 -27
  2021. package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
  2022. package/node_modules/uuid/dist/esm/v5.js +0 -9
  2023. package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
  2024. package/node_modules/uuid/dist/esm/v6.js +0 -20
  2025. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
  2026. package/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
  2027. package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
  2028. package/node_modules/uuid/dist/esm/v7.js +0 -65
  2029. package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
  2030. package/node_modules/uuid/dist/esm/validate.js +0 -5
  2031. package/node_modules/uuid/dist/esm/version.d.ts +0 -2
  2032. package/node_modules/uuid/dist/esm/version.js +0 -8
  2033. package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
  2034. package/node_modules/uuid/dist/esm-browser/index.js +0 -14
  2035. package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
  2036. package/node_modules/uuid/dist/esm-browser/max.js +0 -1
  2037. package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
  2038. package/node_modules/uuid/dist/esm-browser/md5.js +0 -135
  2039. package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
  2040. package/node_modules/uuid/dist/esm-browser/native.js +0 -2
  2041. package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
  2042. package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  2043. package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
  2044. package/node_modules/uuid/dist/esm-browser/parse.js +0 -9
  2045. package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
  2046. package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  2047. package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
  2048. package/node_modules/uuid/dist/esm-browser/rng.js +0 -11
  2049. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
  2050. package/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
  2051. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
  2052. package/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
  2053. package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
  2054. package/node_modules/uuid/dist/esm-browser/types.js +0 -1
  2055. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
  2056. package/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
  2057. package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
  2058. package/node_modules/uuid/dist/esm-browser/v1.js +0 -83
  2059. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
  2060. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
  2061. package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
  2062. package/node_modules/uuid/dist/esm-browser/v3.js +0 -9
  2063. package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
  2064. package/node_modules/uuid/dist/esm-browser/v35.js +0 -39
  2065. package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
  2066. package/node_modules/uuid/dist/esm-browser/v4.js +0 -27
  2067. package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
  2068. package/node_modules/uuid/dist/esm-browser/v5.js +0 -9
  2069. package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
  2070. package/node_modules/uuid/dist/esm-browser/v6.js +0 -20
  2071. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
  2072. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
  2073. package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
  2074. package/node_modules/uuid/dist/esm-browser/v7.js +0 -65
  2075. package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
  2076. package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
  2077. package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
  2078. package/node_modules/uuid/dist/esm-browser/version.js +0 -8
  2079. package/node_modules/uuid/package.json +0 -132
  2080. package/node_modules/webidl-conversions/LICENSE.md +0 -12
  2081. package/node_modules/webidl-conversions/README.md +0 -53
  2082. package/node_modules/webidl-conversions/lib/index.js +0 -189
  2083. package/node_modules/webidl-conversions/package.json +0 -23
  2084. package/node_modules/whatwg-url/LICENSE.txt +0 -21
  2085. package/node_modules/whatwg-url/README.md +0 -67
  2086. package/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  2087. package/node_modules/whatwg-url/lib/URL.js +0 -196
  2088. package/node_modules/whatwg-url/lib/public-api.js +0 -11
  2089. package/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  2090. package/node_modules/whatwg-url/lib/utils.js +0 -20
  2091. package/node_modules/whatwg-url/package.json +0 -32
  2092. package/node_modules/ws/LICENSE +0 -20
  2093. package/node_modules/ws/README.md +0 -548
  2094. package/node_modules/ws/browser.js +0 -8
  2095. package/node_modules/ws/index.js +0 -22
  2096. package/node_modules/ws/lib/buffer-util.js +0 -131
  2097. package/node_modules/ws/lib/constants.js +0 -19
  2098. package/node_modules/ws/lib/event-target.js +0 -292
  2099. package/node_modules/ws/lib/extension.js +0 -203
  2100. package/node_modules/ws/lib/limiter.js +0 -55
  2101. package/node_modules/ws/lib/permessage-deflate.js +0 -530
  2102. package/node_modules/ws/lib/receiver.js +0 -743
  2103. package/node_modules/ws/lib/sender.js +0 -607
  2104. package/node_modules/ws/lib/stream.js +0 -161
  2105. package/node_modules/ws/lib/subprotocol.js +0 -62
  2106. package/node_modules/ws/lib/validation.js +0 -152
  2107. package/node_modules/ws/lib/websocket-server.js +0 -562
  2108. package/node_modules/ws/lib/websocket.js +0 -1407
  2109. package/node_modules/ws/package.json +0 -74
  2110. package/node_modules/ws/wrapper.mjs +0 -21
@@ -1,2777 +0,0 @@
1
- const EventEmitter = require('node:events').EventEmitter;
2
- const childProcess = require('node:child_process');
3
- const path = require('node:path');
4
- const fs = require('node:fs');
5
- const process = require('node:process');
6
-
7
- const { Argument, humanReadableArgName } = require('./argument.js');
8
- const { CommanderError } = require('./error.js');
9
- const { Help, stripColor } = require('./help.js');
10
- const { Option, DualOptions } = require('./option.js');
11
- const { suggestSimilar } = require('./suggestSimilar');
12
-
13
- class Command extends EventEmitter {
14
- /**
15
- * Initialize a new `Command`.
16
- *
17
- * @param {string} [name]
18
- */
19
-
20
- constructor(name) {
21
- super();
22
- /** @type {Command[]} */
23
- this.commands = [];
24
- /** @type {Option[]} */
25
- this.options = [];
26
- this.parent = null;
27
- this._allowUnknownOption = false;
28
- this._allowExcessArguments = false;
29
- /** @type {Argument[]} */
30
- this.registeredArguments = [];
31
- this._args = this.registeredArguments; // deprecated old name
32
- /** @type {string[]} */
33
- this.args = []; // cli args with options removed
34
- this.rawArgs = [];
35
- this.processedArgs = []; // like .args but after custom processing and collecting variadic
36
- this._scriptPath = null;
37
- this._name = name || '';
38
- this._optionValues = {};
39
- this._optionValueSources = {}; // default, env, cli etc
40
- this._storeOptionsAsProperties = false;
41
- this._actionHandler = null;
42
- this._executableHandler = false;
43
- this._executableFile = null; // custom name for executable
44
- this._executableDir = null; // custom search directory for subcommands
45
- this._defaultCommandName = null;
46
- this._exitCallback = null;
47
- this._aliases = [];
48
- this._combineFlagAndOptionalValue = true;
49
- this._description = '';
50
- this._summary = '';
51
- this._argsDescription = undefined; // legacy
52
- this._enablePositionalOptions = false;
53
- this._passThroughOptions = false;
54
- this._lifeCycleHooks = {}; // a hash of arrays
55
- /** @type {(boolean | string)} */
56
- this._showHelpAfterError = false;
57
- this._showSuggestionAfterError = true;
58
- this._savedState = null; // used in save/restoreStateBeforeParse
59
-
60
- // see configureOutput() for docs
61
- this._outputConfiguration = {
62
- writeOut: (str) => process.stdout.write(str),
63
- writeErr: (str) => process.stderr.write(str),
64
- outputError: (str, write) => write(str),
65
- getOutHelpWidth: () =>
66
- process.stdout.isTTY ? process.stdout.columns : undefined,
67
- getErrHelpWidth: () =>
68
- process.stderr.isTTY ? process.stderr.columns : undefined,
69
- getOutHasColors: () =>
70
- useColor() ?? (process.stdout.isTTY && process.stdout.hasColors?.()),
71
- getErrHasColors: () =>
72
- useColor() ?? (process.stderr.isTTY && process.stderr.hasColors?.()),
73
- stripColor: (str) => stripColor(str),
74
- };
75
-
76
- this._hidden = false;
77
- /** @type {(Option | null | undefined)} */
78
- this._helpOption = undefined; // Lazy created on demand. May be null if help option is disabled.
79
- this._addImplicitHelpCommand = undefined; // undecided whether true or false yet, not inherited
80
- /** @type {Command} */
81
- this._helpCommand = undefined; // lazy initialised, inherited
82
- this._helpConfiguration = {};
83
- /** @type {string | undefined} */
84
- this._helpGroupHeading = undefined; // soft initialised when added to parent
85
- /** @type {string | undefined} */
86
- this._defaultCommandGroup = undefined;
87
- /** @type {string | undefined} */
88
- this._defaultOptionGroup = undefined;
89
- }
90
-
91
- /**
92
- * Copy settings that are useful to have in common across root command and subcommands.
93
- *
94
- * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
95
- *
96
- * @param {Command} sourceCommand
97
- * @return {Command} `this` command for chaining
98
- */
99
- copyInheritedSettings(sourceCommand) {
100
- this._outputConfiguration = sourceCommand._outputConfiguration;
101
- this._helpOption = sourceCommand._helpOption;
102
- this._helpCommand = sourceCommand._helpCommand;
103
- this._helpConfiguration = sourceCommand._helpConfiguration;
104
- this._exitCallback = sourceCommand._exitCallback;
105
- this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties;
106
- this._combineFlagAndOptionalValue =
107
- sourceCommand._combineFlagAndOptionalValue;
108
- this._allowExcessArguments = sourceCommand._allowExcessArguments;
109
- this._enablePositionalOptions = sourceCommand._enablePositionalOptions;
110
- this._showHelpAfterError = sourceCommand._showHelpAfterError;
111
- this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError;
112
-
113
- return this;
114
- }
115
-
116
- /**
117
- * @returns {Command[]}
118
- * @private
119
- */
120
-
121
- _getCommandAndAncestors() {
122
- const result = [];
123
- // eslint-disable-next-line @typescript-eslint/no-this-alias
124
- for (let command = this; command; command = command.parent) {
125
- result.push(command);
126
- }
127
- return result;
128
- }
129
-
130
- /**
131
- * Define a command.
132
- *
133
- * There are two styles of command: pay attention to where to put the description.
134
- *
135
- * @example
136
- * // Command implemented using action handler (description is supplied separately to `.command`)
137
- * program
138
- * .command('clone <source> [destination]')
139
- * .description('clone a repository into a newly created directory')
140
- * .action((source, destination) => {
141
- * console.log('clone command called');
142
- * });
143
- *
144
- * // Command implemented using separate executable file (description is second parameter to `.command`)
145
- * program
146
- * .command('start <service>', 'start named service')
147
- * .command('stop [service]', 'stop named service, or all if no name supplied');
148
- *
149
- * @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
150
- * @param {(object | string)} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
151
- * @param {object} [execOpts] - configuration options (for executable)
152
- * @return {Command} returns new command for action handler, or `this` for executable command
153
- */
154
-
155
- command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
156
- let desc = actionOptsOrExecDesc;
157
- let opts = execOpts;
158
- if (typeof desc === 'object' && desc !== null) {
159
- opts = desc;
160
- desc = null;
161
- }
162
- opts = opts || {};
163
- const [, name, args] = nameAndArgs.match(/([^ ]+) *(.*)/);
164
-
165
- const cmd = this.createCommand(name);
166
- if (desc) {
167
- cmd.description(desc);
168
- cmd._executableHandler = true;
169
- }
170
- if (opts.isDefault) this._defaultCommandName = cmd._name;
171
- cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden
172
- cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
173
- if (args) cmd.arguments(args);
174
- this._registerCommand(cmd);
175
- cmd.parent = this;
176
- cmd.copyInheritedSettings(this);
177
-
178
- if (desc) return this;
179
- return cmd;
180
- }
181
-
182
- /**
183
- * Factory routine to create a new unattached command.
184
- *
185
- * See .command() for creating an attached subcommand, which uses this routine to
186
- * create the command. You can override createCommand to customise subcommands.
187
- *
188
- * @param {string} [name]
189
- * @return {Command} new command
190
- */
191
-
192
- createCommand(name) {
193
- return new Command(name);
194
- }
195
-
196
- /**
197
- * You can customise the help with a subclass of Help by overriding createHelp,
198
- * or by overriding Help properties using configureHelp().
199
- *
200
- * @return {Help}
201
- */
202
-
203
- createHelp() {
204
- return Object.assign(new Help(), this.configureHelp());
205
- }
206
-
207
- /**
208
- * You can customise the help by overriding Help properties using configureHelp(),
209
- * or with a subclass of Help by overriding createHelp().
210
- *
211
- * @param {object} [configuration] - configuration options
212
- * @return {(Command | object)} `this` command for chaining, or stored configuration
213
- */
214
-
215
- configureHelp(configuration) {
216
- if (configuration === undefined) return this._helpConfiguration;
217
-
218
- this._helpConfiguration = configuration;
219
- return this;
220
- }
221
-
222
- /**
223
- * The default output goes to stdout and stderr. You can customise this for special
224
- * applications. You can also customise the display of errors by overriding outputError.
225
- *
226
- * The configuration properties are all functions:
227
- *
228
- * // change how output being written, defaults to stdout and stderr
229
- * writeOut(str)
230
- * writeErr(str)
231
- * // change how output being written for errors, defaults to writeErr
232
- * outputError(str, write) // used for displaying errors and not used for displaying help
233
- * // specify width for wrapping help
234
- * getOutHelpWidth()
235
- * getErrHelpWidth()
236
- * // color support, currently only used with Help
237
- * getOutHasColors()
238
- * getErrHasColors()
239
- * stripColor() // used to remove ANSI escape codes if output does not have colors
240
- *
241
- * @param {object} [configuration] - configuration options
242
- * @return {(Command | object)} `this` command for chaining, or stored configuration
243
- */
244
-
245
- configureOutput(configuration) {
246
- if (configuration === undefined) return this._outputConfiguration;
247
-
248
- this._outputConfiguration = {
249
- ...this._outputConfiguration,
250
- ...configuration,
251
- };
252
- return this;
253
- }
254
-
255
- /**
256
- * Display the help or a custom message after an error occurs.
257
- *
258
- * @param {(boolean|string)} [displayHelp]
259
- * @return {Command} `this` command for chaining
260
- */
261
- showHelpAfterError(displayHelp = true) {
262
- if (typeof displayHelp !== 'string') displayHelp = !!displayHelp;
263
- this._showHelpAfterError = displayHelp;
264
- return this;
265
- }
266
-
267
- /**
268
- * Display suggestion of similar commands for unknown commands, or options for unknown options.
269
- *
270
- * @param {boolean} [displaySuggestion]
271
- * @return {Command} `this` command for chaining
272
- */
273
- showSuggestionAfterError(displaySuggestion = true) {
274
- this._showSuggestionAfterError = !!displaySuggestion;
275
- return this;
276
- }
277
-
278
- /**
279
- * Add a prepared subcommand.
280
- *
281
- * See .command() for creating an attached subcommand which inherits settings from its parent.
282
- *
283
- * @param {Command} cmd - new subcommand
284
- * @param {object} [opts] - configuration options
285
- * @return {Command} `this` command for chaining
286
- */
287
-
288
- addCommand(cmd, opts) {
289
- if (!cmd._name) {
290
- throw new Error(`Command passed to .addCommand() must have a name
291
- - specify the name in Command constructor or using .name()`);
292
- }
293
-
294
- opts = opts || {};
295
- if (opts.isDefault) this._defaultCommandName = cmd._name;
296
- if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
297
-
298
- this._registerCommand(cmd);
299
- cmd.parent = this;
300
- cmd._checkForBrokenPassThrough();
301
-
302
- return this;
303
- }
304
-
305
- /**
306
- * Factory routine to create a new unattached argument.
307
- *
308
- * See .argument() for creating an attached argument, which uses this routine to
309
- * create the argument. You can override createArgument to return a custom argument.
310
- *
311
- * @param {string} name
312
- * @param {string} [description]
313
- * @return {Argument} new argument
314
- */
315
-
316
- createArgument(name, description) {
317
- return new Argument(name, description);
318
- }
319
-
320
- /**
321
- * Define argument syntax for command.
322
- *
323
- * The default is that the argument is required, and you can explicitly
324
- * indicate this with <> around the name. Put [] around the name for an optional argument.
325
- *
326
- * @example
327
- * program.argument('<input-file>');
328
- * program.argument('[output-file]');
329
- *
330
- * @param {string} name
331
- * @param {string} [description]
332
- * @param {(Function|*)} [parseArg] - custom argument processing function or default value
333
- * @param {*} [defaultValue]
334
- * @return {Command} `this` command for chaining
335
- */
336
- argument(name, description, parseArg, defaultValue) {
337
- const argument = this.createArgument(name, description);
338
- if (typeof parseArg === 'function') {
339
- argument.default(defaultValue).argParser(parseArg);
340
- } else {
341
- argument.default(parseArg);
342
- }
343
- this.addArgument(argument);
344
- return this;
345
- }
346
-
347
- /**
348
- * Define argument syntax for command, adding multiple at once (without descriptions).
349
- *
350
- * See also .argument().
351
- *
352
- * @example
353
- * program.arguments('<cmd> [env]');
354
- *
355
- * @param {string} names
356
- * @return {Command} `this` command for chaining
357
- */
358
-
359
- arguments(names) {
360
- names
361
- .trim()
362
- .split(/ +/)
363
- .forEach((detail) => {
364
- this.argument(detail);
365
- });
366
- return this;
367
- }
368
-
369
- /**
370
- * Define argument syntax for command, adding a prepared argument.
371
- *
372
- * @param {Argument} argument
373
- * @return {Command} `this` command for chaining
374
- */
375
- addArgument(argument) {
376
- const previousArgument = this.registeredArguments.slice(-1)[0];
377
- if (previousArgument?.variadic) {
378
- throw new Error(
379
- `only the last argument can be variadic '${previousArgument.name()}'`,
380
- );
381
- }
382
- if (
383
- argument.required &&
384
- argument.defaultValue !== undefined &&
385
- argument.parseArg === undefined
386
- ) {
387
- throw new Error(
388
- `a default value for a required argument is never used: '${argument.name()}'`,
389
- );
390
- }
391
- this.registeredArguments.push(argument);
392
- return this;
393
- }
394
-
395
- /**
396
- * Customise or override default help command. By default a help command is automatically added if your command has subcommands.
397
- *
398
- * @example
399
- * program.helpCommand('help [cmd]');
400
- * program.helpCommand('help [cmd]', 'show help');
401
- * program.helpCommand(false); // suppress default help command
402
- * program.helpCommand(true); // add help command even if no subcommands
403
- *
404
- * @param {string|boolean} enableOrNameAndArgs - enable with custom name and/or arguments, or boolean to override whether added
405
- * @param {string} [description] - custom description
406
- * @return {Command} `this` command for chaining
407
- */
408
-
409
- helpCommand(enableOrNameAndArgs, description) {
410
- if (typeof enableOrNameAndArgs === 'boolean') {
411
- this._addImplicitHelpCommand = enableOrNameAndArgs;
412
- if (enableOrNameAndArgs && this._defaultCommandGroup) {
413
- // make the command to store the group
414
- this._initCommandGroup(this._getHelpCommand());
415
- }
416
- return this;
417
- }
418
-
419
- const nameAndArgs = enableOrNameAndArgs ?? 'help [command]';
420
- const [, helpName, helpArgs] = nameAndArgs.match(/([^ ]+) *(.*)/);
421
- const helpDescription = description ?? 'display help for command';
422
-
423
- const helpCommand = this.createCommand(helpName);
424
- helpCommand.helpOption(false);
425
- if (helpArgs) helpCommand.arguments(helpArgs);
426
- if (helpDescription) helpCommand.description(helpDescription);
427
-
428
- this._addImplicitHelpCommand = true;
429
- this._helpCommand = helpCommand;
430
- // init group unless lazy create
431
- if (enableOrNameAndArgs || description) this._initCommandGroup(helpCommand);
432
-
433
- return this;
434
- }
435
-
436
- /**
437
- * Add prepared custom help command.
438
- *
439
- * @param {(Command|string|boolean)} helpCommand - custom help command, or deprecated enableOrNameAndArgs as for `.helpCommand()`
440
- * @param {string} [deprecatedDescription] - deprecated custom description used with custom name only
441
- * @return {Command} `this` command for chaining
442
- */
443
- addHelpCommand(helpCommand, deprecatedDescription) {
444
- // If not passed an object, call through to helpCommand for backwards compatibility,
445
- // as addHelpCommand was originally used like helpCommand is now.
446
- if (typeof helpCommand !== 'object') {
447
- this.helpCommand(helpCommand, deprecatedDescription);
448
- return this;
449
- }
450
-
451
- this._addImplicitHelpCommand = true;
452
- this._helpCommand = helpCommand;
453
- this._initCommandGroup(helpCommand);
454
- return this;
455
- }
456
-
457
- /**
458
- * Lazy create help command.
459
- *
460
- * @return {(Command|null)}
461
- * @package
462
- */
463
- _getHelpCommand() {
464
- const hasImplicitHelpCommand =
465
- this._addImplicitHelpCommand ??
466
- (this.commands.length &&
467
- !this._actionHandler &&
468
- !this._findCommand('help'));
469
-
470
- if (hasImplicitHelpCommand) {
471
- if (this._helpCommand === undefined) {
472
- this.helpCommand(undefined, undefined); // use default name and description
473
- }
474
- return this._helpCommand;
475
- }
476
- return null;
477
- }
478
-
479
- /**
480
- * Add hook for life cycle event.
481
- *
482
- * @param {string} event
483
- * @param {Function} listener
484
- * @return {Command} `this` command for chaining
485
- */
486
-
487
- hook(event, listener) {
488
- const allowedValues = ['preSubcommand', 'preAction', 'postAction'];
489
- if (!allowedValues.includes(event)) {
490
- throw new Error(`Unexpected value for event passed to hook : '${event}'.
491
- Expecting one of '${allowedValues.join("', '")}'`);
492
- }
493
- if (this._lifeCycleHooks[event]) {
494
- this._lifeCycleHooks[event].push(listener);
495
- } else {
496
- this._lifeCycleHooks[event] = [listener];
497
- }
498
- return this;
499
- }
500
-
501
- /**
502
- * Register callback to use as replacement for calling process.exit.
503
- *
504
- * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
505
- * @return {Command} `this` command for chaining
506
- */
507
-
508
- exitOverride(fn) {
509
- if (fn) {
510
- this._exitCallback = fn;
511
- } else {
512
- this._exitCallback = (err) => {
513
- if (err.code !== 'commander.executeSubCommandAsync') {
514
- throw err;
515
- } else {
516
- // Async callback from spawn events, not useful to throw.
517
- }
518
- };
519
- }
520
- return this;
521
- }
522
-
523
- /**
524
- * Call process.exit, and _exitCallback if defined.
525
- *
526
- * @param {number} exitCode exit code for using with process.exit
527
- * @param {string} code an id string representing the error
528
- * @param {string} message human-readable description of the error
529
- * @return never
530
- * @private
531
- */
532
-
533
- _exit(exitCode, code, message) {
534
- if (this._exitCallback) {
535
- this._exitCallback(new CommanderError(exitCode, code, message));
536
- // Expecting this line is not reached.
537
- }
538
- process.exit(exitCode);
539
- }
540
-
541
- /**
542
- * Register callback `fn` for the command.
543
- *
544
- * @example
545
- * program
546
- * .command('serve')
547
- * .description('start service')
548
- * .action(function() {
549
- * // do work here
550
- * });
551
- *
552
- * @param {Function} fn
553
- * @return {Command} `this` command for chaining
554
- */
555
-
556
- action(fn) {
557
- const listener = (args) => {
558
- // The .action callback takes an extra parameter which is the command or options.
559
- const expectedArgsCount = this.registeredArguments.length;
560
- const actionArgs = args.slice(0, expectedArgsCount);
561
- if (this._storeOptionsAsProperties) {
562
- actionArgs[expectedArgsCount] = this; // backwards compatible "options"
563
- } else {
564
- actionArgs[expectedArgsCount] = this.opts();
565
- }
566
- actionArgs.push(this);
567
-
568
- return fn.apply(this, actionArgs);
569
- };
570
- this._actionHandler = listener;
571
- return this;
572
- }
573
-
574
- /**
575
- * Factory routine to create a new unattached option.
576
- *
577
- * See .option() for creating an attached option, which uses this routine to
578
- * create the option. You can override createOption to return a custom option.
579
- *
580
- * @param {string} flags
581
- * @param {string} [description]
582
- * @return {Option} new option
583
- */
584
-
585
- createOption(flags, description) {
586
- return new Option(flags, description);
587
- }
588
-
589
- /**
590
- * Wrap parseArgs to catch 'commander.invalidArgument'.
591
- *
592
- * @param {(Option | Argument)} target
593
- * @param {string} value
594
- * @param {*} previous
595
- * @param {string} invalidArgumentMessage
596
- * @private
597
- */
598
-
599
- _callParseArg(target, value, previous, invalidArgumentMessage) {
600
- try {
601
- return target.parseArg(value, previous);
602
- } catch (err) {
603
- if (err.code === 'commander.invalidArgument') {
604
- const message = `${invalidArgumentMessage} ${err.message}`;
605
- this.error(message, { exitCode: err.exitCode, code: err.code });
606
- }
607
- throw err;
608
- }
609
- }
610
-
611
- /**
612
- * Check for option flag conflicts.
613
- * Register option if no conflicts found, or throw on conflict.
614
- *
615
- * @param {Option} option
616
- * @private
617
- */
618
-
619
- _registerOption(option) {
620
- const matchingOption =
621
- (option.short && this._findOption(option.short)) ||
622
- (option.long && this._findOption(option.long));
623
- if (matchingOption) {
624
- const matchingFlag =
625
- option.long && this._findOption(option.long)
626
- ? option.long
627
- : option.short;
628
- throw new Error(`Cannot add option '${option.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${matchingFlag}'
629
- - already used by option '${matchingOption.flags}'`);
630
- }
631
-
632
- this._initOptionGroup(option);
633
- this.options.push(option);
634
- }
635
-
636
- /**
637
- * Check for command name and alias conflicts with existing commands.
638
- * Register command if no conflicts found, or throw on conflict.
639
- *
640
- * @param {Command} command
641
- * @private
642
- */
643
-
644
- _registerCommand(command) {
645
- const knownBy = (cmd) => {
646
- return [cmd.name()].concat(cmd.aliases());
647
- };
648
-
649
- const alreadyUsed = knownBy(command).find((name) =>
650
- this._findCommand(name),
651
- );
652
- if (alreadyUsed) {
653
- const existingCmd = knownBy(this._findCommand(alreadyUsed)).join('|');
654
- const newCmd = knownBy(command).join('|');
655
- throw new Error(
656
- `cannot add command '${newCmd}' as already have command '${existingCmd}'`,
657
- );
658
- }
659
-
660
- this._initCommandGroup(command);
661
- this.commands.push(command);
662
- }
663
-
664
- /**
665
- * Add an option.
666
- *
667
- * @param {Option} option
668
- * @return {Command} `this` command for chaining
669
- */
670
- addOption(option) {
671
- this._registerOption(option);
672
-
673
- const oname = option.name();
674
- const name = option.attributeName();
675
-
676
- // store default value
677
- if (option.negate) {
678
- // --no-foo is special and defaults foo to true, unless a --foo option is already defined
679
- const positiveLongFlag = option.long.replace(/^--no-/, '--');
680
- if (!this._findOption(positiveLongFlag)) {
681
- this.setOptionValueWithSource(
682
- name,
683
- option.defaultValue === undefined ? true : option.defaultValue,
684
- 'default',
685
- );
686
- }
687
- } else if (option.defaultValue !== undefined) {
688
- this.setOptionValueWithSource(name, option.defaultValue, 'default');
689
- }
690
-
691
- // handler for cli and env supplied values
692
- const handleOptionValue = (val, invalidValueMessage, valueSource) => {
693
- // val is null for optional option used without an optional-argument.
694
- // val is undefined for boolean and negated option.
695
- if (val == null && option.presetArg !== undefined) {
696
- val = option.presetArg;
697
- }
698
-
699
- // custom processing
700
- const oldValue = this.getOptionValue(name);
701
- if (val !== null && option.parseArg) {
702
- val = this._callParseArg(option, val, oldValue, invalidValueMessage);
703
- } else if (val !== null && option.variadic) {
704
- val = option._collectValue(val, oldValue);
705
- }
706
-
707
- // Fill-in appropriate missing values. Long winded but easy to follow.
708
- if (val == null) {
709
- if (option.negate) {
710
- val = false;
711
- } else if (option.isBoolean() || option.optional) {
712
- val = true;
713
- } else {
714
- val = ''; // not normal, parseArg might have failed or be a mock function for testing
715
- }
716
- }
717
- this.setOptionValueWithSource(name, val, valueSource);
718
- };
719
-
720
- this.on('option:' + oname, (val) => {
721
- const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
722
- handleOptionValue(val, invalidValueMessage, 'cli');
723
- });
724
-
725
- if (option.envVar) {
726
- this.on('optionEnv:' + oname, (val) => {
727
- const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
728
- handleOptionValue(val, invalidValueMessage, 'env');
729
- });
730
- }
731
-
732
- return this;
733
- }
734
-
735
- /**
736
- * Internal implementation shared by .option() and .requiredOption()
737
- *
738
- * @return {Command} `this` command for chaining
739
- * @private
740
- */
741
- _optionEx(config, flags, description, fn, defaultValue) {
742
- if (typeof flags === 'object' && flags instanceof Option) {
743
- throw new Error(
744
- 'To add an Option object use addOption() instead of option() or requiredOption()',
745
- );
746
- }
747
- const option = this.createOption(flags, description);
748
- option.makeOptionMandatory(!!config.mandatory);
749
- if (typeof fn === 'function') {
750
- option.default(defaultValue).argParser(fn);
751
- } else if (fn instanceof RegExp) {
752
- // deprecated
753
- const regex = fn;
754
- fn = (val, def) => {
755
- const m = regex.exec(val);
756
- return m ? m[0] : def;
757
- };
758
- option.default(defaultValue).argParser(fn);
759
- } else {
760
- option.default(fn);
761
- }
762
-
763
- return this.addOption(option);
764
- }
765
-
766
- /**
767
- * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
768
- *
769
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
770
- * option-argument is indicated by `<>` and an optional option-argument by `[]`.
771
- *
772
- * See the README for more details, and see also addOption() and requiredOption().
773
- *
774
- * @example
775
- * program
776
- * .option('-p, --pepper', 'add pepper')
777
- * .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument
778
- * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
779
- * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
780
- *
781
- * @param {string} flags
782
- * @param {string} [description]
783
- * @param {(Function|*)} [parseArg] - custom option processing function or default value
784
- * @param {*} [defaultValue]
785
- * @return {Command} `this` command for chaining
786
- */
787
-
788
- option(flags, description, parseArg, defaultValue) {
789
- return this._optionEx({}, flags, description, parseArg, defaultValue);
790
- }
791
-
792
- /**
793
- * Add a required option which must have a value after parsing. This usually means
794
- * the option must be specified on the command line. (Otherwise the same as .option().)
795
- *
796
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
797
- *
798
- * @param {string} flags
799
- * @param {string} [description]
800
- * @param {(Function|*)} [parseArg] - custom option processing function or default value
801
- * @param {*} [defaultValue]
802
- * @return {Command} `this` command for chaining
803
- */
804
-
805
- requiredOption(flags, description, parseArg, defaultValue) {
806
- return this._optionEx(
807
- { mandatory: true },
808
- flags,
809
- description,
810
- parseArg,
811
- defaultValue,
812
- );
813
- }
814
-
815
- /**
816
- * Alter parsing of short flags with optional values.
817
- *
818
- * @example
819
- * // for `.option('-f,--flag [value]'):
820
- * program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour
821
- * program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
822
- *
823
- * @param {boolean} [combine] - if `true` or omitted, an optional value can be specified directly after the flag.
824
- * @return {Command} `this` command for chaining
825
- */
826
- combineFlagAndOptionalValue(combine = true) {
827
- this._combineFlagAndOptionalValue = !!combine;
828
- return this;
829
- }
830
-
831
- /**
832
- * Allow unknown options on the command line.
833
- *
834
- * @param {boolean} [allowUnknown] - if `true` or omitted, no error will be thrown for unknown options.
835
- * @return {Command} `this` command for chaining
836
- */
837
- allowUnknownOption(allowUnknown = true) {
838
- this._allowUnknownOption = !!allowUnknown;
839
- return this;
840
- }
841
-
842
- /**
843
- * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
844
- *
845
- * @param {boolean} [allowExcess] - if `true` or omitted, no error will be thrown for excess arguments.
846
- * @return {Command} `this` command for chaining
847
- */
848
- allowExcessArguments(allowExcess = true) {
849
- this._allowExcessArguments = !!allowExcess;
850
- return this;
851
- }
852
-
853
- /**
854
- * Enable positional options. Positional means global options are specified before subcommands which lets
855
- * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
856
- * The default behaviour is non-positional and global options may appear anywhere on the command line.
857
- *
858
- * @param {boolean} [positional]
859
- * @return {Command} `this` command for chaining
860
- */
861
- enablePositionalOptions(positional = true) {
862
- this._enablePositionalOptions = !!positional;
863
- return this;
864
- }
865
-
866
- /**
867
- * Pass through options that come after command-arguments rather than treat them as command-options,
868
- * so actual command-options come before command-arguments. Turning this on for a subcommand requires
869
- * positional options to have been enabled on the program (parent commands).
870
- * The default behaviour is non-positional and options may appear before or after command-arguments.
871
- *
872
- * @param {boolean} [passThrough] for unknown options.
873
- * @return {Command} `this` command for chaining
874
- */
875
- passThroughOptions(passThrough = true) {
876
- this._passThroughOptions = !!passThrough;
877
- this._checkForBrokenPassThrough();
878
- return this;
879
- }
880
-
881
- /**
882
- * @private
883
- */
884
-
885
- _checkForBrokenPassThrough() {
886
- if (
887
- this.parent &&
888
- this._passThroughOptions &&
889
- !this.parent._enablePositionalOptions
890
- ) {
891
- throw new Error(
892
- `passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`,
893
- );
894
- }
895
- }
896
-
897
- /**
898
- * Whether to store option values as properties on command object,
899
- * or store separately (specify false). In both cases the option values can be accessed using .opts().
900
- *
901
- * @param {boolean} [storeAsProperties=true]
902
- * @return {Command} `this` command for chaining
903
- */
904
-
905
- storeOptionsAsProperties(storeAsProperties = true) {
906
- if (this.options.length) {
907
- throw new Error('call .storeOptionsAsProperties() before adding options');
908
- }
909
- if (Object.keys(this._optionValues).length) {
910
- throw new Error(
911
- 'call .storeOptionsAsProperties() before setting option values',
912
- );
913
- }
914
- this._storeOptionsAsProperties = !!storeAsProperties;
915
- return this;
916
- }
917
-
918
- /**
919
- * Retrieve option value.
920
- *
921
- * @param {string} key
922
- * @return {object} value
923
- */
924
-
925
- getOptionValue(key) {
926
- if (this._storeOptionsAsProperties) {
927
- return this[key];
928
- }
929
- return this._optionValues[key];
930
- }
931
-
932
- /**
933
- * Store option value.
934
- *
935
- * @param {string} key
936
- * @param {object} value
937
- * @return {Command} `this` command for chaining
938
- */
939
-
940
- setOptionValue(key, value) {
941
- return this.setOptionValueWithSource(key, value, undefined);
942
- }
943
-
944
- /**
945
- * Store option value and where the value came from.
946
- *
947
- * @param {string} key
948
- * @param {object} value
949
- * @param {string} source - expected values are default/config/env/cli/implied
950
- * @return {Command} `this` command for chaining
951
- */
952
-
953
- setOptionValueWithSource(key, value, source) {
954
- if (this._storeOptionsAsProperties) {
955
- this[key] = value;
956
- } else {
957
- this._optionValues[key] = value;
958
- }
959
- this._optionValueSources[key] = source;
960
- return this;
961
- }
962
-
963
- /**
964
- * Get source of option value.
965
- * Expected values are default | config | env | cli | implied
966
- *
967
- * @param {string} key
968
- * @return {string}
969
- */
970
-
971
- getOptionValueSource(key) {
972
- return this._optionValueSources[key];
973
- }
974
-
975
- /**
976
- * Get source of option value. See also .optsWithGlobals().
977
- * Expected values are default | config | env | cli | implied
978
- *
979
- * @param {string} key
980
- * @return {string}
981
- */
982
-
983
- getOptionValueSourceWithGlobals(key) {
984
- // global overwrites local, like optsWithGlobals
985
- let source;
986
- this._getCommandAndAncestors().forEach((cmd) => {
987
- if (cmd.getOptionValueSource(key) !== undefined) {
988
- source = cmd.getOptionValueSource(key);
989
- }
990
- });
991
- return source;
992
- }
993
-
994
- /**
995
- * Get user arguments from implied or explicit arguments.
996
- * Side-effects: set _scriptPath if args included script. Used for default program name, and subcommand searches.
997
- *
998
- * @private
999
- */
1000
-
1001
- _prepareUserArgs(argv, parseOptions) {
1002
- if (argv !== undefined && !Array.isArray(argv)) {
1003
- throw new Error('first parameter to parse must be array or undefined');
1004
- }
1005
- parseOptions = parseOptions || {};
1006
-
1007
- // auto-detect argument conventions if nothing supplied
1008
- if (argv === undefined && parseOptions.from === undefined) {
1009
- if (process.versions?.electron) {
1010
- parseOptions.from = 'electron';
1011
- }
1012
- // check node specific options for scenarios where user CLI args follow executable without scriptname
1013
- const execArgv = process.execArgv ?? [];
1014
- if (
1015
- execArgv.includes('-e') ||
1016
- execArgv.includes('--eval') ||
1017
- execArgv.includes('-p') ||
1018
- execArgv.includes('--print')
1019
- ) {
1020
- parseOptions.from = 'eval'; // internal usage, not documented
1021
- }
1022
- }
1023
-
1024
- // default to using process.argv
1025
- if (argv === undefined) {
1026
- argv = process.argv;
1027
- }
1028
- this.rawArgs = argv.slice();
1029
-
1030
- // extract the user args and scriptPath
1031
- let userArgs;
1032
- switch (parseOptions.from) {
1033
- case undefined:
1034
- case 'node':
1035
- this._scriptPath = argv[1];
1036
- userArgs = argv.slice(2);
1037
- break;
1038
- case 'electron':
1039
- // @ts-ignore: because defaultApp is an unknown property
1040
- if (process.defaultApp) {
1041
- this._scriptPath = argv[1];
1042
- userArgs = argv.slice(2);
1043
- } else {
1044
- userArgs = argv.slice(1);
1045
- }
1046
- break;
1047
- case 'user':
1048
- userArgs = argv.slice(0);
1049
- break;
1050
- case 'eval':
1051
- userArgs = argv.slice(1);
1052
- break;
1053
- default:
1054
- throw new Error(
1055
- `unexpected parse option { from: '${parseOptions.from}' }`,
1056
- );
1057
- }
1058
-
1059
- // Find default name for program from arguments.
1060
- if (!this._name && this._scriptPath)
1061
- this.nameFromFilename(this._scriptPath);
1062
- this._name = this._name || 'program';
1063
-
1064
- return userArgs;
1065
- }
1066
-
1067
- /**
1068
- * Parse `argv`, setting options and invoking commands when defined.
1069
- *
1070
- * Use parseAsync instead of parse if any of your action handlers are async.
1071
- *
1072
- * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
1073
- *
1074
- * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
1075
- * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
1076
- * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
1077
- * - `'user'`: just user arguments
1078
- *
1079
- * @example
1080
- * program.parse(); // parse process.argv and auto-detect electron and special node flags
1081
- * program.parse(process.argv); // assume argv[0] is app and argv[1] is script
1082
- * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
1083
- *
1084
- * @param {string[]} [argv] - optional, defaults to process.argv
1085
- * @param {object} [parseOptions] - optionally specify style of options with from: node/user/electron
1086
- * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
1087
- * @return {Command} `this` command for chaining
1088
- */
1089
-
1090
- parse(argv, parseOptions) {
1091
- this._prepareForParse();
1092
- const userArgs = this._prepareUserArgs(argv, parseOptions);
1093
- this._parseCommand([], userArgs);
1094
-
1095
- return this;
1096
- }
1097
-
1098
- /**
1099
- * Parse `argv`, setting options and invoking commands when defined.
1100
- *
1101
- * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
1102
- *
1103
- * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
1104
- * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
1105
- * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
1106
- * - `'user'`: just user arguments
1107
- *
1108
- * @example
1109
- * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags
1110
- * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script
1111
- * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
1112
- *
1113
- * @param {string[]} [argv]
1114
- * @param {object} [parseOptions]
1115
- * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
1116
- * @return {Promise}
1117
- */
1118
-
1119
- async parseAsync(argv, parseOptions) {
1120
- this._prepareForParse();
1121
- const userArgs = this._prepareUserArgs(argv, parseOptions);
1122
- await this._parseCommand([], userArgs);
1123
-
1124
- return this;
1125
- }
1126
-
1127
- _prepareForParse() {
1128
- if (this._savedState === null) {
1129
- this.saveStateBeforeParse();
1130
- } else {
1131
- this.restoreStateBeforeParse();
1132
- }
1133
- }
1134
-
1135
- /**
1136
- * Called the first time parse is called to save state and allow a restore before subsequent calls to parse.
1137
- * Not usually called directly, but available for subclasses to save their custom state.
1138
- *
1139
- * This is called in a lazy way. Only commands used in parsing chain will have state saved.
1140
- */
1141
- saveStateBeforeParse() {
1142
- this._savedState = {
1143
- // name is stable if supplied by author, but may be unspecified for root command and deduced during parsing
1144
- _name: this._name,
1145
- // option values before parse have default values (including false for negated options)
1146
- // shallow clones
1147
- _optionValues: { ...this._optionValues },
1148
- _optionValueSources: { ...this._optionValueSources },
1149
- };
1150
- }
1151
-
1152
- /**
1153
- * Restore state before parse for calls after the first.
1154
- * Not usually called directly, but available for subclasses to save their custom state.
1155
- *
1156
- * This is called in a lazy way. Only commands used in parsing chain will have state restored.
1157
- */
1158
- restoreStateBeforeParse() {
1159
- if (this._storeOptionsAsProperties)
1160
- throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
1161
- - either make a new Command for each call to parse, or stop storing options as properties`);
1162
-
1163
- // clear state from _prepareUserArgs
1164
- this._name = this._savedState._name;
1165
- this._scriptPath = null;
1166
- this.rawArgs = [];
1167
- // clear state from setOptionValueWithSource
1168
- this._optionValues = { ...this._savedState._optionValues };
1169
- this._optionValueSources = { ...this._savedState._optionValueSources };
1170
- // clear state from _parseCommand
1171
- this.args = [];
1172
- // clear state from _processArguments
1173
- this.processedArgs = [];
1174
- }
1175
-
1176
- /**
1177
- * Throw if expected executable is missing. Add lots of help for author.
1178
- *
1179
- * @param {string} executableFile
1180
- * @param {string} executableDir
1181
- * @param {string} subcommandName
1182
- */
1183
- _checkForMissingExecutable(executableFile, executableDir, subcommandName) {
1184
- if (fs.existsSync(executableFile)) return;
1185
-
1186
- const executableDirMessage = executableDir
1187
- ? `searched for local subcommand relative to directory '${executableDir}'`
1188
- : 'no directory for search for local subcommand, use .executableDir() to supply a custom directory';
1189
- const executableMissing = `'${executableFile}' does not exist
1190
- - if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
1191
- - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
1192
- - ${executableDirMessage}`;
1193
- throw new Error(executableMissing);
1194
- }
1195
-
1196
- /**
1197
- * Execute a sub-command executable.
1198
- *
1199
- * @private
1200
- */
1201
-
1202
- _executeSubCommand(subcommand, args) {
1203
- args = args.slice();
1204
- let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
1205
- const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs'];
1206
-
1207
- function findFile(baseDir, baseName) {
1208
- // Look for specified file
1209
- const localBin = path.resolve(baseDir, baseName);
1210
- if (fs.existsSync(localBin)) return localBin;
1211
-
1212
- // Stop looking if candidate already has an expected extension.
1213
- if (sourceExt.includes(path.extname(baseName))) return undefined;
1214
-
1215
- // Try all the extensions.
1216
- const foundExt = sourceExt.find((ext) =>
1217
- fs.existsSync(`${localBin}${ext}`),
1218
- );
1219
- if (foundExt) return `${localBin}${foundExt}`;
1220
-
1221
- return undefined;
1222
- }
1223
-
1224
- // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
1225
- this._checkForMissingMandatoryOptions();
1226
- this._checkForConflictingOptions();
1227
-
1228
- // executableFile and executableDir might be full path, or just a name
1229
- let executableFile =
1230
- subcommand._executableFile || `${this._name}-${subcommand._name}`;
1231
- let executableDir = this._executableDir || '';
1232
- if (this._scriptPath) {
1233
- let resolvedScriptPath; // resolve possible symlink for installed npm binary
1234
- try {
1235
- resolvedScriptPath = fs.realpathSync(this._scriptPath);
1236
- } catch {
1237
- resolvedScriptPath = this._scriptPath;
1238
- }
1239
- executableDir = path.resolve(
1240
- path.dirname(resolvedScriptPath),
1241
- executableDir,
1242
- );
1243
- }
1244
-
1245
- // Look for a local file in preference to a command in PATH.
1246
- if (executableDir) {
1247
- let localFile = findFile(executableDir, executableFile);
1248
-
1249
- // Legacy search using prefix of script name instead of command name
1250
- if (!localFile && !subcommand._executableFile && this._scriptPath) {
1251
- const legacyName = path.basename(
1252
- this._scriptPath,
1253
- path.extname(this._scriptPath),
1254
- );
1255
- if (legacyName !== this._name) {
1256
- localFile = findFile(
1257
- executableDir,
1258
- `${legacyName}-${subcommand._name}`,
1259
- );
1260
- }
1261
- }
1262
- executableFile = localFile || executableFile;
1263
- }
1264
-
1265
- launchWithNode = sourceExt.includes(path.extname(executableFile));
1266
-
1267
- let proc;
1268
- if (process.platform !== 'win32') {
1269
- if (launchWithNode) {
1270
- args.unshift(executableFile);
1271
- // add executable arguments to spawn
1272
- args = incrementNodeInspectorPort(process.execArgv).concat(args);
1273
-
1274
- proc = childProcess.spawn(process.argv[0], args, { stdio: 'inherit' });
1275
- } else {
1276
- proc = childProcess.spawn(executableFile, args, { stdio: 'inherit' });
1277
- }
1278
- } else {
1279
- this._checkForMissingExecutable(
1280
- executableFile,
1281
- executableDir,
1282
- subcommand._name,
1283
- );
1284
- args.unshift(executableFile);
1285
- // add executable arguments to spawn
1286
- args = incrementNodeInspectorPort(process.execArgv).concat(args);
1287
- proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' });
1288
- }
1289
-
1290
- if (!proc.killed) {
1291
- // testing mainly to avoid leak warnings during unit tests with mocked spawn
1292
- const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
1293
- signals.forEach((signal) => {
1294
- process.on(signal, () => {
1295
- if (proc.killed === false && proc.exitCode === null) {
1296
- // @ts-ignore because signals not typed to known strings
1297
- proc.kill(signal);
1298
- }
1299
- });
1300
- });
1301
- }
1302
-
1303
- // By default terminate process when spawned process terminates.
1304
- const exitCallback = this._exitCallback;
1305
- proc.on('close', (code) => {
1306
- code = code ?? 1; // code is null if spawned process terminated due to a signal
1307
- if (!exitCallback) {
1308
- process.exit(code);
1309
- } else {
1310
- exitCallback(
1311
- new CommanderError(
1312
- code,
1313
- 'commander.executeSubCommandAsync',
1314
- '(close)',
1315
- ),
1316
- );
1317
- }
1318
- });
1319
- proc.on('error', (err) => {
1320
- // @ts-ignore: because err.code is an unknown property
1321
- if (err.code === 'ENOENT') {
1322
- this._checkForMissingExecutable(
1323
- executableFile,
1324
- executableDir,
1325
- subcommand._name,
1326
- );
1327
- // @ts-ignore: because err.code is an unknown property
1328
- } else if (err.code === 'EACCES') {
1329
- throw new Error(`'${executableFile}' not executable`);
1330
- }
1331
- if (!exitCallback) {
1332
- process.exit(1);
1333
- } else {
1334
- const wrappedError = new CommanderError(
1335
- 1,
1336
- 'commander.executeSubCommandAsync',
1337
- '(error)',
1338
- );
1339
- wrappedError.nestedError = err;
1340
- exitCallback(wrappedError);
1341
- }
1342
- });
1343
-
1344
- // Store the reference to the child process
1345
- this.runningCommand = proc;
1346
- }
1347
-
1348
- /**
1349
- * @private
1350
- */
1351
-
1352
- _dispatchSubcommand(commandName, operands, unknown) {
1353
- const subCommand = this._findCommand(commandName);
1354
- if (!subCommand) this.help({ error: true });
1355
-
1356
- subCommand._prepareForParse();
1357
- let promiseChain;
1358
- promiseChain = this._chainOrCallSubCommandHook(
1359
- promiseChain,
1360
- subCommand,
1361
- 'preSubcommand',
1362
- );
1363
- promiseChain = this._chainOrCall(promiseChain, () => {
1364
- if (subCommand._executableHandler) {
1365
- this._executeSubCommand(subCommand, operands.concat(unknown));
1366
- } else {
1367
- return subCommand._parseCommand(operands, unknown);
1368
- }
1369
- });
1370
- return promiseChain;
1371
- }
1372
-
1373
- /**
1374
- * Invoke help directly if possible, or dispatch if necessary.
1375
- * e.g. help foo
1376
- *
1377
- * @private
1378
- */
1379
-
1380
- _dispatchHelpCommand(subcommandName) {
1381
- if (!subcommandName) {
1382
- this.help();
1383
- }
1384
- const subCommand = this._findCommand(subcommandName);
1385
- if (subCommand && !subCommand._executableHandler) {
1386
- subCommand.help();
1387
- }
1388
-
1389
- // Fallback to parsing the help flag to invoke the help.
1390
- return this._dispatchSubcommand(
1391
- subcommandName,
1392
- [],
1393
- [this._getHelpOption()?.long ?? this._getHelpOption()?.short ?? '--help'],
1394
- );
1395
- }
1396
-
1397
- /**
1398
- * Check this.args against expected this.registeredArguments.
1399
- *
1400
- * @private
1401
- */
1402
-
1403
- _checkNumberOfArguments() {
1404
- // too few
1405
- this.registeredArguments.forEach((arg, i) => {
1406
- if (arg.required && this.args[i] == null) {
1407
- this.missingArgument(arg.name());
1408
- }
1409
- });
1410
- // too many
1411
- if (
1412
- this.registeredArguments.length > 0 &&
1413
- this.registeredArguments[this.registeredArguments.length - 1].variadic
1414
- ) {
1415
- return;
1416
- }
1417
- if (this.args.length > this.registeredArguments.length) {
1418
- this._excessArguments(this.args);
1419
- }
1420
- }
1421
-
1422
- /**
1423
- * Process this.args using this.registeredArguments and save as this.processedArgs!
1424
- *
1425
- * @private
1426
- */
1427
-
1428
- _processArguments() {
1429
- const myParseArg = (argument, value, previous) => {
1430
- // Extra processing for nice error message on parsing failure.
1431
- let parsedValue = value;
1432
- if (value !== null && argument.parseArg) {
1433
- const invalidValueMessage = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'.`;
1434
- parsedValue = this._callParseArg(
1435
- argument,
1436
- value,
1437
- previous,
1438
- invalidValueMessage,
1439
- );
1440
- }
1441
- return parsedValue;
1442
- };
1443
-
1444
- this._checkNumberOfArguments();
1445
-
1446
- const processedArgs = [];
1447
- this.registeredArguments.forEach((declaredArg, index) => {
1448
- let value = declaredArg.defaultValue;
1449
- if (declaredArg.variadic) {
1450
- // Collect together remaining arguments for passing together as an array.
1451
- if (index < this.args.length) {
1452
- value = this.args.slice(index);
1453
- if (declaredArg.parseArg) {
1454
- value = value.reduce((processed, v) => {
1455
- return myParseArg(declaredArg, v, processed);
1456
- }, declaredArg.defaultValue);
1457
- }
1458
- } else if (value === undefined) {
1459
- value = [];
1460
- }
1461
- } else if (index < this.args.length) {
1462
- value = this.args[index];
1463
- if (declaredArg.parseArg) {
1464
- value = myParseArg(declaredArg, value, declaredArg.defaultValue);
1465
- }
1466
- }
1467
- processedArgs[index] = value;
1468
- });
1469
- this.processedArgs = processedArgs;
1470
- }
1471
-
1472
- /**
1473
- * Once we have a promise we chain, but call synchronously until then.
1474
- *
1475
- * @param {(Promise|undefined)} promise
1476
- * @param {Function} fn
1477
- * @return {(Promise|undefined)}
1478
- * @private
1479
- */
1480
-
1481
- _chainOrCall(promise, fn) {
1482
- // thenable
1483
- if (promise?.then && typeof promise.then === 'function') {
1484
- // already have a promise, chain callback
1485
- return promise.then(() => fn());
1486
- }
1487
- // callback might return a promise
1488
- return fn();
1489
- }
1490
-
1491
- /**
1492
- *
1493
- * @param {(Promise|undefined)} promise
1494
- * @param {string} event
1495
- * @return {(Promise|undefined)}
1496
- * @private
1497
- */
1498
-
1499
- _chainOrCallHooks(promise, event) {
1500
- let result = promise;
1501
- const hooks = [];
1502
- this._getCommandAndAncestors()
1503
- .reverse()
1504
- .filter((cmd) => cmd._lifeCycleHooks[event] !== undefined)
1505
- .forEach((hookedCommand) => {
1506
- hookedCommand._lifeCycleHooks[event].forEach((callback) => {
1507
- hooks.push({ hookedCommand, callback });
1508
- });
1509
- });
1510
- if (event === 'postAction') {
1511
- hooks.reverse();
1512
- }
1513
-
1514
- hooks.forEach((hookDetail) => {
1515
- result = this._chainOrCall(result, () => {
1516
- return hookDetail.callback(hookDetail.hookedCommand, this);
1517
- });
1518
- });
1519
- return result;
1520
- }
1521
-
1522
- /**
1523
- *
1524
- * @param {(Promise|undefined)} promise
1525
- * @param {Command} subCommand
1526
- * @param {string} event
1527
- * @return {(Promise|undefined)}
1528
- * @private
1529
- */
1530
-
1531
- _chainOrCallSubCommandHook(promise, subCommand, event) {
1532
- let result = promise;
1533
- if (this._lifeCycleHooks[event] !== undefined) {
1534
- this._lifeCycleHooks[event].forEach((hook) => {
1535
- result = this._chainOrCall(result, () => {
1536
- return hook(this, subCommand);
1537
- });
1538
- });
1539
- }
1540
- return result;
1541
- }
1542
-
1543
- /**
1544
- * Process arguments in context of this command.
1545
- * Returns action result, in case it is a promise.
1546
- *
1547
- * @private
1548
- */
1549
-
1550
- _parseCommand(operands, unknown) {
1551
- const parsed = this.parseOptions(unknown);
1552
- this._parseOptionsEnv(); // after cli, so parseArg not called on both cli and env
1553
- this._parseOptionsImplied();
1554
- operands = operands.concat(parsed.operands);
1555
- unknown = parsed.unknown;
1556
- this.args = operands.concat(unknown);
1557
-
1558
- if (operands && this._findCommand(operands[0])) {
1559
- return this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
1560
- }
1561
- if (
1562
- this._getHelpCommand() &&
1563
- operands[0] === this._getHelpCommand().name()
1564
- ) {
1565
- return this._dispatchHelpCommand(operands[1]);
1566
- }
1567
- if (this._defaultCommandName) {
1568
- this._outputHelpIfRequested(unknown); // Run the help for default command from parent rather than passing to default command
1569
- return this._dispatchSubcommand(
1570
- this._defaultCommandName,
1571
- operands,
1572
- unknown,
1573
- );
1574
- }
1575
- if (
1576
- this.commands.length &&
1577
- this.args.length === 0 &&
1578
- !this._actionHandler &&
1579
- !this._defaultCommandName
1580
- ) {
1581
- // probably missing subcommand and no handler, user needs help (and exit)
1582
- this.help({ error: true });
1583
- }
1584
-
1585
- this._outputHelpIfRequested(parsed.unknown);
1586
- this._checkForMissingMandatoryOptions();
1587
- this._checkForConflictingOptions();
1588
-
1589
- // We do not always call this check to avoid masking a "better" error, like unknown command.
1590
- const checkForUnknownOptions = () => {
1591
- if (parsed.unknown.length > 0) {
1592
- this.unknownOption(parsed.unknown[0]);
1593
- }
1594
- };
1595
-
1596
- const commandEvent = `command:${this.name()}`;
1597
- if (this._actionHandler) {
1598
- checkForUnknownOptions();
1599
- this._processArguments();
1600
-
1601
- let promiseChain;
1602
- promiseChain = this._chainOrCallHooks(promiseChain, 'preAction');
1603
- promiseChain = this._chainOrCall(promiseChain, () =>
1604
- this._actionHandler(this.processedArgs),
1605
- );
1606
- if (this.parent) {
1607
- promiseChain = this._chainOrCall(promiseChain, () => {
1608
- this.parent.emit(commandEvent, operands, unknown); // legacy
1609
- });
1610
- }
1611
- promiseChain = this._chainOrCallHooks(promiseChain, 'postAction');
1612
- return promiseChain;
1613
- }
1614
- if (this.parent?.listenerCount(commandEvent)) {
1615
- checkForUnknownOptions();
1616
- this._processArguments();
1617
- this.parent.emit(commandEvent, operands, unknown); // legacy
1618
- } else if (operands.length) {
1619
- if (this._findCommand('*')) {
1620
- // legacy default command
1621
- return this._dispatchSubcommand('*', operands, unknown);
1622
- }
1623
- if (this.listenerCount('command:*')) {
1624
- // skip option check, emit event for possible misspelling suggestion
1625
- this.emit('command:*', operands, unknown);
1626
- } else if (this.commands.length) {
1627
- this.unknownCommand();
1628
- } else {
1629
- checkForUnknownOptions();
1630
- this._processArguments();
1631
- }
1632
- } else if (this.commands.length) {
1633
- checkForUnknownOptions();
1634
- // This command has subcommands and nothing hooked up at this level, so display help (and exit).
1635
- this.help({ error: true });
1636
- } else {
1637
- checkForUnknownOptions();
1638
- this._processArguments();
1639
- // fall through for caller to handle after calling .parse()
1640
- }
1641
- }
1642
-
1643
- /**
1644
- * Find matching command.
1645
- *
1646
- * @private
1647
- * @return {Command | undefined}
1648
- */
1649
- _findCommand(name) {
1650
- if (!name) return undefined;
1651
- return this.commands.find(
1652
- (cmd) => cmd._name === name || cmd._aliases.includes(name),
1653
- );
1654
- }
1655
-
1656
- /**
1657
- * Return an option matching `arg` if any.
1658
- *
1659
- * @param {string} arg
1660
- * @return {Option}
1661
- * @package
1662
- */
1663
-
1664
- _findOption(arg) {
1665
- return this.options.find((option) => option.is(arg));
1666
- }
1667
-
1668
- /**
1669
- * Display an error message if a mandatory option does not have a value.
1670
- * Called after checking for help flags in leaf subcommand.
1671
- *
1672
- * @private
1673
- */
1674
-
1675
- _checkForMissingMandatoryOptions() {
1676
- // Walk up hierarchy so can call in subcommand after checking for displaying help.
1677
- this._getCommandAndAncestors().forEach((cmd) => {
1678
- cmd.options.forEach((anOption) => {
1679
- if (
1680
- anOption.mandatory &&
1681
- cmd.getOptionValue(anOption.attributeName()) === undefined
1682
- ) {
1683
- cmd.missingMandatoryOptionValue(anOption);
1684
- }
1685
- });
1686
- });
1687
- }
1688
-
1689
- /**
1690
- * Display an error message if conflicting options are used together in this.
1691
- *
1692
- * @private
1693
- */
1694
- _checkForConflictingLocalOptions() {
1695
- const definedNonDefaultOptions = this.options.filter((option) => {
1696
- const optionKey = option.attributeName();
1697
- if (this.getOptionValue(optionKey) === undefined) {
1698
- return false;
1699
- }
1700
- return this.getOptionValueSource(optionKey) !== 'default';
1701
- });
1702
-
1703
- const optionsWithConflicting = definedNonDefaultOptions.filter(
1704
- (option) => option.conflictsWith.length > 0,
1705
- );
1706
-
1707
- optionsWithConflicting.forEach((option) => {
1708
- const conflictingAndDefined = definedNonDefaultOptions.find((defined) =>
1709
- option.conflictsWith.includes(defined.attributeName()),
1710
- );
1711
- if (conflictingAndDefined) {
1712
- this._conflictingOption(option, conflictingAndDefined);
1713
- }
1714
- });
1715
- }
1716
-
1717
- /**
1718
- * Display an error message if conflicting options are used together.
1719
- * Called after checking for help flags in leaf subcommand.
1720
- *
1721
- * @private
1722
- */
1723
- _checkForConflictingOptions() {
1724
- // Walk up hierarchy so can call in subcommand after checking for displaying help.
1725
- this._getCommandAndAncestors().forEach((cmd) => {
1726
- cmd._checkForConflictingLocalOptions();
1727
- });
1728
- }
1729
-
1730
- /**
1731
- * Parse options from `argv` removing known options,
1732
- * and return argv split into operands and unknown arguments.
1733
- *
1734
- * Side effects: modifies command by storing options. Does not reset state if called again.
1735
- *
1736
- * Examples:
1737
- *
1738
- * argv => operands, unknown
1739
- * --known kkk op => [op], []
1740
- * op --known kkk => [op], []
1741
- * sub --unknown uuu op => [sub], [--unknown uuu op]
1742
- * sub -- --unknown uuu op => [sub --unknown uuu op], []
1743
- *
1744
- * @param {string[]} args
1745
- * @return {{operands: string[], unknown: string[]}}
1746
- */
1747
-
1748
- parseOptions(args) {
1749
- const operands = []; // operands, not options or values
1750
- const unknown = []; // first unknown option and remaining unknown args
1751
- let dest = operands;
1752
-
1753
- function maybeOption(arg) {
1754
- return arg.length > 1 && arg[0] === '-';
1755
- }
1756
-
1757
- const negativeNumberArg = (arg) => {
1758
- // return false if not a negative number
1759
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
1760
- // negative number is ok unless digit used as an option in command hierarchy
1761
- return !this._getCommandAndAncestors().some((cmd) =>
1762
- cmd.options
1763
- .map((opt) => opt.short)
1764
- .some((short) => /^-\d$/.test(short)),
1765
- );
1766
- };
1767
-
1768
- // parse options
1769
- let activeVariadicOption = null;
1770
- let activeGroup = null; // working through group of short options, like -abc
1771
- let i = 0;
1772
- while (i < args.length || activeGroup) {
1773
- const arg = activeGroup ?? args[i++];
1774
- activeGroup = null;
1775
-
1776
- // literal
1777
- if (arg === '--') {
1778
- if (dest === unknown) dest.push(arg);
1779
- dest.push(...args.slice(i));
1780
- break;
1781
- }
1782
-
1783
- if (
1784
- activeVariadicOption &&
1785
- (!maybeOption(arg) || negativeNumberArg(arg))
1786
- ) {
1787
- this.emit(`option:${activeVariadicOption.name()}`, arg);
1788
- continue;
1789
- }
1790
- activeVariadicOption = null;
1791
-
1792
- if (maybeOption(arg)) {
1793
- const option = this._findOption(arg);
1794
- // recognised option, call listener to assign value with possible custom processing
1795
- if (option) {
1796
- if (option.required) {
1797
- const value = args[i++];
1798
- if (value === undefined) this.optionMissingArgument(option);
1799
- this.emit(`option:${option.name()}`, value);
1800
- } else if (option.optional) {
1801
- let value = null;
1802
- // historical behaviour is optional value is following arg unless an option
1803
- if (
1804
- i < args.length &&
1805
- (!maybeOption(args[i]) || negativeNumberArg(args[i]))
1806
- ) {
1807
- value = args[i++];
1808
- }
1809
- this.emit(`option:${option.name()}`, value);
1810
- } else {
1811
- // boolean flag
1812
- this.emit(`option:${option.name()}`);
1813
- }
1814
- activeVariadicOption = option.variadic ? option : null;
1815
- continue;
1816
- }
1817
- }
1818
-
1819
- // Look for combo options following single dash, eat first one if known.
1820
- if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') {
1821
- const option = this._findOption(`-${arg[1]}`);
1822
- if (option) {
1823
- if (
1824
- option.required ||
1825
- (option.optional && this._combineFlagAndOptionalValue)
1826
- ) {
1827
- // option with value following in same argument
1828
- this.emit(`option:${option.name()}`, arg.slice(2));
1829
- } else {
1830
- // boolean option
1831
- this.emit(`option:${option.name()}`);
1832
- // remove the processed option and keep processing group
1833
- activeGroup = `-${arg.slice(2)}`;
1834
- }
1835
- continue;
1836
- }
1837
- }
1838
-
1839
- // Look for known long flag with value, like --foo=bar
1840
- if (/^--[^=]+=/.test(arg)) {
1841
- const index = arg.indexOf('=');
1842
- const option = this._findOption(arg.slice(0, index));
1843
- if (option && (option.required || option.optional)) {
1844
- this.emit(`option:${option.name()}`, arg.slice(index + 1));
1845
- continue;
1846
- }
1847
- }
1848
-
1849
- // Not a recognised option by this command.
1850
- // Might be a command-argument, or subcommand option, or unknown option, or help command or option.
1851
-
1852
- // An unknown option means further arguments also classified as unknown so can be reprocessed by subcommands.
1853
- // A negative number in a leaf command is not an unknown option.
1854
- if (
1855
- dest === operands &&
1856
- maybeOption(arg) &&
1857
- !(this.commands.length === 0 && negativeNumberArg(arg))
1858
- ) {
1859
- dest = unknown;
1860
- }
1861
-
1862
- // If using positionalOptions, stop processing our options at subcommand.
1863
- if (
1864
- (this._enablePositionalOptions || this._passThroughOptions) &&
1865
- operands.length === 0 &&
1866
- unknown.length === 0
1867
- ) {
1868
- if (this._findCommand(arg)) {
1869
- operands.push(arg);
1870
- unknown.push(...args.slice(i));
1871
- break;
1872
- } else if (
1873
- this._getHelpCommand() &&
1874
- arg === this._getHelpCommand().name()
1875
- ) {
1876
- operands.push(arg, ...args.slice(i));
1877
- break;
1878
- } else if (this._defaultCommandName) {
1879
- unknown.push(arg, ...args.slice(i));
1880
- break;
1881
- }
1882
- }
1883
-
1884
- // If using passThroughOptions, stop processing options at first command-argument.
1885
- if (this._passThroughOptions) {
1886
- dest.push(arg, ...args.slice(i));
1887
- break;
1888
- }
1889
-
1890
- // add arg
1891
- dest.push(arg);
1892
- }
1893
-
1894
- return { operands, unknown };
1895
- }
1896
-
1897
- /**
1898
- * Return an object containing local option values as key-value pairs.
1899
- *
1900
- * @return {object}
1901
- */
1902
- opts() {
1903
- if (this._storeOptionsAsProperties) {
1904
- // Preserve original behaviour so backwards compatible when still using properties
1905
- const result = {};
1906
- const len = this.options.length;
1907
-
1908
- for (let i = 0; i < len; i++) {
1909
- const key = this.options[i].attributeName();
1910
- result[key] =
1911
- key === this._versionOptionName ? this._version : this[key];
1912
- }
1913
- return result;
1914
- }
1915
-
1916
- return this._optionValues;
1917
- }
1918
-
1919
- /**
1920
- * Return an object containing merged local and global option values as key-value pairs.
1921
- *
1922
- * @return {object}
1923
- */
1924
- optsWithGlobals() {
1925
- // globals overwrite locals
1926
- return this._getCommandAndAncestors().reduce(
1927
- (combinedOptions, cmd) => Object.assign(combinedOptions, cmd.opts()),
1928
- {},
1929
- );
1930
- }
1931
-
1932
- /**
1933
- * Display error message and exit (or call exitOverride).
1934
- *
1935
- * @param {string} message
1936
- * @param {object} [errorOptions]
1937
- * @param {string} [errorOptions.code] - an id string representing the error
1938
- * @param {number} [errorOptions.exitCode] - used with process.exit
1939
- */
1940
- error(message, errorOptions) {
1941
- // output handling
1942
- this._outputConfiguration.outputError(
1943
- `${message}\n`,
1944
- this._outputConfiguration.writeErr,
1945
- );
1946
- if (typeof this._showHelpAfterError === 'string') {
1947
- this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
1948
- } else if (this._showHelpAfterError) {
1949
- this._outputConfiguration.writeErr('\n');
1950
- this.outputHelp({ error: true });
1951
- }
1952
-
1953
- // exit handling
1954
- const config = errorOptions || {};
1955
- const exitCode = config.exitCode || 1;
1956
- const code = config.code || 'commander.error';
1957
- this._exit(exitCode, code, message);
1958
- }
1959
-
1960
- /**
1961
- * Apply any option related environment variables, if option does
1962
- * not have a value from cli or client code.
1963
- *
1964
- * @private
1965
- */
1966
- _parseOptionsEnv() {
1967
- this.options.forEach((option) => {
1968
- if (option.envVar && option.envVar in process.env) {
1969
- const optionKey = option.attributeName();
1970
- // Priority check. Do not overwrite cli or options from unknown source (client-code).
1971
- if (
1972
- this.getOptionValue(optionKey) === undefined ||
1973
- ['default', 'config', 'env'].includes(
1974
- this.getOptionValueSource(optionKey),
1975
- )
1976
- ) {
1977
- if (option.required || option.optional) {
1978
- // option can take a value
1979
- // keep very simple, optional always takes value
1980
- this.emit(`optionEnv:${option.name()}`, process.env[option.envVar]);
1981
- } else {
1982
- // boolean
1983
- // keep very simple, only care that envVar defined and not the value
1984
- this.emit(`optionEnv:${option.name()}`);
1985
- }
1986
- }
1987
- }
1988
- });
1989
- }
1990
-
1991
- /**
1992
- * Apply any implied option values, if option is undefined or default value.
1993
- *
1994
- * @private
1995
- */
1996
- _parseOptionsImplied() {
1997
- const dualHelper = new DualOptions(this.options);
1998
- const hasCustomOptionValue = (optionKey) => {
1999
- return (
2000
- this.getOptionValue(optionKey) !== undefined &&
2001
- !['default', 'implied'].includes(this.getOptionValueSource(optionKey))
2002
- );
2003
- };
2004
- this.options
2005
- .filter(
2006
- (option) =>
2007
- option.implied !== undefined &&
2008
- hasCustomOptionValue(option.attributeName()) &&
2009
- dualHelper.valueFromOption(
2010
- this.getOptionValue(option.attributeName()),
2011
- option,
2012
- ),
2013
- )
2014
- .forEach((option) => {
2015
- Object.keys(option.implied)
2016
- .filter((impliedKey) => !hasCustomOptionValue(impliedKey))
2017
- .forEach((impliedKey) => {
2018
- this.setOptionValueWithSource(
2019
- impliedKey,
2020
- option.implied[impliedKey],
2021
- 'implied',
2022
- );
2023
- });
2024
- });
2025
- }
2026
-
2027
- /**
2028
- * Argument `name` is missing.
2029
- *
2030
- * @param {string} name
2031
- * @private
2032
- */
2033
-
2034
- missingArgument(name) {
2035
- const message = `error: missing required argument '${name}'`;
2036
- this.error(message, { code: 'commander.missingArgument' });
2037
- }
2038
-
2039
- /**
2040
- * `Option` is missing an argument.
2041
- *
2042
- * @param {Option} option
2043
- * @private
2044
- */
2045
-
2046
- optionMissingArgument(option) {
2047
- const message = `error: option '${option.flags}' argument missing`;
2048
- this.error(message, { code: 'commander.optionMissingArgument' });
2049
- }
2050
-
2051
- /**
2052
- * `Option` does not have a value, and is a mandatory option.
2053
- *
2054
- * @param {Option} option
2055
- * @private
2056
- */
2057
-
2058
- missingMandatoryOptionValue(option) {
2059
- const message = `error: required option '${option.flags}' not specified`;
2060
- this.error(message, { code: 'commander.missingMandatoryOptionValue' });
2061
- }
2062
-
2063
- /**
2064
- * `Option` conflicts with another option.
2065
- *
2066
- * @param {Option} option
2067
- * @param {Option} conflictingOption
2068
- * @private
2069
- */
2070
- _conflictingOption(option, conflictingOption) {
2071
- // The calling code does not know whether a negated option is the source of the
2072
- // value, so do some work to take an educated guess.
2073
- const findBestOptionFromValue = (option) => {
2074
- const optionKey = option.attributeName();
2075
- const optionValue = this.getOptionValue(optionKey);
2076
- const negativeOption = this.options.find(
2077
- (target) => target.negate && optionKey === target.attributeName(),
2078
- );
2079
- const positiveOption = this.options.find(
2080
- (target) => !target.negate && optionKey === target.attributeName(),
2081
- );
2082
- if (
2083
- negativeOption &&
2084
- ((negativeOption.presetArg === undefined && optionValue === false) ||
2085
- (negativeOption.presetArg !== undefined &&
2086
- optionValue === negativeOption.presetArg))
2087
- ) {
2088
- return negativeOption;
2089
- }
2090
- return positiveOption || option;
2091
- };
2092
-
2093
- const getErrorMessage = (option) => {
2094
- const bestOption = findBestOptionFromValue(option);
2095
- const optionKey = bestOption.attributeName();
2096
- const source = this.getOptionValueSource(optionKey);
2097
- if (source === 'env') {
2098
- return `environment variable '${bestOption.envVar}'`;
2099
- }
2100
- return `option '${bestOption.flags}'`;
2101
- };
2102
-
2103
- const message = `error: ${getErrorMessage(option)} cannot be used with ${getErrorMessage(conflictingOption)}`;
2104
- this.error(message, { code: 'commander.conflictingOption' });
2105
- }
2106
-
2107
- /**
2108
- * Unknown option `flag`.
2109
- *
2110
- * @param {string} flag
2111
- * @private
2112
- */
2113
-
2114
- unknownOption(flag) {
2115
- if (this._allowUnknownOption) return;
2116
- let suggestion = '';
2117
-
2118
- if (flag.startsWith('--') && this._showSuggestionAfterError) {
2119
- // Looping to pick up the global options too
2120
- let candidateFlags = [];
2121
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2122
- let command = this;
2123
- do {
2124
- const moreFlags = command
2125
- .createHelp()
2126
- .visibleOptions(command)
2127
- .filter((option) => option.long)
2128
- .map((option) => option.long);
2129
- candidateFlags = candidateFlags.concat(moreFlags);
2130
- command = command.parent;
2131
- } while (command && !command._enablePositionalOptions);
2132
- suggestion = suggestSimilar(flag, candidateFlags);
2133
- }
2134
-
2135
- const message = `error: unknown option '${flag}'${suggestion}`;
2136
- this.error(message, { code: 'commander.unknownOption' });
2137
- }
2138
-
2139
- /**
2140
- * Excess arguments, more than expected.
2141
- *
2142
- * @param {string[]} receivedArgs
2143
- * @private
2144
- */
2145
-
2146
- _excessArguments(receivedArgs) {
2147
- if (this._allowExcessArguments) return;
2148
-
2149
- const expected = this.registeredArguments.length;
2150
- const s = expected === 1 ? '' : 's';
2151
- const forSubcommand = this.parent ? ` for '${this.name()}'` : '';
2152
- const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
2153
- this.error(message, { code: 'commander.excessArguments' });
2154
- }
2155
-
2156
- /**
2157
- * Unknown command.
2158
- *
2159
- * @private
2160
- */
2161
-
2162
- unknownCommand() {
2163
- const unknownName = this.args[0];
2164
- let suggestion = '';
2165
-
2166
- if (this._showSuggestionAfterError) {
2167
- const candidateNames = [];
2168
- this.createHelp()
2169
- .visibleCommands(this)
2170
- .forEach((command) => {
2171
- candidateNames.push(command.name());
2172
- // just visible alias
2173
- if (command.alias()) candidateNames.push(command.alias());
2174
- });
2175
- suggestion = suggestSimilar(unknownName, candidateNames);
2176
- }
2177
-
2178
- const message = `error: unknown command '${unknownName}'${suggestion}`;
2179
- this.error(message, { code: 'commander.unknownCommand' });
2180
- }
2181
-
2182
- /**
2183
- * Get or set the program version.
2184
- *
2185
- * This method auto-registers the "-V, --version" option which will print the version number.
2186
- *
2187
- * You can optionally supply the flags and description to override the defaults.
2188
- *
2189
- * @param {string} [str]
2190
- * @param {string} [flags]
2191
- * @param {string} [description]
2192
- * @return {(this | string | undefined)} `this` command for chaining, or version string if no arguments
2193
- */
2194
-
2195
- version(str, flags, description) {
2196
- if (str === undefined) return this._version;
2197
- this._version = str;
2198
- flags = flags || '-V, --version';
2199
- description = description || 'output the version number';
2200
- const versionOption = this.createOption(flags, description);
2201
- this._versionOptionName = versionOption.attributeName();
2202
- this._registerOption(versionOption);
2203
-
2204
- this.on('option:' + versionOption.name(), () => {
2205
- this._outputConfiguration.writeOut(`${str}\n`);
2206
- this._exit(0, 'commander.version', str);
2207
- });
2208
- return this;
2209
- }
2210
-
2211
- /**
2212
- * Set the description.
2213
- *
2214
- * @param {string} [str]
2215
- * @param {object} [argsDescription]
2216
- * @return {(string|Command)}
2217
- */
2218
- description(str, argsDescription) {
2219
- if (str === undefined && argsDescription === undefined)
2220
- return this._description;
2221
- this._description = str;
2222
- if (argsDescription) {
2223
- this._argsDescription = argsDescription;
2224
- }
2225
- return this;
2226
- }
2227
-
2228
- /**
2229
- * Set the summary. Used when listed as subcommand of parent.
2230
- *
2231
- * @param {string} [str]
2232
- * @return {(string|Command)}
2233
- */
2234
- summary(str) {
2235
- if (str === undefined) return this._summary;
2236
- this._summary = str;
2237
- return this;
2238
- }
2239
-
2240
- /**
2241
- * Set an alias for the command.
2242
- *
2243
- * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
2244
- *
2245
- * @param {string} [alias]
2246
- * @return {(string|Command)}
2247
- */
2248
-
2249
- alias(alias) {
2250
- if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
2251
-
2252
- /** @type {Command} */
2253
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2254
- let command = this;
2255
- if (
2256
- this.commands.length !== 0 &&
2257
- this.commands[this.commands.length - 1]._executableHandler
2258
- ) {
2259
- // assume adding alias for last added executable subcommand, rather than this
2260
- command = this.commands[this.commands.length - 1];
2261
- }
2262
-
2263
- if (alias === command._name)
2264
- throw new Error("Command alias can't be the same as its name");
2265
- const matchingCommand = this.parent?._findCommand(alias);
2266
- if (matchingCommand) {
2267
- // c.f. _registerCommand
2268
- const existingCmd = [matchingCommand.name()]
2269
- .concat(matchingCommand.aliases())
2270
- .join('|');
2271
- throw new Error(
2272
- `cannot add alias '${alias}' to command '${this.name()}' as already have command '${existingCmd}'`,
2273
- );
2274
- }
2275
-
2276
- command._aliases.push(alias);
2277
- return this;
2278
- }
2279
-
2280
- /**
2281
- * Set aliases for the command.
2282
- *
2283
- * Only the first alias is shown in the auto-generated help.
2284
- *
2285
- * @param {string[]} [aliases]
2286
- * @return {(string[]|Command)}
2287
- */
2288
-
2289
- aliases(aliases) {
2290
- // Getter for the array of aliases is the main reason for having aliases() in addition to alias().
2291
- if (aliases === undefined) return this._aliases;
2292
-
2293
- aliases.forEach((alias) => this.alias(alias));
2294
- return this;
2295
- }
2296
-
2297
- /**
2298
- * Set / get the command usage `str`.
2299
- *
2300
- * @param {string} [str]
2301
- * @return {(string|Command)}
2302
- */
2303
-
2304
- usage(str) {
2305
- if (str === undefined) {
2306
- if (this._usage) return this._usage;
2307
-
2308
- const args = this.registeredArguments.map((arg) => {
2309
- return humanReadableArgName(arg);
2310
- });
2311
- return []
2312
- .concat(
2313
- this.options.length || this._helpOption !== null ? '[options]' : [],
2314
- this.commands.length ? '[command]' : [],
2315
- this.registeredArguments.length ? args : [],
2316
- )
2317
- .join(' ');
2318
- }
2319
-
2320
- this._usage = str;
2321
- return this;
2322
- }
2323
-
2324
- /**
2325
- * Get or set the name of the command.
2326
- *
2327
- * @param {string} [str]
2328
- * @return {(string|Command)}
2329
- */
2330
-
2331
- name(str) {
2332
- if (str === undefined) return this._name;
2333
- this._name = str;
2334
- return this;
2335
- }
2336
-
2337
- /**
2338
- * Set/get the help group heading for this subcommand in parent command's help.
2339
- *
2340
- * @param {string} [heading]
2341
- * @return {Command | string}
2342
- */
2343
-
2344
- helpGroup(heading) {
2345
- if (heading === undefined) return this._helpGroupHeading ?? '';
2346
- this._helpGroupHeading = heading;
2347
- return this;
2348
- }
2349
-
2350
- /**
2351
- * Set/get the default help group heading for subcommands added to this command.
2352
- * (This does not override a group set directly on the subcommand using .helpGroup().)
2353
- *
2354
- * @example
2355
- * program.commandsGroup('Development Commands:);
2356
- * program.command('watch')...
2357
- * program.command('lint')...
2358
- * ...
2359
- *
2360
- * @param {string} [heading]
2361
- * @returns {Command | string}
2362
- */
2363
- commandsGroup(heading) {
2364
- if (heading === undefined) return this._defaultCommandGroup ?? '';
2365
- this._defaultCommandGroup = heading;
2366
- return this;
2367
- }
2368
-
2369
- /**
2370
- * Set/get the default help group heading for options added to this command.
2371
- * (This does not override a group set directly on the option using .helpGroup().)
2372
- *
2373
- * @example
2374
- * program
2375
- * .optionsGroup('Development Options:')
2376
- * .option('-d, --debug', 'output extra debugging')
2377
- * .option('-p, --profile', 'output profiling information')
2378
- *
2379
- * @param {string} [heading]
2380
- * @returns {Command | string}
2381
- */
2382
- optionsGroup(heading) {
2383
- if (heading === undefined) return this._defaultOptionGroup ?? '';
2384
- this._defaultOptionGroup = heading;
2385
- return this;
2386
- }
2387
-
2388
- /**
2389
- * @param {Option} option
2390
- * @private
2391
- */
2392
- _initOptionGroup(option) {
2393
- if (this._defaultOptionGroup && !option.helpGroupHeading)
2394
- option.helpGroup(this._defaultOptionGroup);
2395
- }
2396
-
2397
- /**
2398
- * @param {Command} cmd
2399
- * @private
2400
- */
2401
- _initCommandGroup(cmd) {
2402
- if (this._defaultCommandGroup && !cmd.helpGroup())
2403
- cmd.helpGroup(this._defaultCommandGroup);
2404
- }
2405
-
2406
- /**
2407
- * Set the name of the command from script filename, such as process.argv[1],
2408
- * or require.main.filename, or __filename.
2409
- *
2410
- * (Used internally and public although not documented in README.)
2411
- *
2412
- * @example
2413
- * program.nameFromFilename(require.main.filename);
2414
- *
2415
- * @param {string} filename
2416
- * @return {Command}
2417
- */
2418
-
2419
- nameFromFilename(filename) {
2420
- this._name = path.basename(filename, path.extname(filename));
2421
-
2422
- return this;
2423
- }
2424
-
2425
- /**
2426
- * Get or set the directory for searching for executable subcommands of this command.
2427
- *
2428
- * @example
2429
- * program.executableDir(__dirname);
2430
- * // or
2431
- * program.executableDir('subcommands');
2432
- *
2433
- * @param {string} [path]
2434
- * @return {(string|null|Command)}
2435
- */
2436
-
2437
- executableDir(path) {
2438
- if (path === undefined) return this._executableDir;
2439
- this._executableDir = path;
2440
- return this;
2441
- }
2442
-
2443
- /**
2444
- * Return program help documentation.
2445
- *
2446
- * @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout
2447
- * @return {string}
2448
- */
2449
-
2450
- helpInformation(contextOptions) {
2451
- const helper = this.createHelp();
2452
- const context = this._getOutputContext(contextOptions);
2453
- helper.prepareContext({
2454
- error: context.error,
2455
- helpWidth: context.helpWidth,
2456
- outputHasColors: context.hasColors,
2457
- });
2458
- const text = helper.formatHelp(this, helper);
2459
- if (context.hasColors) return text;
2460
- return this._outputConfiguration.stripColor(text);
2461
- }
2462
-
2463
- /**
2464
- * @typedef HelpContext
2465
- * @type {object}
2466
- * @property {boolean} error
2467
- * @property {number} helpWidth
2468
- * @property {boolean} hasColors
2469
- * @property {function} write - includes stripColor if needed
2470
- *
2471
- * @returns {HelpContext}
2472
- * @private
2473
- */
2474
-
2475
- _getOutputContext(contextOptions) {
2476
- contextOptions = contextOptions || {};
2477
- const error = !!contextOptions.error;
2478
- let baseWrite;
2479
- let hasColors;
2480
- let helpWidth;
2481
- if (error) {
2482
- baseWrite = (str) => this._outputConfiguration.writeErr(str);
2483
- hasColors = this._outputConfiguration.getErrHasColors();
2484
- helpWidth = this._outputConfiguration.getErrHelpWidth();
2485
- } else {
2486
- baseWrite = (str) => this._outputConfiguration.writeOut(str);
2487
- hasColors = this._outputConfiguration.getOutHasColors();
2488
- helpWidth = this._outputConfiguration.getOutHelpWidth();
2489
- }
2490
- const write = (str) => {
2491
- if (!hasColors) str = this._outputConfiguration.stripColor(str);
2492
- return baseWrite(str);
2493
- };
2494
- return { error, write, hasColors, helpWidth };
2495
- }
2496
-
2497
- /**
2498
- * Output help information for this command.
2499
- *
2500
- * Outputs built-in help, and custom text added using `.addHelpText()`.
2501
- *
2502
- * @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout
2503
- */
2504
-
2505
- outputHelp(contextOptions) {
2506
- let deprecatedCallback;
2507
- if (typeof contextOptions === 'function') {
2508
- deprecatedCallback = contextOptions;
2509
- contextOptions = undefined;
2510
- }
2511
-
2512
- const outputContext = this._getOutputContext(contextOptions);
2513
- /** @type {HelpTextEventContext} */
2514
- const eventContext = {
2515
- error: outputContext.error,
2516
- write: outputContext.write,
2517
- command: this,
2518
- };
2519
-
2520
- this._getCommandAndAncestors()
2521
- .reverse()
2522
- .forEach((command) => command.emit('beforeAllHelp', eventContext));
2523
- this.emit('beforeHelp', eventContext);
2524
-
2525
- let helpInformation = this.helpInformation({ error: outputContext.error });
2526
- if (deprecatedCallback) {
2527
- helpInformation = deprecatedCallback(helpInformation);
2528
- if (
2529
- typeof helpInformation !== 'string' &&
2530
- !Buffer.isBuffer(helpInformation)
2531
- ) {
2532
- throw new Error('outputHelp callback must return a string or a Buffer');
2533
- }
2534
- }
2535
- outputContext.write(helpInformation);
2536
-
2537
- if (this._getHelpOption()?.long) {
2538
- this.emit(this._getHelpOption().long); // deprecated
2539
- }
2540
- this.emit('afterHelp', eventContext);
2541
- this._getCommandAndAncestors().forEach((command) =>
2542
- command.emit('afterAllHelp', eventContext),
2543
- );
2544
- }
2545
-
2546
- /**
2547
- * You can pass in flags and a description to customise the built-in help option.
2548
- * Pass in false to disable the built-in help option.
2549
- *
2550
- * @example
2551
- * program.helpOption('-?, --help' 'show help'); // customise
2552
- * program.helpOption(false); // disable
2553
- *
2554
- * @param {(string | boolean)} flags
2555
- * @param {string} [description]
2556
- * @return {Command} `this` command for chaining
2557
- */
2558
-
2559
- helpOption(flags, description) {
2560
- // Support enabling/disabling built-in help option.
2561
- if (typeof flags === 'boolean') {
2562
- if (flags) {
2563
- if (this._helpOption === null) this._helpOption = undefined; // reenable
2564
- if (this._defaultOptionGroup) {
2565
- // make the option to store the group
2566
- this._initOptionGroup(this._getHelpOption());
2567
- }
2568
- } else {
2569
- this._helpOption = null; // disable
2570
- }
2571
- return this;
2572
- }
2573
-
2574
- // Customise flags and description.
2575
- this._helpOption = this.createOption(
2576
- flags ?? '-h, --help',
2577
- description ?? 'display help for command',
2578
- );
2579
- // init group unless lazy create
2580
- if (flags || description) this._initOptionGroup(this._helpOption);
2581
-
2582
- return this;
2583
- }
2584
-
2585
- /**
2586
- * Lazy create help option.
2587
- * Returns null if has been disabled with .helpOption(false).
2588
- *
2589
- * @returns {(Option | null)} the help option
2590
- * @package
2591
- */
2592
- _getHelpOption() {
2593
- // Lazy create help option on demand.
2594
- if (this._helpOption === undefined) {
2595
- this.helpOption(undefined, undefined);
2596
- }
2597
- return this._helpOption;
2598
- }
2599
-
2600
- /**
2601
- * Supply your own option to use for the built-in help option.
2602
- * This is an alternative to using helpOption() to customise the flags and description etc.
2603
- *
2604
- * @param {Option} option
2605
- * @return {Command} `this` command for chaining
2606
- */
2607
- addHelpOption(option) {
2608
- this._helpOption = option;
2609
- this._initOptionGroup(option);
2610
- return this;
2611
- }
2612
-
2613
- /**
2614
- * Output help information and exit.
2615
- *
2616
- * Outputs built-in help, and custom text added using `.addHelpText()`.
2617
- *
2618
- * @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout
2619
- */
2620
-
2621
- help(contextOptions) {
2622
- this.outputHelp(contextOptions);
2623
- let exitCode = Number(process.exitCode ?? 0); // process.exitCode does allow a string or an integer, but we prefer just a number
2624
- if (
2625
- exitCode === 0 &&
2626
- contextOptions &&
2627
- typeof contextOptions !== 'function' &&
2628
- contextOptions.error
2629
- ) {
2630
- exitCode = 1;
2631
- }
2632
- // message: do not have all displayed text available so only passing placeholder.
2633
- this._exit(exitCode, 'commander.help', '(outputHelp)');
2634
- }
2635
-
2636
- /**
2637
- * // Do a little typing to coordinate emit and listener for the help text events.
2638
- * @typedef HelpTextEventContext
2639
- * @type {object}
2640
- * @property {boolean} error
2641
- * @property {Command} command
2642
- * @property {function} write
2643
- */
2644
-
2645
- /**
2646
- * Add additional text to be displayed with the built-in help.
2647
- *
2648
- * Position is 'before' or 'after' to affect just this command,
2649
- * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
2650
- *
2651
- * @param {string} position - before or after built-in help
2652
- * @param {(string | Function)} text - string to add, or a function returning a string
2653
- * @return {Command} `this` command for chaining
2654
- */
2655
-
2656
- addHelpText(position, text) {
2657
- const allowedValues = ['beforeAll', 'before', 'after', 'afterAll'];
2658
- if (!allowedValues.includes(position)) {
2659
- throw new Error(`Unexpected value for position to addHelpText.
2660
- Expecting one of '${allowedValues.join("', '")}'`);
2661
- }
2662
-
2663
- const helpEvent = `${position}Help`;
2664
- this.on(helpEvent, (/** @type {HelpTextEventContext} */ context) => {
2665
- let helpStr;
2666
- if (typeof text === 'function') {
2667
- helpStr = text({ error: context.error, command: context.command });
2668
- } else {
2669
- helpStr = text;
2670
- }
2671
- // Ignore falsy value when nothing to output.
2672
- if (helpStr) {
2673
- context.write(`${helpStr}\n`);
2674
- }
2675
- });
2676
- return this;
2677
- }
2678
-
2679
- /**
2680
- * Output help information if help flags specified
2681
- *
2682
- * @param {Array} args - array of options to search for help flags
2683
- * @private
2684
- */
2685
-
2686
- _outputHelpIfRequested(args) {
2687
- const helpOption = this._getHelpOption();
2688
- const helpRequested = helpOption && args.find((arg) => helpOption.is(arg));
2689
- if (helpRequested) {
2690
- this.outputHelp();
2691
- // (Do not have all displayed text available so only passing placeholder.)
2692
- this._exit(0, 'commander.helpDisplayed', '(outputHelp)');
2693
- }
2694
- }
2695
- }
2696
-
2697
- /**
2698
- * Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command).
2699
- *
2700
- * @param {string[]} args - array of arguments from node.execArgv
2701
- * @returns {string[]}
2702
- * @private
2703
- */
2704
-
2705
- function incrementNodeInspectorPort(args) {
2706
- // Testing for these options:
2707
- // --inspect[=[host:]port]
2708
- // --inspect-brk[=[host:]port]
2709
- // --inspect-port=[host:]port
2710
- return args.map((arg) => {
2711
- if (!arg.startsWith('--inspect')) {
2712
- return arg;
2713
- }
2714
- let debugOption;
2715
- let debugHost = '127.0.0.1';
2716
- let debugPort = '9229';
2717
- let match;
2718
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
2719
- // e.g. --inspect
2720
- debugOption = match[1];
2721
- } else if (
2722
- (match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null
2723
- ) {
2724
- debugOption = match[1];
2725
- if (/^\d+$/.test(match[3])) {
2726
- // e.g. --inspect=1234
2727
- debugPort = match[3];
2728
- } else {
2729
- // e.g. --inspect=localhost
2730
- debugHost = match[3];
2731
- }
2732
- } else if (
2733
- (match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null
2734
- ) {
2735
- // e.g. --inspect=localhost:1234
2736
- debugOption = match[1];
2737
- debugHost = match[3];
2738
- debugPort = match[4];
2739
- }
2740
-
2741
- if (debugOption && debugPort !== '0') {
2742
- return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
2743
- }
2744
- return arg;
2745
- });
2746
- }
2747
-
2748
- /**
2749
- * @returns {boolean | undefined}
2750
- * @package
2751
- */
2752
- function useColor() {
2753
- // Test for common conventions.
2754
- // NB: the observed behaviour is in combination with how author adds color! For example:
2755
- // - we do not test NODE_DISABLE_COLORS, but util:styletext does
2756
- // - we do test NO_COLOR, but Chalk does not
2757
- //
2758
- // References:
2759
- // https://no-color.org
2760
- // https://bixense.com/clicolors/
2761
- // https://github.com/nodejs/node/blob/0a00217a5f67ef4a22384cfc80eb6dd9a917fdc1/lib/internal/tty.js#L109
2762
- // https://github.com/chalk/supports-color/blob/c214314a14bcb174b12b3014b2b0a8de375029ae/index.js#L33
2763
- // (https://force-color.org recent web page from 2023, does not match major javascript implementations)
2764
-
2765
- if (
2766
- process.env.NO_COLOR ||
2767
- process.env.FORCE_COLOR === '0' ||
2768
- process.env.FORCE_COLOR === 'false'
2769
- )
2770
- return false;
2771
- if (process.env.FORCE_COLOR || process.env.CLICOLOR_FORCE !== undefined)
2772
- return true;
2773
- return undefined;
2774
- }
2775
-
2776
- exports.Command = Command;
2777
- exports.useColor = useColor; // exporting for tests