@aws-amplify/graphql-model-transformer 1.3.4-agqlac.0 → 1.4.0-rds.0

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 (1754) hide show
  1. package/API.md +3 -3
  2. package/CHANGELOG.md +5 -2
  3. package/lib/rds-lambda.zip +0 -0
  4. package/lib/rds-notification-lambda.zip +0 -0
  5. package/lib/rds-patching-lambda.zip +0 -0
  6. package/lib/resolvers/dynamodb/mutation.d.ts +1 -1
  7. package/lib/resolvers/dynamodb/mutation.d.ts.map +1 -1
  8. package/lib/resolvers/dynamodb/mutation.js +1 -1
  9. package/lib/resolvers/dynamodb/mutation.js.map +1 -1
  10. package/lib/resolvers/generators/dynamodb-vtl-generator.d.ts +1 -1
  11. package/lib/resolvers/generators/dynamodb-vtl-generator.d.ts.map +1 -1
  12. package/lib/resolvers/generators/dynamodb-vtl-generator.js +2 -2
  13. package/lib/resolvers/generators/dynamodb-vtl-generator.js.map +1 -1
  14. package/lib/resolvers/generators/rds-vtl-generator.d.ts +1 -1
  15. package/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
  16. package/lib/resolvers/generators/rds-vtl-generator.js +2 -2
  17. package/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
  18. package/lib/resolvers/generators/vtl-generator.d.ts +1 -1
  19. package/lib/resolvers/generators/vtl-generator.d.ts.map +1 -1
  20. package/lib/resolvers/rds/mutation.d.ts +1 -1
  21. package/lib/resolvers/rds/mutation.d.ts.map +1 -1
  22. package/lib/resolvers/rds/mutation.js +59 -61
  23. package/lib/resolvers/rds/mutation.js.map +1 -1
  24. package/lib/resolvers/rds/resolver.d.ts +11 -5
  25. package/lib/resolvers/rds/resolver.d.ts.map +1 -1
  26. package/lib/resolvers/rds/resolver.js +160 -24
  27. package/lib/resolvers/rds/resolver.js.map +1 -1
  28. package/lib/resources/model-resource-generator.d.ts.map +1 -1
  29. package/lib/resources/model-resource-generator.js +2 -1
  30. package/lib/resources/model-resource-generator.js.map +1 -1
  31. package/lib/resources/rds-model-resource-generator.d.ts +1 -1
  32. package/lib/resources/rds-model-resource-generator.d.ts.map +1 -1
  33. package/lib/resources/rds-model-resource-generator.js +25 -3
  34. package/lib/resources/rds-model-resource-generator.js.map +1 -1
  35. package/package.json +11 -15
  36. package/publish-notification-lambda/README.md +39 -0
  37. package/publish-notification-lambda/node_modules/.package-lock.json +1930 -0
  38. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md +46 -0
  39. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/LICENSE +202 -0
  40. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/README.md +20 -0
  41. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt +15 -0
  42. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt +12 -0
  43. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md +142 -0
  44. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json +3 -0
  45. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json +37 -0
  46. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  47. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html +1 -0
  48. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html +1 -0
  49. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/package.json +26 -0
  50. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts +21 -0
  51. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/Key.ts +12 -0
  52. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts +13 -0
  53. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts +88 -0
  54. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts +59 -0
  55. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/src/index.ts +5 -0
  56. package/publish-notification-lambda/node_modules/@aws-crypto/ie11-detection/tsconfig.json +17 -0
  57. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +88 -0
  58. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/LICENSE +202 -0
  59. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/README.md +31 -0
  60. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt +15 -0
  61. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt +12 -0
  62. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md +142 -0
  63. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json +3 -0
  64. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json +37 -0
  65. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  66. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html +1 -0
  67. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html +1 -0
  68. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/package.json +33 -0
  69. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/constants.ts +41 -0
  70. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +34 -0
  71. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts +108 -0
  72. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/index.ts +3 -0
  73. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +9 -0
  74. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +71 -0
  75. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-browser/tsconfig.json +22 -0
  76. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +86 -0
  77. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/LICENSE +201 -0
  78. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/README.md +29 -0
  79. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt +15 -0
  80. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt +12 -0
  81. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md +142 -0
  82. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json +3 -0
  83. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json +37 -0
  84. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  85. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html +1 -0
  86. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html +1 -0
  87. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/package.json +28 -0
  88. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +164 -0
  89. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/src/constants.ts +98 -0
  90. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/src/index.ts +1 -0
  91. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +94 -0
  92. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +401 -0
  93. package/publish-notification-lambda/node_modules/@aws-crypto/sha256-js/tsconfig.json +17 -0
  94. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +46 -0
  95. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/LICENSE +202 -0
  96. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/README.md +32 -0
  97. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt +15 -0
  98. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt +12 -0
  99. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md +142 -0
  100. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json +3 -0
  101. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json +37 -0
  102. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  103. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html +1 -0
  104. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html +1 -0
  105. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/package.json +26 -0
  106. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +1 -0
  107. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +76 -0
  108. package/publish-notification-lambda/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +16 -0
  109. package/publish-notification-lambda/node_modules/@aws-crypto/util/CHANGELOG.md +47 -0
  110. package/publish-notification-lambda/node_modules/@aws-crypto/util/LICENSE +201 -0
  111. package/publish-notification-lambda/node_modules/@aws-crypto/util/README.md +16 -0
  112. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt +15 -0
  113. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt +12 -0
  114. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/README.md +142 -0
  115. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json +3 -0
  116. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/package.json +37 -0
  117. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  118. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html +1 -0
  119. package/publish-notification-lambda/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html +1 -0
  120. package/publish-notification-lambda/node_modules/@aws-crypto/util/package.json +31 -0
  121. package/publish-notification-lambda/node_modules/@aws-crypto/util/src/convertToBuffer.ts +30 -0
  122. package/publish-notification-lambda/node_modules/@aws-crypto/util/src/index.ts +7 -0
  123. package/publish-notification-lambda/node_modules/@aws-crypto/util/src/isEmptyData.ts +12 -0
  124. package/publish-notification-lambda/node_modules/@aws-crypto/util/src/numToUint8.ts +11 -0
  125. package/publish-notification-lambda/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +16 -0
  126. package/publish-notification-lambda/node_modules/@aws-crypto/util/tsconfig.json +23 -0
  127. package/publish-notification-lambda/node_modules/@aws-sdk/abort-controller/LICENSE +201 -0
  128. package/publish-notification-lambda/node_modules/@aws-sdk/abort-controller/README.md +4 -0
  129. package/publish-notification-lambda/node_modules/@aws-sdk/abort-controller/package.json +58 -0
  130. package/publish-notification-lambda/node_modules/@aws-sdk/client-lambda/README.md +798 -0
  131. package/publish-notification-lambda/node_modules/@aws-sdk/client-lambda/package.json +103 -0
  132. package/publish-notification-lambda/node_modules/@aws-sdk/client-sns/LICENSE +201 -0
  133. package/publish-notification-lambda/node_modules/@aws-sdk/client-sns/README.md +554 -0
  134. package/publish-notification-lambda/node_modules/@aws-sdk/client-sns/package.json +100 -0
  135. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso/LICENSE +201 -0
  136. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso/README.md +255 -0
  137. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso/package.json +96 -0
  138. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  139. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso-oidc/README.md +268 -0
  140. package/publish-notification-lambda/node_modules/@aws-sdk/client-sso-oidc/package.json +96 -0
  141. package/publish-notification-lambda/node_modules/@aws-sdk/client-sts/LICENSE +201 -0
  142. package/publish-notification-lambda/node_modules/@aws-sdk/client-sts/README.md +273 -0
  143. package/publish-notification-lambda/node_modules/@aws-sdk/client-sts/package.json +102 -0
  144. package/publish-notification-lambda/node_modules/@aws-sdk/config-resolver/LICENSE +201 -0
  145. package/publish-notification-lambda/node_modules/@aws-sdk/config-resolver/README.md +10 -0
  146. package/publish-notification-lambda/node_modules/@aws-sdk/config-resolver/package.json +59 -0
  147. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-env/LICENSE +201 -0
  148. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-env/README.md +11 -0
  149. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
  150. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-imds/LICENSE +201 -0
  151. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-imds/README.md +11 -0
  152. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-imds/package.json +66 -0
  153. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-ini/LICENSE +201 -0
  154. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-ini/README.md +11 -0
  155. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +69 -0
  156. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-node/LICENSE +201 -0
  157. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-node/README.md +101 -0
  158. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +70 -0
  159. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-process/LICENSE +201 -0
  160. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-process/README.md +11 -0
  161. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +64 -0
  162. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-sso/LICENSE +201 -0
  163. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-sso/README.md +11 -0
  164. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +66 -0
  165. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-web-identity/LICENSE +201 -0
  166. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-web-identity/README.md +11 -0
  167. package/publish-notification-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +71 -0
  168. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-codec/LICENSE +201 -0
  169. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-browser/LICENSE +201 -0
  170. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-browser/README.md +10 -0
  171. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-browser/package.json +57 -0
  172. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/LICENSE +201 -0
  173. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/README.md +10 -0
  174. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/package.json +56 -0
  175. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-node/LICENSE +201 -0
  176. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-node/README.md +10 -0
  177. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-node/package.json +58 -0
  178. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-universal/LICENSE +201 -0
  179. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-universal/README.md +10 -0
  180. package/publish-notification-lambda/node_modules/@aws-sdk/eventstream-serde-universal/package.json +59 -0
  181. package/publish-notification-lambda/node_modules/@aws-sdk/fetch-http-handler/LICENSE +201 -0
  182. package/publish-notification-lambda/node_modules/@aws-sdk/fetch-http-handler/README.md +4 -0
  183. package/publish-notification-lambda/node_modules/@aws-sdk/fetch-http-handler/package.json +59 -0
  184. package/publish-notification-lambda/node_modules/@aws-sdk/hash-node/LICENSE +201 -0
  185. package/publish-notification-lambda/node_modules/@aws-sdk/hash-node/README.md +10 -0
  186. package/publish-notification-lambda/node_modules/@aws-sdk/hash-node/package.json +60 -0
  187. package/publish-notification-lambda/node_modules/@aws-sdk/invalid-dependency/LICENSE +201 -0
  188. package/publish-notification-lambda/node_modules/@aws-sdk/invalid-dependency/README.md +10 -0
  189. package/publish-notification-lambda/node_modules/@aws-sdk/invalid-dependency/package.json +53 -0
  190. package/publish-notification-lambda/node_modules/@aws-sdk/is-array-buffer/LICENSE +201 -0
  191. package/publish-notification-lambda/node_modules/@aws-sdk/is-array-buffer/README.md +10 -0
  192. package/publish-notification-lambda/node_modules/@aws-sdk/is-array-buffer/package.json +56 -0
  193. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-content-length/LICENSE +201 -0
  194. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-content-length/README.md +4 -0
  195. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-content-length/package.json +58 -0
  196. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-endpoint/LICENSE +201 -0
  197. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-endpoint/README.md +10 -0
  198. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-endpoint/package.json +60 -0
  199. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-host-header/LICENSE +201 -0
  200. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-host-header/README.md +4 -0
  201. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-host-header/package.json +58 -0
  202. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-logger/LICENSE +201 -0
  203. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-logger/README.md +4 -0
  204. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-logger/package.json +59 -0
  205. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +201 -0
  206. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-recursion-detection/README.md +10 -0
  207. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-recursion-detection/package.json +58 -0
  208. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-retry/LICENSE +201 -0
  209. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-retry/README.md +4 -0
  210. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-retry/package.json +65 -0
  211. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-sdk-sts/LICENSE +201 -0
  212. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-sdk-sts/README.md +4 -0
  213. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-sdk-sts/package.json +58 -0
  214. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-serde/LICENSE +201 -0
  215. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-serde/README.md +4 -0
  216. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-serde/package.json +57 -0
  217. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-signing/LICENSE +201 -0
  218. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-signing/README.md +4 -0
  219. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-signing/package.json +61 -0
  220. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-stack/LICENSE +201 -0
  221. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-stack/README.md +78 -0
  222. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-stack/package.json +60 -0
  223. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-user-agent/LICENSE +201 -0
  224. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-user-agent/README.md +4 -0
  225. package/publish-notification-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +59 -0
  226. package/publish-notification-lambda/node_modules/@aws-sdk/node-config-provider/LICENSE +201 -0
  227. package/publish-notification-lambda/node_modules/@aws-sdk/node-config-provider/README.md +4 -0
  228. package/publish-notification-lambda/node_modules/@aws-sdk/node-config-provider/package.json +61 -0
  229. package/publish-notification-lambda/node_modules/@aws-sdk/node-http-handler/LICENSE +201 -0
  230. package/publish-notification-lambda/node_modules/@aws-sdk/node-http-handler/README.md +4 -0
  231. package/publish-notification-lambda/node_modules/@aws-sdk/node-http-handler/package.json +63 -0
  232. package/publish-notification-lambda/node_modules/@aws-sdk/property-provider/LICENSE +201 -0
  233. package/publish-notification-lambda/node_modules/@aws-sdk/property-provider/README.md +10 -0
  234. package/publish-notification-lambda/node_modules/@aws-sdk/property-provider/package.json +56 -0
  235. package/publish-notification-lambda/node_modules/@aws-sdk/protocol-http/LICENSE +201 -0
  236. package/publish-notification-lambda/node_modules/@aws-sdk/protocol-http/README.md +4 -0
  237. package/publish-notification-lambda/node_modules/@aws-sdk/protocol-http/package.json +57 -0
  238. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-builder/LICENSE +201 -0
  239. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-builder/README.md +10 -0
  240. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-builder/package.json +57 -0
  241. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-parser/LICENSE +201 -0
  242. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-parser/README.md +10 -0
  243. package/publish-notification-lambda/node_modules/@aws-sdk/querystring-parser/package.json +56 -0
  244. package/publish-notification-lambda/node_modules/@aws-sdk/service-error-classification/LICENSE +201 -0
  245. package/publish-notification-lambda/node_modules/@aws-sdk/service-error-classification/README.md +4 -0
  246. package/publish-notification-lambda/node_modules/@aws-sdk/service-error-classification/package.json +53 -0
  247. package/publish-notification-lambda/node_modules/@aws-sdk/shared-ini-file-loader/LICENSE +201 -0
  248. package/publish-notification-lambda/node_modules/@aws-sdk/shared-ini-file-loader/README.md +105 -0
  249. package/publish-notification-lambda/node_modules/@aws-sdk/shared-ini-file-loader/package.json +58 -0
  250. package/publish-notification-lambda/node_modules/@aws-sdk/signature-v4/LICENSE +201 -0
  251. package/publish-notification-lambda/node_modules/@aws-sdk/signature-v4/README.md +4 -0
  252. package/publish-notification-lambda/node_modules/@aws-sdk/signature-v4/package.json +66 -0
  253. package/publish-notification-lambda/node_modules/@aws-sdk/smithy-client/LICENSE +201 -0
  254. package/publish-notification-lambda/node_modules/@aws-sdk/smithy-client/README.md +10 -0
  255. package/publish-notification-lambda/node_modules/@aws-sdk/smithy-client/package.json +59 -0
  256. package/publish-notification-lambda/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
  257. package/publish-notification-lambda/node_modules/@aws-sdk/token-providers/README.md +39 -0
  258. package/publish-notification-lambda/node_modules/@aws-sdk/token-providers/package.json +67 -0
  259. package/publish-notification-lambda/node_modules/@aws-sdk/types/LICENSE +201 -0
  260. package/publish-notification-lambda/node_modules/@aws-sdk/types/README.md +4 -0
  261. package/publish-notification-lambda/node_modules/@aws-sdk/types/package.json +57 -0
  262. package/publish-notification-lambda/node_modules/@aws-sdk/url-parser/LICENSE +201 -0
  263. package/publish-notification-lambda/node_modules/@aws-sdk/url-parser/README.md +10 -0
  264. package/publish-notification-lambda/node_modules/@aws-sdk/url-parser/package.json +54 -0
  265. package/publish-notification-lambda/node_modules/@aws-sdk/util-base64/LICENSE +201 -0
  266. package/publish-notification-lambda/node_modules/@aws-sdk/util-base64/README.md +4 -0
  267. package/publish-notification-lambda/node_modules/@aws-sdk/util-base64/package.json +66 -0
  268. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-browser/LICENSE +201 -0
  269. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-browser/README.md +12 -0
  270. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-browser/package.json +53 -0
  271. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-node/LICENSE +201 -0
  272. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-node/README.md +12 -0
  273. package/publish-notification-lambda/node_modules/@aws-sdk/util-body-length-node/package.json +57 -0
  274. package/publish-notification-lambda/node_modules/@aws-sdk/util-buffer-from/LICENSE +201 -0
  275. package/publish-notification-lambda/node_modules/@aws-sdk/util-buffer-from/README.md +10 -0
  276. package/publish-notification-lambda/node_modules/@aws-sdk/util-buffer-from/package.json +57 -0
  277. package/publish-notification-lambda/node_modules/@aws-sdk/util-config-provider/LICENSE +201 -0
  278. package/publish-notification-lambda/node_modules/@aws-sdk/util-config-provider/README.md +4 -0
  279. package/publish-notification-lambda/node_modules/@aws-sdk/util-config-provider/package.json +58 -0
  280. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/LICENSE +201 -0
  281. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/README.md +10 -0
  282. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +62 -0
  283. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-node/LICENSE +201 -0
  284. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-node/README.md +10 -0
  285. package/publish-notification-lambda/node_modules/@aws-sdk/util-defaults-mode-node/package.json +61 -0
  286. package/publish-notification-lambda/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
  287. package/publish-notification-lambda/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
  288. package/publish-notification-lambda/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +203 -0
  289. package/publish-notification-lambda/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +203 -0
  290. package/publish-notification-lambda/node_modules/@aws-sdk/util-endpoints/package.json +58 -0
  291. package/publish-notification-lambda/node_modules/@aws-sdk/util-hex-encoding/LICENSE +201 -0
  292. package/publish-notification-lambda/node_modules/@aws-sdk/util-hex-encoding/README.md +4 -0
  293. package/publish-notification-lambda/node_modules/@aws-sdk/util-hex-encoding/package.json +56 -0
  294. package/publish-notification-lambda/node_modules/@aws-sdk/util-locate-window/LICENSE +201 -0
  295. package/publish-notification-lambda/node_modules/@aws-sdk/util-locate-window/README.md +4 -0
  296. package/publish-notification-lambda/node_modules/@aws-sdk/util-locate-window/package.json +56 -0
  297. package/publish-notification-lambda/node_modules/@aws-sdk/util-middleware/LICENSE +201 -0
  298. package/publish-notification-lambda/node_modules/@aws-sdk/util-middleware/README.md +12 -0
  299. package/publish-notification-lambda/node_modules/@aws-sdk/util-middleware/package.json +62 -0
  300. package/publish-notification-lambda/node_modules/@aws-sdk/util-retry/LICENSE +201 -0
  301. package/publish-notification-lambda/node_modules/@aws-sdk/util-retry/README.md +77 -0
  302. package/publish-notification-lambda/node_modules/@aws-sdk/util-retry/package.json +64 -0
  303. package/publish-notification-lambda/node_modules/@aws-sdk/util-uri-escape/LICENSE +201 -0
  304. package/publish-notification-lambda/node_modules/@aws-sdk/util-uri-escape/README.md +10 -0
  305. package/publish-notification-lambda/node_modules/@aws-sdk/util-uri-escape/package.json +55 -0
  306. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-browser/LICENSE +201 -0
  307. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-browser/README.md +10 -0
  308. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-browser/package.json +55 -0
  309. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-node/LICENSE +201 -0
  310. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-node/README.md +10 -0
  311. package/publish-notification-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +66 -0
  312. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8/LICENSE +201 -0
  313. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8/README.md +4 -0
  314. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8/package.json +65 -0
  315. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8-browser/LICENSE +201 -0
  316. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8-browser/README.md +8 -0
  317. package/publish-notification-lambda/node_modules/@aws-sdk/util-utf8-browser/package.json +50 -0
  318. package/publish-notification-lambda/node_modules/@aws-sdk/util-waiter/LICENSE +201 -0
  319. package/publish-notification-lambda/node_modules/@aws-sdk/util-waiter/README.md +10 -0
  320. package/publish-notification-lambda/node_modules/@aws-sdk/util-waiter/package.json +58 -0
  321. package/publish-notification-lambda/node_modules/@smithy/protocol-http/LICENSE +201 -0
  322. package/publish-notification-lambda/node_modules/@smithy/protocol-http/README.md +4 -0
  323. package/publish-notification-lambda/node_modules/@smithy/protocol-http/package.json +63 -0
  324. package/publish-notification-lambda/node_modules/@smithy/types/LICENSE +201 -0
  325. package/publish-notification-lambda/node_modules/@smithy/types/README.md +4 -0
  326. package/publish-notification-lambda/node_modules/@smithy/types/package.json +62 -0
  327. package/publish-notification-lambda/node_modules/@types/node/LICENSE +21 -0
  328. package/publish-notification-lambda/node_modules/@types/node/README.md +16 -0
  329. package/publish-notification-lambda/node_modules/@types/node/package.json +237 -0
  330. package/publish-notification-lambda/node_modules/ansi-regex/license +9 -0
  331. package/publish-notification-lambda/node_modules/ansi-regex/package.json +55 -0
  332. package/publish-notification-lambda/node_modules/ansi-regex/readme.md +78 -0
  333. package/publish-notification-lambda/node_modules/ansi-styles/license +9 -0
  334. package/publish-notification-lambda/node_modules/ansi-styles/package.json +56 -0
  335. package/publish-notification-lambda/node_modules/ansi-styles/readme.md +152 -0
  336. package/publish-notification-lambda/node_modules/archiver/CHANGELOG.md +228 -0
  337. package/publish-notification-lambda/node_modules/archiver/LICENSE +22 -0
  338. package/publish-notification-lambda/node_modules/archiver/README.md +94 -0
  339. package/publish-notification-lambda/node_modules/archiver/package.json +60 -0
  340. package/publish-notification-lambda/node_modules/archiver-utils/CHANGELOG.md +14 -0
  341. package/publish-notification-lambda/node_modules/archiver-utils/LICENSE +22 -0
  342. package/publish-notification-lambda/node_modules/archiver-utils/README.md +7 -0
  343. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/.travis.yml +34 -0
  344. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  345. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/GOVERNANCE.md +136 -0
  346. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/LICENSE +47 -0
  347. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/README.md +58 -0
  348. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  349. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/readable-stream/package.json +52 -0
  350. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/safe-buffer/LICENSE +21 -0
  351. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/safe-buffer/README.md +584 -0
  352. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/safe-buffer/package.json +37 -0
  353. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/string_decoder/.travis.yml +50 -0
  354. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/string_decoder/LICENSE +48 -0
  355. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/string_decoder/README.md +47 -0
  356. package/publish-notification-lambda/node_modules/archiver-utils/node_modules/string_decoder/package.json +31 -0
  357. package/publish-notification-lambda/node_modules/archiver-utils/package.json +54 -0
  358. package/publish-notification-lambda/node_modules/async/CHANGELOG.md +348 -0
  359. package/publish-notification-lambda/node_modules/async/LICENSE +19 -0
  360. package/publish-notification-lambda/node_modules/async/README.md +59 -0
  361. package/publish-notification-lambda/node_modules/async/bower.json +17 -0
  362. package/publish-notification-lambda/node_modules/async/dist/async.mjs +5947 -0
  363. package/publish-notification-lambda/node_modules/async/package.json +75 -0
  364. package/publish-notification-lambda/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  365. package/publish-notification-lambda/node_modules/balanced-match/LICENSE.md +21 -0
  366. package/publish-notification-lambda/node_modules/balanced-match/README.md +97 -0
  367. package/publish-notification-lambda/node_modules/balanced-match/package.json +48 -0
  368. package/publish-notification-lambda/node_modules/base64-js/LICENSE +21 -0
  369. package/publish-notification-lambda/node_modules/base64-js/README.md +34 -0
  370. package/publish-notification-lambda/node_modules/base64-js/package.json +47 -0
  371. package/publish-notification-lambda/node_modules/bestzip/LICENSE +21 -0
  372. package/publish-notification-lambda/node_modules/bestzip/package.json +46 -0
  373. package/publish-notification-lambda/node_modules/bestzip/readme.md +91 -0
  374. package/publish-notification-lambda/node_modules/bl/.travis.yml +17 -0
  375. package/publish-notification-lambda/node_modules/bl/LICENSE.md +13 -0
  376. package/publish-notification-lambda/node_modules/bl/README.md +247 -0
  377. package/publish-notification-lambda/node_modules/bl/package.json +37 -0
  378. package/publish-notification-lambda/node_modules/bowser/CHANGELOG.md +218 -0
  379. package/publish-notification-lambda/node_modules/bowser/LICENSE +39 -0
  380. package/publish-notification-lambda/node_modules/bowser/README.md +179 -0
  381. package/publish-notification-lambda/node_modules/bowser/package.json +83 -0
  382. package/publish-notification-lambda/node_modules/brace-expansion/LICENSE +21 -0
  383. package/publish-notification-lambda/node_modules/brace-expansion/README.md +129 -0
  384. package/publish-notification-lambda/node_modules/brace-expansion/package.json +47 -0
  385. package/publish-notification-lambda/node_modules/buffer/AUTHORS.md +70 -0
  386. package/publish-notification-lambda/node_modules/buffer/LICENSE +21 -0
  387. package/publish-notification-lambda/node_modules/buffer/README.md +410 -0
  388. package/publish-notification-lambda/node_modules/buffer/package.json +96 -0
  389. package/publish-notification-lambda/node_modules/buffer-crc32/LICENSE +19 -0
  390. package/publish-notification-lambda/node_modules/buffer-crc32/README.md +47 -0
  391. package/publish-notification-lambda/node_modules/buffer-crc32/package.json +39 -0
  392. package/publish-notification-lambda/node_modules/cliui/CHANGELOG.md +121 -0
  393. package/publish-notification-lambda/node_modules/cliui/LICENSE.txt +14 -0
  394. package/publish-notification-lambda/node_modules/cliui/README.md +141 -0
  395. package/publish-notification-lambda/node_modules/cliui/build/index.cjs +302 -0
  396. package/publish-notification-lambda/node_modules/cliui/index.mjs +13 -0
  397. package/publish-notification-lambda/node_modules/cliui/package.json +83 -0
  398. package/publish-notification-lambda/node_modules/color-convert/CHANGELOG.md +54 -0
  399. package/publish-notification-lambda/node_modules/color-convert/LICENSE +21 -0
  400. package/publish-notification-lambda/node_modules/color-convert/README.md +68 -0
  401. package/publish-notification-lambda/node_modules/color-convert/package.json +48 -0
  402. package/publish-notification-lambda/node_modules/color-name/LICENSE +8 -0
  403. package/publish-notification-lambda/node_modules/color-name/README.md +11 -0
  404. package/publish-notification-lambda/node_modules/color-name/package.json +28 -0
  405. package/publish-notification-lambda/node_modules/compress-commons/CHANGELOG.md +58 -0
  406. package/publish-notification-lambda/node_modules/compress-commons/LICENSE +22 -0
  407. package/publish-notification-lambda/node_modules/compress-commons/README.md +25 -0
  408. package/publish-notification-lambda/node_modules/compress-commons/package.json +45 -0
  409. package/publish-notification-lambda/node_modules/concat-map/.travis.yml +4 -0
  410. package/publish-notification-lambda/node_modules/concat-map/LICENSE +18 -0
  411. package/publish-notification-lambda/node_modules/concat-map/README.markdown +62 -0
  412. package/publish-notification-lambda/node_modules/concat-map/package.json +43 -0
  413. package/publish-notification-lambda/node_modules/core-util-is/LICENSE +19 -0
  414. package/publish-notification-lambda/node_modules/core-util-is/README.md +3 -0
  415. package/publish-notification-lambda/node_modules/core-util-is/package.json +38 -0
  416. package/publish-notification-lambda/node_modules/crc-32/LICENSE +201 -0
  417. package/publish-notification-lambda/node_modules/crc-32/README.md +200 -0
  418. package/publish-notification-lambda/node_modules/crc-32/bin/crc32.njs +105 -0
  419. package/publish-notification-lambda/node_modules/crc-32/package.json +43 -0
  420. package/publish-notification-lambda/node_modules/crc-32/types/tsconfig.json +14 -0
  421. package/publish-notification-lambda/node_modules/crc-32/types/tslint.json +11 -0
  422. package/publish-notification-lambda/node_modules/crc32-stream/CHANGELOG.md +57 -0
  423. package/publish-notification-lambda/node_modules/crc32-stream/LICENSE +22 -0
  424. package/publish-notification-lambda/node_modules/crc32-stream/README.md +79 -0
  425. package/publish-notification-lambda/node_modules/crc32-stream/package.json +45 -0
  426. package/publish-notification-lambda/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  427. package/publish-notification-lambda/node_modules/emoji-regex/README.md +73 -0
  428. package/publish-notification-lambda/node_modules/emoji-regex/package.json +50 -0
  429. package/publish-notification-lambda/node_modules/end-of-stream/README.md +54 -0
  430. package/publish-notification-lambda/node_modules/end-of-stream/package.json +37 -0
  431. package/publish-notification-lambda/node_modules/escalade/dist/index.mjs +22 -0
  432. package/publish-notification-lambda/node_modules/escalade/license +9 -0
  433. package/publish-notification-lambda/node_modules/escalade/package.json +61 -0
  434. package/publish-notification-lambda/node_modules/escalade/readme.md +211 -0
  435. package/publish-notification-lambda/node_modules/escalade/sync/index.mjs +18 -0
  436. package/publish-notification-lambda/node_modules/fast-xml-parser/CHANGELOG.md +551 -0
  437. package/publish-notification-lambda/node_modules/fast-xml-parser/LICENSE +21 -0
  438. package/publish-notification-lambda/node_modules/fast-xml-parser/README.md +204 -0
  439. package/publish-notification-lambda/node_modules/fast-xml-parser/package.json +71 -0
  440. package/publish-notification-lambda/node_modules/fs-constants/LICENSE +21 -0
  441. package/publish-notification-lambda/node_modules/fs-constants/README.md +26 -0
  442. package/publish-notification-lambda/node_modules/fs-constants/package.json +19 -0
  443. package/publish-notification-lambda/node_modules/fs.realpath/LICENSE +43 -0
  444. package/publish-notification-lambda/node_modules/fs.realpath/README.md +33 -0
  445. package/publish-notification-lambda/node_modules/fs.realpath/package.json +26 -0
  446. package/publish-notification-lambda/node_modules/get-caller-file/LICENSE.md +6 -0
  447. package/publish-notification-lambda/node_modules/get-caller-file/README.md +41 -0
  448. package/publish-notification-lambda/node_modules/get-caller-file/package.json +42 -0
  449. package/publish-notification-lambda/node_modules/glob/LICENSE +21 -0
  450. package/publish-notification-lambda/node_modules/glob/README.md +378 -0
  451. package/publish-notification-lambda/node_modules/glob/package.json +55 -0
  452. package/publish-notification-lambda/node_modules/graceful-fs/LICENSE +15 -0
  453. package/publish-notification-lambda/node_modules/graceful-fs/README.md +143 -0
  454. package/publish-notification-lambda/node_modules/graceful-fs/package.json +53 -0
  455. package/publish-notification-lambda/node_modules/ieee754/LICENSE +11 -0
  456. package/publish-notification-lambda/node_modules/ieee754/README.md +51 -0
  457. package/publish-notification-lambda/node_modules/ieee754/package.json +52 -0
  458. package/publish-notification-lambda/node_modules/inflight/LICENSE +15 -0
  459. package/publish-notification-lambda/node_modules/inflight/README.md +37 -0
  460. package/publish-notification-lambda/node_modules/inflight/package.json +29 -0
  461. package/publish-notification-lambda/node_modules/inherits/LICENSE +16 -0
  462. package/publish-notification-lambda/node_modules/inherits/README.md +42 -0
  463. package/publish-notification-lambda/node_modules/inherits/package.json +29 -0
  464. package/publish-notification-lambda/node_modules/is-fullwidth-code-point/license +9 -0
  465. package/publish-notification-lambda/node_modules/is-fullwidth-code-point/package.json +42 -0
  466. package/publish-notification-lambda/node_modules/is-fullwidth-code-point/readme.md +39 -0
  467. package/publish-notification-lambda/node_modules/isarray/.travis.yml +4 -0
  468. package/publish-notification-lambda/node_modules/isarray/Makefile +6 -0
  469. package/publish-notification-lambda/node_modules/isarray/README.md +60 -0
  470. package/publish-notification-lambda/node_modules/isarray/component.json +19 -0
  471. package/publish-notification-lambda/node_modules/isarray/package.json +45 -0
  472. package/publish-notification-lambda/node_modules/isexe/README.md +51 -0
  473. package/publish-notification-lambda/node_modules/isexe/package.json +31 -0
  474. package/publish-notification-lambda/node_modules/lazystream/LICENSE +23 -0
  475. package/publish-notification-lambda/node_modules/lazystream/README.md +114 -0
  476. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/.travis.yml +34 -0
  477. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  478. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/GOVERNANCE.md +136 -0
  479. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/LICENSE +47 -0
  480. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/README.md +58 -0
  481. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  482. package/publish-notification-lambda/node_modules/lazystream/node_modules/readable-stream/package.json +52 -0
  483. package/publish-notification-lambda/node_modules/lazystream/node_modules/safe-buffer/LICENSE +21 -0
  484. package/publish-notification-lambda/node_modules/lazystream/node_modules/safe-buffer/README.md +584 -0
  485. package/publish-notification-lambda/node_modules/lazystream/node_modules/safe-buffer/package.json +37 -0
  486. package/publish-notification-lambda/node_modules/lazystream/node_modules/string_decoder/.travis.yml +50 -0
  487. package/publish-notification-lambda/node_modules/lazystream/node_modules/string_decoder/LICENSE +48 -0
  488. package/publish-notification-lambda/node_modules/lazystream/node_modules/string_decoder/README.md +47 -0
  489. package/publish-notification-lambda/node_modules/lazystream/node_modules/string_decoder/package.json +31 -0
  490. package/publish-notification-lambda/node_modules/lazystream/package.json +46 -0
  491. package/publish-notification-lambda/node_modules/lazystream/test/data.md +13 -0
  492. package/publish-notification-lambda/node_modules/lodash.defaults/LICENSE +47 -0
  493. package/publish-notification-lambda/node_modules/lodash.defaults/README.md +18 -0
  494. package/publish-notification-lambda/node_modules/lodash.defaults/package.json +17 -0
  495. package/publish-notification-lambda/node_modules/lodash.difference/LICENSE +47 -0
  496. package/publish-notification-lambda/node_modules/lodash.difference/README.md +18 -0
  497. package/publish-notification-lambda/node_modules/lodash.difference/package.json +17 -0
  498. package/publish-notification-lambda/node_modules/lodash.flatten/LICENSE +47 -0
  499. package/publish-notification-lambda/node_modules/lodash.flatten/README.md +18 -0
  500. package/publish-notification-lambda/node_modules/lodash.flatten/package.json +17 -0
  501. package/publish-notification-lambda/node_modules/lodash.isplainobject/LICENSE +47 -0
  502. package/publish-notification-lambda/node_modules/lodash.isplainobject/README.md +18 -0
  503. package/publish-notification-lambda/node_modules/lodash.isplainobject/package.json +17 -0
  504. package/publish-notification-lambda/node_modules/lodash.union/LICENSE +47 -0
  505. package/publish-notification-lambda/node_modules/lodash.union/README.md +18 -0
  506. package/publish-notification-lambda/node_modules/lodash.union/package.json +17 -0
  507. package/publish-notification-lambda/node_modules/minimatch/README.md +230 -0
  508. package/publish-notification-lambda/node_modules/minimatch/package.json +33 -0
  509. package/publish-notification-lambda/node_modules/normalize-path/LICENSE +21 -0
  510. package/publish-notification-lambda/node_modules/normalize-path/README.md +127 -0
  511. package/publish-notification-lambda/node_modules/normalize-path/package.json +77 -0
  512. package/publish-notification-lambda/node_modules/once/LICENSE +15 -0
  513. package/publish-notification-lambda/node_modules/once/README.md +79 -0
  514. package/publish-notification-lambda/node_modules/once/package.json +33 -0
  515. package/publish-notification-lambda/node_modules/path-is-absolute/license +21 -0
  516. package/publish-notification-lambda/node_modules/path-is-absolute/package.json +43 -0
  517. package/publish-notification-lambda/node_modules/path-is-absolute/readme.md +59 -0
  518. package/publish-notification-lambda/node_modules/process-nextick-args/license.md +19 -0
  519. package/publish-notification-lambda/node_modules/process-nextick-args/package.json +25 -0
  520. package/publish-notification-lambda/node_modules/process-nextick-args/readme.md +18 -0
  521. package/publish-notification-lambda/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  522. package/publish-notification-lambda/node_modules/readable-stream/GOVERNANCE.md +136 -0
  523. package/publish-notification-lambda/node_modules/readable-stream/LICENSE +47 -0
  524. package/publish-notification-lambda/node_modules/readable-stream/README.md +106 -0
  525. package/publish-notification-lambda/node_modules/readable-stream/package.json +68 -0
  526. package/publish-notification-lambda/node_modules/readdir-glob/LICENSE +201 -0
  527. package/publish-notification-lambda/node_modules/readdir-glob/README.md +85 -0
  528. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  529. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/brace-expansion/LICENSE +21 -0
  530. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/brace-expansion/README.md +135 -0
  531. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/brace-expansion/package.json +46 -0
  532. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/minimatch/LICENSE +15 -0
  533. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/minimatch/README.md +259 -0
  534. package/publish-notification-lambda/node_modules/readdir-glob/node_modules/minimatch/package.json +35 -0
  535. package/publish-notification-lambda/node_modules/readdir-glob/package.json +43 -0
  536. package/publish-notification-lambda/node_modules/require-directory/.jshintrc +67 -0
  537. package/publish-notification-lambda/node_modules/require-directory/.travis.yml +3 -0
  538. package/publish-notification-lambda/node_modules/require-directory/LICENSE +22 -0
  539. package/publish-notification-lambda/node_modules/require-directory/README.markdown +184 -0
  540. package/publish-notification-lambda/node_modules/require-directory/package.json +40 -0
  541. package/publish-notification-lambda/node_modules/safe-buffer/LICENSE +21 -0
  542. package/publish-notification-lambda/node_modules/safe-buffer/README.md +584 -0
  543. package/publish-notification-lambda/node_modules/safe-buffer/package.json +51 -0
  544. package/publish-notification-lambda/node_modules/string-width/license +9 -0
  545. package/publish-notification-lambda/node_modules/string-width/package.json +56 -0
  546. package/publish-notification-lambda/node_modules/string-width/readme.md +50 -0
  547. package/publish-notification-lambda/node_modules/string_decoder/LICENSE +48 -0
  548. package/publish-notification-lambda/node_modules/string_decoder/README.md +47 -0
  549. package/publish-notification-lambda/node_modules/string_decoder/package.json +34 -0
  550. package/publish-notification-lambda/node_modules/strip-ansi/license +9 -0
  551. package/publish-notification-lambda/node_modules/strip-ansi/package.json +54 -0
  552. package/publish-notification-lambda/node_modules/strip-ansi/readme.md +46 -0
  553. package/publish-notification-lambda/node_modules/strnum/.vscode/launch.json +25 -0
  554. package/publish-notification-lambda/node_modules/strnum/LICENSE +21 -0
  555. package/publish-notification-lambda/node_modules/strnum/README.md +86 -0
  556. package/publish-notification-lambda/node_modules/strnum/package.json +24 -0
  557. package/publish-notification-lambda/node_modules/tar-stream/LICENSE +21 -0
  558. package/publish-notification-lambda/node_modules/tar-stream/README.md +168 -0
  559. package/publish-notification-lambda/node_modules/tar-stream/package.json +58 -0
  560. package/publish-notification-lambda/node_modules/tslib/CopyrightNotice.txt +15 -0
  561. package/publish-notification-lambda/node_modules/tslib/LICENSE.txt +12 -0
  562. package/publish-notification-lambda/node_modules/tslib/README.md +164 -0
  563. package/publish-notification-lambda/node_modules/tslib/SECURITY.md +41 -0
  564. package/publish-notification-lambda/node_modules/tslib/modules/package.json +3 -0
  565. package/publish-notification-lambda/node_modules/tslib/package.json +47 -0
  566. package/publish-notification-lambda/node_modules/tslib/tslib.es6.html +1 -0
  567. package/publish-notification-lambda/node_modules/tslib/tslib.es6.mjs +321 -0
  568. package/publish-notification-lambda/node_modules/tslib/tslib.html +1 -0
  569. package/publish-notification-lambda/node_modules/typescript/LICENSE.txt +55 -0
  570. package/publish-notification-lambda/node_modules/typescript/README.md +51 -0
  571. package/publish-notification-lambda/node_modules/typescript/SECURITY.md +41 -0
  572. package/publish-notification-lambda/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  573. package/publish-notification-lambda/node_modules/typescript/bin/tsc +2 -0
  574. package/publish-notification-lambda/node_modules/typescript/bin/tsserver +2 -0
  575. package/publish-notification-lambda/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +1880 -0
  576. package/publish-notification-lambda/node_modules/typescript/lib/de/diagnosticMessages.generated.json +1880 -0
  577. package/publish-notification-lambda/node_modules/typescript/lib/es/diagnosticMessages.generated.json +1880 -0
  578. package/publish-notification-lambda/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +1880 -0
  579. package/publish-notification-lambda/node_modules/typescript/lib/it/diagnosticMessages.generated.json +1880 -0
  580. package/publish-notification-lambda/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +1880 -0
  581. package/publish-notification-lambda/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +1880 -0
  582. package/publish-notification-lambda/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +1880 -0
  583. package/publish-notification-lambda/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +1880 -0
  584. package/publish-notification-lambda/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +1880 -0
  585. package/publish-notification-lambda/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +1880 -0
  586. package/publish-notification-lambda/node_modules/typescript/lib/typesMap.json +497 -0
  587. package/publish-notification-lambda/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +1880 -0
  588. package/publish-notification-lambda/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +1880 -0
  589. package/publish-notification-lambda/node_modules/typescript/package.json +116 -0
  590. package/publish-notification-lambda/node_modules/util-deprecate/History.md +16 -0
  591. package/publish-notification-lambda/node_modules/util-deprecate/LICENSE +24 -0
  592. package/publish-notification-lambda/node_modules/util-deprecate/README.md +53 -0
  593. package/publish-notification-lambda/node_modules/util-deprecate/package.json +27 -0
  594. package/publish-notification-lambda/node_modules/uuid/CHANGELOG.md +229 -0
  595. package/publish-notification-lambda/node_modules/uuid/CONTRIBUTING.md +18 -0
  596. package/publish-notification-lambda/node_modules/uuid/LICENSE.md +9 -0
  597. package/publish-notification-lambda/node_modules/uuid/README.md +505 -0
  598. package/publish-notification-lambda/node_modules/uuid/dist/bin/uuid +2 -0
  599. package/publish-notification-lambda/node_modules/uuid/package.json +135 -0
  600. package/publish-notification-lambda/node_modules/uuid/wrapper.mjs +10 -0
  601. package/publish-notification-lambda/node_modules/which/CHANGELOG.md +166 -0
  602. package/publish-notification-lambda/node_modules/which/LICENSE +15 -0
  603. package/publish-notification-lambda/node_modules/which/README.md +54 -0
  604. package/publish-notification-lambda/node_modules/which/bin/node-which +52 -0
  605. package/publish-notification-lambda/node_modules/which/package.json +43 -0
  606. package/publish-notification-lambda/node_modules/wrap-ansi/license +9 -0
  607. package/publish-notification-lambda/node_modules/wrap-ansi/package.json +62 -0
  608. package/publish-notification-lambda/node_modules/wrap-ansi/readme.md +91 -0
  609. package/publish-notification-lambda/node_modules/wrappy/LICENSE +15 -0
  610. package/publish-notification-lambda/node_modules/wrappy/README.md +36 -0
  611. package/publish-notification-lambda/node_modules/wrappy/package.json +29 -0
  612. package/publish-notification-lambda/node_modules/y18n/CHANGELOG.md +100 -0
  613. package/publish-notification-lambda/node_modules/y18n/LICENSE +13 -0
  614. package/publish-notification-lambda/node_modules/y18n/README.md +127 -0
  615. package/publish-notification-lambda/node_modules/y18n/build/index.cjs +203 -0
  616. package/publish-notification-lambda/node_modules/y18n/index.mjs +8 -0
  617. package/publish-notification-lambda/node_modules/y18n/package.json +70 -0
  618. package/publish-notification-lambda/node_modules/yargs/CHANGELOG.md +88 -0
  619. package/publish-notification-lambda/node_modules/yargs/LICENSE +21 -0
  620. package/publish-notification-lambda/node_modules/yargs/README.md +202 -0
  621. package/publish-notification-lambda/node_modules/yargs/browser.mjs +7 -0
  622. package/publish-notification-lambda/node_modules/yargs/build/index.cjs +2920 -0
  623. package/publish-notification-lambda/node_modules/yargs/helpers/helpers.mjs +10 -0
  624. package/publish-notification-lambda/node_modules/yargs/helpers/package.json +3 -0
  625. package/publish-notification-lambda/node_modules/yargs/index.cjs +39 -0
  626. package/publish-notification-lambda/node_modules/yargs/index.mjs +8 -0
  627. package/publish-notification-lambda/node_modules/yargs/lib/platform-shims/browser.mjs +92 -0
  628. package/publish-notification-lambda/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
  629. package/publish-notification-lambda/node_modules/yargs/locales/be.json +46 -0
  630. package/publish-notification-lambda/node_modules/yargs/locales/de.json +46 -0
  631. package/publish-notification-lambda/node_modules/yargs/locales/en.json +51 -0
  632. package/publish-notification-lambda/node_modules/yargs/locales/es.json +46 -0
  633. package/publish-notification-lambda/node_modules/yargs/locales/fi.json +49 -0
  634. package/publish-notification-lambda/node_modules/yargs/locales/fr.json +53 -0
  635. package/publish-notification-lambda/node_modules/yargs/locales/hi.json +49 -0
  636. package/publish-notification-lambda/node_modules/yargs/locales/hu.json +46 -0
  637. package/publish-notification-lambda/node_modules/yargs/locales/id.json +50 -0
  638. package/publish-notification-lambda/node_modules/yargs/locales/it.json +46 -0
  639. package/publish-notification-lambda/node_modules/yargs/locales/ja.json +51 -0
  640. package/publish-notification-lambda/node_modules/yargs/locales/ko.json +49 -0
  641. package/publish-notification-lambda/node_modules/yargs/locales/nb.json +44 -0
  642. package/publish-notification-lambda/node_modules/yargs/locales/nl.json +49 -0
  643. package/publish-notification-lambda/node_modules/yargs/locales/nn.json +44 -0
  644. package/publish-notification-lambda/node_modules/yargs/locales/pirate.json +13 -0
  645. package/publish-notification-lambda/node_modules/yargs/locales/pl.json +49 -0
  646. package/publish-notification-lambda/node_modules/yargs/locales/pt.json +45 -0
  647. package/publish-notification-lambda/node_modules/yargs/locales/pt_BR.json +48 -0
  648. package/publish-notification-lambda/node_modules/yargs/locales/ru.json +46 -0
  649. package/publish-notification-lambda/node_modules/yargs/locales/th.json +46 -0
  650. package/publish-notification-lambda/node_modules/yargs/locales/tr.json +48 -0
  651. package/publish-notification-lambda/node_modules/yargs/locales/zh_CN.json +48 -0
  652. package/publish-notification-lambda/node_modules/yargs/locales/zh_TW.json +47 -0
  653. package/publish-notification-lambda/node_modules/yargs/package.json +122 -0
  654. package/publish-notification-lambda/node_modules/yargs/yargs +9 -0
  655. package/publish-notification-lambda/node_modules/yargs-parser/CHANGELOG.md +263 -0
  656. package/publish-notification-lambda/node_modules/yargs-parser/LICENSE.txt +14 -0
  657. package/publish-notification-lambda/node_modules/yargs-parser/README.md +518 -0
  658. package/publish-notification-lambda/node_modules/yargs-parser/build/index.cjs +1042 -0
  659. package/publish-notification-lambda/node_modules/yargs-parser/package.json +87 -0
  660. package/publish-notification-lambda/node_modules/zip-stream/CHANGELOG.md +110 -0
  661. package/publish-notification-lambda/node_modules/zip-stream/LICENSE +22 -0
  662. package/publish-notification-lambda/node_modules/zip-stream/README.md +45 -0
  663. package/publish-notification-lambda/node_modules/zip-stream/package.json +49 -0
  664. package/publish-notification-lambda/package-lock.json +1944 -0
  665. package/publish-notification-lambda/package.json +23 -0
  666. package/publish-notification-lambda/src/index.ts +101 -0
  667. package/publish-notification-lambda/tsconfig.json +13 -0
  668. package/rds-lambda/handler.ts +52 -3
  669. package/rds-lambda/node_modules/.package-lock.json +830 -678
  670. package/rds-lambda/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  671. package/rds-lambda/node_modules/@aws-sdk/client-ssm/package.json +29 -29
  672. package/rds-lambda/node_modules/@aws-sdk/client-sso/package.json +25 -25
  673. package/rds-lambda/node_modules/@aws-sdk/client-sso-oidc/package.json +25 -25
  674. package/rds-lambda/node_modules/@aws-sdk/client-sts/package.json +29 -29
  675. package/rds-lambda/node_modules/@aws-sdk/config-resolver/package.json +4 -4
  676. package/rds-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  677. package/rds-lambda/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  678. package/rds-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  679. package/rds-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  680. package/rds-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  681. package/rds-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  682. package/rds-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  683. package/rds-lambda/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  684. package/rds-lambda/node_modules/@aws-sdk/hash-node/package.json +3 -2
  685. package/rds-lambda/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  686. package/rds-lambda/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  687. package/rds-lambda/node_modules/@aws-sdk/middleware-endpoint/package.json +6 -5
  688. package/rds-lambda/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  689. package/rds-lambda/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  690. package/rds-lambda/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  691. package/rds-lambda/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  692. package/rds-lambda/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
  693. package/rds-lambda/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  694. package/rds-lambda/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  695. package/rds-lambda/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  696. package/rds-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  697. package/rds-lambda/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  698. package/rds-lambda/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  699. package/rds-lambda/node_modules/@aws-sdk/property-provider/package.json +2 -2
  700. package/rds-lambda/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  701. package/rds-lambda/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  702. package/rds-lambda/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  703. package/rds-lambda/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  704. package/rds-lambda/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  705. package/rds-lambda/node_modules/@aws-sdk/signature-v4/package.json +4 -5
  706. package/rds-lambda/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  707. package/rds-lambda/node_modules/@aws-sdk/token-providers/package.json +5 -5
  708. package/rds-lambda/node_modules/@aws-sdk/types/package.json +1 -1
  709. package/rds-lambda/node_modules/@aws-sdk/url-parser/package.json +3 -3
  710. package/rds-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  711. package/rds-lambda/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  712. package/rds-lambda/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -11
  713. package/rds-lambda/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -11
  714. package/rds-lambda/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  715. package/rds-lambda/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  716. package/rds-lambda/node_modules/@aws-sdk/util-retry/package.json +3 -3
  717. package/rds-lambda/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  718. package/rds-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  719. package/rds-lambda/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  720. package/rds-lambda/node_modules/archiver/CHANGELOG.md +228 -0
  721. package/rds-lambda/node_modules/archiver/LICENSE +22 -0
  722. package/rds-lambda/node_modules/archiver/README.md +94 -0
  723. package/rds-lambda/node_modules/archiver/package.json +60 -0
  724. package/rds-lambda/node_modules/archiver-utils/CHANGELOG.md +14 -0
  725. package/rds-lambda/node_modules/archiver-utils/LICENSE +22 -0
  726. package/rds-lambda/node_modules/archiver-utils/README.md +7 -0
  727. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/.travis.yml +34 -0
  728. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  729. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/GOVERNANCE.md +136 -0
  730. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/LICENSE +47 -0
  731. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/README.md +58 -0
  732. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  733. package/rds-lambda/node_modules/archiver-utils/node_modules/readable-stream/package.json +52 -0
  734. package/rds-lambda/node_modules/archiver-utils/node_modules/safe-buffer/LICENSE +21 -0
  735. package/rds-lambda/node_modules/archiver-utils/node_modules/safe-buffer/README.md +584 -0
  736. package/rds-lambda/node_modules/archiver-utils/node_modules/safe-buffer/package.json +37 -0
  737. package/rds-lambda/node_modules/archiver-utils/node_modules/string_decoder/.travis.yml +50 -0
  738. package/rds-lambda/node_modules/archiver-utils/node_modules/string_decoder/LICENSE +48 -0
  739. package/rds-lambda/node_modules/archiver-utils/node_modules/string_decoder/README.md +47 -0
  740. package/rds-lambda/node_modules/archiver-utils/node_modules/string_decoder/package.json +31 -0
  741. package/rds-lambda/node_modules/archiver-utils/package.json +54 -0
  742. package/rds-lambda/node_modules/async/CHANGELOG.md +348 -0
  743. package/rds-lambda/node_modules/async/LICENSE +19 -0
  744. package/rds-lambda/node_modules/async/README.md +59 -0
  745. package/rds-lambda/node_modules/async/bower.json +17 -0
  746. package/rds-lambda/node_modules/async/dist/async.mjs +5947 -0
  747. package/rds-lambda/node_modules/async/package.json +75 -0
  748. package/rds-lambda/node_modules/base64-js/LICENSE +21 -0
  749. package/rds-lambda/node_modules/base64-js/README.md +34 -0
  750. package/rds-lambda/node_modules/base64-js/package.json +47 -0
  751. package/rds-lambda/node_modules/bestzip/LICENSE +21 -0
  752. package/rds-lambda/node_modules/bestzip/package.json +46 -0
  753. package/rds-lambda/node_modules/bestzip/readme.md +91 -0
  754. package/rds-lambda/node_modules/bl/.travis.yml +17 -0
  755. package/rds-lambda/node_modules/bl/LICENSE.md +13 -0
  756. package/rds-lambda/node_modules/bl/README.md +247 -0
  757. package/rds-lambda/node_modules/bl/package.json +37 -0
  758. package/rds-lambda/node_modules/buffer/AUTHORS.md +70 -0
  759. package/rds-lambda/node_modules/buffer/LICENSE +21 -0
  760. package/rds-lambda/node_modules/buffer/README.md +410 -0
  761. package/rds-lambda/node_modules/buffer/package.json +96 -0
  762. package/rds-lambda/node_modules/buffer-crc32/LICENSE +19 -0
  763. package/rds-lambda/node_modules/buffer-crc32/README.md +47 -0
  764. package/rds-lambda/node_modules/buffer-crc32/package.json +39 -0
  765. package/rds-lambda/node_modules/caniuse-lite/package.json +1 -1
  766. package/rds-lambda/node_modules/cliui/CHANGELOG.md +0 -18
  767. package/rds-lambda/node_modules/cliui/package.json +6 -6
  768. package/rds-lambda/node_modules/compress-commons/CHANGELOG.md +58 -0
  769. package/rds-lambda/node_modules/compress-commons/LICENSE +22 -0
  770. package/rds-lambda/node_modules/compress-commons/README.md +25 -0
  771. package/rds-lambda/node_modules/compress-commons/package.json +45 -0
  772. package/rds-lambda/node_modules/core-util-is/LICENSE +19 -0
  773. package/rds-lambda/node_modules/core-util-is/README.md +3 -0
  774. package/rds-lambda/node_modules/core-util-is/package.json +38 -0
  775. package/rds-lambda/node_modules/crc-32/LICENSE +201 -0
  776. package/rds-lambda/node_modules/crc-32/README.md +200 -0
  777. package/rds-lambda/node_modules/crc-32/bin/crc32.njs +105 -0
  778. package/rds-lambda/node_modules/crc-32/package.json +43 -0
  779. package/rds-lambda/node_modules/crc-32/types/tsconfig.json +14 -0
  780. package/rds-lambda/node_modules/crc-32/types/tslint.json +11 -0
  781. package/rds-lambda/node_modules/crc32-stream/CHANGELOG.md +57 -0
  782. package/rds-lambda/node_modules/crc32-stream/LICENSE +22 -0
  783. package/rds-lambda/node_modules/crc32-stream/README.md +79 -0
  784. package/rds-lambda/node_modules/crc32-stream/package.json +45 -0
  785. package/rds-lambda/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
  786. package/rds-lambda/node_modules/electron-to-chromium/full-versions.json +1 -1
  787. package/rds-lambda/node_modules/electron-to-chromium/package.json +1 -1
  788. package/rds-lambda/node_modules/end-of-stream/LICENSE +21 -0
  789. package/rds-lambda/node_modules/end-of-stream/README.md +54 -0
  790. package/rds-lambda/node_modules/end-of-stream/package.json +37 -0
  791. package/rds-lambda/node_modules/fast-xml-parser/CHANGELOG.md +0 -26
  792. package/rds-lambda/node_modules/fast-xml-parser/README.md +0 -1
  793. package/rds-lambda/node_modules/fast-xml-parser/package.json +4 -7
  794. package/rds-lambda/node_modules/fs-constants/LICENSE +21 -0
  795. package/rds-lambda/node_modules/fs-constants/README.md +26 -0
  796. package/rds-lambda/node_modules/fs-constants/package.json +19 -0
  797. package/rds-lambda/node_modules/ieee754/LICENSE +11 -0
  798. package/rds-lambda/node_modules/ieee754/README.md +51 -0
  799. package/rds-lambda/node_modules/ieee754/package.json +52 -0
  800. package/rds-lambda/node_modules/isarray/.travis.yml +4 -0
  801. package/rds-lambda/node_modules/isarray/Makefile +6 -0
  802. package/rds-lambda/node_modules/isarray/README.md +60 -0
  803. package/rds-lambda/node_modules/isarray/component.json +19 -0
  804. package/rds-lambda/node_modules/isarray/package.json +45 -0
  805. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/CHANGELOG.md +139 -0
  806. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/LICENSE.txt +14 -0
  807. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/README.md +141 -0
  808. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/build/index.cjs +302 -0
  809. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/index.mjs +13 -0
  810. package/rds-lambda/node_modules/jest-cli/node_modules/cliui/package.json +83 -0
  811. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/LICENSE +21 -0
  812. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/README.md +204 -0
  813. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/browser.mjs +7 -0
  814. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/build/index.cjs +1 -0
  815. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/helpers/helpers.mjs +10 -0
  816. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/helpers/package.json +3 -0
  817. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/index.cjs +53 -0
  818. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/index.mjs +8 -0
  819. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
  820. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
  821. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/be.json +46 -0
  822. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/de.json +46 -0
  823. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/en.json +55 -0
  824. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/es.json +46 -0
  825. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/fi.json +49 -0
  826. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/fr.json +53 -0
  827. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/hi.json +49 -0
  828. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/hu.json +46 -0
  829. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/id.json +50 -0
  830. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/it.json +46 -0
  831. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/ja.json +51 -0
  832. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/ko.json +49 -0
  833. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/nb.json +44 -0
  834. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/nl.json +49 -0
  835. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/nn.json +44 -0
  836. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/pirate.json +13 -0
  837. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/pl.json +49 -0
  838. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/pt.json +45 -0
  839. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/pt_BR.json +48 -0
  840. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/ru.json +51 -0
  841. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/th.json +46 -0
  842. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/tr.json +48 -0
  843. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/zh_CN.json +48 -0
  844. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/locales/zh_TW.json +51 -0
  845. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/package.json +123 -0
  846. package/rds-lambda/node_modules/jest-cli/node_modules/yargs/yargs +9 -0
  847. package/rds-lambda/node_modules/lazystream/LICENSE +23 -0
  848. package/rds-lambda/node_modules/lazystream/README.md +114 -0
  849. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/.travis.yml +34 -0
  850. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  851. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/GOVERNANCE.md +136 -0
  852. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/LICENSE +47 -0
  853. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/README.md +58 -0
  854. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  855. package/rds-lambda/node_modules/lazystream/node_modules/readable-stream/package.json +52 -0
  856. package/rds-lambda/node_modules/lazystream/node_modules/safe-buffer/LICENSE +21 -0
  857. package/rds-lambda/node_modules/lazystream/node_modules/safe-buffer/README.md +584 -0
  858. package/rds-lambda/node_modules/lazystream/node_modules/safe-buffer/package.json +37 -0
  859. package/rds-lambda/node_modules/lazystream/node_modules/string_decoder/.travis.yml +50 -0
  860. package/rds-lambda/node_modules/lazystream/node_modules/string_decoder/LICENSE +48 -0
  861. package/rds-lambda/node_modules/lazystream/node_modules/string_decoder/README.md +47 -0
  862. package/rds-lambda/node_modules/lazystream/node_modules/string_decoder/package.json +31 -0
  863. package/rds-lambda/node_modules/lazystream/package.json +46 -0
  864. package/rds-lambda/node_modules/lazystream/test/data.md +13 -0
  865. package/rds-lambda/node_modules/lodash.defaults/LICENSE +47 -0
  866. package/rds-lambda/node_modules/lodash.defaults/README.md +18 -0
  867. package/rds-lambda/node_modules/lodash.defaults/package.json +17 -0
  868. package/rds-lambda/node_modules/lodash.difference/LICENSE +47 -0
  869. package/rds-lambda/node_modules/lodash.difference/README.md +18 -0
  870. package/rds-lambda/node_modules/lodash.difference/package.json +17 -0
  871. package/rds-lambda/node_modules/lodash.flatten/LICENSE +47 -0
  872. package/rds-lambda/node_modules/lodash.flatten/README.md +18 -0
  873. package/rds-lambda/node_modules/lodash.flatten/package.json +17 -0
  874. package/rds-lambda/node_modules/lodash.isplainobject/LICENSE +47 -0
  875. package/rds-lambda/node_modules/lodash.isplainobject/README.md +18 -0
  876. package/rds-lambda/node_modules/lodash.isplainobject/package.json +17 -0
  877. package/rds-lambda/node_modules/lodash.union/LICENSE +47 -0
  878. package/rds-lambda/node_modules/lodash.union/README.md +18 -0
  879. package/rds-lambda/node_modules/lodash.union/package.json +17 -0
  880. package/rds-lambda/node_modules/process-nextick-args/license.md +19 -0
  881. package/rds-lambda/node_modules/process-nextick-args/package.json +25 -0
  882. package/rds-lambda/node_modules/process-nextick-args/readme.md +18 -0
  883. package/rds-lambda/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  884. package/rds-lambda/node_modules/readable-stream/GOVERNANCE.md +136 -0
  885. package/rds-lambda/node_modules/readable-stream/LICENSE +47 -0
  886. package/rds-lambda/node_modules/readable-stream/README.md +106 -0
  887. package/rds-lambda/node_modules/readable-stream/package.json +68 -0
  888. package/rds-lambda/node_modules/readdir-glob/LICENSE +201 -0
  889. package/rds-lambda/node_modules/readdir-glob/README.md +85 -0
  890. package/rds-lambda/node_modules/readdir-glob/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  891. package/rds-lambda/node_modules/readdir-glob/node_modules/brace-expansion/LICENSE +21 -0
  892. package/rds-lambda/node_modules/readdir-glob/node_modules/brace-expansion/README.md +135 -0
  893. package/rds-lambda/node_modules/readdir-glob/node_modules/brace-expansion/package.json +46 -0
  894. package/rds-lambda/node_modules/readdir-glob/node_modules/minimatch/LICENSE +15 -0
  895. package/rds-lambda/node_modules/readdir-glob/node_modules/minimatch/README.md +259 -0
  896. package/rds-lambda/node_modules/readdir-glob/node_modules/minimatch/package.json +35 -0
  897. package/rds-lambda/node_modules/readdir-glob/package.json +43 -0
  898. package/rds-lambda/node_modules/safe-buffer/LICENSE +21 -0
  899. package/rds-lambda/node_modules/safe-buffer/README.md +584 -0
  900. package/rds-lambda/node_modules/safe-buffer/package.json +51 -0
  901. package/rds-lambda/node_modules/string_decoder/LICENSE +48 -0
  902. package/rds-lambda/node_modules/string_decoder/README.md +47 -0
  903. package/rds-lambda/node_modules/string_decoder/package.json +34 -0
  904. package/rds-lambda/node_modules/tar-stream/LICENSE +21 -0
  905. package/rds-lambda/node_modules/tar-stream/README.md +168 -0
  906. package/rds-lambda/node_modules/tar-stream/package.json +58 -0
  907. package/rds-lambda/node_modules/util-deprecate/History.md +16 -0
  908. package/rds-lambda/node_modules/util-deprecate/LICENSE +24 -0
  909. package/rds-lambda/node_modules/util-deprecate/README.md +53 -0
  910. package/rds-lambda/node_modules/util-deprecate/package.json +27 -0
  911. package/rds-lambda/node_modules/yargs/CHANGELOG.md +88 -0
  912. package/rds-lambda/node_modules/yargs/README.md +6 -8
  913. package/rds-lambda/node_modules/yargs/browser.mjs +2 -2
  914. package/rds-lambda/node_modules/yargs/build/index.cjs +2920 -1
  915. package/rds-lambda/node_modules/yargs/index.cjs +8 -22
  916. package/rds-lambda/node_modules/yargs/index.mjs +2 -2
  917. package/rds-lambda/node_modules/yargs/lib/platform-shims/browser.mjs +0 -3
  918. package/rds-lambda/node_modules/yargs/lib/platform-shims/esm.mjs +3 -9
  919. package/rds-lambda/node_modules/yargs/locales/en.json +0 -4
  920. package/rds-lambda/node_modules/yargs/locales/fi.json +1 -1
  921. package/rds-lambda/node_modules/yargs/locales/ko.json +25 -25
  922. package/rds-lambda/node_modules/yargs/locales/ru.json +1 -6
  923. package/rds-lambda/node_modules/yargs/locales/zh_TW.json +46 -50
  924. package/rds-lambda/node_modules/yargs/node_modules/yargs-parser/CHANGELOG.md +263 -0
  925. package/rds-lambda/node_modules/yargs/node_modules/yargs-parser/LICENSE.txt +14 -0
  926. package/rds-lambda/node_modules/yargs/node_modules/yargs-parser/README.md +518 -0
  927. package/rds-lambda/node_modules/yargs/node_modules/yargs-parser/build/index.cjs +1042 -0
  928. package/rds-lambda/node_modules/yargs/node_modules/yargs-parser/package.json +87 -0
  929. package/rds-lambda/node_modules/yargs/package.json +24 -25
  930. package/rds-lambda/node_modules/zip-stream/CHANGELOG.md +110 -0
  931. package/rds-lambda/node_modules/zip-stream/LICENSE +22 -0
  932. package/rds-lambda/node_modules/zip-stream/README.md +45 -0
  933. package/rds-lambda/node_modules/zip-stream/package.json +49 -0
  934. package/rds-lambda/package-lock.json +832 -682
  935. package/rds-lambda/package.json +3 -5
  936. package/rds-patching-lambda/node_modules/.package-lock.json +1883 -0
  937. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/CHANGELOG.md +76 -0
  938. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/LICENSE +201 -0
  939. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/README.md +16 -0
  940. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +15 -0
  941. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +12 -0
  942. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +142 -0
  943. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +3 -0
  944. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +37 -0
  945. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  946. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +1 -0
  947. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +1 -0
  948. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/package.json +28 -0
  949. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +24 -0
  950. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/src/index.ts +92 -0
  951. package/rds-patching-lambda/node_modules/@aws-crypto/crc32/tsconfig.json +23 -0
  952. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md +46 -0
  953. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/LICENSE +202 -0
  954. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/README.md +20 -0
  955. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt +15 -0
  956. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt +12 -0
  957. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md +142 -0
  958. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json +3 -0
  959. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json +37 -0
  960. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  961. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html +1 -0
  962. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html +1 -0
  963. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/package.json +26 -0
  964. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts +21 -0
  965. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/Key.ts +12 -0
  966. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts +13 -0
  967. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts +88 -0
  968. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts +59 -0
  969. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/src/index.ts +5 -0
  970. package/rds-patching-lambda/node_modules/@aws-crypto/ie11-detection/tsconfig.json +17 -0
  971. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +88 -0
  972. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/LICENSE +202 -0
  973. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/README.md +31 -0
  974. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt +15 -0
  975. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt +12 -0
  976. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md +142 -0
  977. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json +3 -0
  978. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json +37 -0
  979. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  980. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html +1 -0
  981. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html +1 -0
  982. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/package.json +33 -0
  983. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/constants.ts +41 -0
  984. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +34 -0
  985. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts +108 -0
  986. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/index.ts +3 -0
  987. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +9 -0
  988. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +71 -0
  989. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-browser/tsconfig.json +22 -0
  990. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +86 -0
  991. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/LICENSE +201 -0
  992. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/README.md +29 -0
  993. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt +15 -0
  994. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt +12 -0
  995. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md +142 -0
  996. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json +3 -0
  997. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json +37 -0
  998. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  999. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html +1 -0
  1000. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html +1 -0
  1001. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/package.json +28 -0
  1002. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +164 -0
  1003. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/src/constants.ts +98 -0
  1004. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/src/index.ts +1 -0
  1005. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +94 -0
  1006. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +401 -0
  1007. package/rds-patching-lambda/node_modules/@aws-crypto/sha256-js/tsconfig.json +17 -0
  1008. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +46 -0
  1009. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/LICENSE +202 -0
  1010. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/README.md +32 -0
  1011. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt +15 -0
  1012. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt +12 -0
  1013. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md +142 -0
  1014. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json +3 -0
  1015. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json +37 -0
  1016. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  1017. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html +1 -0
  1018. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html +1 -0
  1019. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/package.json +26 -0
  1020. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +1 -0
  1021. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +76 -0
  1022. package/rds-patching-lambda/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +16 -0
  1023. package/rds-patching-lambda/node_modules/@aws-crypto/util/CHANGELOG.md +47 -0
  1024. package/rds-patching-lambda/node_modules/@aws-crypto/util/LICENSE +201 -0
  1025. package/rds-patching-lambda/node_modules/@aws-crypto/util/README.md +16 -0
  1026. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt +15 -0
  1027. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt +12 -0
  1028. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/README.md +142 -0
  1029. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json +3 -0
  1030. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/package.json +37 -0
  1031. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
  1032. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html +1 -0
  1033. package/rds-patching-lambda/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html +1 -0
  1034. package/rds-patching-lambda/node_modules/@aws-crypto/util/package.json +31 -0
  1035. package/rds-patching-lambda/node_modules/@aws-crypto/util/src/convertToBuffer.ts +30 -0
  1036. package/rds-patching-lambda/node_modules/@aws-crypto/util/src/index.ts +7 -0
  1037. package/rds-patching-lambda/node_modules/@aws-crypto/util/src/isEmptyData.ts +12 -0
  1038. package/rds-patching-lambda/node_modules/@aws-crypto/util/src/numToUint8.ts +11 -0
  1039. package/rds-patching-lambda/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +16 -0
  1040. package/rds-patching-lambda/node_modules/@aws-crypto/util/tsconfig.json +23 -0
  1041. package/rds-patching-lambda/node_modules/@aws-sdk/abort-controller/LICENSE +201 -0
  1042. package/rds-patching-lambda/node_modules/@aws-sdk/abort-controller/README.md +4 -0
  1043. package/rds-patching-lambda/node_modules/@aws-sdk/abort-controller/package.json +58 -0
  1044. package/rds-patching-lambda/node_modules/@aws-sdk/client-lambda/LICENSE +201 -0
  1045. package/rds-patching-lambda/node_modules/@aws-sdk/client-lambda/README.md +798 -0
  1046. package/rds-patching-lambda/node_modules/@aws-sdk/client-lambda/package.json +103 -0
  1047. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso/LICENSE +201 -0
  1048. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso/README.md +255 -0
  1049. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso/package.json +96 -0
  1050. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  1051. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso-oidc/README.md +268 -0
  1052. package/rds-patching-lambda/node_modules/@aws-sdk/client-sso-oidc/package.json +96 -0
  1053. package/rds-patching-lambda/node_modules/@aws-sdk/client-sts/LICENSE +201 -0
  1054. package/rds-patching-lambda/node_modules/@aws-sdk/client-sts/README.md +273 -0
  1055. package/rds-patching-lambda/node_modules/@aws-sdk/client-sts/package.json +102 -0
  1056. package/rds-patching-lambda/node_modules/@aws-sdk/config-resolver/LICENSE +201 -0
  1057. package/rds-patching-lambda/node_modules/@aws-sdk/config-resolver/README.md +10 -0
  1058. package/rds-patching-lambda/node_modules/@aws-sdk/config-resolver/package.json +59 -0
  1059. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-env/LICENSE +201 -0
  1060. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-env/README.md +11 -0
  1061. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
  1062. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-imds/LICENSE +201 -0
  1063. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-imds/README.md +11 -0
  1064. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-imds/package.json +66 -0
  1065. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-ini/LICENSE +201 -0
  1066. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-ini/README.md +11 -0
  1067. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +69 -0
  1068. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-node/LICENSE +201 -0
  1069. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-node/README.md +101 -0
  1070. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +70 -0
  1071. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-process/LICENSE +201 -0
  1072. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-process/README.md +11 -0
  1073. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +64 -0
  1074. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-sso/LICENSE +201 -0
  1075. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-sso/README.md +11 -0
  1076. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +66 -0
  1077. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-web-identity/LICENSE +201 -0
  1078. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-web-identity/README.md +11 -0
  1079. package/rds-patching-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +71 -0
  1080. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-codec/LICENSE +201 -0
  1081. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-codec/README.md +4 -0
  1082. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-codec/package.json +57 -0
  1083. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-browser/LICENSE +201 -0
  1084. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-browser/README.md +10 -0
  1085. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-browser/package.json +57 -0
  1086. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/LICENSE +201 -0
  1087. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/README.md +10 -0
  1088. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-config-resolver/package.json +56 -0
  1089. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-node/LICENSE +201 -0
  1090. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-node/README.md +10 -0
  1091. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-node/package.json +58 -0
  1092. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-universal/LICENSE +201 -0
  1093. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-universal/README.md +10 -0
  1094. package/rds-patching-lambda/node_modules/@aws-sdk/eventstream-serde-universal/package.json +59 -0
  1095. package/rds-patching-lambda/node_modules/@aws-sdk/fetch-http-handler/LICENSE +201 -0
  1096. package/rds-patching-lambda/node_modules/@aws-sdk/fetch-http-handler/README.md +4 -0
  1097. package/rds-patching-lambda/node_modules/@aws-sdk/fetch-http-handler/package.json +59 -0
  1098. package/rds-patching-lambda/node_modules/@aws-sdk/hash-node/LICENSE +201 -0
  1099. package/rds-patching-lambda/node_modules/@aws-sdk/hash-node/README.md +10 -0
  1100. package/rds-patching-lambda/node_modules/@aws-sdk/hash-node/package.json +60 -0
  1101. package/rds-patching-lambda/node_modules/@aws-sdk/invalid-dependency/LICENSE +201 -0
  1102. package/rds-patching-lambda/node_modules/@aws-sdk/invalid-dependency/README.md +10 -0
  1103. package/rds-patching-lambda/node_modules/@aws-sdk/invalid-dependency/package.json +53 -0
  1104. package/rds-patching-lambda/node_modules/@aws-sdk/is-array-buffer/LICENSE +201 -0
  1105. package/rds-patching-lambda/node_modules/@aws-sdk/is-array-buffer/README.md +10 -0
  1106. package/rds-patching-lambda/node_modules/@aws-sdk/is-array-buffer/package.json +56 -0
  1107. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-content-length/LICENSE +201 -0
  1108. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-content-length/README.md +4 -0
  1109. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-content-length/package.json +58 -0
  1110. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-endpoint/LICENSE +201 -0
  1111. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-endpoint/README.md +10 -0
  1112. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-endpoint/package.json +60 -0
  1113. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-host-header/LICENSE +201 -0
  1114. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-host-header/README.md +4 -0
  1115. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-host-header/package.json +58 -0
  1116. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-logger/LICENSE +201 -0
  1117. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-logger/README.md +4 -0
  1118. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-logger/package.json +59 -0
  1119. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +201 -0
  1120. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-recursion-detection/README.md +10 -0
  1121. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-recursion-detection/package.json +58 -0
  1122. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-retry/LICENSE +201 -0
  1123. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-retry/README.md +4 -0
  1124. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-retry/package.json +65 -0
  1125. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-sdk-sts/LICENSE +201 -0
  1126. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-sdk-sts/README.md +4 -0
  1127. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-sdk-sts/package.json +58 -0
  1128. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-serde/LICENSE +201 -0
  1129. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-serde/README.md +4 -0
  1130. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-serde/package.json +57 -0
  1131. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-signing/LICENSE +201 -0
  1132. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-signing/README.md +4 -0
  1133. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-signing/package.json +61 -0
  1134. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-stack/LICENSE +201 -0
  1135. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-stack/README.md +78 -0
  1136. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-stack/package.json +60 -0
  1137. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-user-agent/LICENSE +201 -0
  1138. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-user-agent/README.md +4 -0
  1139. package/rds-patching-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +59 -0
  1140. package/rds-patching-lambda/node_modules/@aws-sdk/node-config-provider/LICENSE +201 -0
  1141. package/rds-patching-lambda/node_modules/@aws-sdk/node-config-provider/README.md +4 -0
  1142. package/rds-patching-lambda/node_modules/@aws-sdk/node-config-provider/package.json +61 -0
  1143. package/rds-patching-lambda/node_modules/@aws-sdk/node-http-handler/LICENSE +201 -0
  1144. package/rds-patching-lambda/node_modules/@aws-sdk/node-http-handler/README.md +4 -0
  1145. package/rds-patching-lambda/node_modules/@aws-sdk/node-http-handler/package.json +63 -0
  1146. package/rds-patching-lambda/node_modules/@aws-sdk/property-provider/LICENSE +201 -0
  1147. package/rds-patching-lambda/node_modules/@aws-sdk/property-provider/README.md +10 -0
  1148. package/rds-patching-lambda/node_modules/@aws-sdk/property-provider/package.json +56 -0
  1149. package/rds-patching-lambda/node_modules/@aws-sdk/protocol-http/LICENSE +201 -0
  1150. package/rds-patching-lambda/node_modules/@aws-sdk/protocol-http/README.md +4 -0
  1151. package/rds-patching-lambda/node_modules/@aws-sdk/protocol-http/package.json +57 -0
  1152. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-builder/LICENSE +201 -0
  1153. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-builder/README.md +10 -0
  1154. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-builder/package.json +57 -0
  1155. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-parser/LICENSE +201 -0
  1156. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-parser/README.md +10 -0
  1157. package/rds-patching-lambda/node_modules/@aws-sdk/querystring-parser/package.json +56 -0
  1158. package/rds-patching-lambda/node_modules/@aws-sdk/service-error-classification/LICENSE +201 -0
  1159. package/rds-patching-lambda/node_modules/@aws-sdk/service-error-classification/README.md +4 -0
  1160. package/rds-patching-lambda/node_modules/@aws-sdk/service-error-classification/package.json +53 -0
  1161. package/rds-patching-lambda/node_modules/@aws-sdk/shared-ini-file-loader/LICENSE +201 -0
  1162. package/rds-patching-lambda/node_modules/@aws-sdk/shared-ini-file-loader/README.md +105 -0
  1163. package/rds-patching-lambda/node_modules/@aws-sdk/shared-ini-file-loader/package.json +58 -0
  1164. package/rds-patching-lambda/node_modules/@aws-sdk/signature-v4/LICENSE +201 -0
  1165. package/rds-patching-lambda/node_modules/@aws-sdk/signature-v4/README.md +4 -0
  1166. package/rds-patching-lambda/node_modules/@aws-sdk/signature-v4/package.json +66 -0
  1167. package/rds-patching-lambda/node_modules/@aws-sdk/smithy-client/LICENSE +201 -0
  1168. package/rds-patching-lambda/node_modules/@aws-sdk/smithy-client/README.md +10 -0
  1169. package/rds-patching-lambda/node_modules/@aws-sdk/smithy-client/package.json +59 -0
  1170. package/rds-patching-lambda/node_modules/@aws-sdk/token-providers/LICENSE +201 -0
  1171. package/rds-patching-lambda/node_modules/@aws-sdk/token-providers/README.md +39 -0
  1172. package/rds-patching-lambda/node_modules/@aws-sdk/token-providers/package.json +67 -0
  1173. package/rds-patching-lambda/node_modules/@aws-sdk/types/LICENSE +201 -0
  1174. package/rds-patching-lambda/node_modules/@aws-sdk/types/README.md +4 -0
  1175. package/rds-patching-lambda/node_modules/@aws-sdk/types/package.json +57 -0
  1176. package/rds-patching-lambda/node_modules/@aws-sdk/url-parser/LICENSE +201 -0
  1177. package/rds-patching-lambda/node_modules/@aws-sdk/url-parser/README.md +10 -0
  1178. package/rds-patching-lambda/node_modules/@aws-sdk/url-parser/package.json +54 -0
  1179. package/rds-patching-lambda/node_modules/@aws-sdk/util-base64/LICENSE +201 -0
  1180. package/rds-patching-lambda/node_modules/@aws-sdk/util-base64/README.md +4 -0
  1181. package/rds-patching-lambda/node_modules/@aws-sdk/util-base64/package.json +66 -0
  1182. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-browser/LICENSE +201 -0
  1183. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-browser/README.md +12 -0
  1184. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-browser/package.json +53 -0
  1185. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-node/LICENSE +201 -0
  1186. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-node/README.md +12 -0
  1187. package/rds-patching-lambda/node_modules/@aws-sdk/util-body-length-node/package.json +57 -0
  1188. package/rds-patching-lambda/node_modules/@aws-sdk/util-buffer-from/LICENSE +201 -0
  1189. package/rds-patching-lambda/node_modules/@aws-sdk/util-buffer-from/README.md +10 -0
  1190. package/rds-patching-lambda/node_modules/@aws-sdk/util-buffer-from/package.json +57 -0
  1191. package/rds-patching-lambda/node_modules/@aws-sdk/util-config-provider/LICENSE +201 -0
  1192. package/rds-patching-lambda/node_modules/@aws-sdk/util-config-provider/README.md +4 -0
  1193. package/rds-patching-lambda/node_modules/@aws-sdk/util-config-provider/package.json +58 -0
  1194. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/LICENSE +201 -0
  1195. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/README.md +10 -0
  1196. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +62 -0
  1197. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-node/LICENSE +201 -0
  1198. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-node/README.md +10 -0
  1199. package/rds-patching-lambda/node_modules/@aws-sdk/util-defaults-mode-node/package.json +61 -0
  1200. package/rds-patching-lambda/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
  1201. package/rds-patching-lambda/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
  1202. package/rds-patching-lambda/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +203 -0
  1203. package/rds-patching-lambda/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +203 -0
  1204. package/rds-patching-lambda/node_modules/@aws-sdk/util-endpoints/package.json +58 -0
  1205. package/rds-patching-lambda/node_modules/@aws-sdk/util-hex-encoding/LICENSE +201 -0
  1206. package/rds-patching-lambda/node_modules/@aws-sdk/util-hex-encoding/README.md +4 -0
  1207. package/rds-patching-lambda/node_modules/@aws-sdk/util-hex-encoding/package.json +56 -0
  1208. package/rds-patching-lambda/node_modules/@aws-sdk/util-locate-window/LICENSE +201 -0
  1209. package/rds-patching-lambda/node_modules/@aws-sdk/util-locate-window/README.md +4 -0
  1210. package/rds-patching-lambda/node_modules/@aws-sdk/util-locate-window/package.json +56 -0
  1211. package/rds-patching-lambda/node_modules/@aws-sdk/util-middleware/LICENSE +201 -0
  1212. package/rds-patching-lambda/node_modules/@aws-sdk/util-middleware/README.md +12 -0
  1213. package/rds-patching-lambda/node_modules/@aws-sdk/util-middleware/package.json +62 -0
  1214. package/rds-patching-lambda/node_modules/@aws-sdk/util-retry/LICENSE +201 -0
  1215. package/rds-patching-lambda/node_modules/@aws-sdk/util-retry/README.md +77 -0
  1216. package/rds-patching-lambda/node_modules/@aws-sdk/util-retry/package.json +64 -0
  1217. package/rds-patching-lambda/node_modules/@aws-sdk/util-uri-escape/LICENSE +201 -0
  1218. package/rds-patching-lambda/node_modules/@aws-sdk/util-uri-escape/README.md +10 -0
  1219. package/rds-patching-lambda/node_modules/@aws-sdk/util-uri-escape/package.json +55 -0
  1220. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-browser/LICENSE +201 -0
  1221. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-browser/README.md +10 -0
  1222. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-browser/package.json +55 -0
  1223. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-node/LICENSE +201 -0
  1224. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-node/README.md +10 -0
  1225. package/rds-patching-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +66 -0
  1226. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8/LICENSE +201 -0
  1227. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8/README.md +4 -0
  1228. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8/package.json +65 -0
  1229. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8-browser/LICENSE +201 -0
  1230. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8-browser/README.md +8 -0
  1231. package/rds-patching-lambda/node_modules/@aws-sdk/util-utf8-browser/package.json +50 -0
  1232. package/rds-patching-lambda/node_modules/@aws-sdk/util-waiter/LICENSE +201 -0
  1233. package/rds-patching-lambda/node_modules/@aws-sdk/util-waiter/README.md +10 -0
  1234. package/rds-patching-lambda/node_modules/@aws-sdk/util-waiter/package.json +58 -0
  1235. package/rds-patching-lambda/node_modules/@smithy/protocol-http/LICENSE +201 -0
  1236. package/rds-patching-lambda/node_modules/@smithy/protocol-http/README.md +4 -0
  1237. package/rds-patching-lambda/node_modules/@smithy/protocol-http/package.json +63 -0
  1238. package/rds-patching-lambda/node_modules/@smithy/types/LICENSE +201 -0
  1239. package/rds-patching-lambda/node_modules/@smithy/types/README.md +4 -0
  1240. package/rds-patching-lambda/node_modules/@smithy/types/package.json +62 -0
  1241. package/rds-patching-lambda/node_modules/@types/node/LICENSE +21 -0
  1242. package/rds-patching-lambda/node_modules/@types/node/README.md +16 -0
  1243. package/rds-patching-lambda/node_modules/@types/node/package.json +237 -0
  1244. package/rds-patching-lambda/node_modules/ansi-regex/license +9 -0
  1245. package/rds-patching-lambda/node_modules/ansi-regex/package.json +55 -0
  1246. package/rds-patching-lambda/node_modules/ansi-regex/readme.md +78 -0
  1247. package/rds-patching-lambda/node_modules/ansi-styles/license +9 -0
  1248. package/rds-patching-lambda/node_modules/ansi-styles/package.json +56 -0
  1249. package/rds-patching-lambda/node_modules/ansi-styles/readme.md +152 -0
  1250. package/rds-patching-lambda/node_modules/archiver/CHANGELOG.md +228 -0
  1251. package/rds-patching-lambda/node_modules/archiver/LICENSE +22 -0
  1252. package/rds-patching-lambda/node_modules/archiver/README.md +94 -0
  1253. package/rds-patching-lambda/node_modules/archiver/package.json +60 -0
  1254. package/rds-patching-lambda/node_modules/archiver-utils/CHANGELOG.md +14 -0
  1255. package/rds-patching-lambda/node_modules/archiver-utils/LICENSE +22 -0
  1256. package/rds-patching-lambda/node_modules/archiver-utils/README.md +7 -0
  1257. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/.travis.yml +34 -0
  1258. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1259. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1260. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/LICENSE +47 -0
  1261. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/README.md +58 -0
  1262. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  1263. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/readable-stream/package.json +52 -0
  1264. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/safe-buffer/LICENSE +21 -0
  1265. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/safe-buffer/README.md +584 -0
  1266. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/safe-buffer/package.json +37 -0
  1267. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/string_decoder/.travis.yml +50 -0
  1268. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/string_decoder/LICENSE +48 -0
  1269. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/string_decoder/README.md +47 -0
  1270. package/rds-patching-lambda/node_modules/archiver-utils/node_modules/string_decoder/package.json +31 -0
  1271. package/rds-patching-lambda/node_modules/archiver-utils/package.json +54 -0
  1272. package/rds-patching-lambda/node_modules/async/CHANGELOG.md +348 -0
  1273. package/rds-patching-lambda/node_modules/async/LICENSE +19 -0
  1274. package/rds-patching-lambda/node_modules/async/README.md +59 -0
  1275. package/rds-patching-lambda/node_modules/async/bower.json +17 -0
  1276. package/rds-patching-lambda/node_modules/async/dist/async.mjs +5947 -0
  1277. package/rds-patching-lambda/node_modules/async/package.json +75 -0
  1278. package/rds-patching-lambda/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  1279. package/rds-patching-lambda/node_modules/balanced-match/LICENSE.md +21 -0
  1280. package/rds-patching-lambda/node_modules/balanced-match/README.md +97 -0
  1281. package/rds-patching-lambda/node_modules/balanced-match/package.json +48 -0
  1282. package/rds-patching-lambda/node_modules/base64-js/LICENSE +21 -0
  1283. package/rds-patching-lambda/node_modules/base64-js/README.md +34 -0
  1284. package/rds-patching-lambda/node_modules/base64-js/package.json +47 -0
  1285. package/rds-patching-lambda/node_modules/bestzip/LICENSE +21 -0
  1286. package/rds-patching-lambda/node_modules/bestzip/package.json +46 -0
  1287. package/rds-patching-lambda/node_modules/bestzip/readme.md +91 -0
  1288. package/rds-patching-lambda/node_modules/bl/.travis.yml +17 -0
  1289. package/rds-patching-lambda/node_modules/bl/LICENSE.md +13 -0
  1290. package/rds-patching-lambda/node_modules/bl/README.md +247 -0
  1291. package/rds-patching-lambda/node_modules/bl/package.json +37 -0
  1292. package/rds-patching-lambda/node_modules/bowser/CHANGELOG.md +218 -0
  1293. package/rds-patching-lambda/node_modules/bowser/LICENSE +39 -0
  1294. package/rds-patching-lambda/node_modules/bowser/README.md +179 -0
  1295. package/rds-patching-lambda/node_modules/bowser/package.json +83 -0
  1296. package/rds-patching-lambda/node_modules/brace-expansion/LICENSE +21 -0
  1297. package/rds-patching-lambda/node_modules/brace-expansion/README.md +129 -0
  1298. package/rds-patching-lambda/node_modules/brace-expansion/package.json +47 -0
  1299. package/rds-patching-lambda/node_modules/buffer/AUTHORS.md +70 -0
  1300. package/rds-patching-lambda/node_modules/buffer/LICENSE +21 -0
  1301. package/rds-patching-lambda/node_modules/buffer/README.md +410 -0
  1302. package/rds-patching-lambda/node_modules/buffer/package.json +96 -0
  1303. package/rds-patching-lambda/node_modules/buffer-crc32/LICENSE +19 -0
  1304. package/rds-patching-lambda/node_modules/buffer-crc32/README.md +47 -0
  1305. package/rds-patching-lambda/node_modules/buffer-crc32/package.json +39 -0
  1306. package/rds-patching-lambda/node_modules/cliui/CHANGELOG.md +121 -0
  1307. package/rds-patching-lambda/node_modules/cliui/LICENSE.txt +14 -0
  1308. package/rds-patching-lambda/node_modules/cliui/README.md +141 -0
  1309. package/rds-patching-lambda/node_modules/cliui/build/index.cjs +302 -0
  1310. package/rds-patching-lambda/node_modules/cliui/index.mjs +13 -0
  1311. package/rds-patching-lambda/node_modules/cliui/package.json +83 -0
  1312. package/rds-patching-lambda/node_modules/color-convert/CHANGELOG.md +54 -0
  1313. package/rds-patching-lambda/node_modules/color-convert/LICENSE +21 -0
  1314. package/rds-patching-lambda/node_modules/color-convert/README.md +68 -0
  1315. package/rds-patching-lambda/node_modules/color-convert/package.json +48 -0
  1316. package/rds-patching-lambda/node_modules/color-name/LICENSE +8 -0
  1317. package/rds-patching-lambda/node_modules/color-name/README.md +11 -0
  1318. package/rds-patching-lambda/node_modules/color-name/package.json +28 -0
  1319. package/rds-patching-lambda/node_modules/compress-commons/CHANGELOG.md +58 -0
  1320. package/rds-patching-lambda/node_modules/compress-commons/LICENSE +22 -0
  1321. package/rds-patching-lambda/node_modules/compress-commons/README.md +25 -0
  1322. package/rds-patching-lambda/node_modules/compress-commons/package.json +45 -0
  1323. package/rds-patching-lambda/node_modules/concat-map/.travis.yml +4 -0
  1324. package/rds-patching-lambda/node_modules/concat-map/LICENSE +18 -0
  1325. package/rds-patching-lambda/node_modules/concat-map/README.markdown +62 -0
  1326. package/rds-patching-lambda/node_modules/concat-map/package.json +43 -0
  1327. package/rds-patching-lambda/node_modules/core-util-is/LICENSE +19 -0
  1328. package/rds-patching-lambda/node_modules/core-util-is/README.md +3 -0
  1329. package/rds-patching-lambda/node_modules/core-util-is/package.json +38 -0
  1330. package/rds-patching-lambda/node_modules/crc-32/LICENSE +201 -0
  1331. package/rds-patching-lambda/node_modules/crc-32/README.md +200 -0
  1332. package/rds-patching-lambda/node_modules/crc-32/bin/crc32.njs +105 -0
  1333. package/rds-patching-lambda/node_modules/crc-32/package.json +43 -0
  1334. package/rds-patching-lambda/node_modules/crc-32/types/tsconfig.json +14 -0
  1335. package/rds-patching-lambda/node_modules/crc-32/types/tslint.json +11 -0
  1336. package/rds-patching-lambda/node_modules/crc32-stream/CHANGELOG.md +57 -0
  1337. package/rds-patching-lambda/node_modules/crc32-stream/LICENSE +22 -0
  1338. package/rds-patching-lambda/node_modules/crc32-stream/README.md +79 -0
  1339. package/rds-patching-lambda/node_modules/crc32-stream/package.json +45 -0
  1340. package/rds-patching-lambda/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1341. package/rds-patching-lambda/node_modules/emoji-regex/README.md +73 -0
  1342. package/rds-patching-lambda/node_modules/emoji-regex/package.json +50 -0
  1343. package/rds-patching-lambda/node_modules/end-of-stream/LICENSE +21 -0
  1344. package/rds-patching-lambda/node_modules/end-of-stream/README.md +54 -0
  1345. package/rds-patching-lambda/node_modules/end-of-stream/package.json +37 -0
  1346. package/rds-patching-lambda/node_modules/escalade/dist/index.mjs +22 -0
  1347. package/rds-patching-lambda/node_modules/escalade/license +9 -0
  1348. package/rds-patching-lambda/node_modules/escalade/package.json +61 -0
  1349. package/rds-patching-lambda/node_modules/escalade/readme.md +211 -0
  1350. package/rds-patching-lambda/node_modules/escalade/sync/index.mjs +18 -0
  1351. package/rds-patching-lambda/node_modules/fast-xml-parser/CHANGELOG.md +551 -0
  1352. package/rds-patching-lambda/node_modules/fast-xml-parser/LICENSE +21 -0
  1353. package/rds-patching-lambda/node_modules/fast-xml-parser/README.md +204 -0
  1354. package/rds-patching-lambda/node_modules/fast-xml-parser/package.json +71 -0
  1355. package/rds-patching-lambda/node_modules/fs-constants/LICENSE +21 -0
  1356. package/rds-patching-lambda/node_modules/fs-constants/README.md +26 -0
  1357. package/rds-patching-lambda/node_modules/fs-constants/package.json +19 -0
  1358. package/rds-patching-lambda/node_modules/fs.realpath/LICENSE +43 -0
  1359. package/rds-patching-lambda/node_modules/fs.realpath/README.md +33 -0
  1360. package/rds-patching-lambda/node_modules/fs.realpath/package.json +26 -0
  1361. package/rds-patching-lambda/node_modules/get-caller-file/LICENSE.md +6 -0
  1362. package/rds-patching-lambda/node_modules/get-caller-file/README.md +41 -0
  1363. package/rds-patching-lambda/node_modules/get-caller-file/package.json +42 -0
  1364. package/rds-patching-lambda/node_modules/glob/LICENSE +21 -0
  1365. package/rds-patching-lambda/node_modules/glob/README.md +378 -0
  1366. package/rds-patching-lambda/node_modules/glob/package.json +55 -0
  1367. package/rds-patching-lambda/node_modules/graceful-fs/LICENSE +15 -0
  1368. package/rds-patching-lambda/node_modules/graceful-fs/README.md +143 -0
  1369. package/rds-patching-lambda/node_modules/graceful-fs/package.json +53 -0
  1370. package/rds-patching-lambda/node_modules/ieee754/LICENSE +11 -0
  1371. package/rds-patching-lambda/node_modules/ieee754/README.md +51 -0
  1372. package/rds-patching-lambda/node_modules/ieee754/package.json +52 -0
  1373. package/rds-patching-lambda/node_modules/inflight/LICENSE +15 -0
  1374. package/rds-patching-lambda/node_modules/inflight/README.md +37 -0
  1375. package/rds-patching-lambda/node_modules/inflight/package.json +29 -0
  1376. package/rds-patching-lambda/node_modules/inherits/LICENSE +16 -0
  1377. package/rds-patching-lambda/node_modules/inherits/README.md +42 -0
  1378. package/rds-patching-lambda/node_modules/inherits/package.json +29 -0
  1379. package/rds-patching-lambda/node_modules/is-fullwidth-code-point/license +9 -0
  1380. package/rds-patching-lambda/node_modules/is-fullwidth-code-point/package.json +42 -0
  1381. package/rds-patching-lambda/node_modules/is-fullwidth-code-point/readme.md +39 -0
  1382. package/rds-patching-lambda/node_modules/isarray/.travis.yml +4 -0
  1383. package/rds-patching-lambda/node_modules/isarray/Makefile +6 -0
  1384. package/rds-patching-lambda/node_modules/isarray/README.md +60 -0
  1385. package/rds-patching-lambda/node_modules/isarray/component.json +19 -0
  1386. package/rds-patching-lambda/node_modules/isarray/package.json +45 -0
  1387. package/rds-patching-lambda/node_modules/isexe/LICENSE +15 -0
  1388. package/rds-patching-lambda/node_modules/isexe/README.md +51 -0
  1389. package/rds-patching-lambda/node_modules/isexe/package.json +31 -0
  1390. package/rds-patching-lambda/node_modules/lazystream/LICENSE +23 -0
  1391. package/rds-patching-lambda/node_modules/lazystream/README.md +114 -0
  1392. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/.travis.yml +34 -0
  1393. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1394. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1395. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/LICENSE +47 -0
  1396. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/README.md +58 -0
  1397. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  1398. package/rds-patching-lambda/node_modules/lazystream/node_modules/readable-stream/package.json +52 -0
  1399. package/rds-patching-lambda/node_modules/lazystream/node_modules/safe-buffer/LICENSE +21 -0
  1400. package/rds-patching-lambda/node_modules/lazystream/node_modules/safe-buffer/README.md +584 -0
  1401. package/rds-patching-lambda/node_modules/lazystream/node_modules/safe-buffer/package.json +37 -0
  1402. package/rds-patching-lambda/node_modules/lazystream/node_modules/string_decoder/.travis.yml +50 -0
  1403. package/rds-patching-lambda/node_modules/lazystream/node_modules/string_decoder/LICENSE +48 -0
  1404. package/rds-patching-lambda/node_modules/lazystream/node_modules/string_decoder/README.md +47 -0
  1405. package/rds-patching-lambda/node_modules/lazystream/node_modules/string_decoder/package.json +31 -0
  1406. package/rds-patching-lambda/node_modules/lazystream/package.json +46 -0
  1407. package/rds-patching-lambda/node_modules/lazystream/test/data.md +13 -0
  1408. package/rds-patching-lambda/node_modules/lodash.defaults/LICENSE +47 -0
  1409. package/rds-patching-lambda/node_modules/lodash.defaults/README.md +18 -0
  1410. package/rds-patching-lambda/node_modules/lodash.defaults/package.json +17 -0
  1411. package/rds-patching-lambda/node_modules/lodash.difference/LICENSE +47 -0
  1412. package/rds-patching-lambda/node_modules/lodash.difference/README.md +18 -0
  1413. package/rds-patching-lambda/node_modules/lodash.difference/package.json +17 -0
  1414. package/rds-patching-lambda/node_modules/lodash.flatten/LICENSE +47 -0
  1415. package/rds-patching-lambda/node_modules/lodash.flatten/README.md +18 -0
  1416. package/rds-patching-lambda/node_modules/lodash.flatten/package.json +17 -0
  1417. package/rds-patching-lambda/node_modules/lodash.isplainobject/LICENSE +47 -0
  1418. package/rds-patching-lambda/node_modules/lodash.isplainobject/README.md +18 -0
  1419. package/rds-patching-lambda/node_modules/lodash.isplainobject/package.json +17 -0
  1420. package/rds-patching-lambda/node_modules/lodash.union/LICENSE +47 -0
  1421. package/rds-patching-lambda/node_modules/lodash.union/README.md +18 -0
  1422. package/rds-patching-lambda/node_modules/lodash.union/package.json +17 -0
  1423. package/rds-patching-lambda/node_modules/minimatch/LICENSE +15 -0
  1424. package/rds-patching-lambda/node_modules/minimatch/README.md +230 -0
  1425. package/rds-patching-lambda/node_modules/minimatch/package.json +33 -0
  1426. package/rds-patching-lambda/node_modules/normalize-path/LICENSE +21 -0
  1427. package/rds-patching-lambda/node_modules/normalize-path/README.md +127 -0
  1428. package/rds-patching-lambda/node_modules/normalize-path/package.json +77 -0
  1429. package/rds-patching-lambda/node_modules/once/LICENSE +15 -0
  1430. package/rds-patching-lambda/node_modules/once/README.md +79 -0
  1431. package/rds-patching-lambda/node_modules/once/package.json +33 -0
  1432. package/rds-patching-lambda/node_modules/path-is-absolute/license +21 -0
  1433. package/rds-patching-lambda/node_modules/path-is-absolute/package.json +43 -0
  1434. package/rds-patching-lambda/node_modules/path-is-absolute/readme.md +59 -0
  1435. package/rds-patching-lambda/node_modules/process-nextick-args/license.md +19 -0
  1436. package/rds-patching-lambda/node_modules/process-nextick-args/package.json +25 -0
  1437. package/rds-patching-lambda/node_modules/process-nextick-args/readme.md +18 -0
  1438. package/rds-patching-lambda/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  1439. package/rds-patching-lambda/node_modules/readable-stream/GOVERNANCE.md +136 -0
  1440. package/rds-patching-lambda/node_modules/readable-stream/LICENSE +47 -0
  1441. package/rds-patching-lambda/node_modules/readable-stream/README.md +106 -0
  1442. package/rds-patching-lambda/node_modules/readable-stream/package.json +68 -0
  1443. package/rds-patching-lambda/node_modules/readdir-glob/LICENSE +201 -0
  1444. package/rds-patching-lambda/node_modules/readdir-glob/README.md +85 -0
  1445. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  1446. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/brace-expansion/LICENSE +21 -0
  1447. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/brace-expansion/README.md +135 -0
  1448. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/brace-expansion/package.json +46 -0
  1449. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/minimatch/LICENSE +15 -0
  1450. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/minimatch/README.md +259 -0
  1451. package/rds-patching-lambda/node_modules/readdir-glob/node_modules/minimatch/package.json +35 -0
  1452. package/rds-patching-lambda/node_modules/readdir-glob/package.json +43 -0
  1453. package/rds-patching-lambda/node_modules/require-directory/.jshintrc +67 -0
  1454. package/rds-patching-lambda/node_modules/require-directory/.travis.yml +3 -0
  1455. package/rds-patching-lambda/node_modules/require-directory/LICENSE +22 -0
  1456. package/rds-patching-lambda/node_modules/require-directory/README.markdown +184 -0
  1457. package/rds-patching-lambda/node_modules/require-directory/package.json +40 -0
  1458. package/rds-patching-lambda/node_modules/safe-buffer/LICENSE +21 -0
  1459. package/rds-patching-lambda/node_modules/safe-buffer/README.md +584 -0
  1460. package/rds-patching-lambda/node_modules/safe-buffer/package.json +51 -0
  1461. package/rds-patching-lambda/node_modules/string-width/license +9 -0
  1462. package/rds-patching-lambda/node_modules/string-width/package.json +56 -0
  1463. package/rds-patching-lambda/node_modules/string-width/readme.md +50 -0
  1464. package/rds-patching-lambda/node_modules/string_decoder/LICENSE +48 -0
  1465. package/rds-patching-lambda/node_modules/string_decoder/README.md +47 -0
  1466. package/rds-patching-lambda/node_modules/string_decoder/package.json +34 -0
  1467. package/rds-patching-lambda/node_modules/strip-ansi/license +9 -0
  1468. package/rds-patching-lambda/node_modules/strip-ansi/package.json +54 -0
  1469. package/rds-patching-lambda/node_modules/strip-ansi/readme.md +46 -0
  1470. package/rds-patching-lambda/node_modules/strnum/.vscode/launch.json +25 -0
  1471. package/rds-patching-lambda/node_modules/strnum/LICENSE +21 -0
  1472. package/rds-patching-lambda/node_modules/strnum/README.md +86 -0
  1473. package/rds-patching-lambda/node_modules/strnum/package.json +24 -0
  1474. package/rds-patching-lambda/node_modules/tar-stream/LICENSE +21 -0
  1475. package/rds-patching-lambda/node_modules/tar-stream/README.md +168 -0
  1476. package/rds-patching-lambda/node_modules/tar-stream/package.json +58 -0
  1477. package/rds-patching-lambda/node_modules/tslib/CopyrightNotice.txt +15 -0
  1478. package/rds-patching-lambda/node_modules/tslib/LICENSE.txt +12 -0
  1479. package/rds-patching-lambda/node_modules/tslib/README.md +164 -0
  1480. package/rds-patching-lambda/node_modules/tslib/SECURITY.md +41 -0
  1481. package/rds-patching-lambda/node_modules/tslib/modules/package.json +3 -0
  1482. package/rds-patching-lambda/node_modules/tslib/package.json +47 -0
  1483. package/rds-patching-lambda/node_modules/tslib/tslib.es6.html +1 -0
  1484. package/rds-patching-lambda/node_modules/tslib/tslib.es6.mjs +321 -0
  1485. package/rds-patching-lambda/node_modules/tslib/tslib.html +1 -0
  1486. package/rds-patching-lambda/node_modules/typescript/LICENSE.txt +55 -0
  1487. package/rds-patching-lambda/node_modules/typescript/README.md +51 -0
  1488. package/rds-patching-lambda/node_modules/typescript/SECURITY.md +41 -0
  1489. package/rds-patching-lambda/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  1490. package/rds-patching-lambda/node_modules/typescript/bin/tsc +2 -0
  1491. package/rds-patching-lambda/node_modules/typescript/bin/tsserver +2 -0
  1492. package/rds-patching-lambda/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +1880 -0
  1493. package/rds-patching-lambda/node_modules/typescript/lib/de/diagnosticMessages.generated.json +1880 -0
  1494. package/rds-patching-lambda/node_modules/typescript/lib/es/diagnosticMessages.generated.json +1880 -0
  1495. package/rds-patching-lambda/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +1880 -0
  1496. package/rds-patching-lambda/node_modules/typescript/lib/it/diagnosticMessages.generated.json +1880 -0
  1497. package/rds-patching-lambda/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +1880 -0
  1498. package/rds-patching-lambda/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +1880 -0
  1499. package/rds-patching-lambda/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +1880 -0
  1500. package/rds-patching-lambda/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +1880 -0
  1501. package/rds-patching-lambda/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +1880 -0
  1502. package/rds-patching-lambda/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +1880 -0
  1503. package/rds-patching-lambda/node_modules/typescript/lib/typesMap.json +497 -0
  1504. package/rds-patching-lambda/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +1880 -0
  1505. package/rds-patching-lambda/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +1880 -0
  1506. package/rds-patching-lambda/node_modules/typescript/package.json +116 -0
  1507. package/rds-patching-lambda/node_modules/util-deprecate/History.md +16 -0
  1508. package/rds-patching-lambda/node_modules/util-deprecate/LICENSE +24 -0
  1509. package/rds-patching-lambda/node_modules/util-deprecate/README.md +53 -0
  1510. package/rds-patching-lambda/node_modules/util-deprecate/package.json +27 -0
  1511. package/rds-patching-lambda/node_modules/uuid/CHANGELOG.md +229 -0
  1512. package/rds-patching-lambda/node_modules/uuid/CONTRIBUTING.md +18 -0
  1513. package/rds-patching-lambda/node_modules/uuid/LICENSE.md +9 -0
  1514. package/rds-patching-lambda/node_modules/uuid/README.md +505 -0
  1515. package/rds-patching-lambda/node_modules/uuid/dist/bin/uuid +2 -0
  1516. package/rds-patching-lambda/node_modules/uuid/package.json +135 -0
  1517. package/rds-patching-lambda/node_modules/uuid/wrapper.mjs +10 -0
  1518. package/rds-patching-lambda/node_modules/which/CHANGELOG.md +166 -0
  1519. package/rds-patching-lambda/node_modules/which/LICENSE +15 -0
  1520. package/rds-patching-lambda/node_modules/which/README.md +54 -0
  1521. package/rds-patching-lambda/node_modules/which/bin/node-which +52 -0
  1522. package/rds-patching-lambda/node_modules/which/package.json +43 -0
  1523. package/rds-patching-lambda/node_modules/wrap-ansi/license +9 -0
  1524. package/rds-patching-lambda/node_modules/wrap-ansi/package.json +62 -0
  1525. package/rds-patching-lambda/node_modules/wrap-ansi/readme.md +91 -0
  1526. package/rds-patching-lambda/node_modules/wrappy/LICENSE +15 -0
  1527. package/rds-patching-lambda/node_modules/wrappy/README.md +36 -0
  1528. package/rds-patching-lambda/node_modules/wrappy/package.json +29 -0
  1529. package/rds-patching-lambda/node_modules/y18n/CHANGELOG.md +100 -0
  1530. package/rds-patching-lambda/node_modules/y18n/LICENSE +13 -0
  1531. package/rds-patching-lambda/node_modules/y18n/README.md +127 -0
  1532. package/rds-patching-lambda/node_modules/y18n/build/index.cjs +203 -0
  1533. package/rds-patching-lambda/node_modules/y18n/index.mjs +8 -0
  1534. package/rds-patching-lambda/node_modules/y18n/package.json +70 -0
  1535. package/rds-patching-lambda/node_modules/yargs/CHANGELOG.md +88 -0
  1536. package/rds-patching-lambda/node_modules/yargs/LICENSE +21 -0
  1537. package/rds-patching-lambda/node_modules/yargs/README.md +202 -0
  1538. package/rds-patching-lambda/node_modules/yargs/browser.mjs +7 -0
  1539. package/rds-patching-lambda/node_modules/yargs/build/index.cjs +2920 -0
  1540. package/rds-patching-lambda/node_modules/yargs/helpers/helpers.mjs +10 -0
  1541. package/rds-patching-lambda/node_modules/yargs/helpers/package.json +3 -0
  1542. package/rds-patching-lambda/node_modules/yargs/index.cjs +39 -0
  1543. package/rds-patching-lambda/node_modules/yargs/index.mjs +8 -0
  1544. package/rds-patching-lambda/node_modules/yargs/lib/platform-shims/browser.mjs +92 -0
  1545. package/rds-patching-lambda/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
  1546. package/rds-patching-lambda/node_modules/yargs/locales/be.json +46 -0
  1547. package/rds-patching-lambda/node_modules/yargs/locales/de.json +46 -0
  1548. package/rds-patching-lambda/node_modules/yargs/locales/en.json +51 -0
  1549. package/rds-patching-lambda/node_modules/yargs/locales/es.json +46 -0
  1550. package/rds-patching-lambda/node_modules/yargs/locales/fi.json +49 -0
  1551. package/rds-patching-lambda/node_modules/yargs/locales/fr.json +53 -0
  1552. package/rds-patching-lambda/node_modules/yargs/locales/hi.json +49 -0
  1553. package/rds-patching-lambda/node_modules/yargs/locales/hu.json +46 -0
  1554. package/rds-patching-lambda/node_modules/yargs/locales/id.json +50 -0
  1555. package/rds-patching-lambda/node_modules/yargs/locales/it.json +46 -0
  1556. package/rds-patching-lambda/node_modules/yargs/locales/ja.json +51 -0
  1557. package/rds-patching-lambda/node_modules/yargs/locales/ko.json +49 -0
  1558. package/rds-patching-lambda/node_modules/yargs/locales/nb.json +44 -0
  1559. package/rds-patching-lambda/node_modules/yargs/locales/nl.json +49 -0
  1560. package/rds-patching-lambda/node_modules/yargs/locales/nn.json +44 -0
  1561. package/rds-patching-lambda/node_modules/yargs/locales/pirate.json +13 -0
  1562. package/rds-patching-lambda/node_modules/yargs/locales/pl.json +49 -0
  1563. package/rds-patching-lambda/node_modules/yargs/locales/pt.json +45 -0
  1564. package/rds-patching-lambda/node_modules/yargs/locales/pt_BR.json +48 -0
  1565. package/rds-patching-lambda/node_modules/yargs/locales/ru.json +46 -0
  1566. package/rds-patching-lambda/node_modules/yargs/locales/th.json +46 -0
  1567. package/rds-patching-lambda/node_modules/yargs/locales/tr.json +48 -0
  1568. package/rds-patching-lambda/node_modules/yargs/locales/zh_CN.json +48 -0
  1569. package/rds-patching-lambda/node_modules/yargs/locales/zh_TW.json +47 -0
  1570. package/rds-patching-lambda/node_modules/yargs/package.json +122 -0
  1571. package/rds-patching-lambda/node_modules/yargs/yargs +9 -0
  1572. package/rds-patching-lambda/node_modules/yargs-parser/CHANGELOG.md +263 -0
  1573. package/rds-patching-lambda/node_modules/yargs-parser/LICENSE.txt +14 -0
  1574. package/rds-patching-lambda/node_modules/yargs-parser/README.md +518 -0
  1575. package/rds-patching-lambda/node_modules/yargs-parser/build/index.cjs +1042 -0
  1576. package/rds-patching-lambda/node_modules/yargs-parser/package.json +87 -0
  1577. package/rds-patching-lambda/node_modules/zip-stream/CHANGELOG.md +110 -0
  1578. package/rds-patching-lambda/node_modules/zip-stream/LICENSE +22 -0
  1579. package/rds-patching-lambda/node_modules/zip-stream/README.md +45 -0
  1580. package/rds-patching-lambda/node_modules/zip-stream/package.json +49 -0
  1581. package/rds-patching-lambda/package-lock.json +1896 -0
  1582. package/rds-patching-lambda/package.json +22 -0
  1583. package/rds-patching-lambda/src/index.ts +61 -0
  1584. package/rds-patching-lambda/tsconfig.json +13 -0
  1585. package/src/resolvers/dynamodb/mutation.ts +1 -1
  1586. package/src/resolvers/generators/dynamodb-vtl-generator.ts +2 -2
  1587. package/src/resolvers/generators/rds-vtl-generator.ts +2 -2
  1588. package/src/resolvers/generators/vtl-generator.ts +1 -1
  1589. package/src/resolvers/rds/mutation.ts +73 -67
  1590. package/src/resolvers/rds/resolver.ts +263 -50
  1591. package/src/resources/model-resource-generator.ts +2 -1
  1592. package/src/resources/rds-model-resource-generator.ts +52 -4
  1593. package/tsconfig.tsbuildinfo +1 -1
  1594. package/rds-lambda/clients/DBClient.ts +0 -31
  1595. package/rds-lambda/clients/mysql/MySQLClient.ts +0 -118
  1596. package/rds-lambda/clients/mysql/MySQLPasswordClient.ts +0 -58
  1597. package/rds-lambda/context/DataSourceContext.ts +0 -8
  1598. package/rds-lambda/interfaces/BaseRequest.ts +0 -22
  1599. package/rds-lambda/interfaces/ListRequest.ts +0 -31
  1600. package/rds-lambda/node_modules/buffer-writer/.travis.yml +0 -7
  1601. package/rds-lambda/node_modules/buffer-writer/LICENSE +0 -19
  1602. package/rds-lambda/node_modules/buffer-writer/README.md +0 -48
  1603. package/rds-lambda/node_modules/buffer-writer/package.json +0 -26
  1604. package/rds-lambda/node_modules/buffer-writer/test/mocha.opts +0 -1
  1605. package/rds-lambda/node_modules/denque/CHANGELOG.md +0 -29
  1606. package/rds-lambda/node_modules/denque/LICENSE +0 -201
  1607. package/rds-lambda/node_modules/denque/README.md +0 -77
  1608. package/rds-lambda/node_modules/denque/package.json +0 -58
  1609. package/rds-lambda/node_modules/generate-function/.travis.yml +0 -3
  1610. package/rds-lambda/node_modules/generate-function/README.md +0 -89
  1611. package/rds-lambda/node_modules/generate-function/package.json +0 -32
  1612. package/rds-lambda/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  1613. package/rds-lambda/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
  1614. package/rds-lambda/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
  1615. package/rds-lambda/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
  1616. package/rds-lambda/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1617. package/rds-lambda/node_modules/iconv-lite/.idea/modules.xml +0 -8
  1618. package/rds-lambda/node_modules/iconv-lite/.idea/vcs.xml +0 -6
  1619. package/rds-lambda/node_modules/iconv-lite/Changelog.md +0 -212
  1620. package/rds-lambda/node_modules/iconv-lite/LICENSE +0 -21
  1621. package/rds-lambda/node_modules/iconv-lite/README.md +0 -130
  1622. package/rds-lambda/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1623. package/rds-lambda/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1624. package/rds-lambda/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1625. package/rds-lambda/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1626. package/rds-lambda/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1627. package/rds-lambda/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1628. package/rds-lambda/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1629. package/rds-lambda/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1630. package/rds-lambda/node_modules/iconv-lite/package.json +0 -44
  1631. package/rds-lambda/node_modules/is-property/LICENSE +0 -22
  1632. package/rds-lambda/node_modules/is-property/README.md +0 -28
  1633. package/rds-lambda/node_modules/is-property/package.json +0 -36
  1634. package/rds-lambda/node_modules/long/LICENSE +0 -202
  1635. package/rds-lambda/node_modules/long/README.md +0 -246
  1636. package/rds-lambda/node_modules/long/package.json +0 -34
  1637. package/rds-lambda/node_modules/mysql2/License +0 -19
  1638. package/rds-lambda/node_modules/mysql2/README.md +0 -281
  1639. package/rds-lambda/node_modules/mysql2/lib/auth_plugins/caching_sha2_password.md +0 -18
  1640. package/rds-lambda/node_modules/mysql2/node_modules/lru-cache/README.md +0 -166
  1641. package/rds-lambda/node_modules/mysql2/node_modules/lru-cache/package.json +0 -34
  1642. package/rds-lambda/node_modules/mysql2/node_modules/yallist/README.md +0 -204
  1643. package/rds-lambda/node_modules/mysql2/node_modules/yallist/package.json +0 -29
  1644. package/rds-lambda/node_modules/mysql2/package.json +0 -86
  1645. package/rds-lambda/node_modules/mysql2/typings/mysql/LICENSE.txt +0 -15
  1646. package/rds-lambda/node_modules/mysql2/typings/mysql/info.txt +0 -1
  1647. package/rds-lambda/node_modules/named-placeholders/LICENSE +0 -21
  1648. package/rds-lambda/node_modules/named-placeholders/README.md +0 -29
  1649. package/rds-lambda/node_modules/named-placeholders/node_modules/lru-cache/LICENSE +0 -15
  1650. package/rds-lambda/node_modules/named-placeholders/node_modules/lru-cache/README.md +0 -1117
  1651. package/rds-lambda/node_modules/named-placeholders/node_modules/lru-cache/index.mjs +0 -1227
  1652. package/rds-lambda/node_modules/named-placeholders/node_modules/lru-cache/package.json +0 -96
  1653. package/rds-lambda/node_modules/named-placeholders/package.json +0 -32
  1654. package/rds-lambda/node_modules/packet-reader/.travis.yml +0 -8
  1655. package/rds-lambda/node_modules/packet-reader/README.md +0 -87
  1656. package/rds-lambda/node_modules/packet-reader/package.json +0 -25
  1657. package/rds-lambda/node_modules/pg/LICENSE +0 -21
  1658. package/rds-lambda/node_modules/pg/README.md +0 -89
  1659. package/rds-lambda/node_modules/pg/node_modules/pg-connection-string/LICENSE +0 -21
  1660. package/rds-lambda/node_modules/pg/node_modules/pg-connection-string/README.md +0 -77
  1661. package/rds-lambda/node_modules/pg/node_modules/pg-connection-string/package.json +0 -40
  1662. package/rds-lambda/node_modules/pg/package.json +0 -64
  1663. package/rds-lambda/node_modules/pg-cloudflare/LICENSE +0 -21
  1664. package/rds-lambda/node_modules/pg-cloudflare/README.md +0 -33
  1665. package/rds-lambda/node_modules/pg-cloudflare/package.json +0 -28
  1666. package/rds-lambda/node_modules/pg-cloudflare/src/index.ts +0 -164
  1667. package/rds-lambda/node_modules/pg-int8/LICENSE +0 -13
  1668. package/rds-lambda/node_modules/pg-int8/README.md +0 -16
  1669. package/rds-lambda/node_modules/pg-int8/package.json +0 -24
  1670. package/rds-lambda/node_modules/pg-pool/LICENSE +0 -21
  1671. package/rds-lambda/node_modules/pg-pool/README.md +0 -376
  1672. package/rds-lambda/node_modules/pg-pool/package.json +0 -41
  1673. package/rds-lambda/node_modules/pg-protocol/LICENSE +0 -21
  1674. package/rds-lambda/node_modules/pg-protocol/README.md +0 -3
  1675. package/rds-lambda/node_modules/pg-protocol/package.json +0 -35
  1676. package/rds-lambda/node_modules/pg-protocol/src/b.ts +0 -28
  1677. package/rds-lambda/node_modules/pg-protocol/src/buffer-reader.ts +0 -53
  1678. package/rds-lambda/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
  1679. package/rds-lambda/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -557
  1680. package/rds-lambda/node_modules/pg-protocol/src/index.ts +0 -11
  1681. package/rds-lambda/node_modules/pg-protocol/src/messages.ts +0 -230
  1682. package/rds-lambda/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -272
  1683. package/rds-lambda/node_modules/pg-protocol/src/parser.ts +0 -389
  1684. package/rds-lambda/node_modules/pg-protocol/src/serializer.ts +0 -274
  1685. package/rds-lambda/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -75
  1686. package/rds-lambda/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
  1687. package/rds-lambda/node_modules/pg-types/.travis.yml +0 -7
  1688. package/rds-lambda/node_modules/pg-types/Makefile +0 -14
  1689. package/rds-lambda/node_modules/pg-types/README.md +0 -75
  1690. package/rds-lambda/node_modules/pg-types/index.test-d.ts +0 -21
  1691. package/rds-lambda/node_modules/pg-types/package.json +0 -42
  1692. package/rds-lambda/node_modules/pgpass/README.md +0 -74
  1693. package/rds-lambda/node_modules/pgpass/package.json +0 -41
  1694. package/rds-lambda/node_modules/postgres-array/license +0 -21
  1695. package/rds-lambda/node_modules/postgres-array/package.json +0 -35
  1696. package/rds-lambda/node_modules/postgres-array/readme.md +0 -43
  1697. package/rds-lambda/node_modules/postgres-bytea/license +0 -21
  1698. package/rds-lambda/node_modules/postgres-bytea/package.json +0 -34
  1699. package/rds-lambda/node_modules/postgres-bytea/readme.md +0 -34
  1700. package/rds-lambda/node_modules/postgres-date/license +0 -21
  1701. package/rds-lambda/node_modules/postgres-date/package.json +0 -33
  1702. package/rds-lambda/node_modules/postgres-date/readme.md +0 -49
  1703. package/rds-lambda/node_modules/postgres-interval/license +0 -21
  1704. package/rds-lambda/node_modules/postgres-interval/package.json +0 -36
  1705. package/rds-lambda/node_modules/postgres-interval/readme.md +0 -48
  1706. package/rds-lambda/node_modules/safer-buffer/LICENSE +0 -21
  1707. package/rds-lambda/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1708. package/rds-lambda/node_modules/safer-buffer/Readme.md +0 -156
  1709. package/rds-lambda/node_modules/safer-buffer/package.json +0 -34
  1710. package/rds-lambda/node_modules/seq-queue/.jshintrc +0 -19
  1711. package/rds-lambda/node_modules/seq-queue/AUTHORS +0 -1
  1712. package/rds-lambda/node_modules/seq-queue/LICENSE +0 -22
  1713. package/rds-lambda/node_modules/seq-queue/Makefile +0 -9
  1714. package/rds-lambda/node_modules/seq-queue/README.md +0 -75
  1715. package/rds-lambda/node_modules/seq-queue/package.json +0 -17
  1716. package/rds-lambda/node_modules/split2/LICENSE +0 -13
  1717. package/rds-lambda/node_modules/split2/README.md +0 -85
  1718. package/rds-lambda/node_modules/split2/package.json +0 -39
  1719. package/rds-lambda/node_modules/sqlstring/HISTORY.md +0 -53
  1720. package/rds-lambda/node_modules/sqlstring/LICENSE +0 -19
  1721. package/rds-lambda/node_modules/sqlstring/README.md +0 -205
  1722. package/rds-lambda/node_modules/sqlstring/package.json +0 -47
  1723. package/rds-lambda/node_modules/xtend/.jshintrc +0 -30
  1724. package/rds-lambda/node_modules/xtend/LICENSE +0 -20
  1725. package/rds-lambda/node_modules/xtend/README.md +0 -32
  1726. package/rds-lambda/node_modules/xtend/package.json +0 -55
  1727. package/rds-lambda/utils/rds_utils.ts +0 -145
  1728. package/src/__tests__/test-utils/rds_utils.test.ts +0 -372
  1729. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -0
  1730. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/LICENSE +0 -0
  1731. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/README.md +0 -0
  1732. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +0 -0
  1733. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +0 -0
  1734. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +0 -0
  1735. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +0 -0
  1736. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +0 -0
  1737. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -0
  1738. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +0 -0
  1739. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +0 -0
  1740. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/package.json +0 -0
  1741. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -0
  1742. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/src/index.ts +0 -0
  1743. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-crypto/crc32/tsconfig.json +0 -0
  1744. /package/{rds-lambda/node_modules/@aws-sdk/eventstream-codec → publish-notification-lambda/node_modules/@aws-sdk/client-lambda}/LICENSE +0 -0
  1745. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-sdk/eventstream-codec/README.md +0 -0
  1746. /package/{rds-lambda → publish-notification-lambda}/node_modules/@aws-sdk/eventstream-codec/package.json +0 -0
  1747. /package/{rds-lambda/node_modules/generate-function → publish-notification-lambda/node_modules/end-of-stream}/LICENSE +0 -0
  1748. /package/{rds-lambda/node_modules/mysql2/node_modules/lru-cache → publish-notification-lambda/node_modules/isexe}/LICENSE +0 -0
  1749. /package/{rds-lambda/node_modules/mysql2/node_modules/yallist → publish-notification-lambda/node_modules/minimatch}/LICENSE +0 -0
  1750. /package/rds-lambda/node_modules/{cliui → jest-cli/node_modules/cliui}/build/index.d.cts +0 -0
  1751. /package/rds-lambda/node_modules/{yargs → jest-cli/node_modules/yargs}/locales/cs.json +0 -0
  1752. /package/rds-lambda/node_modules/{yargs → jest-cli/node_modules/yargs}/locales/uk_UA.json +0 -0
  1753. /package/rds-lambda/node_modules/{yargs → jest-cli/node_modules/yargs}/locales/uz.json +0 -0
  1754. /package/rds-lambda/node_modules/{yargs → jest-cli/node_modules/yargs}/yargs.mjs +0 -0
@@ -1 +1,2920 @@
1
- "use strict";var t=require("assert");class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}let s,i=[];function n(t,o,a,h){s=h;let l={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return l;const r=/\.json|\..*rc$/.test(t.extends);let h=null;if(r)h=function(t,e){return s.path.resolve(t,e)}(o,t.extends);else try{h=require.resolve(t.extends)}catch(e){return t}!function(t){if(i.indexOf(t)>-1)throw new e(`Circular extended configurations: '${t}'.`)}(h),i.push(h),l=r?JSON.parse(s.readFileSync(h,"utf8")):require(t.extends),delete t.extends,l=n(l,s.path.dirname(h),a,s)}return i=[],a?r(l,t):Object.assign({},l,t)}function r(t,e){const s={};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(s,t);for(const n of Object.keys(e))i(e[n])&&i(s[n])?s[n]=r(t[n],e[n]):s[n]=e[n];return s}function o(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),s=/\.*[\][<>]/g,i=e.shift();if(!i)throw new Error(`No command found in: ${t}`);const n={cmd:i.replace(s,""),demanded:[],optional:[]};return e.forEach(((t,i)=>{let r=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(r=!0),/^\[/.test(t)?n.optional.push({cmd:t.replace(s,"").split("|"),variadic:r}):n.demanded.push({cmd:t.replace(s,"").split("|"),variadic:r})})),n}const a=["first","second","third","fourth","fifth","sixth"];function h(t,s,i){try{let n=0;const[r,a,h]="object"==typeof t?[{demanded:[],optional:[]},t,s]:[o(`cmd ${t}`),s,i],f=[].slice.call(a);for(;f.length&&void 0===f[f.length-1];)f.pop();const d=h||f.length;if(d<r.demanded.length)throw new e(`Not enough arguments provided. Expected ${r.demanded.length} but received ${f.length}.`);const u=r.demanded.length+r.optional.length;if(d>u)throw new e(`Too many arguments provided. Expected max ${u} but received ${d}.`);r.demanded.forEach((t=>{const e=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1})),r.optional.forEach((t=>{if(0===f.length)return;const e=l(f.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&c(e,t.cmd,n),n+=1}))}catch(t){console.warn(t.stack)}}function l(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function c(t,s,i){throw new e(`Invalid ${a[i]||"manyith"} argument. Expected ${s.join(" or ")} but received ${t}.`)}function f(t){return!!t&&!!t.then&&"function"==typeof t.then}function d(t,e,s,i){s.assert.notStrictEqual(t,e,i)}function u(t,e){e.assert.strictEqual(typeof t,"string")}function p(t){return Object.keys(t)}function g(t={},e=(()=>!0)){const s={};return p(t).forEach((i=>{e(i,t[i])&&(s[i]=t[i])})),s}function m(){return process.versions.electron&&!process.defaultApp?0:1}function y(){return process.argv[m()]}var b=Object.freeze({__proto__:null,hideBin:function(t){return t.slice(m()+1)},getProcessArgvBin:y});function v(t,e,s,i){if("a"===s&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}function O(t,e,s,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,s):n?n.value=s:e.set(t,s),s}class w{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,s=!0,i=!1){if(h("<array|function> [boolean] [boolean] [boolean]",[t,e,s],arguments.length),Array.isArray(t)){for(let i=0;i<t.length;i++){if("function"!=typeof t[i])throw Error("middleware must be a function");const n=t[i];n.applyBeforeValidation=e,n.global=s}Array.prototype.push.apply(this.globalMiddleware,t)}else if("function"==typeof t){const n=t;n.applyBeforeValidation=e,n.global=s,n.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){const s=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((t=>{const i=[...s[e]||[],e];return!t.option||!i.includes(t.option)})),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function C(t,e,s,i){return s.reduce(((t,s)=>{if(s.applyBeforeValidation!==i)return t;if(s.mutates){if(s.applied)return t;s.applied=!0}if(f(t))return t.then((t=>Promise.all([t,s(t,e)]))).then((([t,e])=>Object.assign(t,e)));{const i=s(t,e);return f(i)?i.then((e=>Object.assign(t,e))):Object.assign(t,i)}}),t)}function j(t,e,s=(t=>{throw t})){try{const s="function"==typeof t?t():t;return f(s)?s.then((t=>e(t))):e(s)}catch(t){return s(t)}}const M=/(^\*)|(^\$0)/;class _{constructor(t,e,s,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=s,this.validation=e}addDirectory(t,e,s,i){"boolean"!=typeof(i=i||{}).recurse&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);const n="function"==typeof i.visit?i.visit:t=>t;i.visit=(t,e,s)=>{const i=n(t,e,s);if(i){if(this.requireCache.has(e))return i;this.requireCache.add(e),this.addHandler(i)}return i},this.shim.requireDirectory({require:e,filename:s},t,i)}addHandler(t,e,s,i,n,r){let a=[];const h=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(n);if(i=i||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...a]=t;else for(const e of t)this.addHandler(e);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void this.addHandler(e,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(k(s))return void this.addHandler([t].concat(a),e,s.builder,s.handler,s.middlewares,s.deprecated)}if("string"==typeof t){const n=o(t);a=a.map((t=>o(t).cmd));let l=!1;const c=[n.cmd].concat(a).filter((t=>!M.test(t)||(l=!0,!1)));0===c.length&&l&&c.push("$0"),l&&(n.cmd=c[0],a=c.slice(1),t=t.replace(M,n.cmd)),a.forEach((t=>{this.aliasMap[t]=n.cmd})),!1!==e&&this.usage.command(t,e,l,a,r),this.handlers[n.cmd]={original:t,description:e,handler:i,builder:s||{},middlewares:h,deprecated:r,demanded:n.demanded,optional:n.optional},l&&(this.defaultCommand=this.handlers[n.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,s,i,n,r){const o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,a=e.getInternalMethods().getContext(),h=a.commands.slice(),l=!t;t&&(a.commands.push(t),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,e,s.aliases,h,i,n,r);return f(c)?c.then((t=>this.applyMiddlewareAndGetResult(l,o,t.innerArgv,a,n,t.aliases,e))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,n,c.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,s,i,n,r,o,a){const h=e.builder;let l=s;if(x(h)){s.getInternalMethods().getUsageInstance().freeze();const c=h(s.getInternalMethods().reset(i),a);if(f(c))return c.then((i=>{var a;return l=(a=i)&&"function"==typeof a.getInternalMethods?i:s,this.parseAndUpdateUsage(t,e,l,n,r,o)}))}else(function(t){return"object"==typeof t})(h)&&(s.getInternalMethods().getUsageInstance().freeze(),l=s.getInternalMethods().reset(i),Object.keys(e.builder).forEach((t=>{l.option(t,h[t])})));return this.parseAndUpdateUsage(t,e,l,n,r,o)}parseAndUpdateUsage(t,e,s,i,n,r){t&&s.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(s)&&s.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,e),e.description);const o=s.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,n,r);return f(o)?o.then((t=>({aliases:s.parsed.aliases,innerArgv:t}))):{aliases:s.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,e){const s=M.test(e.original)?e.original.replace(M,"").trim():e.original,i=t.filter((t=>!M.test(t)));return i.push(s),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,e,s,i,n,r,o,a){if(!r.getInternalMethods().getHasOutput()){const e=r.getInternalMethods().runValidation(n,a,r.parsed.error,t);s=j(s,(t=>(e(t),t)))}if(e.handler&&!r.getInternalMethods().getHasOutput()){r.getInternalMethods().setHasOutput();const i=!!r.getOptions().configuration["populate--"];r.getInternalMethods().postProcess(s,i,!1,!1),s=j(s=C(s,r,o,!1),(t=>{const s=e.handler(t);return f(s)?s.then((()=>t)):t})),t||r.getInternalMethods().getUsageInstance().cacheHelpMessage(),f(s)&&!r.getInternalMethods().hasParseCallback()&&s.catch((t=>{try{r.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(i.commands.pop(),i.fullCommands.pop()),s}applyMiddlewareAndGetResult(t,e,s,i,n,r,o){let a={};if(n)return s;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(e,s,i,o));const h=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),l=C(s,o,h,!0);return f(l)?l.then((s=>this.handleValidationAndGetResult(t,e,s,i,r,o,h,a))):this.handleValidationAndGetResult(t,e,l,i,r,o,h,a)}populatePositionals(t,e,s,i){e._=e._.slice(s.commands.length);const n=t.demanded.slice(0),r=t.optional.slice(0),o={};for(this.validation.positionalCount(n.length,e._.length);n.length;){const t=n.shift();this.populatePositional(t,e,o)}for(;r.length;){const t=r.shift();this.populatePositional(t,e,o)}return e._=s.commands.concat(e._.map((t=>""+t))),this.postProcessPositionals(e,o,this.cmdToParseOptions(t.original),i),o}populatePositional(t,e,s){const i=t.cmd[0];t.variadic?s[i]=e._.splice(0).map(String):e._.length&&(s[i]=[String(e._.shift())])}cmdToParseOptions(t){const e={array:[],default:{},alias:{},demand:{}},s=o(t);return s.demanded.forEach((t=>{const[s,...i]=t.cmd;t.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=i,e.demand[s]=!0})),s.optional.forEach((t=>{const[s,...i]=t.cmd;t.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=i})),e}postProcessPositionals(t,e,s,i){const n=Object.assign({},i.getOptions());n.default=Object.assign(s.default,n.default);for(const t of Object.keys(s.alias))n.alias[t]=(n.alias[t]||[]).concat(s.alias[t]);n.array=n.array.concat(s.array),n.config={};const r=[];if(Object.keys(e).forEach((t=>{e[t].map((e=>{n.configuration["unknown-options-as-args"]&&(n.key[t]=!0),r.push(`--${t}`),r.push(e)}))})),!r.length)return;const o=Object.assign({},n.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(r,Object.assign({},n,{configuration:o}));if(a.error)i.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const s=Object.keys(e);Object.keys(e).forEach((t=>{s.push(...a.aliases[t])})),Object.keys(a.argv).forEach((n=>{s.includes(n)&&(e[n]||(e[n]=a.argv[n]),!this.isInConfigs(i,n)&&!this.isDefaulted(i,n)&&Object.prototype.hasOwnProperty.call(t,n)&&Object.prototype.hasOwnProperty.call(a.argv,n)&&(Array.isArray(t[n])||Array.isArray(a.argv[n]))?t[n]=[].concat(t[n],a.argv[n]):t[n]=a.argv[n])}))}}isDefaulted(t,e){const{default:s}=t.getOptions();return Object.prototype.hasOwnProperty.call(s,e)||Object.prototype.hasOwnProperty.call(s,this.shim.Parser.camelCase(e))}isInConfigs(t,e){const{configObjects:s}=t.getOptions();return s.some((t=>Object.prototype.hasOwnProperty.call(t,e)))||s.some((t=>Object.prototype.hasOwnProperty.call(t,this.shim.Parser.camelCase(e))))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const e=M.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(e,this.defaultCommand.description)}const e=this.defaultCommand.builder;if(x(e))return e(t,!0);k(e)||Object.keys(e).forEach((s=>{t.option(s,e[s])}))}moduleName(t){const e=function(t){if("undefined"==typeof require)return null;for(let e,s=0,i=Object.keys(require.cache);s<i.length;s++)if(e=require.cache[i[s]],e.exports===t)return e;return null}(t);if(!e)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(e.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:e,desc:s}){for(const i of[t,e,s]){if("string"==typeof i||!1===i)return i;d(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const t=this.frozens.pop();d(t,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function k(t){return"object"==typeof t&&!!t.builder&&"function"==typeof t.handler}function x(t){return"function"==typeof t}function E(t){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((e=>{const s=e;s._handle&&s.isTTY&&"function"==typeof s._handle.setBlocking&&s._handle.setBlocking(t)}))}function A(t){return"boolean"==typeof t}function P(t,s){const i=s.y18n.__,n={},r=[];n.failFn=function(t){r.push(t)};let o=null,a=null,h=!0;n.showHelpOnFail=function(e=!0,s){const[i,r]="string"==typeof e?[!0,e]:[e,s];return t.getInternalMethods().isGlobalContext()&&(a=r),o=r,h=i,n};let l=!1;n.fail=function(s,i){const c=t.getInternalMethods().getLoggerInstance();if(!r.length){if(t.getExitProcess()&&E(!0),!l){l=!0,h&&(t.showHelp("error"),c.error()),(s||i)&&c.error(s||i);const e=o||a;e&&((s||i)&&c.error(""),c.error(e))}if(i=i||new e(s),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,i);throw i}for(let t=r.length-1;t>=0;--t){const e=r[t];if(A(e)){if(i)throw i;if(s)throw Error(s)}else e(s,i,n)}};let c=[],f=!1;n.usage=(t,e)=>null===t?(f=!0,c=[],n):(f=!1,c.push([t,e||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>f,n.getPositionalGroupName=()=>i("Positionals:");let d=[];n.example=(t,e)=>{d.push([t,e||""])};let u=[];n.command=function(t,e,s,i,n=!1){s&&(u=u.map((t=>(t[2]=!1,t)))),u.push([t,e||"",s,i,n])},n.getCommands=()=>u;let p={};n.describe=function(t,e){Array.isArray(t)?t.forEach((t=>{n.describe(t,e)})):"object"==typeof t?Object.keys(t).forEach((e=>{n.describe(e,t[e])})):p[t]=e},n.getDescriptions=()=>p;let m=[];n.epilog=t=>{m.push(t)};let y,b=!1;n.wrap=t=>{b=!0,y=t},n.getWrap=()=>s.getEnv("YARGS_DISABLE_WRAP")?null:(b||(y=function(){const t=80;return s.process.stdColumns?Math.min(t,s.process.stdColumns):t}(),b=!0),y);const v="__yargsString__:";function O(t,e,i){let n=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{n=Math.max(s.stringWidth(i?`${i} ${I(t[0])}`:I(t[0]))+$(t[0]),n)})),e&&(n=Math.min(n,parseInt((.5*e).toString(),10))),n}let w;function C(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function j(t,e){let s=`[${i("default:")} `;if(void 0===t&&!e)return null;if(e)s+=e;else switch(typeof t){case"string":s+=`"${t}"`;break;case"object":s+=JSON.stringify(t);break;default:s+=t}return`${s}]`}n.deferY18nLookup=t=>v+t,n.help=function(){if(w)return w;!function(){const e=t.getDemandedOptions(),s=t.getOptions();(Object.keys(s.alias)||[]).forEach((i=>{s.alias[i].forEach((r=>{p[r]&&n.describe(i,p[r]),r in e&&t.demandOption(i,e[r]),s.boolean.includes(r)&&t.boolean(i),s.count.includes(r)&&t.count(i),s.string.includes(r)&&t.string(i),s.normalize.includes(r)&&t.normalize(i),s.array.includes(r)&&t.array(i),s.number.includes(r)&&t.number(i)}))}))}();const e=t.customScriptName?t.$0:s.path.basename(t.$0),r=t.getDemandedOptions(),o=t.getDemandedCommands(),a=t.getDeprecatedOptions(),h=t.getGroups(),l=t.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(r)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(l.default)),g=g.filter(C),g=Object.keys(g.reduce(((t,e)=>("_"!==e&&(t[e]=!0),t)),{}));const y=n.getWrap(),b=s.cliui({width:y,wrap:!!y});if(!f)if(c.length)c.forEach((t=>{b.div({text:`${t[0].replace(/\$0/g,e)}`}),t[1]&&b.div({text:`${t[1]}`,padding:[1,0,0,0]})})),b.div();else if(u.length){let t=null;t=o._?`${e} <${i("command")}>\n`:`${e} [${i("command")}]\n`,b.div(`${t}`)}if(u.length>1||1===u.length&&!u[0][2]){b.div(i("Commands:"));const s=t.getInternalMethods().getContext(),n=s.commands.length?`${s.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(u=u.sort(((t,e)=>t[0].localeCompare(e[0]))));const r=e?`${e} `:"";u.forEach((t=>{const s=`${r}${n}${t[0].replace(/^\$0 ?/,"")}`;b.span({text:s,padding:[0,2,0,2],width:O(u,y,`${e}${n}`)+4},{text:t[1]});const o=[];t[2]&&o.push(`[${i("default")}]`),t[3]&&t[3].length&&o.push(`[${i("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?o.push(`[${i("deprecated: %s",t[4])}]`):o.push(`[${i("deprecated")}]`)),o.length?b.div({text:o.join(" "),padding:[0,0,0,2],align:"right"}):b.div()})),b.div()}const M=(Object.keys(l.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);g=g.filter((e=>!t.parsed.newAliases[e]&&M.every((t=>-1===(l.alias[t]||[]).indexOf(e)))));const _=i("Options:");h[_]||(h[_]=[]),function(t,e,s,i){let n=[],r=null;Object.keys(s).forEach((t=>{n=n.concat(s[t])})),t.forEach((t=>{r=[t].concat(e[t]),r.some((t=>-1!==n.indexOf(t)))||s[i].push(t)}))}(g,l.alias,h,_);const k=t=>/^--/.test(I(t)),x=Object.keys(h).filter((t=>h[t].length>0)).map((t=>({groupName:t,normalizedKeys:h[t].filter(C).map((t=>{if(M.includes(t))return t;for(let e,s=0;void 0!==(e=M[s]);s++)if((l.alias[e]||[]).includes(t))return e;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:e})=>{const s=e.reduce(((e,s)=>(e[s]=[s].concat(l.alias[s]||[]).map((e=>t===n.getPositionalGroupName()?e:(/^[0-9]$/.test(e)?l.boolean.includes(s)?"-":"--":e.length>1?"--":"-")+e)).sort(((t,e)=>k(t)===k(e)?0:k(t)?1:-1)).join(", "),e)),{});return{groupName:t,normalizedKeys:e,switches:s}}));if(x.filter((({groupName:t})=>t!==n.getPositionalGroupName())).some((({normalizedKeys:t,switches:e})=>!t.every((t=>k(e[t])))))&&x.filter((({groupName:t})=>t!==n.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:e})=>{t.forEach((t=>{var s,i;k(e[t])&&(e[t]=(s=e[t],i=4,S(s)?{text:s.text,indentation:s.indentation+i}:{text:s,indentation:i}))}))})),x.forEach((({groupName:e,normalizedKeys:s,switches:o})=>{b.div(e),s.forEach((e=>{const s=o[e];let h=p[e]||"",c=null;h.includes(v)&&(h=i(h.substring(16))),l.boolean.includes(e)&&(c=`[${i("boolean")}]`),l.count.includes(e)&&(c=`[${i("count")}]`),l.string.includes(e)&&(c=`[${i("string")}]`),l.normalize.includes(e)&&(c=`[${i("string")}]`),l.array.includes(e)&&(c=`[${i("array")}]`),l.number.includes(e)&&(c=`[${i("number")}]`);const f=[e in a?(d=a[e],"string"==typeof d?`[${i("deprecated: %s",d)}]`:`[${i("deprecated")}]`):null,c,e in r?`[${i("required")}]`:null,l.choices&&l.choices[e]?`[${i("choices:")} ${n.stringifiedValues(l.choices[e])}]`:null,j(l.default[e],l.defaultDescription[e])].filter(Boolean).join(" ");var d;b.span({text:I(s),padding:[0,2,0,2+$(s)],width:O(o,y)+4},h);const u=!0===t.getInternalMethods().getUsageConfiguration()["hide-types"];f&&!u?b.div({text:f,padding:[0,0,0,2],align:"right"}):b.div()})),b.div()})),d.length&&(b.div(i("Examples:")),d.forEach((t=>{t[0]=t[0].replace(/\$0/g,e)})),d.forEach((t=>{""===t[1]?b.div({text:t[0],padding:[0,2,0,2]}):b.div({text:t[0],padding:[0,2,0,2],width:O(d,y)+4},{text:t[1]})})),b.div()),m.length>0){const t=m.map((t=>t.replace(/\$0/g,e))).join("\n");b.div(`${t}\n`)}return b.toString().replace(/\s*$/,"")},n.cacheHelpMessage=function(){w=this.help()},n.clearCachedHelpMessage=function(){w=void 0},n.hasCachedHelpMessage=function(){return!!w},n.showHelp=e=>{const s=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:s[e])(n.help())},n.functionDescription=t=>["(",t.name?s.Parser.decamelize(t.name,"-"):i("generated-value"),")"].join(""),n.stringifiedValues=function(t,e){let s="";const i=e||", ",n=[].concat(t);return t&&n.length?(n.forEach((t=>{s.length&&(s+=i),s+=JSON.stringify(t)})),s):s};let M=null;n.version=t=>{M=t},n.showVersion=e=>{const s=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:s[e])(M)},n.reset=function(t){return o=null,l=!1,c=[],f=!1,m=[],d=[],u=[],p=g(p,(e=>!t[e])),n};const _=[];return n.freeze=function(){_.push({failMessage:o,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:d,commands:u,descriptions:p})},n.unfreeze=function(t=!1){const e=_.pop();e&&(t?(p={...e.descriptions,...p},u=[...e.commands,...u],c=[...e.usages,...c],d=[...e.examples,...d],m=[...e.epilogs,...m]):({failMessage:o,failureOutput:l,usages:c,usageDisabled:f,epilogs:m,examples:d,commands:u,descriptions:p}=e))},n}function S(t){return"object"==typeof t}function $(t){return S(t)?t.indentation:0}function I(t){return S(t)?t.text:t}class D{constructor(t,e,s,i){var n,r,o;this.yargs=t,this.usage=e,this.command=s,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(n=this.shim.getEnv("SHELL"))||void 0===n?void 0:n.includes("zsh"))||(null===(r=this.shim.getEnv("ZSH_NAME"))||void 0===r?void 0:r.includes("zsh")))&&void 0!==o&&o}defaultCompletion(t,e,s,i){const n=this.command.getCommandHandlers();for(let e=0,s=t.length;e<s;++e)if(n[t[e]]&&n[t[e]].builder){const s=n[t[e]].builder;if(x(s)){this.indexAfterLastReset=e+1;const t=this.yargs.getInternalMethods().reset();return s(t,!0),t.argv}}const r=[];this.commandCompletions(r,t,s),this.optionCompletions(r,t,e,s),this.choicesFromOptionsCompletions(r,t,e,s),this.choicesFromPositionalsCompletions(r,t,e,s),i(null,r)}commandCompletions(t,e,s){const i=this.yargs.getInternalMethods().getContext().commands;s.match(/^-/)||i[i.length-1]===s||this.previousArgHasChoices(e)||this.usage.getCommands().forEach((s=>{const i=o(s[0]).cmd;if(-1===e.indexOf(i))if(this.zshShell){const e=s[1]||"";t.push(i.replace(/:/g,"\\:")+":"+e)}else t.push(i)}))}optionCompletions(t,e,s,i){if((i.match(/^-/)||""===i&&0===t.length)&&!this.previousArgHasChoices(e)){const s=this.yargs.getOptions(),n=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach((r=>{const o=!!s.configuration["boolean-negation"]&&s.boolean.includes(r);n.includes(r)||s.hiddenOptions.includes(r)||this.argsContainKey(e,r,o)||this.completeOptionKey(r,t,i,o&&!!s.default[r])}))}}choicesFromOptionsCompletions(t,e,s,i){if(this.previousArgHasChoices(e)){const s=this.getPreviousArgChoices(e);s&&s.length>0&&t.push(...s.map((t=>t.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(t,e,s,i){if(""===i&&t.length>0&&this.previousArgHasChoices(e))return;const n=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],r=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=n[s._.length-r-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const e of a)e.startsWith(i)&&t.push(e.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],s="";if(!e.startsWith("-")&&t.length>1&&(s=e,e=t[t.length-2]),!e.startsWith("-"))return;const i=e.replace(/^-+/,""),n=this.yargs.getOptions(),r=[i,...this.yargs.getAliases()[i]||[]];let o;for(const t of r)if(Object.prototype.hasOwnProperty.call(n.key,t)&&Array.isArray(n.choices[t])){o=n.choices[t];break}return o?o.filter((t=>!s||t.startsWith(s))):void 0}previousArgHasChoices(t){const e=this.getPreviousArgChoices(t);return void 0!==e&&e.length>0}argsContainKey(t,e,s){const i=e=>-1!==t.indexOf((/^[^0-9]$/.test(e)?"-":"--")+e);if(i(e))return!0;if(s&&i(`no-${e}`))return!0;if(this.aliases)for(const t of this.aliases[e])if(i(t))return!0;return!1}completeOptionKey(t,e,s,i){var n,r,o,a;let h=t;if(this.zshShell){const e=this.usage.getDescriptions(),s=null===(r=null===(n=null==this?void 0:this.aliases)||void 0===n?void 0:n[t])||void 0===r?void 0:r.find((t=>{const s=e[t];return"string"==typeof s&&s.length>0})),i=s?e[s]:void 0,l=null!==(a=null!==(o=e[t])&&void 0!==o?o:i)&&void 0!==a?a:"";h=`${t.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(s)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";e.push(l+h),i&&e.push(l+"no-"+h)}customCompletion(t,e,s,i){if(d(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(s,e);return f(t)?t.then((t=>{this.shim.process.nextTick((()=>{i(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{i(t,void 0)}))})):i(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(s,e,((n=i)=>this.defaultCompletion(t,e,s,n)),(t=>{i(null,t)})):this.customCompletionFunction(s,e,(t=>{i(null,t)}))}getCompletion(t,e){const s=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),n=this.customCompletionFunction?i=>this.customCompletion(t,i,s,e):i=>this.defaultCompletion(t,i,s,e);return f(i)?i.then(n):n(i)}generateCompletionScript(t,e){let s=this.zshShell?'#compdef {{app_name}}\n###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n':'###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n';const i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),s=s.replace(/{{app_name}}/g,i),s=s.replace(/{{completion_command}}/g,e),s.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function N(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const s=[];let i,n;for(i=0;i<=e.length;i++)s[i]=[i];for(n=0;n<=t.length;n++)s[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)===t.charAt(n-1)?s[i][n]=s[i-1][n-1]:i>1&&n>1&&e.charAt(i-2)===t.charAt(n-1)&&e.charAt(i-1)===t.charAt(n-2)?s[i][n]=s[i-2][n-2]+1:s[i][n]=Math.min(s[i-1][n-1]+1,Math.min(s[i][n-1]+1,s[i-1][n]+1));return s[e.length][t.length]}const H=["$0","--","_"];var z,W,q,U,F,L,V,G,R,T,B,Y,K,J,Z,X,Q,tt,et,st,it,nt,rt,ot,at,ht,lt,ct,ft,dt,ut,pt,gt,mt,yt;const bt=Symbol("copyDoubleDash"),vt=Symbol("copyDoubleDash"),Ot=Symbol("deleteFromParserHintObject"),wt=Symbol("emitWarning"),Ct=Symbol("freeze"),jt=Symbol("getDollarZero"),Mt=Symbol("getParserConfiguration"),_t=Symbol("getUsageConfiguration"),kt=Symbol("guessLocale"),xt=Symbol("guessVersion"),Et=Symbol("parsePositionalNumbers"),At=Symbol("pkgUp"),Pt=Symbol("populateParserHintArray"),St=Symbol("populateParserHintSingleValueDictionary"),$t=Symbol("populateParserHintArrayDictionary"),It=Symbol("populateParserHintDictionary"),Dt=Symbol("sanitizeKey"),Nt=Symbol("setKey"),Ht=Symbol("unfreeze"),zt=Symbol("validateAsync"),Wt=Symbol("getCommandInstance"),qt=Symbol("getContext"),Ut=Symbol("getHasOutput"),Ft=Symbol("getLoggerInstance"),Lt=Symbol("getParseContext"),Vt=Symbol("getUsageInstance"),Gt=Symbol("getValidationInstance"),Rt=Symbol("hasParseCallback"),Tt=Symbol("isGlobalContext"),Bt=Symbol("postProcess"),Yt=Symbol("rebase"),Kt=Symbol("reset"),Jt=Symbol("runYargsParserAndExecuteCommands"),Zt=Symbol("runValidation"),Xt=Symbol("setHasOutput"),Qt=Symbol("kTrackManuallySetKeys");class te{constructor(t=[],e,s,i){this.customScriptName=!1,this.parsed=!1,z.set(this,void 0),W.set(this,void 0),q.set(this,{commands:[],fullCommands:[]}),U.set(this,null),F.set(this,null),L.set(this,"show-hidden"),V.set(this,null),G.set(this,!0),R.set(this,{}),T.set(this,!0),B.set(this,[]),Y.set(this,void 0),K.set(this,{}),J.set(this,!1),Z.set(this,null),X.set(this,!0),Q.set(this,void 0),tt.set(this,""),et.set(this,void 0),st.set(this,void 0),it.set(this,{}),nt.set(this,null),rt.set(this,null),ot.set(this,{}),at.set(this,{}),ht.set(this,void 0),lt.set(this,!1),ct.set(this,void 0),ft.set(this,!1),dt.set(this,!1),ut.set(this,!1),pt.set(this,void 0),gt.set(this,{}),mt.set(this,null),yt.set(this,void 0),O(this,ct,i,"f"),O(this,ht,t,"f"),O(this,W,e,"f"),O(this,st,s,"f"),O(this,Y,new w(this),"f"),this.$0=this[jt](),this[Kt](),O(this,z,v(this,z,"f"),"f"),O(this,pt,v(this,pt,"f"),"f"),O(this,yt,v(this,yt,"f"),"f"),O(this,et,v(this,et,"f"),"f"),v(this,et,"f").showHiddenOpt=v(this,L,"f"),O(this,Q,this[vt](),"f")}addHelpOpt(t,e){return h("[string|boolean] [string]",[t,e],arguments.length),v(this,Z,"f")&&(this[Ot](v(this,Z,"f")),O(this,Z,null,"f")),!1===t&&void 0===e||(O(this,Z,"string"==typeof t?t:"help","f"),this.boolean(v(this,Z,"f")),this.describe(v(this,Z,"f"),e||v(this,pt,"f").deferY18nLookup("Show help"))),this}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(h("[string|boolean] [string]",[t,e],arguments.length),!1===t&&void 0===e)return this;const s="string"==typeof t?t:v(this,L,"f");return this.boolean(s),this.describe(s,e||v(this,pt,"f").deferY18nLookup("Show hidden options")),v(this,et,"f").showHiddenOpt=s,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return h("<object|string|array> [string|array]",[t,e],arguments.length),this[$t](this.alias.bind(this),"alias",t,e),this}array(t){return h("<array|string>",[t],arguments.length),this[Pt]("array",t),this[Qt](t),this}boolean(t){return h("<array|string>",[t],arguments.length),this[Pt]("boolean",t),this[Qt](t),this}check(t,e){return h("<function> [boolean]",[t,e],arguments.length),this.middleware(((e,s)=>j((()=>t(e,s.getOptions())),(s=>(s?("string"==typeof s||s instanceof Error)&&v(this,pt,"f").fail(s.toString(),s):v(this,pt,"f").fail(v(this,ct,"f").y18n.__("Argument check failed: %s",t.toString())),e)),(t=>(v(this,pt,"f").fail(t.message?t.message:t.toString(),t),e)))),!1,e),this}choices(t,e){return h("<object|string|array> [string|array]",[t,e],arguments.length),this[$t](this.choices.bind(this),"choices",t,e),this}coerce(t,s){if(h("<object|string|array> [function]",[t,s],arguments.length),Array.isArray(t)){if(!s)throw new e("coerce callback must be provided");for(const e of t)this.coerce(e,s);return this}if("object"==typeof t){for(const e of Object.keys(t))this.coerce(e,t[e]);return this}if(!s)throw new e("coerce callback must be provided");return v(this,et,"f").key[t]=!0,v(this,Y,"f").addCoerceMiddleware(((i,n)=>{let r;return Object.prototype.hasOwnProperty.call(i,t)?j((()=>(r=n.getAliases(),s(i[t]))),(e=>{i[t]=e;const s=n.getInternalMethods().getParserConfiguration()["strip-aliased"];if(r[t]&&!0!==s)for(const s of r[t])i[s]=e;return i}),(t=>{throw new e(t.message)})):i}),t),this}conflicts(t,e){return h("<string|object> [string|array]",[t,e],arguments.length),v(this,yt,"f").conflicts(t,e),this}config(t="config",e,s){return h("[object|string] [string|function] [function]",[t,e,s],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof e&&(s=e,e=void 0),this.describe(t,e||v(this,pt,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{v(this,et,"f").config[t]=s||!0})),this):(t=n(t,v(this,W,"f"),this[Mt]()["deep-merge-config"]||!1,v(this,ct,"f")),v(this,et,"f").configObjects=(v(this,et,"f").configObjects||[]).concat(t),this)}completion(t,e,s){return h("[string] [string|boolean|function] [function]",[t,e,s],arguments.length),"function"==typeof e&&(s=e,e=void 0),O(this,F,t||v(this,F,"f")||"completion","f"),e||!1===e||(e="generate completion script"),this.command(v(this,F,"f"),e),s&&v(this,U,"f").registerFunction(s),this}command(t,e,s,i,n,r){return h("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,s,i,n,r],arguments.length),v(this,z,"f").addHandler(t,e,s,i,n,r),this}commands(t,e,s,i,n,r){return this.command(t,e,s,i,n,r)}commandDir(t,e){h("<string> [object]",[t,e],arguments.length);const s=v(this,st,"f")||v(this,ct,"f").require;return v(this,z,"f").addDirectory(t,s,v(this,ct,"f").getCallerFile(),e),this}count(t){return h("<array|string>",[t],arguments.length),this[Pt]("count",t),this[Qt](t),this}default(t,e,s){return h("<object|string|array> [*] [string]",[t,e,s],arguments.length),s&&(u(t,v(this,ct,"f")),v(this,et,"f").defaultDescription[t]=s),"function"==typeof e&&(u(t,v(this,ct,"f")),v(this,et,"f").defaultDescription[t]||(v(this,et,"f").defaultDescription[t]=v(this,pt,"f").functionDescription(e)),e=e.call()),this[St](this.default.bind(this),"default",t,e),this}defaults(t,e,s){return this.default(t,e,s)}demandCommand(t=1,e,s,i){return h("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,s,i],arguments.length),"number"!=typeof e&&(s=e,e=1/0),this.global("_",!1),v(this,et,"f").demandedCommands._={min:t,max:e,minMsg:s,maxMsg:i},this}demand(t,e,s){return Array.isArray(e)?(e.forEach((t=>{d(s,!0,v(this,ct,"f")),this.demandOption(t,s)})),e=1/0):"number"!=typeof e&&(s=e,e=1/0),"number"==typeof t?(d(s,!0,v(this,ct,"f")),this.demandCommand(t,e,s,s)):Array.isArray(t)?t.forEach((t=>{d(s,!0,v(this,ct,"f")),this.demandOption(t,s)})):"string"==typeof s?this.demandOption(t,s):!0!==s&&void 0!==s||this.demandOption(t),this}demandOption(t,e){return h("<object|string|array> [string]",[t,e],arguments.length),this[St](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return h("<string> [string|boolean]",[t,e],arguments.length),v(this,et,"f").deprecatedOptions[t]=e,this}describe(t,e){return h("<object|string|array> [string]",[t,e],arguments.length),this[Nt](t,!0),v(this,pt,"f").describe(t,e),this}detectLocale(t){return h("<boolean>",[t],arguments.length),O(this,G,t,"f"),this}env(t){return h("[string|boolean]",[t],arguments.length),!1===t?delete v(this,et,"f").envPrefix:v(this,et,"f").envPrefix=t||"",this}epilogue(t){return h("<string>",[t],arguments.length),v(this,pt,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return h("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):v(this,pt,"f").example(t,e),this}exit(t,e){O(this,J,!0,"f"),O(this,V,e,"f"),v(this,T,"f")&&v(this,ct,"f").process.exit(t)}exitProcess(t=!0){return h("[boolean]",[t],arguments.length),O(this,T,t,"f"),this}fail(t){if(h("<function|boolean>",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new e("Invalid first argument. Expected function or boolean 'false'");return v(this,pt,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return h("<array> [function]",[t,e],arguments.length),e?v(this,U,"f").getCompletion(t,e):new Promise(((e,s)=>{v(this,U,"f").getCompletion(t,((t,i)=>{t?s(t):e(i)}))}))}getDemandedOptions(){return h([],0),v(this,et,"f").demandedOptions}getDemandedCommands(){return h([],0),v(this,et,"f").demandedCommands}getDeprecatedOptions(){return h([],0),v(this,et,"f").deprecatedOptions}getDetectLocale(){return v(this,G,"f")}getExitProcess(){return v(this,T,"f")}getGroups(){return Object.assign({},v(this,K,"f"),v(this,at,"f"))}getHelp(){if(O(this,J,!0,"f"),!v(this,pt,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Jt](v(this,ht,"f"),void 0,void 0,0,!0);if(f(t))return t.then((()=>v(this,pt,"f").help()))}const t=v(this,z,"f").runDefaultBuilderOn(this);if(f(t))return t.then((()=>v(this,pt,"f").help()))}return Promise.resolve(v(this,pt,"f").help())}getOptions(){return v(this,et,"f")}getStrict(){return v(this,ft,"f")}getStrictCommands(){return v(this,dt,"f")}getStrictOptions(){return v(this,ut,"f")}global(t,e){return h("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?v(this,et,"f").local=v(this,et,"f").local.filter((e=>-1===t.indexOf(e))):t.forEach((t=>{v(this,et,"f").local.includes(t)||v(this,et,"f").local.push(t)})),this}group(t,e){h("<string|array> <string>",[t,e],arguments.length);const s=v(this,at,"f")[e]||v(this,K,"f")[e];v(this,at,"f")[e]&&delete v(this,at,"f")[e];const i={};return v(this,K,"f")[e]=(s||[]).concat(t).filter((t=>!i[t]&&(i[t]=!0))),this}hide(t){return h("<string>",[t],arguments.length),v(this,et,"f").hiddenOptions.push(t),this}implies(t,e){return h("<string|object> [number|string|array]",[t,e],arguments.length),v(this,yt,"f").implies(t,e),this}locale(t){return h("[string]",[t],arguments.length),void 0===t?(this[kt](),v(this,ct,"f").y18n.getLocale()):(O(this,G,!1,"f"),v(this,ct,"f").y18n.setLocale(t),this)}middleware(t,e,s){return v(this,Y,"f").addMiddleware(t,!!e,s)}nargs(t,e){return h("<string|object|array> [number]",[t,e],arguments.length),this[St](this.nargs.bind(this),"narg",t,e),this}normalize(t){return h("<array|string>",[t],arguments.length),this[Pt]("normalize",t),this}number(t){return h("<array|string>",[t],arguments.length),this[Pt]("number",t),this[Qt](t),this}option(t,e){if(h("<string|object> [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach((e=>{this.options(e,t[e])}));else{"object"!=typeof e&&(e={}),this[Qt](t),!v(this,mt,"f")||"version"!==t&&"version"!==(null==e?void 0:e.alias)||this[wt](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join("\n"),void 0,"versionWarning"),v(this,et,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);const s=e.deprecate||e.deprecated;s&&this.deprecateOption(t,s);const i=e.demand||e.required||e.require;i&&this.demand(t,i),e.demandOption&&this.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),void 0!==e.implies&&this.implies(t,e.implies),void 0!==e.nargs&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||"boolean"===e.type)&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||"array"===e.type)&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||"number"===e.type)&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||"string"===e.type)&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||"count"===e.type)&&this.count(t),"boolean"==typeof e.global&&this.global(t,e.global),e.defaultDescription&&(v(this,et,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);const n=e.describe||e.description||e.desc,r=v(this,pt,"f").getDescriptions();Object.prototype.hasOwnProperty.call(r,t)&&"string"!=typeof n||this.describe(t,n),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,s){h("[string|array] [function|boolean|object] [function]",[t,e,s],arguments.length),this[Ct](),void 0===t&&(t=v(this,ht,"f")),"object"==typeof e&&(O(this,rt,e,"f"),e=s),"function"==typeof e&&(O(this,nt,e,"f"),e=!1),e||O(this,ht,t,"f"),v(this,nt,"f")&&O(this,T,!1,"f");const i=this[Jt](t,!!e),n=this.parsed;return v(this,U,"f").setParsed(this.parsed),f(i)?i.then((t=>(v(this,nt,"f")&&v(this,nt,"f").call(this,v(this,V,"f"),t,v(this,tt,"f")),t))).catch((t=>{throw v(this,nt,"f")&&v(this,nt,"f")(t,this.parsed.argv,v(this,tt,"f")),t})).finally((()=>{this[Ht](),this.parsed=n})):(v(this,nt,"f")&&v(this,nt,"f").call(this,v(this,V,"f"),i,v(this,tt,"f")),this[Ht](),this.parsed=n,i)}parseAsync(t,e,s){const i=this.parse(t,e,s);return f(i)?i:Promise.resolve(i)}parseSync(t,s,i){const n=this.parse(t,s,i);if(f(n))throw new e(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(t){return h("<object>",[t],arguments.length),O(this,it,t,"f"),this}pkgConf(t,e){h("<string> [string]",[t,e],arguments.length);let s=null;const i=this[At](e||v(this,W,"f"));return i[t]&&"object"==typeof i[t]&&(s=n(i[t],e||v(this,W,"f"),this[Mt]()["deep-merge-config"]||!1,v(this,ct,"f")),v(this,et,"f").configObjects=(v(this,et,"f").configObjects||[]).concat(s)),this}positional(t,e){h("<string> <object>",[t,e],arguments.length);const s=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=g(e,((t,e)=>!("type"===t&&!["string","number","boolean"].includes(e))&&s.includes(t)));const i=v(this,q,"f").fullCommands[v(this,q,"f").fullCommands.length-1],n=i?v(this,z,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return p(n).forEach((s=>{const i=n[s];Array.isArray(i)?-1!==i.indexOf(t)&&(e[s]=!0):i[t]&&!(s in e)&&(e[s]=i[t])})),this.group(t,v(this,pt,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return h("[boolean]",[t],arguments.length),O(this,lt,t,"f"),this}required(t,e,s){return this.demand(t,e,s)}require(t,e,s){return this.demand(t,e,s)}requiresArg(t){return h("<array|string|object> [number]",[t],arguments.length),"string"==typeof t&&v(this,et,"f").narg[t]||this[St](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,e){return h("[string] [string]",[t,e],arguments.length),t=t||this.$0,v(this,Q,"f").log(v(this,U,"f").generateCompletionScript(t,e||v(this,F,"f")||"completion")),this}showHelp(t){if(h("[string|function]",[t],arguments.length),O(this,J,!0,"f"),!v(this,pt,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Jt](v(this,ht,"f"),void 0,void 0,0,!0);if(f(e))return e.then((()=>{v(this,pt,"f").showHelp(t)})),this}const e=v(this,z,"f").runDefaultBuilderOn(this);if(f(e))return e.then((()=>{v(this,pt,"f").showHelp(t)})),this}return v(this,pt,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return h("[boolean|string] [string]",[t,e],arguments.length),v(this,pt,"f").showHelpOnFail(t,e),this}showVersion(t){return h("[string|function]",[t],arguments.length),v(this,pt,"f").showVersion(t),this}skipValidation(t){return h("<array|string>",[t],arguments.length),this[Pt]("skipValidation",t),this}strict(t){return h("[boolean]",[t],arguments.length),O(this,ft,!1!==t,"f"),this}strictCommands(t){return h("[boolean]",[t],arguments.length),O(this,dt,!1!==t,"f"),this}strictOptions(t){return h("[boolean]",[t],arguments.length),O(this,ut,!1!==t,"f"),this}string(t){return h("<array|string>",[t],arguments.length),this[Pt]("string",t),this[Qt](t),this}terminalWidth(){return h([],0),v(this,ct,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return h("<object>",[t],arguments.length),O(this,G,!1,"f"),v(this,ct,"f").y18n.updateLocale(t),this}usage(t,s,i,n){if(h("<string|null|undefined> [string|boolean] [function|object] [function]",[t,s,i,n],arguments.length),void 0!==s){if(d(t,null,v(this,ct,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,s,i,n);throw new e(".usage() description must start with $0 if being used as alias for .command()")}return v(this,pt,"f").usage(t),this}usageConfiguration(t){return h("<object>",[t],arguments.length),O(this,gt,t,"f"),this}version(t,e,s){const i="version";if(h("[boolean|string] [string] [string]",[t,e,s],arguments.length),v(this,mt,"f")&&(this[Ot](v(this,mt,"f")),v(this,pt,"f").version(void 0),O(this,mt,null,"f")),0===arguments.length)s=this[xt](),t=i;else if(1===arguments.length){if(!1===t)return this;s=t,t=i}else 2===arguments.length&&(s=e,e=void 0);return O(this,mt,"string"==typeof t?t:i,"f"),e=e||v(this,pt,"f").deferY18nLookup("Show version number"),v(this,pt,"f").version(s||void 0),this.boolean(v(this,mt,"f")),this.describe(v(this,mt,"f"),e),this}wrap(t){return h("<number|null|undefined>",[t],arguments.length),v(this,pt,"f").wrap(t),this}[(z=new WeakMap,W=new WeakMap,q=new WeakMap,U=new WeakMap,F=new WeakMap,L=new WeakMap,V=new WeakMap,G=new WeakMap,R=new WeakMap,T=new WeakMap,B=new WeakMap,Y=new WeakMap,K=new WeakMap,J=new WeakMap,Z=new WeakMap,X=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakMap,st=new WeakMap,it=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,at=new WeakMap,ht=new WeakMap,lt=new WeakMap,ct=new WeakMap,ft=new WeakMap,dt=new WeakMap,ut=new WeakMap,pt=new WeakMap,gt=new WeakMap,mt=new WeakMap,yt=new WeakMap,bt)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[vt](){return{log:(...t)=>{this[Rt]()||console.log(...t),O(this,J,!0,"f"),v(this,tt,"f").length&&O(this,tt,v(this,tt,"f")+"\n","f"),O(this,tt,v(this,tt,"f")+t.join(" "),"f")},error:(...t)=>{this[Rt]()||console.error(...t),O(this,J,!0,"f"),v(this,tt,"f").length&&O(this,tt,v(this,tt,"f")+"\n","f"),O(this,tt,v(this,tt,"f")+t.join(" "),"f")}}}[Ot](t){p(v(this,et,"f")).forEach((e=>{if("configObjects"===e)return;const s=v(this,et,"f")[e];Array.isArray(s)?s.includes(t)&&s.splice(s.indexOf(t),1):"object"==typeof s&&delete s[t]})),delete v(this,pt,"f").getDescriptions()[t]}[wt](t,e,s){v(this,R,"f")[s]||(v(this,ct,"f").process.emitWarning(t,e),v(this,R,"f")[s]=!0)}[Ct](){v(this,B,"f").push({options:v(this,et,"f"),configObjects:v(this,et,"f").configObjects.slice(0),exitProcess:v(this,T,"f"),groups:v(this,K,"f"),strict:v(this,ft,"f"),strictCommands:v(this,dt,"f"),strictOptions:v(this,ut,"f"),completionCommand:v(this,F,"f"),output:v(this,tt,"f"),exitError:v(this,V,"f"),hasOutput:v(this,J,"f"),parsed:this.parsed,parseFn:v(this,nt,"f"),parseContext:v(this,rt,"f")}),v(this,pt,"f").freeze(),v(this,yt,"f").freeze(),v(this,z,"f").freeze(),v(this,Y,"f").freeze()}[jt](){let t,e="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(v(this,ct,"f").process.argv()[0])?v(this,ct,"f").process.argv().slice(1,2):v(this,ct,"f").process.argv().slice(0,1),e=t.map((t=>{const e=this[Yt](v(this,W,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&e.length<t.length?e:t})).join(" ").trim(),v(this,ct,"f").getEnv("_")&&v(this,ct,"f").getProcessArgvBin()===v(this,ct,"f").getEnv("_")&&(e=v(this,ct,"f").getEnv("_").replace(`${v(this,ct,"f").path.dirname(v(this,ct,"f").process.execPath())}/`,"")),e}[Mt](){return v(this,it,"f")}[_t](){return v(this,gt,"f")}[kt](){if(!v(this,G,"f"))return;const t=v(this,ct,"f").getEnv("LC_ALL")||v(this,ct,"f").getEnv("LC_MESSAGES")||v(this,ct,"f").getEnv("LANG")||v(this,ct,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[xt](){return this[At]().version||"unknown"}[Et](t){const e=t["--"]?t["--"]:t._;for(let t,s=0;void 0!==(t=e[s]);s++)v(this,ct,"f").Parser.looksLikeNumber(t)&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))&&(e[s]=Number(t));return t}[At](t){const e=t||"*";if(v(this,ot,"f")[e])return v(this,ot,"f")[e];let s={};try{let e=t||v(this,ct,"f").mainFilename;!t&&v(this,ct,"f").path.extname(e)&&(e=v(this,ct,"f").path.dirname(e));const i=v(this,ct,"f").findUp(e,((t,e)=>e.includes("package.json")?"package.json":void 0));d(i,void 0,v(this,ct,"f")),s=JSON.parse(v(this,ct,"f").readFileSync(i,"utf8"))}catch(t){}return v(this,ot,"f")[e]=s||{},v(this,ot,"f")[e]}[Pt](t,e){(e=[].concat(e)).forEach((e=>{e=this[Dt](e),v(this,et,"f")[t].push(e)}))}[St](t,e,s,i){this[It](t,e,s,i,((t,e,s)=>{v(this,et,"f")[t][e]=s}))}[$t](t,e,s,i){this[It](t,e,s,i,((t,e,s)=>{v(this,et,"f")[t][e]=(v(this,et,"f")[t][e]||[]).concat(s)}))}[It](t,e,s,i,n){if(Array.isArray(s))s.forEach((e=>{t(e,i)}));else if((t=>"object"==typeof t)(s))for(const e of p(s))t(e,s[e]);else n(e,this[Dt](s),i)}[Dt](t){return"__proto__"===t?"___proto___":t}[Nt](t,e){return this[St](this[Nt].bind(this),"key",t,e),this}[Ht](){var t,e,s,i,n,r,o,a,h,l,c,f;const u=v(this,B,"f").pop();let p;d(u,void 0,v(this,ct,"f")),t=this,e=this,s=this,i=this,n=this,r=this,o=this,a=this,h=this,l=this,c=this,f=this,({options:{set value(e){O(t,et,e,"f")}}.value,configObjects:p,exitProcess:{set value(t){O(e,T,t,"f")}}.value,groups:{set value(t){O(s,K,t,"f")}}.value,output:{set value(t){O(i,tt,t,"f")}}.value,exitError:{set value(t){O(n,V,t,"f")}}.value,hasOutput:{set value(t){O(r,J,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){O(o,ft,t,"f")}}.value,strictCommands:{set value(t){O(a,dt,t,"f")}}.value,strictOptions:{set value(t){O(h,ut,t,"f")}}.value,completionCommand:{set value(t){O(l,F,t,"f")}}.value,parseFn:{set value(t){O(c,nt,t,"f")}}.value,parseContext:{set value(t){O(f,rt,t,"f")}}.value}=u),v(this,et,"f").configObjects=p,v(this,pt,"f").unfreeze(),v(this,yt,"f").unfreeze(),v(this,z,"f").unfreeze(),v(this,Y,"f").unfreeze()}[zt](t,e){return j(e,(e=>(t(e),e)))}getInternalMethods(){return{getCommandInstance:this[Wt].bind(this),getContext:this[qt].bind(this),getHasOutput:this[Ut].bind(this),getLoggerInstance:this[Ft].bind(this),getParseContext:this[Lt].bind(this),getParserConfiguration:this[Mt].bind(this),getUsageConfiguration:this[_t].bind(this),getUsageInstance:this[Vt].bind(this),getValidationInstance:this[Gt].bind(this),hasParseCallback:this[Rt].bind(this),isGlobalContext:this[Tt].bind(this),postProcess:this[Bt].bind(this),reset:this[Kt].bind(this),runValidation:this[Zt].bind(this),runYargsParserAndExecuteCommands:this[Jt].bind(this),setHasOutput:this[Xt].bind(this)}}[Wt](){return v(this,z,"f")}[qt](){return v(this,q,"f")}[Ut](){return v(this,J,"f")}[Ft](){return v(this,Q,"f")}[Lt](){return v(this,rt,"f")||{}}[Vt](){return v(this,pt,"f")}[Gt](){return v(this,yt,"f")}[Rt](){return!!v(this,nt,"f")}[Tt](){return v(this,X,"f")}[Bt](t,e,s,i){if(s)return t;if(f(t))return t;e||(t=this[bt](t));return(this[Mt]()["parse-positional-numbers"]||void 0===this[Mt]()["parse-positional-numbers"])&&(t=this[Et](t)),i&&(t=C(t,this,v(this,Y,"f").getMiddleware(),!1)),t}[Kt](t={}){O(this,et,v(this,et,"f")||{},"f");const e={};e.local=v(this,et,"f").local||[],e.configObjects=v(this,et,"f").configObjects||[];const s={};e.local.forEach((e=>{s[e]=!0,(t[e]||[]).forEach((t=>{s[t]=!0}))})),Object.assign(v(this,at,"f"),Object.keys(v(this,K,"f")).reduce(((t,e)=>{const i=v(this,K,"f")[e].filter((t=>!(t in s)));return i.length>0&&(t[e]=i),t}),{})),O(this,K,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{e[t]=(v(this,et,"f")[t]||[]).filter((t=>!s[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{e[t]=g(v(this,et,"f")[t],(t=>!s[t]))})),e.envPrefix=v(this,et,"f").envPrefix,O(this,et,e,"f"),O(this,pt,v(this,pt,"f")?v(this,pt,"f").reset(s):P(this,v(this,ct,"f")),"f"),O(this,yt,v(this,yt,"f")?v(this,yt,"f").reset(s):function(t,e,s){const i=s.y18n.__,n=s.y18n.__n,r={nonOptionCount:function(s){const i=t.getDemandedCommands(),r=s._.length+(s["--"]?s["--"].length:0)-t.getInternalMethods().getContext().commands.length;i._&&(r<i._.min||r>i._.max)&&(r<i._.min?void 0!==i._.minMsg?e.fail(i._.minMsg?i._.minMsg.replace(/\$0/g,r.toString()).replace(/\$1/,i._.min.toString()):null):e.fail(n("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r.toString(),i._.min.toString())):r>i._.max&&(void 0!==i._.maxMsg?e.fail(i._.maxMsg?i._.maxMsg.replace(/\$0/g,r.toString()).replace(/\$1/,i._.max.toString()):null):e.fail(n("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",r,r.toString(),i._.max.toString()))))},positionalCount:function(t,s){s<t&&e.fail(n("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",s,s+"",t+""))},requiredArguments:function(t,s){let i=null;for(const e of Object.keys(s))Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]||(i=i||{},i[e]=s[e]);if(i){const t=[];for(const e of Object.keys(i)){const s=i[e];s&&t.indexOf(s)<0&&t.push(s)}const s=t.length?`\n${t.join("\n")}`:"";e.fail(n("Missing required argument: %s","Missing required arguments: %s",Object.keys(i).length,Object.keys(i).join(", ")+s))}},unknownArguments:function(s,i,o,a,h=!0){var l;const c=t.getInternalMethods().getCommandInstance().getCommands(),f=[],d=t.getInternalMethods().getContext();if(Object.keys(s).forEach((e=>{H.includes(e)||Object.prototype.hasOwnProperty.call(o,e)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),e)||r.isValidAndSomeAliasIsNotNew(e,i)||f.push(e)})),h&&(d.commands.length>0||c.length>0||a)&&s._.slice(d.commands.length).forEach((t=>{c.includes(""+t)||f.push(""+t)})),h){const e=(null===(l=t.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,i=d.commands.length+e;i<s._.length&&s._.slice(i).forEach((t=>{t=String(t),d.commands.includes(t)||f.includes(t)||f.push(t)}))}f.length&&e.fail(n("Unknown argument: %s","Unknown arguments: %s",f.length,f.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(s){const i=t.getInternalMethods().getCommandInstance().getCommands(),r=[],o=t.getInternalMethods().getContext();return(o.commands.length>0||i.length>0)&&s._.slice(o.commands.length).forEach((t=>{i.includes(""+t)||r.push(""+t)})),r.length>0&&(e.fail(n("Unknown command: %s","Unknown commands: %s",r.length,r.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(e,s){if(!Object.prototype.hasOwnProperty.call(s,e))return!1;const i=t.parsed.newAliases;return[e,...s[e]].some((t=>!Object.prototype.hasOwnProperty.call(i,t)||!i[e]))},limitedChoices:function(s){const n=t.getOptions(),r={};if(!Object.keys(n.choices).length)return;Object.keys(s).forEach((t=>{-1===H.indexOf(t)&&Object.prototype.hasOwnProperty.call(n.choices,t)&&[].concat(s[t]).forEach((e=>{-1===n.choices[t].indexOf(e)&&void 0!==e&&(r[t]=(r[t]||[]).concat(e))}))}));const o=Object.keys(r);if(!o.length)return;let a=i("Invalid values:");o.forEach((t=>{a+=`\n ${i("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(r[t]),e.stringifiedValues(n.choices[t]))}`})),e.fail(a)}};let o={};function a(t,e){const s=Number(e);return"number"==typeof(e=isNaN(s)?e:s)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!Object.prototype.hasOwnProperty.call(t,e)):e=Object.prototype.hasOwnProperty.call(t,e),e}r.implies=function(e,i){h("<string|object> [array|number|string]",[e,i],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{r.implies(t,e[t])})):(t.global(e),o[e]||(o[e]=[]),Array.isArray(i)?i.forEach((t=>r.implies(e,t))):(d(i,void 0,s),o[e].push(i)))},r.getImplied=function(){return o},r.implications=function(t){const s=[];if(Object.keys(o).forEach((e=>{const i=e;(o[e]||[]).forEach((e=>{let n=i;const r=e;n=a(t,n),e=a(t,e),n&&!e&&s.push(` ${i} -> ${r}`)}))})),s.length){let t=`${i("Implications failed:")}\n`;s.forEach((e=>{t+=e})),e.fail(t)}};let l={};r.conflicts=function(e,s){h("<string|object> [array|string]",[e,s],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{r.conflicts(t,e[t])})):(t.global(e),l[e]||(l[e]=[]),Array.isArray(s)?s.forEach((t=>r.conflicts(e,t))):l[e].push(s))},r.getConflicting=()=>l,r.conflicting=function(n){Object.keys(n).forEach((t=>{l[t]&&l[t].forEach((s=>{s&&void 0!==n[t]&&void 0!==n[s]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,s))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach((t=>{l[t].forEach((r=>{r&&void 0!==n[s.Parser.camelCase(t)]&&void 0!==n[s.Parser.camelCase(r)]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,r))}))}))},r.recommendCommands=function(t,s){s=s.sort(((t,e)=>e.length-t.length));let n=null,r=1/0;for(let e,i=0;void 0!==(e=s[i]);i++){const s=N(t,e);s<=3&&s<r&&(r=s,n=e)}n&&e.fail(i("Did you mean %s?",n))},r.reset=function(t){return o=g(o,(e=>!t[e])),l=g(l,(e=>!t[e])),r};const c=[];return r.freeze=function(){c.push({implied:o,conflicting:l})},r.unfreeze=function(){const t=c.pop();d(t,void 0,s),({implied:o,conflicting:l}=t)},r}(this,v(this,pt,"f"),v(this,ct,"f")),"f"),O(this,z,v(this,z,"f")?v(this,z,"f").reset():function(t,e,s,i){return new _(t,e,s,i)}(v(this,pt,"f"),v(this,yt,"f"),v(this,Y,"f"),v(this,ct,"f")),"f"),v(this,U,"f")||O(this,U,function(t,e,s,i){return new D(t,e,s,i)}(this,v(this,pt,"f"),v(this,z,"f"),v(this,ct,"f")),"f"),v(this,Y,"f").reset(),O(this,F,null,"f"),O(this,tt,"","f"),O(this,V,null,"f"),O(this,J,!1,"f"),this.parsed=!1,this}[Yt](t,e){return v(this,ct,"f").path.relative(t,e)}[Jt](t,s,i,n=0,r=!1){let o=!!i||r;t=t||v(this,ht,"f"),v(this,et,"f").__=v(this,ct,"f").y18n.__,v(this,et,"f").configuration=this[Mt]();const a=!!v(this,et,"f").configuration["populate--"],h=Object.assign({},v(this,et,"f").configuration,{"populate--":!0}),l=v(this,ct,"f").Parser.detailed(t,Object.assign({},v(this,et,"f"),{configuration:{"parse-positional-numbers":!1,...h}})),c=Object.assign(l.argv,v(this,rt,"f"));let d;const u=l.aliases;let p=!1,g=!1;Object.keys(c).forEach((t=>{t===v(this,Z,"f")&&c[t]?p=!0:t===v(this,mt,"f")&&c[t]&&(g=!0)})),c.$0=this.$0,this.parsed=l,0===n&&v(this,pt,"f").clearCachedHelpMessage();try{if(this[kt](),s)return this[Bt](c,a,!!i,!1);if(v(this,Z,"f")){[v(this,Z,"f")].concat(u[v(this,Z,"f")]||[]).filter((t=>t.length>1)).includes(""+c._[c._.length-1])&&(c._.pop(),p=!0)}O(this,X,!1,"f");const h=v(this,z,"f").getCommands(),m=v(this,U,"f").completionKey in c,y=p||m||r;if(c._.length){if(h.length){let t;for(let e,s=n||0;void 0!==c._[s];s++){if(e=String(c._[s]),h.includes(e)&&e!==v(this,F,"f")){const t=v(this,z,"f").runCommand(e,this,l,s+1,r,p||g||r);return this[Bt](t,a,!!i,!1)}if(!t&&e!==v(this,F,"f")){t=e;break}}!v(this,z,"f").hasDefaultCommand()&&v(this,lt,"f")&&t&&!y&&v(this,yt,"f").recommendCommands(t,h)}v(this,F,"f")&&c._.includes(v(this,F,"f"))&&!m&&(v(this,T,"f")&&E(!0),this.showCompletionScript(),this.exit(0))}if(v(this,z,"f").hasDefaultCommand()&&!y){const t=v(this,z,"f").runCommand(null,this,l,0,r,p||g||r);return this[Bt](t,a,!!i,!1)}if(m){v(this,T,"f")&&E(!0);const s=(t=[].concat(t)).slice(t.indexOf(`--${v(this,U,"f").completionKey}`)+1);return v(this,U,"f").getCompletion(s,((t,s)=>{if(t)throw new e(t.message);(s||[]).forEach((t=>{v(this,Q,"f").log(t)})),this.exit(0)})),this[Bt](c,!a,!!i,!1)}if(v(this,J,"f")||(p?(v(this,T,"f")&&E(!0),o=!0,this.showHelp("log"),this.exit(0)):g&&(v(this,T,"f")&&E(!0),o=!0,v(this,pt,"f").showVersion("log"),this.exit(0))),!o&&v(this,et,"f").skipValidation.length>0&&(o=Object.keys(c).some((t=>v(this,et,"f").skipValidation.indexOf(t)>=0&&!0===c[t]))),!o){if(l.error)throw new e(l.error.message);if(!m){const t=this[Zt](u,{},l.error);i||(d=C(c,this,v(this,Y,"f").getMiddleware(),!0)),d=this[zt](t,null!=d?d:c),f(d)&&!i&&(d=d.then((()=>C(c,this,v(this,Y,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof e))throw t;v(this,pt,"f").fail(t.message,t)}return this[Bt](null!=d?d:c,a,!!i,!0)}[Zt](t,s,i,n){const r={...this.getDemandedOptions()};return o=>{if(i)throw new e(i.message);v(this,yt,"f").nonOptionCount(o),v(this,yt,"f").requiredArguments(o,r);let a=!1;v(this,dt,"f")&&(a=v(this,yt,"f").unknownCommands(o)),v(this,ft,"f")&&!a?v(this,yt,"f").unknownArguments(o,t,s,!!n):v(this,ut,"f")&&v(this,yt,"f").unknownArguments(o,t,{},!1,!1),v(this,yt,"f").limitedChoices(o),v(this,yt,"f").implications(o),v(this,yt,"f").conflicting(o)}}[Xt](){O(this,J,!0,"f")}[Qt](t){if("string"==typeof t)v(this,et,"f").key[t]=!0;else for(const e of t)v(this,et,"f").key[e]=!0}}var ee,se;const{readFileSync:ie}=require("fs"),{inspect:ne}=require("util"),{resolve:re}=require("path"),oe=require("y18n"),ae=require("yargs-parser");var he,le={assert:{notStrictEqual:t.notStrictEqual,strictEqual:t.strictEqual},cliui:require("cliui"),findUp:require("escalade/sync"),getEnv:t=>process.env[t],getCallerFile:require("get-caller-file"),getProcessArgvBin:y,inspect:ne,mainFilename:null!==(se=null===(ee=null===require||void 0===require?void 0:require.main)||void 0===ee?void 0:ee.filename)&&void 0!==se?se:process.cwd(),Parser:ae,path:require("path"),process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:t=>{process.exit(t)},nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:ie,require:require,requireDirectory:require("require-directory"),stringWidth:require("string-width"),y18n:oe({directory:re(__dirname,"../locales"),updateFiles:!1})};const ce=(null===(he=null===process||void 0===process?void 0:process.env)||void 0===he?void 0:he.YARGS_MIN_NODE_VERSION)?Number(process.env.YARGS_MIN_NODE_VERSION):12;if(process&&process.version){if(Number(process.version.match(/v([^.]+)/)[1])<ce)throw Error(`yargs supports a minimum Node.js version of ${ce}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`)}const fe=require("yargs-parser");var de,ue={applyExtends:n,cjsPlatformShim:le,Yargs:(de=le,(t=[],e=de.process.cwd(),s)=>{const i=new te(t,e,s,de);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}),argsert:h,isPromise:f,objFilter:g,parseCommand:o,Parser:fe,processArgv:b,YError:e};module.exports=ue;
1
+ 'use strict';
2
+
3
+ var assert = require('assert');
4
+
5
+ class YError extends Error {
6
+ constructor(msg) {
7
+ super(msg || 'yargs error');
8
+ this.name = 'YError';
9
+ Error.captureStackTrace(this, YError);
10
+ }
11
+ }
12
+
13
+ let previouslyVisitedConfigs = [];
14
+ let shim;
15
+ function applyExtends(config, cwd, mergeExtends, _shim) {
16
+ shim = _shim;
17
+ let defaultConfig = {};
18
+ if (Object.prototype.hasOwnProperty.call(config, 'extends')) {
19
+ if (typeof config.extends !== 'string')
20
+ return defaultConfig;
21
+ const isPath = /\.json|\..*rc$/.test(config.extends);
22
+ let pathToDefault = null;
23
+ if (!isPath) {
24
+ try {
25
+ pathToDefault = require.resolve(config.extends);
26
+ }
27
+ catch (_err) {
28
+ return config;
29
+ }
30
+ }
31
+ else {
32
+ pathToDefault = getPathToDefaultConfig(cwd, config.extends);
33
+ }
34
+ checkForCircularExtends(pathToDefault);
35
+ previouslyVisitedConfigs.push(pathToDefault);
36
+ defaultConfig = isPath
37
+ ? JSON.parse(shim.readFileSync(pathToDefault, 'utf8'))
38
+ : require(config.extends);
39
+ delete config.extends;
40
+ defaultConfig = applyExtends(defaultConfig, shim.path.dirname(pathToDefault), mergeExtends, shim);
41
+ }
42
+ previouslyVisitedConfigs = [];
43
+ return mergeExtends
44
+ ? mergeDeep(defaultConfig, config)
45
+ : Object.assign({}, defaultConfig, config);
46
+ }
47
+ function checkForCircularExtends(cfgPath) {
48
+ if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) {
49
+ throw new YError(`Circular extended configurations: '${cfgPath}'.`);
50
+ }
51
+ }
52
+ function getPathToDefaultConfig(cwd, pathToExtend) {
53
+ return shim.path.resolve(cwd, pathToExtend);
54
+ }
55
+ function mergeDeep(config1, config2) {
56
+ const target = {};
57
+ function isObject(obj) {
58
+ return obj && typeof obj === 'object' && !Array.isArray(obj);
59
+ }
60
+ Object.assign(target, config1);
61
+ for (const key of Object.keys(config2)) {
62
+ if (isObject(config2[key]) && isObject(target[key])) {
63
+ target[key] = mergeDeep(config1[key], config2[key]);
64
+ }
65
+ else {
66
+ target[key] = config2[key];
67
+ }
68
+ }
69
+ return target;
70
+ }
71
+
72
+ function parseCommand(cmd) {
73
+ const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' ');
74
+ const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/);
75
+ const bregex = /\.*[\][<>]/g;
76
+ const firstCommand = splitCommand.shift();
77
+ if (!firstCommand)
78
+ throw new Error(`No command found in: ${cmd}`);
79
+ const parsedCommand = {
80
+ cmd: firstCommand.replace(bregex, ''),
81
+ demanded: [],
82
+ optional: [],
83
+ };
84
+ splitCommand.forEach((cmd, i) => {
85
+ let variadic = false;
86
+ cmd = cmd.replace(/\s/g, '');
87
+ if (/\.+[\]>]/.test(cmd) && i === splitCommand.length - 1)
88
+ variadic = true;
89
+ if (/^\[/.test(cmd)) {
90
+ parsedCommand.optional.push({
91
+ cmd: cmd.replace(bregex, '').split('|'),
92
+ variadic,
93
+ });
94
+ }
95
+ else {
96
+ parsedCommand.demanded.push({
97
+ cmd: cmd.replace(bregex, '').split('|'),
98
+ variadic,
99
+ });
100
+ }
101
+ });
102
+ return parsedCommand;
103
+ }
104
+
105
+ const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth'];
106
+ function argsert(arg1, arg2, arg3) {
107
+ function parseArgs() {
108
+ return typeof arg1 === 'object'
109
+ ? [{ demanded: [], optional: [] }, arg1, arg2]
110
+ : [
111
+ parseCommand(`cmd ${arg1}`),
112
+ arg2,
113
+ arg3,
114
+ ];
115
+ }
116
+ try {
117
+ let position = 0;
118
+ const [parsed, callerArguments, _length] = parseArgs();
119
+ const args = [].slice.call(callerArguments);
120
+ while (args.length && args[args.length - 1] === undefined)
121
+ args.pop();
122
+ const length = _length || args.length;
123
+ if (length < parsed.demanded.length) {
124
+ throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`);
125
+ }
126
+ const totalCommands = parsed.demanded.length + parsed.optional.length;
127
+ if (length > totalCommands) {
128
+ throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`);
129
+ }
130
+ parsed.demanded.forEach(demanded => {
131
+ const arg = args.shift();
132
+ const observedType = guessType(arg);
133
+ const matchingTypes = demanded.cmd.filter(type => type === observedType || type === '*');
134
+ if (matchingTypes.length === 0)
135
+ argumentTypeError(observedType, demanded.cmd, position);
136
+ position += 1;
137
+ });
138
+ parsed.optional.forEach(optional => {
139
+ if (args.length === 0)
140
+ return;
141
+ const arg = args.shift();
142
+ const observedType = guessType(arg);
143
+ const matchingTypes = optional.cmd.filter(type => type === observedType || type === '*');
144
+ if (matchingTypes.length === 0)
145
+ argumentTypeError(observedType, optional.cmd, position);
146
+ position += 1;
147
+ });
148
+ }
149
+ catch (err) {
150
+ console.warn(err.stack);
151
+ }
152
+ }
153
+ function guessType(arg) {
154
+ if (Array.isArray(arg)) {
155
+ return 'array';
156
+ }
157
+ else if (arg === null) {
158
+ return 'null';
159
+ }
160
+ return typeof arg;
161
+ }
162
+ function argumentTypeError(observedType, allowedTypes, position) {
163
+ throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes.join(' or ')} but received ${observedType}.`);
164
+ }
165
+
166
+ function isPromise(maybePromise) {
167
+ return (!!maybePromise &&
168
+ !!maybePromise.then &&
169
+ typeof maybePromise.then === 'function');
170
+ }
171
+
172
+ function assertNotStrictEqual(actual, expected, shim, message) {
173
+ shim.assert.notStrictEqual(actual, expected, message);
174
+ }
175
+ function assertSingleKey(actual, shim) {
176
+ shim.assert.strictEqual(typeof actual, 'string');
177
+ }
178
+ function objectKeys(object) {
179
+ return Object.keys(object);
180
+ }
181
+
182
+ function objFilter(original = {}, filter = () => true) {
183
+ const obj = {};
184
+ objectKeys(original).forEach(key => {
185
+ if (filter(key, original[key])) {
186
+ obj[key] = original[key];
187
+ }
188
+ });
189
+ return obj;
190
+ }
191
+
192
+ function globalMiddlewareFactory(globalMiddleware, context) {
193
+ return function (callback, applyBeforeValidation = false) {
194
+ argsert('<array|function> [boolean]', [callback, applyBeforeValidation], arguments.length);
195
+ if (Array.isArray(callback)) {
196
+ for (let i = 0; i < callback.length; i++) {
197
+ if (typeof callback[i] !== 'function') {
198
+ throw Error('middleware must be a function');
199
+ }
200
+ callback[i].applyBeforeValidation = applyBeforeValidation;
201
+ }
202
+ Array.prototype.push.apply(globalMiddleware, callback);
203
+ }
204
+ else if (typeof callback === 'function') {
205
+ callback.applyBeforeValidation = applyBeforeValidation;
206
+ globalMiddleware.push(callback);
207
+ }
208
+ return context;
209
+ };
210
+ }
211
+ function commandMiddlewareFactory(commandMiddleware) {
212
+ if (!commandMiddleware)
213
+ return [];
214
+ return commandMiddleware.map(middleware => {
215
+ middleware.applyBeforeValidation = false;
216
+ return middleware;
217
+ });
218
+ }
219
+ function applyMiddleware(argv, yargs, middlewares, beforeValidation) {
220
+ const beforeValidationError = new Error('middleware cannot return a promise when applyBeforeValidation is true');
221
+ return middlewares.reduce((acc, middleware) => {
222
+ if (middleware.applyBeforeValidation !== beforeValidation) {
223
+ return acc;
224
+ }
225
+ if (isPromise(acc)) {
226
+ return acc
227
+ .then(initialObj => Promise.all([
228
+ initialObj,
229
+ middleware(initialObj, yargs),
230
+ ]))
231
+ .then(([initialObj, middlewareObj]) => Object.assign(initialObj, middlewareObj));
232
+ }
233
+ else {
234
+ const result = middleware(acc, yargs);
235
+ if (beforeValidation && isPromise(result))
236
+ throw beforeValidationError;
237
+ return isPromise(result)
238
+ ? result.then(middlewareObj => Object.assign(acc, middlewareObj))
239
+ : Object.assign(acc, result);
240
+ }
241
+ }, argv);
242
+ }
243
+
244
+ function getProcessArgvBinIndex() {
245
+ if (isBundledElectronApp())
246
+ return 0;
247
+ return 1;
248
+ }
249
+ function isBundledElectronApp() {
250
+ return isElectronApp() && !process.defaultApp;
251
+ }
252
+ function isElectronApp() {
253
+ return !!process.versions.electron;
254
+ }
255
+ function hideBin(argv) {
256
+ return argv.slice(getProcessArgvBinIndex() + 1);
257
+ }
258
+ function getProcessArgvBin() {
259
+ return process.argv[getProcessArgvBinIndex()];
260
+ }
261
+
262
+ var processArgv = /*#__PURE__*/Object.freeze({
263
+ __proto__: null,
264
+ hideBin: hideBin,
265
+ getProcessArgvBin: getProcessArgvBin
266
+ });
267
+
268
+ function whichModule(exported) {
269
+ if (typeof require === 'undefined')
270
+ return null;
271
+ for (let i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
272
+ mod = require.cache[files[i]];
273
+ if (mod.exports === exported)
274
+ return mod;
275
+ }
276
+ return null;
277
+ }
278
+
279
+ const DEFAULT_MARKER = /(^\*)|(^\$0)/;
280
+ function command(yargs, usage, validation, globalMiddleware = [], shim) {
281
+ const self = {};
282
+ let handlers = {};
283
+ let aliasMap = {};
284
+ let defaultCommand;
285
+ self.addHandler = function addHandler(cmd, description, builder, handler, commandMiddleware, deprecated) {
286
+ let aliases = [];
287
+ const middlewares = commandMiddlewareFactory(commandMiddleware);
288
+ handler = handler || (() => { });
289
+ if (Array.isArray(cmd)) {
290
+ if (isCommandAndAliases(cmd)) {
291
+ [cmd, ...aliases] = cmd;
292
+ }
293
+ else {
294
+ for (const command of cmd) {
295
+ self.addHandler(command);
296
+ }
297
+ }
298
+ }
299
+ else if (isCommandHandlerDefinition(cmd)) {
300
+ let command = Array.isArray(cmd.command) || typeof cmd.command === 'string'
301
+ ? cmd.command
302
+ : moduleName(cmd);
303
+ if (cmd.aliases)
304
+ command = [].concat(command).concat(cmd.aliases);
305
+ self.addHandler(command, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
306
+ return;
307
+ }
308
+ else if (isCommandBuilderDefinition(builder)) {
309
+ self.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
310
+ return;
311
+ }
312
+ if (typeof cmd === 'string') {
313
+ const parsedCommand = parseCommand(cmd);
314
+ aliases = aliases.map(alias => parseCommand(alias).cmd);
315
+ let isDefault = false;
316
+ const parsedAliases = [parsedCommand.cmd].concat(aliases).filter(c => {
317
+ if (DEFAULT_MARKER.test(c)) {
318
+ isDefault = true;
319
+ return false;
320
+ }
321
+ return true;
322
+ });
323
+ if (parsedAliases.length === 0 && isDefault)
324
+ parsedAliases.push('$0');
325
+ if (isDefault) {
326
+ parsedCommand.cmd = parsedAliases[0];
327
+ aliases = parsedAliases.slice(1);
328
+ cmd = cmd.replace(DEFAULT_MARKER, parsedCommand.cmd);
329
+ }
330
+ aliases.forEach(alias => {
331
+ aliasMap[alias] = parsedCommand.cmd;
332
+ });
333
+ if (description !== false) {
334
+ usage.command(cmd, description, isDefault, aliases, deprecated);
335
+ }
336
+ handlers[parsedCommand.cmd] = {
337
+ original: cmd,
338
+ description,
339
+ handler,
340
+ builder: builder || {},
341
+ middlewares,
342
+ deprecated,
343
+ demanded: parsedCommand.demanded,
344
+ optional: parsedCommand.optional,
345
+ };
346
+ if (isDefault)
347
+ defaultCommand = handlers[parsedCommand.cmd];
348
+ }
349
+ };
350
+ self.addDirectory = function addDirectory(dir, context, req, callerFile, opts) {
351
+ opts = opts || {};
352
+ if (typeof opts.recurse !== 'boolean')
353
+ opts.recurse = false;
354
+ if (!Array.isArray(opts.extensions))
355
+ opts.extensions = ['js'];
356
+ const parentVisit = typeof opts.visit === 'function' ? opts.visit : (o) => o;
357
+ opts.visit = function visit(obj, joined, filename) {
358
+ const visited = parentVisit(obj, joined, filename);
359
+ if (visited) {
360
+ if (~context.files.indexOf(joined))
361
+ return visited;
362
+ context.files.push(joined);
363
+ self.addHandler(visited);
364
+ }
365
+ return visited;
366
+ };
367
+ shim.requireDirectory({ require: req, filename: callerFile }, dir, opts);
368
+ };
369
+ function moduleName(obj) {
370
+ const mod = whichModule(obj);
371
+ if (!mod)
372
+ throw new Error(`No command name given for module: ${shim.inspect(obj)}`);
373
+ return commandFromFilename(mod.filename);
374
+ }
375
+ function commandFromFilename(filename) {
376
+ return shim.path.basename(filename, shim.path.extname(filename));
377
+ }
378
+ function extractDesc({ describe, description, desc, }) {
379
+ for (const test of [describe, description, desc]) {
380
+ if (typeof test === 'string' || test === false)
381
+ return test;
382
+ assertNotStrictEqual(test, true, shim);
383
+ }
384
+ return false;
385
+ }
386
+ self.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap));
387
+ self.getCommandHandlers = () => handlers;
388
+ self.hasDefaultCommand = () => !!defaultCommand;
389
+ self.runCommand = function runCommand(command, yargs, parsed, commandIndex) {
390
+ let aliases = parsed.aliases;
391
+ const commandHandler = handlers[command] || handlers[aliasMap[command]] || defaultCommand;
392
+ const currentContext = yargs.getContext();
393
+ let numFiles = currentContext.files.length;
394
+ const parentCommands = currentContext.commands.slice();
395
+ let innerArgv = parsed.argv;
396
+ let positionalMap = {};
397
+ if (command) {
398
+ currentContext.commands.push(command);
399
+ currentContext.fullCommands.push(commandHandler.original);
400
+ }
401
+ const builder = commandHandler.builder;
402
+ if (isCommandBuilderCallback(builder)) {
403
+ const builderOutput = builder(yargs.reset(parsed.aliases));
404
+ const innerYargs = isYargsInstance(builderOutput) ? builderOutput : yargs;
405
+ if (shouldUpdateUsage(innerYargs)) {
406
+ innerYargs
407
+ .getUsageInstance()
408
+ .usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
409
+ }
410
+ innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
411
+ aliases = innerYargs.parsed.aliases;
412
+ }
413
+ else if (isCommandBuilderOptionDefinitions(builder)) {
414
+ const innerYargs = yargs.reset(parsed.aliases);
415
+ if (shouldUpdateUsage(innerYargs)) {
416
+ innerYargs
417
+ .getUsageInstance()
418
+ .usage(usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.description);
419
+ }
420
+ Object.keys(commandHandler.builder).forEach(key => {
421
+ innerYargs.option(key, builder[key]);
422
+ });
423
+ innerArgv = innerYargs._parseArgs(null, null, true, commandIndex);
424
+ aliases = innerYargs.parsed.aliases;
425
+ }
426
+ if (!yargs._hasOutput()) {
427
+ positionalMap = populatePositionals(commandHandler, innerArgv, currentContext);
428
+ }
429
+ const middlewares = globalMiddleware
430
+ .slice(0)
431
+ .concat(commandHandler.middlewares);
432
+ applyMiddleware(innerArgv, yargs, middlewares, true);
433
+ if (!yargs._hasOutput()) {
434
+ yargs._runValidation(innerArgv, aliases, positionalMap, yargs.parsed.error, !command);
435
+ }
436
+ if (commandHandler.handler && !yargs._hasOutput()) {
437
+ yargs._setHasOutput();
438
+ const populateDoubleDash = !!yargs.getOptions().configuration['populate--'];
439
+ yargs._postProcess(innerArgv, populateDoubleDash);
440
+ innerArgv = applyMiddleware(innerArgv, yargs, middlewares, false);
441
+ let handlerResult;
442
+ if (isPromise(innerArgv)) {
443
+ handlerResult = innerArgv.then(argv => commandHandler.handler(argv));
444
+ }
445
+ else {
446
+ handlerResult = commandHandler.handler(innerArgv);
447
+ }
448
+ const handlerFinishCommand = yargs.getHandlerFinishCommand();
449
+ if (isPromise(handlerResult)) {
450
+ yargs.getUsageInstance().cacheHelpMessage();
451
+ handlerResult
452
+ .then(value => {
453
+ if (handlerFinishCommand) {
454
+ handlerFinishCommand(value);
455
+ }
456
+ })
457
+ .catch(error => {
458
+ try {
459
+ yargs.getUsageInstance().fail(null, error);
460
+ }
461
+ catch (err) {
462
+ }
463
+ })
464
+ .then(() => {
465
+ yargs.getUsageInstance().clearCachedHelpMessage();
466
+ });
467
+ }
468
+ else {
469
+ if (handlerFinishCommand) {
470
+ handlerFinishCommand(handlerResult);
471
+ }
472
+ }
473
+ }
474
+ if (command) {
475
+ currentContext.commands.pop();
476
+ currentContext.fullCommands.pop();
477
+ }
478
+ numFiles = currentContext.files.length - numFiles;
479
+ if (numFiles > 0)
480
+ currentContext.files.splice(numFiles * -1, numFiles);
481
+ return innerArgv;
482
+ };
483
+ function shouldUpdateUsage(yargs) {
484
+ return (!yargs.getUsageInstance().getUsageDisabled() &&
485
+ yargs.getUsageInstance().getUsage().length === 0);
486
+ }
487
+ function usageFromParentCommandsCommandHandler(parentCommands, commandHandler) {
488
+ const c = DEFAULT_MARKER.test(commandHandler.original)
489
+ ? commandHandler.original.replace(DEFAULT_MARKER, '').trim()
490
+ : commandHandler.original;
491
+ const pc = parentCommands.filter(c => {
492
+ return !DEFAULT_MARKER.test(c);
493
+ });
494
+ pc.push(c);
495
+ return `$0 ${pc.join(' ')}`;
496
+ }
497
+ self.runDefaultBuilderOn = function (yargs) {
498
+ assertNotStrictEqual(defaultCommand, undefined, shim);
499
+ if (shouldUpdateUsage(yargs)) {
500
+ const commandString = DEFAULT_MARKER.test(defaultCommand.original)
501
+ ? defaultCommand.original
502
+ : defaultCommand.original.replace(/^[^[\]<>]*/, '$0 ');
503
+ yargs.getUsageInstance().usage(commandString, defaultCommand.description);
504
+ }
505
+ const builder = defaultCommand.builder;
506
+ if (isCommandBuilderCallback(builder)) {
507
+ builder(yargs);
508
+ }
509
+ else if (!isCommandBuilderDefinition(builder)) {
510
+ Object.keys(builder).forEach(key => {
511
+ yargs.option(key, builder[key]);
512
+ });
513
+ }
514
+ };
515
+ function populatePositionals(commandHandler, argv, context) {
516
+ argv._ = argv._.slice(context.commands.length);
517
+ const demanded = commandHandler.demanded.slice(0);
518
+ const optional = commandHandler.optional.slice(0);
519
+ const positionalMap = {};
520
+ validation.positionalCount(demanded.length, argv._.length);
521
+ while (demanded.length) {
522
+ const demand = demanded.shift();
523
+ populatePositional(demand, argv, positionalMap);
524
+ }
525
+ while (optional.length) {
526
+ const maybe = optional.shift();
527
+ populatePositional(maybe, argv, positionalMap);
528
+ }
529
+ argv._ = context.commands.concat(argv._.map(a => '' + a));
530
+ postProcessPositionals(argv, positionalMap, self.cmdToParseOptions(commandHandler.original));
531
+ return positionalMap;
532
+ }
533
+ function populatePositional(positional, argv, positionalMap) {
534
+ const cmd = positional.cmd[0];
535
+ if (positional.variadic) {
536
+ positionalMap[cmd] = argv._.splice(0).map(String);
537
+ }
538
+ else {
539
+ if (argv._.length)
540
+ positionalMap[cmd] = [String(argv._.shift())];
541
+ }
542
+ }
543
+ function postProcessPositionals(argv, positionalMap, parseOptions) {
544
+ const options = Object.assign({}, yargs.getOptions());
545
+ options.default = Object.assign(parseOptions.default, options.default);
546
+ for (const key of Object.keys(parseOptions.alias)) {
547
+ options.alias[key] = (options.alias[key] || []).concat(parseOptions.alias[key]);
548
+ }
549
+ options.array = options.array.concat(parseOptions.array);
550
+ options.config = {};
551
+ const unparsed = [];
552
+ Object.keys(positionalMap).forEach(key => {
553
+ positionalMap[key].map(value => {
554
+ if (options.configuration['unknown-options-as-args'])
555
+ options.key[key] = true;
556
+ unparsed.push(`--${key}`);
557
+ unparsed.push(value);
558
+ });
559
+ });
560
+ if (!unparsed.length)
561
+ return;
562
+ const config = Object.assign({}, options.configuration, {
563
+ 'populate--': true,
564
+ });
565
+ const parsed = shim.Parser.detailed(unparsed, Object.assign({}, options, {
566
+ configuration: config,
567
+ }));
568
+ if (parsed.error) {
569
+ yargs.getUsageInstance().fail(parsed.error.message, parsed.error);
570
+ }
571
+ else {
572
+ const positionalKeys = Object.keys(positionalMap);
573
+ Object.keys(positionalMap).forEach(key => {
574
+ positionalKeys.push(...parsed.aliases[key]);
575
+ });
576
+ Object.keys(parsed.argv).forEach(key => {
577
+ if (positionalKeys.indexOf(key) !== -1) {
578
+ if (!positionalMap[key])
579
+ positionalMap[key] = parsed.argv[key];
580
+ argv[key] = parsed.argv[key];
581
+ }
582
+ });
583
+ }
584
+ }
585
+ self.cmdToParseOptions = function (cmdString) {
586
+ const parseOptions = {
587
+ array: [],
588
+ default: {},
589
+ alias: {},
590
+ demand: {},
591
+ };
592
+ const parsed = parseCommand(cmdString);
593
+ parsed.demanded.forEach(d => {
594
+ const [cmd, ...aliases] = d.cmd;
595
+ if (d.variadic) {
596
+ parseOptions.array.push(cmd);
597
+ parseOptions.default[cmd] = [];
598
+ }
599
+ parseOptions.alias[cmd] = aliases;
600
+ parseOptions.demand[cmd] = true;
601
+ });
602
+ parsed.optional.forEach(o => {
603
+ const [cmd, ...aliases] = o.cmd;
604
+ if (o.variadic) {
605
+ parseOptions.array.push(cmd);
606
+ parseOptions.default[cmd] = [];
607
+ }
608
+ parseOptions.alias[cmd] = aliases;
609
+ });
610
+ return parseOptions;
611
+ };
612
+ self.reset = () => {
613
+ handlers = {};
614
+ aliasMap = {};
615
+ defaultCommand = undefined;
616
+ return self;
617
+ };
618
+ const frozens = [];
619
+ self.freeze = () => {
620
+ frozens.push({
621
+ handlers,
622
+ aliasMap,
623
+ defaultCommand,
624
+ });
625
+ };
626
+ self.unfreeze = () => {
627
+ const frozen = frozens.pop();
628
+ assertNotStrictEqual(frozen, undefined, shim);
629
+ ({ handlers, aliasMap, defaultCommand } = frozen);
630
+ };
631
+ return self;
632
+ }
633
+ function isCommandBuilderDefinition(builder) {
634
+ return (typeof builder === 'object' &&
635
+ !!builder.builder &&
636
+ typeof builder.handler === 'function');
637
+ }
638
+ function isCommandAndAliases(cmd) {
639
+ if (cmd.every(c => typeof c === 'string')) {
640
+ return true;
641
+ }
642
+ else {
643
+ return false;
644
+ }
645
+ }
646
+ function isCommandBuilderCallback(builder) {
647
+ return typeof builder === 'function';
648
+ }
649
+ function isCommandBuilderOptionDefinitions(builder) {
650
+ return typeof builder === 'object';
651
+ }
652
+ function isCommandHandlerDefinition(cmd) {
653
+ return typeof cmd === 'object' && !Array.isArray(cmd);
654
+ }
655
+
656
+ function setBlocking(blocking) {
657
+ if (typeof process === 'undefined')
658
+ return;
659
+ [process.stdout, process.stderr].forEach(_stream => {
660
+ const stream = _stream;
661
+ if (stream._handle &&
662
+ stream.isTTY &&
663
+ typeof stream._handle.setBlocking === 'function') {
664
+ stream._handle.setBlocking(blocking);
665
+ }
666
+ });
667
+ }
668
+
669
+ function usage(yargs, y18n, shim) {
670
+ const __ = y18n.__;
671
+ const self = {};
672
+ const fails = [];
673
+ self.failFn = function failFn(f) {
674
+ fails.push(f);
675
+ };
676
+ let failMessage = null;
677
+ let showHelpOnFail = true;
678
+ self.showHelpOnFail = function showHelpOnFailFn(arg1 = true, arg2) {
679
+ function parseFunctionArgs() {
680
+ return typeof arg1 === 'string' ? [true, arg1] : [arg1, arg2];
681
+ }
682
+ const [enabled, message] = parseFunctionArgs();
683
+ failMessage = message;
684
+ showHelpOnFail = enabled;
685
+ return self;
686
+ };
687
+ let failureOutput = false;
688
+ self.fail = function fail(msg, err) {
689
+ const logger = yargs._getLoggerInstance();
690
+ if (fails.length) {
691
+ for (let i = fails.length - 1; i >= 0; --i) {
692
+ fails[i](msg, err, self);
693
+ }
694
+ }
695
+ else {
696
+ if (yargs.getExitProcess())
697
+ setBlocking(true);
698
+ if (!failureOutput) {
699
+ failureOutput = true;
700
+ if (showHelpOnFail) {
701
+ yargs.showHelp('error');
702
+ logger.error();
703
+ }
704
+ if (msg || err)
705
+ logger.error(msg || err);
706
+ if (failMessage) {
707
+ if (msg || err)
708
+ logger.error('');
709
+ logger.error(failMessage);
710
+ }
711
+ }
712
+ err = err || new YError(msg);
713
+ if (yargs.getExitProcess()) {
714
+ return yargs.exit(1);
715
+ }
716
+ else if (yargs._hasParseCallback()) {
717
+ return yargs.exit(1, err);
718
+ }
719
+ else {
720
+ throw err;
721
+ }
722
+ }
723
+ };
724
+ let usages = [];
725
+ let usageDisabled = false;
726
+ self.usage = (msg, description) => {
727
+ if (msg === null) {
728
+ usageDisabled = true;
729
+ usages = [];
730
+ return self;
731
+ }
732
+ usageDisabled = false;
733
+ usages.push([msg, description || '']);
734
+ return self;
735
+ };
736
+ self.getUsage = () => {
737
+ return usages;
738
+ };
739
+ self.getUsageDisabled = () => {
740
+ return usageDisabled;
741
+ };
742
+ self.getPositionalGroupName = () => {
743
+ return __('Positionals:');
744
+ };
745
+ let examples = [];
746
+ self.example = (cmd, description) => {
747
+ examples.push([cmd, description || '']);
748
+ };
749
+ let commands = [];
750
+ self.command = function command(cmd, description, isDefault, aliases, deprecated = false) {
751
+ if (isDefault) {
752
+ commands = commands.map(cmdArray => {
753
+ cmdArray[2] = false;
754
+ return cmdArray;
755
+ });
756
+ }
757
+ commands.push([cmd, description || '', isDefault, aliases, deprecated]);
758
+ };
759
+ self.getCommands = () => commands;
760
+ let descriptions = {};
761
+ self.describe = function describe(keyOrKeys, desc) {
762
+ if (Array.isArray(keyOrKeys)) {
763
+ keyOrKeys.forEach(k => {
764
+ self.describe(k, desc);
765
+ });
766
+ }
767
+ else if (typeof keyOrKeys === 'object') {
768
+ Object.keys(keyOrKeys).forEach(k => {
769
+ self.describe(k, keyOrKeys[k]);
770
+ });
771
+ }
772
+ else {
773
+ descriptions[keyOrKeys] = desc;
774
+ }
775
+ };
776
+ self.getDescriptions = () => descriptions;
777
+ let epilogs = [];
778
+ self.epilog = msg => {
779
+ epilogs.push(msg);
780
+ };
781
+ let wrapSet = false;
782
+ let wrap;
783
+ self.wrap = cols => {
784
+ wrapSet = true;
785
+ wrap = cols;
786
+ };
787
+ function getWrap() {
788
+ if (!wrapSet) {
789
+ wrap = windowWidth();
790
+ wrapSet = true;
791
+ }
792
+ return wrap;
793
+ }
794
+ const deferY18nLookupPrefix = '__yargsString__:';
795
+ self.deferY18nLookup = str => deferY18nLookupPrefix + str;
796
+ self.help = function help() {
797
+ if (cachedHelpMessage)
798
+ return cachedHelpMessage;
799
+ normalizeAliases();
800
+ const base$0 = yargs.customScriptName
801
+ ? yargs.$0
802
+ : shim.path.basename(yargs.$0);
803
+ const demandedOptions = yargs.getDemandedOptions();
804
+ const demandedCommands = yargs.getDemandedCommands();
805
+ const deprecatedOptions = yargs.getDeprecatedOptions();
806
+ const groups = yargs.getGroups();
807
+ const options = yargs.getOptions();
808
+ let keys = [];
809
+ keys = keys.concat(Object.keys(descriptions));
810
+ keys = keys.concat(Object.keys(demandedOptions));
811
+ keys = keys.concat(Object.keys(demandedCommands));
812
+ keys = keys.concat(Object.keys(options.default));
813
+ keys = keys.filter(filterHiddenOptions);
814
+ keys = Object.keys(keys.reduce((acc, key) => {
815
+ if (key !== '_')
816
+ acc[key] = true;
817
+ return acc;
818
+ }, {}));
819
+ const theWrap = getWrap();
820
+ const ui = shim.cliui({
821
+ width: theWrap,
822
+ wrap: !!theWrap,
823
+ });
824
+ if (!usageDisabled) {
825
+ if (usages.length) {
826
+ usages.forEach(usage => {
827
+ ui.div(`${usage[0].replace(/\$0/g, base$0)}`);
828
+ if (usage[1]) {
829
+ ui.div({ text: `${usage[1]}`, padding: [1, 0, 0, 0] });
830
+ }
831
+ });
832
+ ui.div();
833
+ }
834
+ else if (commands.length) {
835
+ let u = null;
836
+ if (demandedCommands._) {
837
+ u = `${base$0} <${__('command')}>\n`;
838
+ }
839
+ else {
840
+ u = `${base$0} [${__('command')}]\n`;
841
+ }
842
+ ui.div(`${u}`);
843
+ }
844
+ }
845
+ if (commands.length) {
846
+ ui.div(__('Commands:'));
847
+ const context = yargs.getContext();
848
+ const parentCommands = context.commands.length
849
+ ? `${context.commands.join(' ')} `
850
+ : '';
851
+ if (yargs.getParserConfiguration()['sort-commands'] === true) {
852
+ commands = commands.sort((a, b) => a[0].localeCompare(b[0]));
853
+ }
854
+ commands.forEach(command => {
855
+ const commandString = `${base$0} ${parentCommands}${command[0].replace(/^\$0 ?/, '')}`;
856
+ ui.span({
857
+ text: commandString,
858
+ padding: [0, 2, 0, 2],
859
+ width: maxWidth(commands, theWrap, `${base$0}${parentCommands}`) + 4,
860
+ }, { text: command[1] });
861
+ const hints = [];
862
+ if (command[2])
863
+ hints.push(`[${__('default')}]`);
864
+ if (command[3] && command[3].length) {
865
+ hints.push(`[${__('aliases:')} ${command[3].join(', ')}]`);
866
+ }
867
+ if (command[4]) {
868
+ if (typeof command[4] === 'string') {
869
+ hints.push(`[${__('deprecated: %s', command[4])}]`);
870
+ }
871
+ else {
872
+ hints.push(`[${__('deprecated')}]`);
873
+ }
874
+ }
875
+ if (hints.length) {
876
+ ui.div({
877
+ text: hints.join(' '),
878
+ padding: [0, 0, 0, 2],
879
+ align: 'right',
880
+ });
881
+ }
882
+ else {
883
+ ui.div();
884
+ }
885
+ });
886
+ ui.div();
887
+ }
888
+ const aliasKeys = (Object.keys(options.alias) || []).concat(Object.keys(yargs.parsed.newAliases) || []);
889
+ keys = keys.filter(key => !yargs.parsed.newAliases[key] &&
890
+ aliasKeys.every(alias => (options.alias[alias] || []).indexOf(key) === -1));
891
+ const defaultGroup = __('Options:');
892
+ if (!groups[defaultGroup])
893
+ groups[defaultGroup] = [];
894
+ addUngroupedKeys(keys, options.alias, groups, defaultGroup);
895
+ const isLongSwitch = (sw) => /^--/.test(getText(sw));
896
+ const displayedGroups = Object.keys(groups)
897
+ .filter(groupName => groups[groupName].length > 0)
898
+ .map(groupName => {
899
+ const normalizedKeys = groups[groupName]
900
+ .filter(filterHiddenOptions)
901
+ .map(key => {
902
+ if (~aliasKeys.indexOf(key))
903
+ return key;
904
+ for (let i = 0, aliasKey; (aliasKey = aliasKeys[i]) !== undefined; i++) {
905
+ if (~(options.alias[aliasKey] || []).indexOf(key))
906
+ return aliasKey;
907
+ }
908
+ return key;
909
+ });
910
+ return { groupName, normalizedKeys };
911
+ })
912
+ .filter(({ normalizedKeys }) => normalizedKeys.length > 0)
913
+ .map(({ groupName, normalizedKeys }) => {
914
+ const switches = normalizedKeys.reduce((acc, key) => {
915
+ acc[key] = [key]
916
+ .concat(options.alias[key] || [])
917
+ .map(sw => {
918
+ if (groupName === self.getPositionalGroupName())
919
+ return sw;
920
+ else {
921
+ return ((/^[0-9]$/.test(sw)
922
+ ? ~options.boolean.indexOf(key)
923
+ ? '-'
924
+ : '--'
925
+ : sw.length > 1
926
+ ? '--'
927
+ : '-') + sw);
928
+ }
929
+ })
930
+ .sort((sw1, sw2) => isLongSwitch(sw1) === isLongSwitch(sw2)
931
+ ? 0
932
+ : isLongSwitch(sw1)
933
+ ? 1
934
+ : -1)
935
+ .join(', ');
936
+ return acc;
937
+ }, {});
938
+ return { groupName, normalizedKeys, switches };
939
+ });
940
+ const shortSwitchesUsed = displayedGroups
941
+ .filter(({ groupName }) => groupName !== self.getPositionalGroupName())
942
+ .some(({ normalizedKeys, switches }) => !normalizedKeys.every(key => isLongSwitch(switches[key])));
943
+ if (shortSwitchesUsed) {
944
+ displayedGroups
945
+ .filter(({ groupName }) => groupName !== self.getPositionalGroupName())
946
+ .forEach(({ normalizedKeys, switches }) => {
947
+ normalizedKeys.forEach(key => {
948
+ if (isLongSwitch(switches[key])) {
949
+ switches[key] = addIndentation(switches[key], '-x, '.length);
950
+ }
951
+ });
952
+ });
953
+ }
954
+ displayedGroups.forEach(({ groupName, normalizedKeys, switches }) => {
955
+ ui.div(groupName);
956
+ normalizedKeys.forEach(key => {
957
+ const kswitch = switches[key];
958
+ let desc = descriptions[key] || '';
959
+ let type = null;
960
+ if (~desc.lastIndexOf(deferY18nLookupPrefix))
961
+ desc = __(desc.substring(deferY18nLookupPrefix.length));
962
+ if (~options.boolean.indexOf(key))
963
+ type = `[${__('boolean')}]`;
964
+ if (~options.count.indexOf(key))
965
+ type = `[${__('count')}]`;
966
+ if (~options.string.indexOf(key))
967
+ type = `[${__('string')}]`;
968
+ if (~options.normalize.indexOf(key))
969
+ type = `[${__('string')}]`;
970
+ if (~options.array.indexOf(key))
971
+ type = `[${__('array')}]`;
972
+ if (~options.number.indexOf(key))
973
+ type = `[${__('number')}]`;
974
+ const deprecatedExtra = (deprecated) => typeof deprecated === 'string'
975
+ ? `[${__('deprecated: %s', deprecated)}]`
976
+ : `[${__('deprecated')}]`;
977
+ const extra = [
978
+ key in deprecatedOptions
979
+ ? deprecatedExtra(deprecatedOptions[key])
980
+ : null,
981
+ type,
982
+ key in demandedOptions ? `[${__('required')}]` : null,
983
+ options.choices && options.choices[key]
984
+ ? `[${__('choices:')} ${self.stringifiedValues(options.choices[key])}]`
985
+ : null,
986
+ defaultString(options.default[key], options.defaultDescription[key]),
987
+ ]
988
+ .filter(Boolean)
989
+ .join(' ');
990
+ ui.span({
991
+ text: getText(kswitch),
992
+ padding: [0, 2, 0, 2 + getIndentation(kswitch)],
993
+ width: maxWidth(switches, theWrap) + 4,
994
+ }, desc);
995
+ if (extra)
996
+ ui.div({ text: extra, padding: [0, 0, 0, 2], align: 'right' });
997
+ else
998
+ ui.div();
999
+ });
1000
+ ui.div();
1001
+ });
1002
+ if (examples.length) {
1003
+ ui.div(__('Examples:'));
1004
+ examples.forEach(example => {
1005
+ example[0] = example[0].replace(/\$0/g, base$0);
1006
+ });
1007
+ examples.forEach(example => {
1008
+ if (example[1] === '') {
1009
+ ui.div({
1010
+ text: example[0],
1011
+ padding: [0, 2, 0, 2],
1012
+ });
1013
+ }
1014
+ else {
1015
+ ui.div({
1016
+ text: example[0],
1017
+ padding: [0, 2, 0, 2],
1018
+ width: maxWidth(examples, theWrap) + 4,
1019
+ }, {
1020
+ text: example[1],
1021
+ });
1022
+ }
1023
+ });
1024
+ ui.div();
1025
+ }
1026
+ if (epilogs.length > 0) {
1027
+ const e = epilogs
1028
+ .map(epilog => epilog.replace(/\$0/g, base$0))
1029
+ .join('\n');
1030
+ ui.div(`${e}\n`);
1031
+ }
1032
+ return ui.toString().replace(/\s*$/, '');
1033
+ };
1034
+ function maxWidth(table, theWrap, modifier) {
1035
+ let width = 0;
1036
+ if (!Array.isArray(table)) {
1037
+ table = Object.values(table).map(v => [v]);
1038
+ }
1039
+ table.forEach(v => {
1040
+ width = Math.max(shim.stringWidth(modifier ? `${modifier} ${getText(v[0])}` : getText(v[0])) + getIndentation(v[0]), width);
1041
+ });
1042
+ if (theWrap)
1043
+ width = Math.min(width, parseInt((theWrap * 0.5).toString(), 10));
1044
+ return width;
1045
+ }
1046
+ function normalizeAliases() {
1047
+ const demandedOptions = yargs.getDemandedOptions();
1048
+ const options = yargs.getOptions();
1049
+ (Object.keys(options.alias) || []).forEach(key => {
1050
+ options.alias[key].forEach(alias => {
1051
+ if (descriptions[alias])
1052
+ self.describe(key, descriptions[alias]);
1053
+ if (alias in demandedOptions)
1054
+ yargs.demandOption(key, demandedOptions[alias]);
1055
+ if (~options.boolean.indexOf(alias))
1056
+ yargs.boolean(key);
1057
+ if (~options.count.indexOf(alias))
1058
+ yargs.count(key);
1059
+ if (~options.string.indexOf(alias))
1060
+ yargs.string(key);
1061
+ if (~options.normalize.indexOf(alias))
1062
+ yargs.normalize(key);
1063
+ if (~options.array.indexOf(alias))
1064
+ yargs.array(key);
1065
+ if (~options.number.indexOf(alias))
1066
+ yargs.number(key);
1067
+ });
1068
+ });
1069
+ }
1070
+ let cachedHelpMessage;
1071
+ self.cacheHelpMessage = function () {
1072
+ cachedHelpMessage = this.help();
1073
+ };
1074
+ self.clearCachedHelpMessage = function () {
1075
+ cachedHelpMessage = undefined;
1076
+ };
1077
+ function addUngroupedKeys(keys, aliases, groups, defaultGroup) {
1078
+ let groupedKeys = [];
1079
+ let toCheck = null;
1080
+ Object.keys(groups).forEach(group => {
1081
+ groupedKeys = groupedKeys.concat(groups[group]);
1082
+ });
1083
+ keys.forEach(key => {
1084
+ toCheck = [key].concat(aliases[key]);
1085
+ if (!toCheck.some(k => groupedKeys.indexOf(k) !== -1)) {
1086
+ groups[defaultGroup].push(key);
1087
+ }
1088
+ });
1089
+ return groupedKeys;
1090
+ }
1091
+ function filterHiddenOptions(key) {
1092
+ return (yargs.getOptions().hiddenOptions.indexOf(key) < 0 ||
1093
+ yargs.parsed.argv[yargs.getOptions().showHiddenOpt]);
1094
+ }
1095
+ self.showHelp = (level) => {
1096
+ const logger = yargs._getLoggerInstance();
1097
+ if (!level)
1098
+ level = 'error';
1099
+ const emit = typeof level === 'function' ? level : logger[level];
1100
+ emit(self.help());
1101
+ };
1102
+ self.functionDescription = fn => {
1103
+ const description = fn.name
1104
+ ? shim.Parser.decamelize(fn.name, '-')
1105
+ : __('generated-value');
1106
+ return ['(', description, ')'].join('');
1107
+ };
1108
+ self.stringifiedValues = function stringifiedValues(values, separator) {
1109
+ let string = '';
1110
+ const sep = separator || ', ';
1111
+ const array = [].concat(values);
1112
+ if (!values || !array.length)
1113
+ return string;
1114
+ array.forEach(value => {
1115
+ if (string.length)
1116
+ string += sep;
1117
+ string += JSON.stringify(value);
1118
+ });
1119
+ return string;
1120
+ };
1121
+ function defaultString(value, defaultDescription) {
1122
+ let string = `[${__('default:')} `;
1123
+ if (value === undefined && !defaultDescription)
1124
+ return null;
1125
+ if (defaultDescription) {
1126
+ string += defaultDescription;
1127
+ }
1128
+ else {
1129
+ switch (typeof value) {
1130
+ case 'string':
1131
+ string += `"${value}"`;
1132
+ break;
1133
+ case 'object':
1134
+ string += JSON.stringify(value);
1135
+ break;
1136
+ default:
1137
+ string += value;
1138
+ }
1139
+ }
1140
+ return `${string}]`;
1141
+ }
1142
+ function windowWidth() {
1143
+ const maxWidth = 80;
1144
+ if (shim.process.stdColumns) {
1145
+ return Math.min(maxWidth, shim.process.stdColumns);
1146
+ }
1147
+ else {
1148
+ return maxWidth;
1149
+ }
1150
+ }
1151
+ let version = null;
1152
+ self.version = ver => {
1153
+ version = ver;
1154
+ };
1155
+ self.showVersion = () => {
1156
+ const logger = yargs._getLoggerInstance();
1157
+ logger.log(version);
1158
+ };
1159
+ self.reset = function reset(localLookup) {
1160
+ failMessage = null;
1161
+ failureOutput = false;
1162
+ usages = [];
1163
+ usageDisabled = false;
1164
+ epilogs = [];
1165
+ examples = [];
1166
+ commands = [];
1167
+ descriptions = objFilter(descriptions, k => !localLookup[k]);
1168
+ return self;
1169
+ };
1170
+ const frozens = [];
1171
+ self.freeze = function freeze() {
1172
+ frozens.push({
1173
+ failMessage,
1174
+ failureOutput,
1175
+ usages,
1176
+ usageDisabled,
1177
+ epilogs,
1178
+ examples,
1179
+ commands,
1180
+ descriptions,
1181
+ });
1182
+ };
1183
+ self.unfreeze = function unfreeze() {
1184
+ const frozen = frozens.pop();
1185
+ assertNotStrictEqual(frozen, undefined, shim);
1186
+ ({
1187
+ failMessage,
1188
+ failureOutput,
1189
+ usages,
1190
+ usageDisabled,
1191
+ epilogs,
1192
+ examples,
1193
+ commands,
1194
+ descriptions,
1195
+ } = frozen);
1196
+ };
1197
+ return self;
1198
+ }
1199
+ function isIndentedText(text) {
1200
+ return typeof text === 'object';
1201
+ }
1202
+ function addIndentation(text, indent) {
1203
+ return isIndentedText(text)
1204
+ ? { text: text.text, indentation: text.indentation + indent }
1205
+ : { text, indentation: indent };
1206
+ }
1207
+ function getIndentation(text) {
1208
+ return isIndentedText(text) ? text.indentation : 0;
1209
+ }
1210
+ function getText(text) {
1211
+ return isIndentedText(text) ? text.text : text;
1212
+ }
1213
+
1214
+ const completionShTemplate = `###-begin-{{app_name}}-completions-###
1215
+ #
1216
+ # yargs command completion script
1217
+ #
1218
+ # Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
1219
+ # or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
1220
+ #
1221
+ _yargs_completions()
1222
+ {
1223
+ local cur_word args type_list
1224
+
1225
+ cur_word="\${COMP_WORDS[COMP_CWORD]}"
1226
+ args=("\${COMP_WORDS[@]}")
1227
+
1228
+ # ask yargs to generate completions.
1229
+ type_list=$({{app_path}} --get-yargs-completions "\${args[@]}")
1230
+
1231
+ COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) )
1232
+
1233
+ # if no match was found, fall back to filename completion
1234
+ if [ \${#COMPREPLY[@]} -eq 0 ]; then
1235
+ COMPREPLY=()
1236
+ fi
1237
+
1238
+ return 0
1239
+ }
1240
+ complete -o default -F _yargs_completions {{app_name}}
1241
+ ###-end-{{app_name}}-completions-###
1242
+ `;
1243
+ const completionZshTemplate = `###-begin-{{app_name}}-completions-###
1244
+ #
1245
+ # yargs command completion script
1246
+ #
1247
+ # Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
1248
+ # or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.
1249
+ #
1250
+ _{{app_name}}_yargs_completions()
1251
+ {
1252
+ local reply
1253
+ local si=$IFS
1254
+ IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
1255
+ IFS=$si
1256
+ _describe 'values' reply
1257
+ }
1258
+ compdef _{{app_name}}_yargs_completions {{app_name}}
1259
+ ###-end-{{app_name}}-completions-###
1260
+ `;
1261
+
1262
+ function completion(yargs, usage, command, shim) {
1263
+ const self = {
1264
+ completionKey: 'get-yargs-completions',
1265
+ };
1266
+ let aliases;
1267
+ self.setParsed = function setParsed(parsed) {
1268
+ aliases = parsed.aliases;
1269
+ };
1270
+ const zshShell = (shim.getEnv('SHELL') && shim.getEnv('SHELL').indexOf('zsh') !== -1) ||
1271
+ (shim.getEnv('ZSH_NAME') && shim.getEnv('ZSH_NAME').indexOf('zsh') !== -1);
1272
+ self.getCompletion = function getCompletion(args, done) {
1273
+ const completions = [];
1274
+ const current = args.length ? args[args.length - 1] : '';
1275
+ const argv = yargs.parse(args, true);
1276
+ const parentCommands = yargs.getContext().commands;
1277
+ function runCompletionFunction(argv) {
1278
+ assertNotStrictEqual(completionFunction, null, shim);
1279
+ if (isSyncCompletionFunction(completionFunction)) {
1280
+ const result = completionFunction(current, argv);
1281
+ if (isPromise(result)) {
1282
+ return result
1283
+ .then(list => {
1284
+ shim.process.nextTick(() => {
1285
+ done(list);
1286
+ });
1287
+ })
1288
+ .catch(err => {
1289
+ shim.process.nextTick(() => {
1290
+ throw err;
1291
+ });
1292
+ });
1293
+ }
1294
+ return done(result);
1295
+ }
1296
+ else {
1297
+ return completionFunction(current, argv, completions => {
1298
+ done(completions);
1299
+ });
1300
+ }
1301
+ }
1302
+ if (completionFunction) {
1303
+ return isPromise(argv)
1304
+ ? argv.then(runCompletionFunction)
1305
+ : runCompletionFunction(argv);
1306
+ }
1307
+ const handlers = command.getCommandHandlers();
1308
+ for (let i = 0, ii = args.length; i < ii; ++i) {
1309
+ if (handlers[args[i]] && handlers[args[i]].builder) {
1310
+ const builder = handlers[args[i]].builder;
1311
+ if (isCommandBuilderCallback(builder)) {
1312
+ const y = yargs.reset();
1313
+ builder(y);
1314
+ return y.argv;
1315
+ }
1316
+ }
1317
+ }
1318
+ if (!current.match(/^-/) &&
1319
+ parentCommands[parentCommands.length - 1] !== current) {
1320
+ usage.getCommands().forEach(usageCommand => {
1321
+ const commandName = parseCommand(usageCommand[0]).cmd;
1322
+ if (args.indexOf(commandName) === -1) {
1323
+ if (!zshShell) {
1324
+ completions.push(commandName);
1325
+ }
1326
+ else {
1327
+ const desc = usageCommand[1] || '';
1328
+ completions.push(commandName.replace(/:/g, '\\:') + ':' + desc);
1329
+ }
1330
+ }
1331
+ });
1332
+ }
1333
+ if (current.match(/^-/) || (current === '' && completions.length === 0)) {
1334
+ const descs = usage.getDescriptions();
1335
+ const options = yargs.getOptions();
1336
+ Object.keys(options.key).forEach(key => {
1337
+ const negable = !!options.configuration['boolean-negation'] &&
1338
+ options.boolean.includes(key);
1339
+ let keyAndAliases = [key].concat(aliases[key] || []);
1340
+ if (negable)
1341
+ keyAndAliases = keyAndAliases.concat(keyAndAliases.map(key => `no-${key}`));
1342
+ function completeOptionKey(key) {
1343
+ const notInArgs = keyAndAliases.every(val => args.indexOf(`--${val}`) === -1);
1344
+ if (notInArgs) {
1345
+ const startsByTwoDashes = (s) => /^--/.test(s);
1346
+ const isShortOption = (s) => /^[^0-9]$/.test(s);
1347
+ const dashes = !startsByTwoDashes(current) && isShortOption(key) ? '-' : '--';
1348
+ if (!zshShell) {
1349
+ completions.push(dashes + key);
1350
+ }
1351
+ else {
1352
+ const desc = descs[key] || '';
1353
+ completions.push(dashes +
1354
+ `${key.replace(/:/g, '\\:')}:${desc.replace('__yargsString__:', '')}`);
1355
+ }
1356
+ }
1357
+ }
1358
+ completeOptionKey(key);
1359
+ if (negable && !!options.default[key])
1360
+ completeOptionKey(`no-${key}`);
1361
+ });
1362
+ }
1363
+ done(completions);
1364
+ };
1365
+ self.generateCompletionScript = function generateCompletionScript($0, cmd) {
1366
+ let script = zshShell
1367
+ ? completionZshTemplate
1368
+ : completionShTemplate;
1369
+ const name = shim.path.basename($0);
1370
+ if ($0.match(/\.js$/))
1371
+ $0 = `./${$0}`;
1372
+ script = script.replace(/{{app_name}}/g, name);
1373
+ script = script.replace(/{{completion_command}}/g, cmd);
1374
+ return script.replace(/{{app_path}}/g, $0);
1375
+ };
1376
+ let completionFunction = null;
1377
+ self.registerFunction = fn => {
1378
+ completionFunction = fn;
1379
+ };
1380
+ return self;
1381
+ }
1382
+ function isSyncCompletionFunction(completionFunction) {
1383
+ return completionFunction.length < 3;
1384
+ }
1385
+
1386
+ function levenshtein(a, b) {
1387
+ if (a.length === 0)
1388
+ return b.length;
1389
+ if (b.length === 0)
1390
+ return a.length;
1391
+ const matrix = [];
1392
+ let i;
1393
+ for (i = 0; i <= b.length; i++) {
1394
+ matrix[i] = [i];
1395
+ }
1396
+ let j;
1397
+ for (j = 0; j <= a.length; j++) {
1398
+ matrix[0][j] = j;
1399
+ }
1400
+ for (i = 1; i <= b.length; i++) {
1401
+ for (j = 1; j <= a.length; j++) {
1402
+ if (b.charAt(i - 1) === a.charAt(j - 1)) {
1403
+ matrix[i][j] = matrix[i - 1][j - 1];
1404
+ }
1405
+ else {
1406
+ matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, Math.min(matrix[i][j - 1] + 1, matrix[i - 1][j] + 1));
1407
+ }
1408
+ }
1409
+ }
1410
+ return matrix[b.length][a.length];
1411
+ }
1412
+
1413
+ const specialKeys = ['$0', '--', '_'];
1414
+ function validation(yargs, usage, y18n, shim) {
1415
+ const __ = y18n.__;
1416
+ const __n = y18n.__n;
1417
+ const self = {};
1418
+ self.nonOptionCount = function nonOptionCount(argv) {
1419
+ const demandedCommands = yargs.getDemandedCommands();
1420
+ const positionalCount = argv._.length + (argv['--'] ? argv['--'].length : 0);
1421
+ const _s = positionalCount - yargs.getContext().commands.length;
1422
+ if (demandedCommands._ &&
1423
+ (_s < demandedCommands._.min || _s > demandedCommands._.max)) {
1424
+ if (_s < demandedCommands._.min) {
1425
+ if (demandedCommands._.minMsg !== undefined) {
1426
+ usage.fail(demandedCommands._.minMsg
1427
+ ? demandedCommands._.minMsg
1428
+ .replace(/\$0/g, _s.toString())
1429
+ .replace(/\$1/, demandedCommands._.min.toString())
1430
+ : null);
1431
+ }
1432
+ else {
1433
+ usage.fail(__n('Not enough non-option arguments: got %s, need at least %s', 'Not enough non-option arguments: got %s, need at least %s', _s, _s.toString(), demandedCommands._.min.toString()));
1434
+ }
1435
+ }
1436
+ else if (_s > demandedCommands._.max) {
1437
+ if (demandedCommands._.maxMsg !== undefined) {
1438
+ usage.fail(demandedCommands._.maxMsg
1439
+ ? demandedCommands._.maxMsg
1440
+ .replace(/\$0/g, _s.toString())
1441
+ .replace(/\$1/, demandedCommands._.max.toString())
1442
+ : null);
1443
+ }
1444
+ else {
1445
+ usage.fail(__n('Too many non-option arguments: got %s, maximum of %s', 'Too many non-option arguments: got %s, maximum of %s', _s, _s.toString(), demandedCommands._.max.toString()));
1446
+ }
1447
+ }
1448
+ }
1449
+ };
1450
+ self.positionalCount = function positionalCount(required, observed) {
1451
+ if (observed < required) {
1452
+ usage.fail(__n('Not enough non-option arguments: got %s, need at least %s', 'Not enough non-option arguments: got %s, need at least %s', observed, observed + '', required + ''));
1453
+ }
1454
+ };
1455
+ self.requiredArguments = function requiredArguments(argv) {
1456
+ const demandedOptions = yargs.getDemandedOptions();
1457
+ let missing = null;
1458
+ for (const key of Object.keys(demandedOptions)) {
1459
+ if (!Object.prototype.hasOwnProperty.call(argv, key) ||
1460
+ typeof argv[key] === 'undefined') {
1461
+ missing = missing || {};
1462
+ missing[key] = demandedOptions[key];
1463
+ }
1464
+ }
1465
+ if (missing) {
1466
+ const customMsgs = [];
1467
+ for (const key of Object.keys(missing)) {
1468
+ const msg = missing[key];
1469
+ if (msg && customMsgs.indexOf(msg) < 0) {
1470
+ customMsgs.push(msg);
1471
+ }
1472
+ }
1473
+ const customMsg = customMsgs.length ? `\n${customMsgs.join('\n')}` : '';
1474
+ usage.fail(__n('Missing required argument: %s', 'Missing required arguments: %s', Object.keys(missing).length, Object.keys(missing).join(', ') + customMsg));
1475
+ }
1476
+ };
1477
+ self.unknownArguments = function unknownArguments(argv, aliases, positionalMap, isDefaultCommand, checkPositionals = true) {
1478
+ const commandKeys = yargs.getCommandInstance().getCommands();
1479
+ const unknown = [];
1480
+ const currentContext = yargs.getContext();
1481
+ Object.keys(argv).forEach(key => {
1482
+ if (specialKeys.indexOf(key) === -1 &&
1483
+ !Object.prototype.hasOwnProperty.call(positionalMap, key) &&
1484
+ !Object.prototype.hasOwnProperty.call(yargs._getParseContext(), key) &&
1485
+ !self.isValidAndSomeAliasIsNotNew(key, aliases)) {
1486
+ unknown.push(key);
1487
+ }
1488
+ });
1489
+ if (checkPositionals &&
1490
+ (currentContext.commands.length > 0 ||
1491
+ commandKeys.length > 0 ||
1492
+ isDefaultCommand)) {
1493
+ argv._.slice(currentContext.commands.length).forEach(key => {
1494
+ if (commandKeys.indexOf('' + key) === -1) {
1495
+ unknown.push('' + key);
1496
+ }
1497
+ });
1498
+ }
1499
+ if (unknown.length > 0) {
1500
+ usage.fail(__n('Unknown argument: %s', 'Unknown arguments: %s', unknown.length, unknown.join(', ')));
1501
+ }
1502
+ };
1503
+ self.unknownCommands = function unknownCommands(argv) {
1504
+ const commandKeys = yargs.getCommandInstance().getCommands();
1505
+ const unknown = [];
1506
+ const currentContext = yargs.getContext();
1507
+ if (currentContext.commands.length > 0 || commandKeys.length > 0) {
1508
+ argv._.slice(currentContext.commands.length).forEach(key => {
1509
+ if (commandKeys.indexOf('' + key) === -1) {
1510
+ unknown.push('' + key);
1511
+ }
1512
+ });
1513
+ }
1514
+ if (unknown.length > 0) {
1515
+ usage.fail(__n('Unknown command: %s', 'Unknown commands: %s', unknown.length, unknown.join(', ')));
1516
+ return true;
1517
+ }
1518
+ else {
1519
+ return false;
1520
+ }
1521
+ };
1522
+ self.isValidAndSomeAliasIsNotNew = function isValidAndSomeAliasIsNotNew(key, aliases) {
1523
+ if (!Object.prototype.hasOwnProperty.call(aliases, key)) {
1524
+ return false;
1525
+ }
1526
+ const newAliases = yargs.parsed.newAliases;
1527
+ for (const a of [key, ...aliases[key]]) {
1528
+ if (!Object.prototype.hasOwnProperty.call(newAliases, a) ||
1529
+ !newAliases[key]) {
1530
+ return true;
1531
+ }
1532
+ }
1533
+ return false;
1534
+ };
1535
+ self.limitedChoices = function limitedChoices(argv) {
1536
+ const options = yargs.getOptions();
1537
+ const invalid = {};
1538
+ if (!Object.keys(options.choices).length)
1539
+ return;
1540
+ Object.keys(argv).forEach(key => {
1541
+ if (specialKeys.indexOf(key) === -1 &&
1542
+ Object.prototype.hasOwnProperty.call(options.choices, key)) {
1543
+ [].concat(argv[key]).forEach(value => {
1544
+ if (options.choices[key].indexOf(value) === -1 &&
1545
+ value !== undefined) {
1546
+ invalid[key] = (invalid[key] || []).concat(value);
1547
+ }
1548
+ });
1549
+ }
1550
+ });
1551
+ const invalidKeys = Object.keys(invalid);
1552
+ if (!invalidKeys.length)
1553
+ return;
1554
+ let msg = __('Invalid values:');
1555
+ invalidKeys.forEach(key => {
1556
+ msg += `\n ${__('Argument: %s, Given: %s, Choices: %s', key, usage.stringifiedValues(invalid[key]), usage.stringifiedValues(options.choices[key]))}`;
1557
+ });
1558
+ usage.fail(msg);
1559
+ };
1560
+ let checks = [];
1561
+ self.check = function check(f, global) {
1562
+ checks.push({
1563
+ func: f,
1564
+ global,
1565
+ });
1566
+ };
1567
+ self.customChecks = function customChecks(argv, aliases) {
1568
+ for (let i = 0, f; (f = checks[i]) !== undefined; i++) {
1569
+ const func = f.func;
1570
+ let result = null;
1571
+ try {
1572
+ result = func(argv, aliases);
1573
+ }
1574
+ catch (err) {
1575
+ usage.fail(err.message ? err.message : err, err);
1576
+ continue;
1577
+ }
1578
+ if (!result) {
1579
+ usage.fail(__('Argument check failed: %s', func.toString()));
1580
+ }
1581
+ else if (typeof result === 'string' || result instanceof Error) {
1582
+ usage.fail(result.toString(), result);
1583
+ }
1584
+ }
1585
+ };
1586
+ let implied = {};
1587
+ self.implies = function implies(key, value) {
1588
+ argsert('<string|object> [array|number|string]', [key, value], arguments.length);
1589
+ if (typeof key === 'object') {
1590
+ Object.keys(key).forEach(k => {
1591
+ self.implies(k, key[k]);
1592
+ });
1593
+ }
1594
+ else {
1595
+ yargs.global(key);
1596
+ if (!implied[key]) {
1597
+ implied[key] = [];
1598
+ }
1599
+ if (Array.isArray(value)) {
1600
+ value.forEach(i => self.implies(key, i));
1601
+ }
1602
+ else {
1603
+ assertNotStrictEqual(value, undefined, shim);
1604
+ implied[key].push(value);
1605
+ }
1606
+ }
1607
+ };
1608
+ self.getImplied = function getImplied() {
1609
+ return implied;
1610
+ };
1611
+ function keyExists(argv, val) {
1612
+ const num = Number(val);
1613
+ val = isNaN(num) ? val : num;
1614
+ if (typeof val === 'number') {
1615
+ val = argv._.length >= val;
1616
+ }
1617
+ else if (val.match(/^--no-.+/)) {
1618
+ val = val.match(/^--no-(.+)/)[1];
1619
+ val = !argv[val];
1620
+ }
1621
+ else {
1622
+ val = argv[val];
1623
+ }
1624
+ return val;
1625
+ }
1626
+ self.implications = function implications(argv) {
1627
+ const implyFail = [];
1628
+ Object.keys(implied).forEach(key => {
1629
+ const origKey = key;
1630
+ (implied[key] || []).forEach(value => {
1631
+ let key = origKey;
1632
+ const origValue = value;
1633
+ key = keyExists(argv, key);
1634
+ value = keyExists(argv, value);
1635
+ if (key && !value) {
1636
+ implyFail.push(` ${origKey} -> ${origValue}`);
1637
+ }
1638
+ });
1639
+ });
1640
+ if (implyFail.length) {
1641
+ let msg = `${__('Implications failed:')}\n`;
1642
+ implyFail.forEach(value => {
1643
+ msg += value;
1644
+ });
1645
+ usage.fail(msg);
1646
+ }
1647
+ };
1648
+ let conflicting = {};
1649
+ self.conflicts = function conflicts(key, value) {
1650
+ argsert('<string|object> [array|string]', [key, value], arguments.length);
1651
+ if (typeof key === 'object') {
1652
+ Object.keys(key).forEach(k => {
1653
+ self.conflicts(k, key[k]);
1654
+ });
1655
+ }
1656
+ else {
1657
+ yargs.global(key);
1658
+ if (!conflicting[key]) {
1659
+ conflicting[key] = [];
1660
+ }
1661
+ if (Array.isArray(value)) {
1662
+ value.forEach(i => self.conflicts(key, i));
1663
+ }
1664
+ else {
1665
+ conflicting[key].push(value);
1666
+ }
1667
+ }
1668
+ };
1669
+ self.getConflicting = () => conflicting;
1670
+ self.conflicting = function conflictingFn(argv) {
1671
+ Object.keys(argv).forEach(key => {
1672
+ if (conflicting[key]) {
1673
+ conflicting[key].forEach(value => {
1674
+ if (value && argv[key] !== undefined && argv[value] !== undefined) {
1675
+ usage.fail(__('Arguments %s and %s are mutually exclusive', key, value));
1676
+ }
1677
+ });
1678
+ }
1679
+ });
1680
+ };
1681
+ self.recommendCommands = function recommendCommands(cmd, potentialCommands) {
1682
+ const threshold = 3;
1683
+ potentialCommands = potentialCommands.sort((a, b) => b.length - a.length);
1684
+ let recommended = null;
1685
+ let bestDistance = Infinity;
1686
+ for (let i = 0, candidate; (candidate = potentialCommands[i]) !== undefined; i++) {
1687
+ const d = levenshtein(cmd, candidate);
1688
+ if (d <= threshold && d < bestDistance) {
1689
+ bestDistance = d;
1690
+ recommended = candidate;
1691
+ }
1692
+ }
1693
+ if (recommended)
1694
+ usage.fail(__('Did you mean %s?', recommended));
1695
+ };
1696
+ self.reset = function reset(localLookup) {
1697
+ implied = objFilter(implied, k => !localLookup[k]);
1698
+ conflicting = objFilter(conflicting, k => !localLookup[k]);
1699
+ checks = checks.filter(c => c.global);
1700
+ return self;
1701
+ };
1702
+ const frozens = [];
1703
+ self.freeze = function freeze() {
1704
+ frozens.push({
1705
+ implied,
1706
+ checks,
1707
+ conflicting,
1708
+ });
1709
+ };
1710
+ self.unfreeze = function unfreeze() {
1711
+ const frozen = frozens.pop();
1712
+ assertNotStrictEqual(frozen, undefined, shim);
1713
+ ({ implied, checks, conflicting } = frozen);
1714
+ };
1715
+ return self;
1716
+ }
1717
+
1718
+ let shim$1;
1719
+ function YargsWithShim(_shim) {
1720
+ shim$1 = _shim;
1721
+ return Yargs;
1722
+ }
1723
+ function Yargs(processArgs = [], cwd = shim$1.process.cwd(), parentRequire) {
1724
+ const self = {};
1725
+ let command$1;
1726
+ let completion$1 = null;
1727
+ let groups = {};
1728
+ const globalMiddleware = [];
1729
+ let output = '';
1730
+ const preservedGroups = {};
1731
+ let usage$1;
1732
+ let validation$1;
1733
+ let handlerFinishCommand = null;
1734
+ const y18n = shim$1.y18n;
1735
+ self.middleware = globalMiddlewareFactory(globalMiddleware, self);
1736
+ self.scriptName = function (scriptName) {
1737
+ self.customScriptName = true;
1738
+ self.$0 = scriptName;
1739
+ return self;
1740
+ };
1741
+ let default$0;
1742
+ if (/\b(node|iojs|electron)(\.exe)?$/.test(shim$1.process.argv()[0])) {
1743
+ default$0 = shim$1.process.argv().slice(1, 2);
1744
+ }
1745
+ else {
1746
+ default$0 = shim$1.process.argv().slice(0, 1);
1747
+ }
1748
+ self.$0 = default$0
1749
+ .map(x => {
1750
+ const b = rebase(cwd, x);
1751
+ return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x;
1752
+ })
1753
+ .join(' ')
1754
+ .trim();
1755
+ if (shim$1.getEnv('_') && shim$1.getProcessArgvBin() === shim$1.getEnv('_')) {
1756
+ self.$0 = shim$1
1757
+ .getEnv('_')
1758
+ .replace(`${shim$1.path.dirname(shim$1.process.execPath())}/`, '');
1759
+ }
1760
+ const context = { resets: -1, commands: [], fullCommands: [], files: [] };
1761
+ self.getContext = () => context;
1762
+ let hasOutput = false;
1763
+ let exitError = null;
1764
+ self.exit = (code, err) => {
1765
+ hasOutput = true;
1766
+ exitError = err;
1767
+ if (exitProcess)
1768
+ shim$1.process.exit(code);
1769
+ };
1770
+ let completionCommand = null;
1771
+ self.completion = function (cmd, desc, fn) {
1772
+ argsert('[string] [string|boolean|function] [function]', [cmd, desc, fn], arguments.length);
1773
+ if (typeof desc === 'function') {
1774
+ fn = desc;
1775
+ desc = undefined;
1776
+ }
1777
+ completionCommand = cmd || completionCommand || 'completion';
1778
+ if (!desc && desc !== false) {
1779
+ desc = 'generate completion script';
1780
+ }
1781
+ self.command(completionCommand, desc);
1782
+ if (fn)
1783
+ completion$1.registerFunction(fn);
1784
+ return self;
1785
+ };
1786
+ let options;
1787
+ self.resetOptions = self.reset = function resetOptions(aliases = {}) {
1788
+ context.resets++;
1789
+ options = options || {};
1790
+ const tmpOptions = {};
1791
+ tmpOptions.local = options.local ? options.local : [];
1792
+ tmpOptions.configObjects = options.configObjects
1793
+ ? options.configObjects
1794
+ : [];
1795
+ const localLookup = {};
1796
+ tmpOptions.local.forEach(l => {
1797
+ localLookup[l] = true;
1798
+ (aliases[l] || []).forEach(a => {
1799
+ localLookup[a] = true;
1800
+ });
1801
+ });
1802
+ Object.assign(preservedGroups, Object.keys(groups).reduce((acc, groupName) => {
1803
+ const keys = groups[groupName].filter(key => !(key in localLookup));
1804
+ if (keys.length > 0) {
1805
+ acc[groupName] = keys;
1806
+ }
1807
+ return acc;
1808
+ }, {}));
1809
+ groups = {};
1810
+ const arrayOptions = [
1811
+ 'array',
1812
+ 'boolean',
1813
+ 'string',
1814
+ 'skipValidation',
1815
+ 'count',
1816
+ 'normalize',
1817
+ 'number',
1818
+ 'hiddenOptions',
1819
+ ];
1820
+ const objectOptions = [
1821
+ 'narg',
1822
+ 'key',
1823
+ 'alias',
1824
+ 'default',
1825
+ 'defaultDescription',
1826
+ 'config',
1827
+ 'choices',
1828
+ 'demandedOptions',
1829
+ 'demandedCommands',
1830
+ 'coerce',
1831
+ 'deprecatedOptions',
1832
+ ];
1833
+ arrayOptions.forEach(k => {
1834
+ tmpOptions[k] = (options[k] || []).filter((k) => !localLookup[k]);
1835
+ });
1836
+ objectOptions.forEach((k) => {
1837
+ tmpOptions[k] = objFilter(options[k], k => !localLookup[k]);
1838
+ });
1839
+ tmpOptions.envPrefix = options.envPrefix;
1840
+ options = tmpOptions;
1841
+ usage$1 = usage$1 ? usage$1.reset(localLookup) : usage(self, y18n, shim$1);
1842
+ validation$1 = validation$1
1843
+ ? validation$1.reset(localLookup)
1844
+ : validation(self, usage$1, y18n, shim$1);
1845
+ command$1 = command$1
1846
+ ? command$1.reset()
1847
+ : command(self, usage$1, validation$1, globalMiddleware, shim$1);
1848
+ if (!completion$1)
1849
+ completion$1 = completion(self, usage$1, command$1, shim$1);
1850
+ completionCommand = null;
1851
+ output = '';
1852
+ exitError = null;
1853
+ hasOutput = false;
1854
+ self.parsed = false;
1855
+ return self;
1856
+ };
1857
+ self.resetOptions();
1858
+ const frozens = [];
1859
+ function freeze() {
1860
+ frozens.push({
1861
+ options,
1862
+ configObjects: options.configObjects.slice(0),
1863
+ exitProcess,
1864
+ groups,
1865
+ strict,
1866
+ strictCommands,
1867
+ strictOptions,
1868
+ completionCommand,
1869
+ output,
1870
+ exitError,
1871
+ hasOutput,
1872
+ parsed: self.parsed,
1873
+ parseFn,
1874
+ parseContext,
1875
+ handlerFinishCommand,
1876
+ });
1877
+ usage$1.freeze();
1878
+ validation$1.freeze();
1879
+ command$1.freeze();
1880
+ }
1881
+ function unfreeze() {
1882
+ const frozen = frozens.pop();
1883
+ assertNotStrictEqual(frozen, undefined, shim$1);
1884
+ let configObjects;
1885
+ ({
1886
+ options,
1887
+ configObjects,
1888
+ exitProcess,
1889
+ groups,
1890
+ output,
1891
+ exitError,
1892
+ hasOutput,
1893
+ parsed: self.parsed,
1894
+ strict,
1895
+ strictCommands,
1896
+ strictOptions,
1897
+ completionCommand,
1898
+ parseFn,
1899
+ parseContext,
1900
+ handlerFinishCommand,
1901
+ } = frozen);
1902
+ options.configObjects = configObjects;
1903
+ usage$1.unfreeze();
1904
+ validation$1.unfreeze();
1905
+ command$1.unfreeze();
1906
+ }
1907
+ self.boolean = function (keys) {
1908
+ argsert('<array|string>', [keys], arguments.length);
1909
+ populateParserHintArray('boolean', keys);
1910
+ return self;
1911
+ };
1912
+ self.array = function (keys) {
1913
+ argsert('<array|string>', [keys], arguments.length);
1914
+ populateParserHintArray('array', keys);
1915
+ return self;
1916
+ };
1917
+ self.number = function (keys) {
1918
+ argsert('<array|string>', [keys], arguments.length);
1919
+ populateParserHintArray('number', keys);
1920
+ return self;
1921
+ };
1922
+ self.normalize = function (keys) {
1923
+ argsert('<array|string>', [keys], arguments.length);
1924
+ populateParserHintArray('normalize', keys);
1925
+ return self;
1926
+ };
1927
+ self.count = function (keys) {
1928
+ argsert('<array|string>', [keys], arguments.length);
1929
+ populateParserHintArray('count', keys);
1930
+ return self;
1931
+ };
1932
+ self.string = function (keys) {
1933
+ argsert('<array|string>', [keys], arguments.length);
1934
+ populateParserHintArray('string', keys);
1935
+ return self;
1936
+ };
1937
+ self.requiresArg = function (keys) {
1938
+ argsert('<array|string|object> [number]', [keys], arguments.length);
1939
+ if (typeof keys === 'string' && options.narg[keys]) {
1940
+ return self;
1941
+ }
1942
+ else {
1943
+ populateParserHintSingleValueDictionary(self.requiresArg, 'narg', keys, NaN);
1944
+ }
1945
+ return self;
1946
+ };
1947
+ self.skipValidation = function (keys) {
1948
+ argsert('<array|string>', [keys], arguments.length);
1949
+ populateParserHintArray('skipValidation', keys);
1950
+ return self;
1951
+ };
1952
+ function populateParserHintArray(type, keys) {
1953
+ keys = [].concat(keys);
1954
+ keys.forEach(key => {
1955
+ key = sanitizeKey(key);
1956
+ options[type].push(key);
1957
+ });
1958
+ }
1959
+ self.nargs = function (key, value) {
1960
+ argsert('<string|object|array> [number]', [key, value], arguments.length);
1961
+ populateParserHintSingleValueDictionary(self.nargs, 'narg', key, value);
1962
+ return self;
1963
+ };
1964
+ self.choices = function (key, value) {
1965
+ argsert('<object|string|array> [string|array]', [key, value], arguments.length);
1966
+ populateParserHintArrayDictionary(self.choices, 'choices', key, value);
1967
+ return self;
1968
+ };
1969
+ self.alias = function (key, value) {
1970
+ argsert('<object|string|array> [string|array]', [key, value], arguments.length);
1971
+ populateParserHintArrayDictionary(self.alias, 'alias', key, value);
1972
+ return self;
1973
+ };
1974
+ self.default = self.defaults = function (key, value, defaultDescription) {
1975
+ argsert('<object|string|array> [*] [string]', [key, value, defaultDescription], arguments.length);
1976
+ if (defaultDescription) {
1977
+ assertSingleKey(key, shim$1);
1978
+ options.defaultDescription[key] = defaultDescription;
1979
+ }
1980
+ if (typeof value === 'function') {
1981
+ assertSingleKey(key, shim$1);
1982
+ if (!options.defaultDescription[key])
1983
+ options.defaultDescription[key] = usage$1.functionDescription(value);
1984
+ value = value.call();
1985
+ }
1986
+ populateParserHintSingleValueDictionary(self.default, 'default', key, value);
1987
+ return self;
1988
+ };
1989
+ self.describe = function (key, desc) {
1990
+ argsert('<object|string|array> [string]', [key, desc], arguments.length);
1991
+ setKey(key, true);
1992
+ usage$1.describe(key, desc);
1993
+ return self;
1994
+ };
1995
+ function setKey(key, set) {
1996
+ populateParserHintSingleValueDictionary(setKey, 'key', key, set);
1997
+ return self;
1998
+ }
1999
+ function demandOption(keys, msg) {
2000
+ argsert('<object|string|array> [string]', [keys, msg], arguments.length);
2001
+ populateParserHintSingleValueDictionary(self.demandOption, 'demandedOptions', keys, msg);
2002
+ return self;
2003
+ }
2004
+ self.demandOption = demandOption;
2005
+ self.coerce = function (keys, value) {
2006
+ argsert('<object|string|array> [function]', [keys, value], arguments.length);
2007
+ populateParserHintSingleValueDictionary(self.coerce, 'coerce', keys, value);
2008
+ return self;
2009
+ };
2010
+ function populateParserHintSingleValueDictionary(builder, type, key, value) {
2011
+ populateParserHintDictionary(builder, type, key, value, (type, key, value) => {
2012
+ options[type][key] = value;
2013
+ });
2014
+ }
2015
+ function populateParserHintArrayDictionary(builder, type, key, value) {
2016
+ populateParserHintDictionary(builder, type, key, value, (type, key, value) => {
2017
+ options[type][key] = (options[type][key] || []).concat(value);
2018
+ });
2019
+ }
2020
+ function populateParserHintDictionary(builder, type, key, value, singleKeyHandler) {
2021
+ if (Array.isArray(key)) {
2022
+ key.forEach(k => {
2023
+ builder(k, value);
2024
+ });
2025
+ }
2026
+ else if (((key) => typeof key === 'object')(key)) {
2027
+ for (const k of objectKeys(key)) {
2028
+ builder(k, key[k]);
2029
+ }
2030
+ }
2031
+ else {
2032
+ singleKeyHandler(type, sanitizeKey(key), value);
2033
+ }
2034
+ }
2035
+ function sanitizeKey(key) {
2036
+ if (key === '__proto__')
2037
+ return '___proto___';
2038
+ return key;
2039
+ }
2040
+ function deleteFromParserHintObject(optionKey) {
2041
+ objectKeys(options).forEach((hintKey) => {
2042
+ if (((key) => key === 'configObjects')(hintKey))
2043
+ return;
2044
+ const hint = options[hintKey];
2045
+ if (Array.isArray(hint)) {
2046
+ if (~hint.indexOf(optionKey))
2047
+ hint.splice(hint.indexOf(optionKey), 1);
2048
+ }
2049
+ else if (typeof hint === 'object') {
2050
+ delete hint[optionKey];
2051
+ }
2052
+ });
2053
+ delete usage$1.getDescriptions()[optionKey];
2054
+ }
2055
+ self.config = function config(key = 'config', msg, parseFn) {
2056
+ argsert('[object|string] [string|function] [function]', [key, msg, parseFn], arguments.length);
2057
+ if (typeof key === 'object' && !Array.isArray(key)) {
2058
+ key = applyExtends(key, cwd, self.getParserConfiguration()['deep-merge-config'] || false, shim$1);
2059
+ options.configObjects = (options.configObjects || []).concat(key);
2060
+ return self;
2061
+ }
2062
+ if (typeof msg === 'function') {
2063
+ parseFn = msg;
2064
+ msg = undefined;
2065
+ }
2066
+ self.describe(key, msg || usage$1.deferY18nLookup('Path to JSON config file'));
2067
+ (Array.isArray(key) ? key : [key]).forEach(k => {
2068
+ options.config[k] = parseFn || true;
2069
+ });
2070
+ return self;
2071
+ };
2072
+ self.example = function (cmd, description) {
2073
+ argsert('<string|array> [string]', [cmd, description], arguments.length);
2074
+ if (Array.isArray(cmd)) {
2075
+ cmd.forEach(exampleParams => self.example(...exampleParams));
2076
+ }
2077
+ else {
2078
+ usage$1.example(cmd, description);
2079
+ }
2080
+ return self;
2081
+ };
2082
+ self.command = function (cmd, description, builder, handler, middlewares, deprecated) {
2083
+ argsert('<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]', [cmd, description, builder, handler, middlewares, deprecated], arguments.length);
2084
+ command$1.addHandler(cmd, description, builder, handler, middlewares, deprecated);
2085
+ return self;
2086
+ };
2087
+ self.commandDir = function (dir, opts) {
2088
+ argsert('<string> [object]', [dir, opts], arguments.length);
2089
+ const req = parentRequire || shim$1.require;
2090
+ command$1.addDirectory(dir, self.getContext(), req, shim$1.getCallerFile(), opts);
2091
+ return self;
2092
+ };
2093
+ self.demand = self.required = self.require = function demand(keys, max, msg) {
2094
+ if (Array.isArray(max)) {
2095
+ max.forEach(key => {
2096
+ assertNotStrictEqual(msg, true, shim$1);
2097
+ demandOption(key, msg);
2098
+ });
2099
+ max = Infinity;
2100
+ }
2101
+ else if (typeof max !== 'number') {
2102
+ msg = max;
2103
+ max = Infinity;
2104
+ }
2105
+ if (typeof keys === 'number') {
2106
+ assertNotStrictEqual(msg, true, shim$1);
2107
+ self.demandCommand(keys, max, msg, msg);
2108
+ }
2109
+ else if (Array.isArray(keys)) {
2110
+ keys.forEach(key => {
2111
+ assertNotStrictEqual(msg, true, shim$1);
2112
+ demandOption(key, msg);
2113
+ });
2114
+ }
2115
+ else {
2116
+ if (typeof msg === 'string') {
2117
+ demandOption(keys, msg);
2118
+ }
2119
+ else if (msg === true || typeof msg === 'undefined') {
2120
+ demandOption(keys);
2121
+ }
2122
+ }
2123
+ return self;
2124
+ };
2125
+ self.demandCommand = function demandCommand(min = 1, max, minMsg, maxMsg) {
2126
+ argsert('[number] [number|string] [string|null|undefined] [string|null|undefined]', [min, max, minMsg, maxMsg], arguments.length);
2127
+ if (typeof max !== 'number') {
2128
+ minMsg = max;
2129
+ max = Infinity;
2130
+ }
2131
+ self.global('_', false);
2132
+ options.demandedCommands._ = {
2133
+ min,
2134
+ max,
2135
+ minMsg,
2136
+ maxMsg,
2137
+ };
2138
+ return self;
2139
+ };
2140
+ self.getDemandedOptions = () => {
2141
+ argsert([], 0);
2142
+ return options.demandedOptions;
2143
+ };
2144
+ self.getDemandedCommands = () => {
2145
+ argsert([], 0);
2146
+ return options.demandedCommands;
2147
+ };
2148
+ self.deprecateOption = function deprecateOption(option, message) {
2149
+ argsert('<string> [string|boolean]', [option, message], arguments.length);
2150
+ options.deprecatedOptions[option] = message;
2151
+ return self;
2152
+ };
2153
+ self.getDeprecatedOptions = () => {
2154
+ argsert([], 0);
2155
+ return options.deprecatedOptions;
2156
+ };
2157
+ self.implies = function (key, value) {
2158
+ argsert('<string|object> [number|string|array]', [key, value], arguments.length);
2159
+ validation$1.implies(key, value);
2160
+ return self;
2161
+ };
2162
+ self.conflicts = function (key1, key2) {
2163
+ argsert('<string|object> [string|array]', [key1, key2], arguments.length);
2164
+ validation$1.conflicts(key1, key2);
2165
+ return self;
2166
+ };
2167
+ self.usage = function (msg, description, builder, handler) {
2168
+ argsert('<string|null|undefined> [string|boolean] [function|object] [function]', [msg, description, builder, handler], arguments.length);
2169
+ if (description !== undefined) {
2170
+ assertNotStrictEqual(msg, null, shim$1);
2171
+ if ((msg || '').match(/^\$0( |$)/)) {
2172
+ return self.command(msg, description, builder, handler);
2173
+ }
2174
+ else {
2175
+ throw new YError('.usage() description must start with $0 if being used as alias for .command()');
2176
+ }
2177
+ }
2178
+ else {
2179
+ usage$1.usage(msg);
2180
+ return self;
2181
+ }
2182
+ };
2183
+ self.epilogue = self.epilog = function (msg) {
2184
+ argsert('<string>', [msg], arguments.length);
2185
+ usage$1.epilog(msg);
2186
+ return self;
2187
+ };
2188
+ self.fail = function (f) {
2189
+ argsert('<function>', [f], arguments.length);
2190
+ usage$1.failFn(f);
2191
+ return self;
2192
+ };
2193
+ self.onFinishCommand = function (f) {
2194
+ argsert('<function>', [f], arguments.length);
2195
+ handlerFinishCommand = f;
2196
+ return self;
2197
+ };
2198
+ self.getHandlerFinishCommand = () => handlerFinishCommand;
2199
+ self.check = function (f, _global) {
2200
+ argsert('<function> [boolean]', [f, _global], arguments.length);
2201
+ validation$1.check(f, _global !== false);
2202
+ return self;
2203
+ };
2204
+ self.global = function global(globals, global) {
2205
+ argsert('<string|array> [boolean]', [globals, global], arguments.length);
2206
+ globals = [].concat(globals);
2207
+ if (global !== false) {
2208
+ options.local = options.local.filter(l => globals.indexOf(l) === -1);
2209
+ }
2210
+ else {
2211
+ globals.forEach(g => {
2212
+ if (options.local.indexOf(g) === -1)
2213
+ options.local.push(g);
2214
+ });
2215
+ }
2216
+ return self;
2217
+ };
2218
+ self.pkgConf = function pkgConf(key, rootPath) {
2219
+ argsert('<string> [string]', [key, rootPath], arguments.length);
2220
+ let conf = null;
2221
+ const obj = pkgUp(rootPath || cwd);
2222
+ if (obj[key] && typeof obj[key] === 'object') {
2223
+ conf = applyExtends(obj[key], rootPath || cwd, self.getParserConfiguration()['deep-merge-config'] || false, shim$1);
2224
+ options.configObjects = (options.configObjects || []).concat(conf);
2225
+ }
2226
+ return self;
2227
+ };
2228
+ const pkgs = {};
2229
+ function pkgUp(rootPath) {
2230
+ const npath = rootPath || '*';
2231
+ if (pkgs[npath])
2232
+ return pkgs[npath];
2233
+ let obj = {};
2234
+ try {
2235
+ let startDir = rootPath || shim$1.mainFilename;
2236
+ if (!rootPath && shim$1.path.extname(startDir)) {
2237
+ startDir = shim$1.path.dirname(startDir);
2238
+ }
2239
+ const pkgJsonPath = shim$1.findUp(startDir, (dir, names) => {
2240
+ if (names.includes('package.json')) {
2241
+ return 'package.json';
2242
+ }
2243
+ else {
2244
+ return undefined;
2245
+ }
2246
+ });
2247
+ assertNotStrictEqual(pkgJsonPath, undefined, shim$1);
2248
+ obj = JSON.parse(shim$1.readFileSync(pkgJsonPath, 'utf8'));
2249
+ }
2250
+ catch (_noop) { }
2251
+ pkgs[npath] = obj || {};
2252
+ return pkgs[npath];
2253
+ }
2254
+ let parseFn = null;
2255
+ let parseContext = null;
2256
+ self.parse = function parse(args, shortCircuit, _parseFn) {
2257
+ argsert('[string|array] [function|boolean|object] [function]', [args, shortCircuit, _parseFn], arguments.length);
2258
+ freeze();
2259
+ if (typeof args === 'undefined') {
2260
+ const argv = self._parseArgs(processArgs);
2261
+ const tmpParsed = self.parsed;
2262
+ unfreeze();
2263
+ self.parsed = tmpParsed;
2264
+ return argv;
2265
+ }
2266
+ if (typeof shortCircuit === 'object') {
2267
+ parseContext = shortCircuit;
2268
+ shortCircuit = _parseFn;
2269
+ }
2270
+ if (typeof shortCircuit === 'function') {
2271
+ parseFn = shortCircuit;
2272
+ shortCircuit = false;
2273
+ }
2274
+ if (!shortCircuit)
2275
+ processArgs = args;
2276
+ if (parseFn)
2277
+ exitProcess = false;
2278
+ const parsed = self._parseArgs(args, !!shortCircuit);
2279
+ completion$1.setParsed(self.parsed);
2280
+ if (parseFn)
2281
+ parseFn(exitError, parsed, output);
2282
+ unfreeze();
2283
+ return parsed;
2284
+ };
2285
+ self._getParseContext = () => parseContext || {};
2286
+ self._hasParseCallback = () => !!parseFn;
2287
+ self.option = self.options = function option(key, opt) {
2288
+ argsert('<string|object> [object]', [key, opt], arguments.length);
2289
+ if (typeof key === 'object') {
2290
+ Object.keys(key).forEach(k => {
2291
+ self.options(k, key[k]);
2292
+ });
2293
+ }
2294
+ else {
2295
+ if (typeof opt !== 'object') {
2296
+ opt = {};
2297
+ }
2298
+ options.key[key] = true;
2299
+ if (opt.alias)
2300
+ self.alias(key, opt.alias);
2301
+ const deprecate = opt.deprecate || opt.deprecated;
2302
+ if (deprecate) {
2303
+ self.deprecateOption(key, deprecate);
2304
+ }
2305
+ const demand = opt.demand || opt.required || opt.require;
2306
+ if (demand) {
2307
+ self.demand(key, demand);
2308
+ }
2309
+ if (opt.demandOption) {
2310
+ self.demandOption(key, typeof opt.demandOption === 'string' ? opt.demandOption : undefined);
2311
+ }
2312
+ if (opt.conflicts) {
2313
+ self.conflicts(key, opt.conflicts);
2314
+ }
2315
+ if ('default' in opt) {
2316
+ self.default(key, opt.default);
2317
+ }
2318
+ if (opt.implies !== undefined) {
2319
+ self.implies(key, opt.implies);
2320
+ }
2321
+ if (opt.nargs !== undefined) {
2322
+ self.nargs(key, opt.nargs);
2323
+ }
2324
+ if (opt.config) {
2325
+ self.config(key, opt.configParser);
2326
+ }
2327
+ if (opt.normalize) {
2328
+ self.normalize(key);
2329
+ }
2330
+ if (opt.choices) {
2331
+ self.choices(key, opt.choices);
2332
+ }
2333
+ if (opt.coerce) {
2334
+ self.coerce(key, opt.coerce);
2335
+ }
2336
+ if (opt.group) {
2337
+ self.group(key, opt.group);
2338
+ }
2339
+ if (opt.boolean || opt.type === 'boolean') {
2340
+ self.boolean(key);
2341
+ if (opt.alias)
2342
+ self.boolean(opt.alias);
2343
+ }
2344
+ if (opt.array || opt.type === 'array') {
2345
+ self.array(key);
2346
+ if (opt.alias)
2347
+ self.array(opt.alias);
2348
+ }
2349
+ if (opt.number || opt.type === 'number') {
2350
+ self.number(key);
2351
+ if (opt.alias)
2352
+ self.number(opt.alias);
2353
+ }
2354
+ if (opt.string || opt.type === 'string') {
2355
+ self.string(key);
2356
+ if (opt.alias)
2357
+ self.string(opt.alias);
2358
+ }
2359
+ if (opt.count || opt.type === 'count') {
2360
+ self.count(key);
2361
+ }
2362
+ if (typeof opt.global === 'boolean') {
2363
+ self.global(key, opt.global);
2364
+ }
2365
+ if (opt.defaultDescription) {
2366
+ options.defaultDescription[key] = opt.defaultDescription;
2367
+ }
2368
+ if (opt.skipValidation) {
2369
+ self.skipValidation(key);
2370
+ }
2371
+ const desc = opt.describe || opt.description || opt.desc;
2372
+ self.describe(key, desc);
2373
+ if (opt.hidden) {
2374
+ self.hide(key);
2375
+ }
2376
+ if (opt.requiresArg) {
2377
+ self.requiresArg(key);
2378
+ }
2379
+ }
2380
+ return self;
2381
+ };
2382
+ self.getOptions = () => options;
2383
+ self.positional = function (key, opts) {
2384
+ argsert('<string> <object>', [key, opts], arguments.length);
2385
+ if (context.resets === 0) {
2386
+ throw new YError(".positional() can only be called in a command's builder function");
2387
+ }
2388
+ const supportedOpts = [
2389
+ 'default',
2390
+ 'defaultDescription',
2391
+ 'implies',
2392
+ 'normalize',
2393
+ 'choices',
2394
+ 'conflicts',
2395
+ 'coerce',
2396
+ 'type',
2397
+ 'describe',
2398
+ 'desc',
2399
+ 'description',
2400
+ 'alias',
2401
+ ];
2402
+ opts = objFilter(opts, (k, v) => {
2403
+ let accept = supportedOpts.indexOf(k) !== -1;
2404
+ if (k === 'type' && ['string', 'number', 'boolean'].indexOf(v) === -1)
2405
+ accept = false;
2406
+ return accept;
2407
+ });
2408
+ const fullCommand = context.fullCommands[context.fullCommands.length - 1];
2409
+ const parseOptions = fullCommand
2410
+ ? command$1.cmdToParseOptions(fullCommand)
2411
+ : {
2412
+ array: [],
2413
+ alias: {},
2414
+ default: {},
2415
+ demand: {},
2416
+ };
2417
+ objectKeys(parseOptions).forEach(pk => {
2418
+ const parseOption = parseOptions[pk];
2419
+ if (Array.isArray(parseOption)) {
2420
+ if (parseOption.indexOf(key) !== -1)
2421
+ opts[pk] = true;
2422
+ }
2423
+ else {
2424
+ if (parseOption[key] && !(pk in opts))
2425
+ opts[pk] = parseOption[key];
2426
+ }
2427
+ });
2428
+ self.group(key, usage$1.getPositionalGroupName());
2429
+ return self.option(key, opts);
2430
+ };
2431
+ self.group = function group(opts, groupName) {
2432
+ argsert('<string|array> <string>', [opts, groupName], arguments.length);
2433
+ const existing = preservedGroups[groupName] || groups[groupName];
2434
+ if (preservedGroups[groupName]) {
2435
+ delete preservedGroups[groupName];
2436
+ }
2437
+ const seen = {};
2438
+ groups[groupName] = (existing || []).concat(opts).filter(key => {
2439
+ if (seen[key])
2440
+ return false;
2441
+ return (seen[key] = true);
2442
+ });
2443
+ return self;
2444
+ };
2445
+ self.getGroups = () => Object.assign({}, groups, preservedGroups);
2446
+ self.env = function (prefix) {
2447
+ argsert('[string|boolean]', [prefix], arguments.length);
2448
+ if (prefix === false)
2449
+ delete options.envPrefix;
2450
+ else
2451
+ options.envPrefix = prefix || '';
2452
+ return self;
2453
+ };
2454
+ self.wrap = function (cols) {
2455
+ argsert('<number|null|undefined>', [cols], arguments.length);
2456
+ usage$1.wrap(cols);
2457
+ return self;
2458
+ };
2459
+ let strict = false;
2460
+ self.strict = function (enabled) {
2461
+ argsert('[boolean]', [enabled], arguments.length);
2462
+ strict = enabled !== false;
2463
+ return self;
2464
+ };
2465
+ self.getStrict = () => strict;
2466
+ let strictCommands = false;
2467
+ self.strictCommands = function (enabled) {
2468
+ argsert('[boolean]', [enabled], arguments.length);
2469
+ strictCommands = enabled !== false;
2470
+ return self;
2471
+ };
2472
+ self.getStrictCommands = () => strictCommands;
2473
+ let strictOptions = false;
2474
+ self.strictOptions = function (enabled) {
2475
+ argsert('[boolean]', [enabled], arguments.length);
2476
+ strictOptions = enabled !== false;
2477
+ return self;
2478
+ };
2479
+ self.getStrictOptions = () => strictOptions;
2480
+ let parserConfig = {};
2481
+ self.parserConfiguration = function parserConfiguration(config) {
2482
+ argsert('<object>', [config], arguments.length);
2483
+ parserConfig = config;
2484
+ return self;
2485
+ };
2486
+ self.getParserConfiguration = () => parserConfig;
2487
+ self.showHelp = function (level) {
2488
+ argsert('[string|function]', [level], arguments.length);
2489
+ if (!self.parsed)
2490
+ self._parseArgs(processArgs);
2491
+ if (command$1.hasDefaultCommand()) {
2492
+ context.resets++;
2493
+ command$1.runDefaultBuilderOn(self);
2494
+ }
2495
+ usage$1.showHelp(level);
2496
+ return self;
2497
+ };
2498
+ let versionOpt = null;
2499
+ self.version = function version(opt, msg, ver) {
2500
+ const defaultVersionOpt = 'version';
2501
+ argsert('[boolean|string] [string] [string]', [opt, msg, ver], arguments.length);
2502
+ if (versionOpt) {
2503
+ deleteFromParserHintObject(versionOpt);
2504
+ usage$1.version(undefined);
2505
+ versionOpt = null;
2506
+ }
2507
+ if (arguments.length === 0) {
2508
+ ver = guessVersion();
2509
+ opt = defaultVersionOpt;
2510
+ }
2511
+ else if (arguments.length === 1) {
2512
+ if (opt === false) {
2513
+ return self;
2514
+ }
2515
+ ver = opt;
2516
+ opt = defaultVersionOpt;
2517
+ }
2518
+ else if (arguments.length === 2) {
2519
+ ver = msg;
2520
+ msg = undefined;
2521
+ }
2522
+ versionOpt = typeof opt === 'string' ? opt : defaultVersionOpt;
2523
+ msg = msg || usage$1.deferY18nLookup('Show version number');
2524
+ usage$1.version(ver || undefined);
2525
+ self.boolean(versionOpt);
2526
+ self.describe(versionOpt, msg);
2527
+ return self;
2528
+ };
2529
+ function guessVersion() {
2530
+ const obj = pkgUp();
2531
+ return obj.version || 'unknown';
2532
+ }
2533
+ let helpOpt = null;
2534
+ self.addHelpOpt = self.help = function addHelpOpt(opt, msg) {
2535
+ const defaultHelpOpt = 'help';
2536
+ argsert('[string|boolean] [string]', [opt, msg], arguments.length);
2537
+ if (helpOpt) {
2538
+ deleteFromParserHintObject(helpOpt);
2539
+ helpOpt = null;
2540
+ }
2541
+ if (arguments.length === 1) {
2542
+ if (opt === false)
2543
+ return self;
2544
+ }
2545
+ helpOpt = typeof opt === 'string' ? opt : defaultHelpOpt;
2546
+ self.boolean(helpOpt);
2547
+ self.describe(helpOpt, msg || usage$1.deferY18nLookup('Show help'));
2548
+ return self;
2549
+ };
2550
+ const defaultShowHiddenOpt = 'show-hidden';
2551
+ options.showHiddenOpt = defaultShowHiddenOpt;
2552
+ self.addShowHiddenOpt = self.showHidden = function addShowHiddenOpt(opt, msg) {
2553
+ argsert('[string|boolean] [string]', [opt, msg], arguments.length);
2554
+ if (arguments.length === 1) {
2555
+ if (opt === false)
2556
+ return self;
2557
+ }
2558
+ const showHiddenOpt = typeof opt === 'string' ? opt : defaultShowHiddenOpt;
2559
+ self.boolean(showHiddenOpt);
2560
+ self.describe(showHiddenOpt, msg || usage$1.deferY18nLookup('Show hidden options'));
2561
+ options.showHiddenOpt = showHiddenOpt;
2562
+ return self;
2563
+ };
2564
+ self.hide = function hide(key) {
2565
+ argsert('<string>', [key], arguments.length);
2566
+ options.hiddenOptions.push(key);
2567
+ return self;
2568
+ };
2569
+ self.showHelpOnFail = function showHelpOnFail(enabled, message) {
2570
+ argsert('[boolean|string] [string]', [enabled, message], arguments.length);
2571
+ usage$1.showHelpOnFail(enabled, message);
2572
+ return self;
2573
+ };
2574
+ let exitProcess = true;
2575
+ self.exitProcess = function (enabled = true) {
2576
+ argsert('[boolean]', [enabled], arguments.length);
2577
+ exitProcess = enabled;
2578
+ return self;
2579
+ };
2580
+ self.getExitProcess = () => exitProcess;
2581
+ self.showCompletionScript = function ($0, cmd) {
2582
+ argsert('[string] [string]', [$0, cmd], arguments.length);
2583
+ $0 = $0 || self.$0;
2584
+ _logger.log(completion$1.generateCompletionScript($0, cmd || completionCommand || 'completion'));
2585
+ return self;
2586
+ };
2587
+ self.getCompletion = function (args, done) {
2588
+ argsert('<array> <function>', [args, done], arguments.length);
2589
+ completion$1.getCompletion(args, done);
2590
+ };
2591
+ self.locale = function (locale) {
2592
+ argsert('[string]', [locale], arguments.length);
2593
+ if (!locale) {
2594
+ guessLocale();
2595
+ return y18n.getLocale();
2596
+ }
2597
+ detectLocale = false;
2598
+ y18n.setLocale(locale);
2599
+ return self;
2600
+ };
2601
+ self.updateStrings = self.updateLocale = function (obj) {
2602
+ argsert('<object>', [obj], arguments.length);
2603
+ detectLocale = false;
2604
+ y18n.updateLocale(obj);
2605
+ return self;
2606
+ };
2607
+ let detectLocale = true;
2608
+ self.detectLocale = function (detect) {
2609
+ argsert('<boolean>', [detect], arguments.length);
2610
+ detectLocale = detect;
2611
+ return self;
2612
+ };
2613
+ self.getDetectLocale = () => detectLocale;
2614
+ const _logger = {
2615
+ log(...args) {
2616
+ if (!self._hasParseCallback())
2617
+ console.log(...args);
2618
+ hasOutput = true;
2619
+ if (output.length)
2620
+ output += '\n';
2621
+ output += args.join(' ');
2622
+ },
2623
+ error(...args) {
2624
+ if (!self._hasParseCallback())
2625
+ console.error(...args);
2626
+ hasOutput = true;
2627
+ if (output.length)
2628
+ output += '\n';
2629
+ output += args.join(' ');
2630
+ },
2631
+ };
2632
+ self._getLoggerInstance = () => _logger;
2633
+ self._hasOutput = () => hasOutput;
2634
+ self._setHasOutput = () => {
2635
+ hasOutput = true;
2636
+ };
2637
+ let recommendCommands;
2638
+ self.recommendCommands = function (recommend = true) {
2639
+ argsert('[boolean]', [recommend], arguments.length);
2640
+ recommendCommands = recommend;
2641
+ return self;
2642
+ };
2643
+ self.getUsageInstance = () => usage$1;
2644
+ self.getValidationInstance = () => validation$1;
2645
+ self.getCommandInstance = () => command$1;
2646
+ self.terminalWidth = () => {
2647
+ argsert([], 0);
2648
+ return shim$1.process.stdColumns;
2649
+ };
2650
+ Object.defineProperty(self, 'argv', {
2651
+ get: () => self._parseArgs(processArgs),
2652
+ enumerable: true,
2653
+ });
2654
+ self._parseArgs = function parseArgs(args, shortCircuit, _calledFromCommand, commandIndex) {
2655
+ let skipValidation = !!_calledFromCommand;
2656
+ args = args || processArgs;
2657
+ options.__ = y18n.__;
2658
+ options.configuration = self.getParserConfiguration();
2659
+ const populateDoubleDash = !!options.configuration['populate--'];
2660
+ const config = Object.assign({}, options.configuration, {
2661
+ 'populate--': true,
2662
+ });
2663
+ const parsed = shim$1.Parser.detailed(args, Object.assign({}, options, {
2664
+ configuration: Object.assign({ 'parse-positional-numbers': false }, config),
2665
+ }));
2666
+ let argv = parsed.argv;
2667
+ if (parseContext)
2668
+ argv = Object.assign({}, argv, parseContext);
2669
+ const aliases = parsed.aliases;
2670
+ argv.$0 = self.$0;
2671
+ self.parsed = parsed;
2672
+ try {
2673
+ guessLocale();
2674
+ if (shortCircuit) {
2675
+ return self._postProcess(argv, populateDoubleDash, _calledFromCommand);
2676
+ }
2677
+ if (helpOpt) {
2678
+ const helpCmds = [helpOpt]
2679
+ .concat(aliases[helpOpt] || [])
2680
+ .filter(k => k.length > 1);
2681
+ if (~helpCmds.indexOf('' + argv._[argv._.length - 1])) {
2682
+ argv._.pop();
2683
+ argv[helpOpt] = true;
2684
+ }
2685
+ }
2686
+ const handlerKeys = command$1.getCommands();
2687
+ const requestCompletions = completion$1.completionKey in argv;
2688
+ const skipRecommendation = argv[helpOpt] || requestCompletions;
2689
+ const skipDefaultCommand = skipRecommendation &&
2690
+ (handlerKeys.length > 1 || handlerKeys[0] !== '$0');
2691
+ if (argv._.length) {
2692
+ if (handlerKeys.length) {
2693
+ let firstUnknownCommand;
2694
+ for (let i = commandIndex || 0, cmd; argv._[i] !== undefined; i++) {
2695
+ cmd = String(argv._[i]);
2696
+ if (~handlerKeys.indexOf(cmd) && cmd !== completionCommand) {
2697
+ const innerArgv = command$1.runCommand(cmd, self, parsed, i + 1);
2698
+ return self._postProcess(innerArgv, populateDoubleDash);
2699
+ }
2700
+ else if (!firstUnknownCommand && cmd !== completionCommand) {
2701
+ firstUnknownCommand = cmd;
2702
+ break;
2703
+ }
2704
+ }
2705
+ if (command$1.hasDefaultCommand() && !skipDefaultCommand) {
2706
+ const innerArgv = command$1.runCommand(null, self, parsed);
2707
+ return self._postProcess(innerArgv, populateDoubleDash);
2708
+ }
2709
+ if (recommendCommands && firstUnknownCommand && !skipRecommendation) {
2710
+ validation$1.recommendCommands(firstUnknownCommand, handlerKeys);
2711
+ }
2712
+ }
2713
+ if (completionCommand &&
2714
+ ~argv._.indexOf(completionCommand) &&
2715
+ !requestCompletions) {
2716
+ if (exitProcess)
2717
+ setBlocking(true);
2718
+ self.showCompletionScript();
2719
+ self.exit(0);
2720
+ }
2721
+ }
2722
+ else if (command$1.hasDefaultCommand() && !skipDefaultCommand) {
2723
+ const innerArgv = command$1.runCommand(null, self, parsed);
2724
+ return self._postProcess(innerArgv, populateDoubleDash);
2725
+ }
2726
+ if (requestCompletions) {
2727
+ if (exitProcess)
2728
+ setBlocking(true);
2729
+ args = [].concat(args);
2730
+ const completionArgs = args.slice(args.indexOf(`--${completion$1.completionKey}`) + 1);
2731
+ completion$1.getCompletion(completionArgs, completions => {
2732
+ (completions || []).forEach(completion => {
2733
+ _logger.log(completion);
2734
+ });
2735
+ self.exit(0);
2736
+ });
2737
+ return self._postProcess(argv, !populateDoubleDash, _calledFromCommand);
2738
+ }
2739
+ if (!hasOutput) {
2740
+ Object.keys(argv).forEach(key => {
2741
+ if (key === helpOpt && argv[key]) {
2742
+ if (exitProcess)
2743
+ setBlocking(true);
2744
+ skipValidation = true;
2745
+ self.showHelp('log');
2746
+ self.exit(0);
2747
+ }
2748
+ else if (key === versionOpt && argv[key]) {
2749
+ if (exitProcess)
2750
+ setBlocking(true);
2751
+ skipValidation = true;
2752
+ usage$1.showVersion();
2753
+ self.exit(0);
2754
+ }
2755
+ });
2756
+ }
2757
+ if (!skipValidation && options.skipValidation.length > 0) {
2758
+ skipValidation = Object.keys(argv).some(key => options.skipValidation.indexOf(key) >= 0 && argv[key] === true);
2759
+ }
2760
+ if (!skipValidation) {
2761
+ if (parsed.error)
2762
+ throw new YError(parsed.error.message);
2763
+ if (!requestCompletions) {
2764
+ self._runValidation(argv, aliases, {}, parsed.error);
2765
+ }
2766
+ }
2767
+ }
2768
+ catch (err) {
2769
+ if (err instanceof YError)
2770
+ usage$1.fail(err.message, err);
2771
+ else
2772
+ throw err;
2773
+ }
2774
+ return self._postProcess(argv, populateDoubleDash, _calledFromCommand);
2775
+ };
2776
+ self._postProcess = function (argv, populateDoubleDash, calledFromCommand = false) {
2777
+ if (isPromise(argv))
2778
+ return argv;
2779
+ if (calledFromCommand)
2780
+ return argv;
2781
+ if (!populateDoubleDash) {
2782
+ argv = self._copyDoubleDash(argv);
2783
+ }
2784
+ const parsePositionalNumbers = self.getParserConfiguration()['parse-positional-numbers'] ||
2785
+ self.getParserConfiguration()['parse-positional-numbers'] === undefined;
2786
+ if (parsePositionalNumbers) {
2787
+ argv = self._parsePositionalNumbers(argv);
2788
+ }
2789
+ return argv;
2790
+ };
2791
+ self._copyDoubleDash = function (argv) {
2792
+ if (!argv._ || !argv['--'])
2793
+ return argv;
2794
+ argv._.push.apply(argv._, argv['--']);
2795
+ try {
2796
+ delete argv['--'];
2797
+ }
2798
+ catch (_err) { }
2799
+ return argv;
2800
+ };
2801
+ self._parsePositionalNumbers = function (argv) {
2802
+ const args = argv['--'] ? argv['--'] : argv._;
2803
+ for (let i = 0, arg; (arg = args[i]) !== undefined; i++) {
2804
+ if (shim$1.Parser.looksLikeNumber(arg) &&
2805
+ Number.isSafeInteger(Math.floor(parseFloat(`${arg}`)))) {
2806
+ args[i] = Number(arg);
2807
+ }
2808
+ }
2809
+ return argv;
2810
+ };
2811
+ self._runValidation = function runValidation(argv, aliases, positionalMap, parseErrors, isDefaultCommand = false) {
2812
+ if (parseErrors)
2813
+ throw new YError(parseErrors.message);
2814
+ validation$1.nonOptionCount(argv);
2815
+ validation$1.requiredArguments(argv);
2816
+ let failedStrictCommands = false;
2817
+ if (strictCommands) {
2818
+ failedStrictCommands = validation$1.unknownCommands(argv);
2819
+ }
2820
+ if (strict && !failedStrictCommands) {
2821
+ validation$1.unknownArguments(argv, aliases, positionalMap, isDefaultCommand);
2822
+ }
2823
+ else if (strictOptions) {
2824
+ validation$1.unknownArguments(argv, aliases, {}, false, false);
2825
+ }
2826
+ validation$1.customChecks(argv, aliases);
2827
+ validation$1.limitedChoices(argv);
2828
+ validation$1.implications(argv);
2829
+ validation$1.conflicting(argv);
2830
+ };
2831
+ function guessLocale() {
2832
+ if (!detectLocale)
2833
+ return;
2834
+ const locale = shim$1.getEnv('LC_ALL') ||
2835
+ shim$1.getEnv('LC_MESSAGES') ||
2836
+ shim$1.getEnv('LANG') ||
2837
+ shim$1.getEnv('LANGUAGE') ||
2838
+ 'en_US';
2839
+ self.locale(locale.replace(/[.:].*/, ''));
2840
+ }
2841
+ self.help();
2842
+ self.version();
2843
+ return self;
2844
+ }
2845
+ const rebase = (base, dir) => shim$1.path.relative(base, dir);
2846
+ function isYargsInstance(y) {
2847
+ return !!y && typeof y._parseArgs === 'function';
2848
+ }
2849
+
2850
+ var _a, _b;
2851
+ const { readFileSync } = require('fs');
2852
+ const { inspect } = require('util');
2853
+ const { resolve } = require('path');
2854
+ const y18n = require('y18n');
2855
+ const Parser = require('yargs-parser');
2856
+ var cjsPlatformShim = {
2857
+ assert: {
2858
+ notStrictEqual: assert.notStrictEqual,
2859
+ strictEqual: assert.strictEqual,
2860
+ },
2861
+ cliui: require('cliui'),
2862
+ findUp: require('escalade/sync'),
2863
+ getEnv: (key) => {
2864
+ return process.env[key];
2865
+ },
2866
+ getCallerFile: require('get-caller-file'),
2867
+ getProcessArgvBin: getProcessArgvBin,
2868
+ inspect,
2869
+ mainFilename: (_b = (_a = require === null || require === void 0 ? void 0 : require.main) === null || _a === void 0 ? void 0 : _a.filename) !== null && _b !== void 0 ? _b : process.cwd(),
2870
+ Parser,
2871
+ path: require('path'),
2872
+ process: {
2873
+ argv: () => process.argv,
2874
+ cwd: process.cwd,
2875
+ execPath: () => process.execPath,
2876
+ exit: (code) => {
2877
+ process.exit(code);
2878
+ },
2879
+ nextTick: process.nextTick,
2880
+ stdColumns: typeof process.stdout.columns !== 'undefined'
2881
+ ? process.stdout.columns
2882
+ : null,
2883
+ },
2884
+ readFileSync,
2885
+ require: require,
2886
+ requireDirectory: require('require-directory'),
2887
+ stringWidth: require('string-width'),
2888
+ y18n: y18n({
2889
+ directory: resolve(__dirname, '../locales'),
2890
+ updateFiles: false,
2891
+ }),
2892
+ };
2893
+
2894
+ const minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION
2895
+ ? Number(process.env.YARGS_MIN_NODE_VERSION)
2896
+ : 10;
2897
+ if (process && process.version) {
2898
+ const major = Number(process.version.match(/v([^.]+)/)[1]);
2899
+ if (major < minNodeVersion) {
2900
+ throw Error(`yargs supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs#supported-nodejs-versions`);
2901
+ }
2902
+ }
2903
+ const Parser$1 = require('yargs-parser');
2904
+ const Yargs$1 = YargsWithShim(cjsPlatformShim);
2905
+ var cjs = {
2906
+ applyExtends,
2907
+ cjsPlatformShim,
2908
+ Yargs: Yargs$1,
2909
+ argsert,
2910
+ globalMiddlewareFactory,
2911
+ isPromise,
2912
+ objFilter,
2913
+ parseCommand,
2914
+ Parser: Parser$1,
2915
+ processArgv,
2916
+ rebase,
2917
+ YError,
2918
+ };
2919
+
2920
+ module.exports = cjs;