cloudstructs 0.9.27 → 0.9.28

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 (380) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +866 -17
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/mjml-template/index.js +1 -1
  8. package/lib/saml-identity-provider/index.js +2 -2
  9. package/lib/slack-app/manifest.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/index.js +1 -1
  12. package/lib/slack-textract/index.js +1 -1
  13. package/lib/ssl-server-test/index.js +1 -1
  14. package/lib/state-machine-cr-provider/index.js +1 -1
  15. package/lib/static-website/index.js +1 -1
  16. package/lib/toolkit-cleaner/index.js +1 -1
  17. package/lib/url-shortener/index.js +1 -1
  18. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  19. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  20. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  21. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  22. package/node_modules/@babel/runtime/package.json +1 -1
  23. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  24. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +55 -0
  25. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -7
  27. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +2 -2
  28. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +45 -98
  29. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -57
  30. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -0
  31. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +527 -234
  32. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +30 -5
  33. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  34. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +5 -0
  35. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +54 -4
  36. package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +207 -2
  38. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +6 -1
  39. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +40 -138
  40. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +85 -17
  41. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +1 -1
  42. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  43. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +55 -0
  44. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  45. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -7
  46. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +2 -2
  47. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +45 -98
  48. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -57
  49. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -0
  50. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +527 -234
  51. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +30 -5
  52. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  53. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +5 -0
  54. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +54 -4
  55. package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
  56. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +207 -2
  57. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +6 -1
  58. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +40 -138
  59. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +85 -17
  60. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +1 -1
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -7
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +45 -98
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -57
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +527 -234
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +30 -5
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +54 -4
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +207 -2
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +6 -1
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +40 -138
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +85 -17
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
  80. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
  82. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -7
  84. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  85. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +45 -98
  86. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -57
  87. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +527 -234
  89. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +30 -5
  90. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  91. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +54 -4
  93. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  94. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +207 -2
  95. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +6 -1
  96. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
  97. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +85 -17
  98. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
  99. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
  101. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  102. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -7
  103. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  104. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +45 -98
  105. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -57
  106. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
  107. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +527 -234
  108. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +30 -5
  109. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  110. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
  111. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +54 -4
  112. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  113. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +207 -2
  114. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +6 -1
  115. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
  116. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +85 -17
  117. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
  118. package/node_modules/abbrev/package.json +11 -9
  119. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  120. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  121. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  122. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  123. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  124. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  125. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  126. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  127. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  128. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  129. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  130. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  131. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  132. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  133. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  134. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  135. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  136. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  137. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  138. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  139. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  140. package/node_modules/dunder-proto/.eslintrc +5 -0
  141. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  142. package/node_modules/dunder-proto/.nycrc +13 -0
  143. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  144. package/node_modules/dunder-proto/LICENSE +21 -0
  145. package/node_modules/dunder-proto/README.md +54 -0
  146. package/node_modules/dunder-proto/get.d.ts +5 -0
  147. package/node_modules/dunder-proto/get.js +30 -0
  148. package/node_modules/dunder-proto/package.json +76 -0
  149. package/node_modules/dunder-proto/set.d.ts +5 -0
  150. package/node_modules/dunder-proto/set.js +35 -0
  151. package/node_modules/dunder-proto/test/get.js +34 -0
  152. package/node_modules/dunder-proto/test/index.js +4 -0
  153. package/node_modules/dunder-proto/test/set.js +50 -0
  154. package/node_modules/dunder-proto/tsconfig.json +9 -0
  155. package/node_modules/es-define-property/.eslintrc +13 -0
  156. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  157. package/node_modules/es-define-property/.nycrc +9 -0
  158. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  159. package/node_modules/es-define-property/LICENSE +21 -0
  160. package/node_modules/es-define-property/README.md +49 -0
  161. package/node_modules/es-define-property/index.d.ts +3 -0
  162. package/node_modules/es-define-property/index.js +14 -0
  163. package/node_modules/es-define-property/package.json +81 -0
  164. package/node_modules/es-define-property/test/index.js +56 -0
  165. package/node_modules/es-define-property/tsconfig.json +10 -0
  166. package/node_modules/es-errors/.eslintrc +5 -0
  167. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  168. package/node_modules/es-errors/CHANGELOG.md +40 -0
  169. package/node_modules/es-errors/LICENSE +21 -0
  170. package/node_modules/es-errors/README.md +55 -0
  171. package/node_modules/es-errors/eval.d.ts +3 -0
  172. package/node_modules/es-errors/eval.js +4 -0
  173. package/node_modules/es-errors/index.d.ts +3 -0
  174. package/node_modules/es-errors/index.js +4 -0
  175. package/node_modules/es-errors/package.json +80 -0
  176. package/node_modules/es-errors/range.d.ts +3 -0
  177. package/node_modules/es-errors/range.js +4 -0
  178. package/node_modules/es-errors/ref.d.ts +3 -0
  179. package/node_modules/es-errors/ref.js +4 -0
  180. package/node_modules/es-errors/syntax.d.ts +3 -0
  181. package/node_modules/es-errors/syntax.js +4 -0
  182. package/node_modules/es-errors/test/index.js +19 -0
  183. package/node_modules/es-errors/tsconfig.json +49 -0
  184. package/node_modules/es-errors/type.d.ts +3 -0
  185. package/node_modules/es-errors/type.js +4 -0
  186. package/node_modules/es-errors/uri.d.ts +3 -0
  187. package/node_modules/es-errors/uri.js +4 -0
  188. package/node_modules/es-object-atoms/.eslintrc +16 -0
  189. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  190. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  191. package/node_modules/es-object-atoms/LICENSE +21 -0
  192. package/node_modules/es-object-atoms/README.md +63 -0
  193. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  194. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  195. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  196. package/node_modules/es-object-atoms/ToObject.js +10 -0
  197. package/node_modules/es-object-atoms/index.d.ts +3 -0
  198. package/node_modules/es-object-atoms/index.js +4 -0
  199. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  200. package/node_modules/es-object-atoms/isObject.js +6 -0
  201. package/node_modules/es-object-atoms/package.json +80 -0
  202. package/node_modules/es-object-atoms/test/index.js +38 -0
  203. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  204. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  205. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  206. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  207. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  208. package/node_modules/es-set-tostringtag/README.md +53 -0
  209. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  210. package/node_modules/es-set-tostringtag/index.js +35 -0
  211. package/node_modules/es-set-tostringtag/package.json +78 -0
  212. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  213. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  214. package/node_modules/form-data/lib/form_data.js +24 -22
  215. package/node_modules/form-data/package.json +17 -14
  216. package/node_modules/function-bind/.eslintrc +21 -0
  217. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  218. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  219. package/node_modules/function-bind/.nycrc +13 -0
  220. package/node_modules/function-bind/CHANGELOG.md +136 -0
  221. package/node_modules/function-bind/LICENSE +20 -0
  222. package/node_modules/function-bind/README.md +46 -0
  223. package/node_modules/function-bind/implementation.js +84 -0
  224. package/node_modules/function-bind/index.js +5 -0
  225. package/node_modules/function-bind/package.json +87 -0
  226. package/node_modules/function-bind/test/.eslintrc +9 -0
  227. package/node_modules/function-bind/test/index.js +252 -0
  228. package/node_modules/get-intrinsic/.eslintrc +42 -0
  229. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  230. package/node_modules/get-intrinsic/.nycrc +9 -0
  231. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  232. package/node_modules/get-intrinsic/LICENSE +21 -0
  233. package/node_modules/get-intrinsic/README.md +71 -0
  234. package/node_modules/get-intrinsic/index.js +378 -0
  235. package/node_modules/get-intrinsic/package.json +97 -0
  236. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  237. package/node_modules/get-proto/.eslintrc +10 -0
  238. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  239. package/node_modules/get-proto/.nycrc +9 -0
  240. package/node_modules/get-proto/CHANGELOG.md +21 -0
  241. package/node_modules/get-proto/LICENSE +21 -0
  242. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  243. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  244. package/node_modules/get-proto/README.md +50 -0
  245. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  246. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  247. package/node_modules/get-proto/index.d.ts +5 -0
  248. package/node_modules/get-proto/index.js +27 -0
  249. package/node_modules/get-proto/package.json +81 -0
  250. package/node_modules/get-proto/test/index.js +68 -0
  251. package/node_modules/get-proto/tsconfig.json +9 -0
  252. package/node_modules/gopd/.eslintrc +16 -0
  253. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  254. package/node_modules/gopd/CHANGELOG.md +45 -0
  255. package/node_modules/gopd/LICENSE +21 -0
  256. package/node_modules/gopd/README.md +40 -0
  257. package/node_modules/gopd/gOPD.d.ts +1 -0
  258. package/node_modules/gopd/gOPD.js +4 -0
  259. package/node_modules/gopd/index.d.ts +5 -0
  260. package/node_modules/gopd/index.js +15 -0
  261. package/node_modules/gopd/package.json +77 -0
  262. package/node_modules/gopd/test/index.js +36 -0
  263. package/node_modules/gopd/tsconfig.json +9 -0
  264. package/node_modules/has-symbols/.eslintrc +11 -0
  265. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  266. package/node_modules/has-symbols/.nycrc +9 -0
  267. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  268. package/node_modules/has-symbols/LICENSE +21 -0
  269. package/node_modules/has-symbols/README.md +46 -0
  270. package/node_modules/has-symbols/index.d.ts +3 -0
  271. package/node_modules/has-symbols/index.js +14 -0
  272. package/node_modules/has-symbols/package.json +111 -0
  273. package/node_modules/has-symbols/shams.d.ts +3 -0
  274. package/node_modules/has-symbols/shams.js +45 -0
  275. package/node_modules/has-symbols/test/index.js +22 -0
  276. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  277. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  278. package/node_modules/has-symbols/test/tests.js +58 -0
  279. package/node_modules/has-symbols/tsconfig.json +10 -0
  280. package/node_modules/has-tostringtag/.eslintrc +5 -0
  281. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  282. package/node_modules/has-tostringtag/.nycrc +13 -0
  283. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  284. package/node_modules/has-tostringtag/LICENSE +21 -0
  285. package/node_modules/has-tostringtag/README.md +46 -0
  286. package/node_modules/has-tostringtag/index.d.ts +3 -0
  287. package/node_modules/has-tostringtag/index.js +8 -0
  288. package/node_modules/has-tostringtag/package.json +108 -0
  289. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  290. package/node_modules/has-tostringtag/shams.js +8 -0
  291. package/node_modules/has-tostringtag/test/index.js +21 -0
  292. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  293. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  294. package/node_modules/has-tostringtag/test/tests.js +15 -0
  295. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  296. package/node_modules/hasown/.eslintrc +5 -0
  297. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  298. package/node_modules/hasown/.nycrc +13 -0
  299. package/node_modules/hasown/CHANGELOG.md +40 -0
  300. package/node_modules/hasown/LICENSE +21 -0
  301. package/node_modules/hasown/README.md +40 -0
  302. package/node_modules/hasown/index.d.ts +3 -0
  303. package/node_modules/hasown/index.js +8 -0
  304. package/node_modules/hasown/package.json +92 -0
  305. package/node_modules/hasown/tsconfig.json +6 -0
  306. package/node_modules/js-beautify/README.md +19 -8
  307. package/node_modules/js-beautify/js/lib/beautifier.js +35 -18
  308. package/node_modules/js-beautify/js/lib/beautifier.min.js +1 -1
  309. package/node_modules/js-beautify/js/lib/beautify-html.js +35 -18
  310. package/node_modules/js-beautify/js/lib/beautify.js +4 -0
  311. package/node_modules/js-beautify/js/src/core/templatablepattern.js +4 -0
  312. package/node_modules/js-beautify/js/src/html/beautifier.js +5 -4
  313. package/node_modules/js-beautify/js/src/html/tokenizer.js +26 -14
  314. package/node_modules/js-beautify/package.json +5 -5
  315. package/node_modules/math-intrinsics/.eslintrc +16 -0
  316. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  317. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  318. package/node_modules/math-intrinsics/LICENSE +21 -0
  319. package/node_modules/math-intrinsics/README.md +50 -0
  320. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  321. package/node_modules/math-intrinsics/abs.js +4 -0
  322. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  323. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  324. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  325. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  326. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  327. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  328. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  329. package/node_modules/math-intrinsics/floor.js +4 -0
  330. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  331. package/node_modules/math-intrinsics/isFinite.js +12 -0
  332. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  333. package/node_modules/math-intrinsics/isInteger.js +16 -0
  334. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  335. package/node_modules/math-intrinsics/isNaN.js +6 -0
  336. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  337. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  338. package/node_modules/math-intrinsics/max.d.ts +1 -0
  339. package/node_modules/math-intrinsics/max.js +4 -0
  340. package/node_modules/math-intrinsics/min.d.ts +1 -0
  341. package/node_modules/math-intrinsics/min.js +4 -0
  342. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  343. package/node_modules/math-intrinsics/mod.js +9 -0
  344. package/node_modules/math-intrinsics/package.json +86 -0
  345. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  346. package/node_modules/math-intrinsics/pow.js +4 -0
  347. package/node_modules/math-intrinsics/round.d.ts +1 -0
  348. package/node_modules/math-intrinsics/round.js +4 -0
  349. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  350. package/node_modules/math-intrinsics/sign.js +11 -0
  351. package/node_modules/math-intrinsics/test/index.js +192 -0
  352. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  353. package/node_modules/nopt/README.md +9 -8
  354. package/node_modules/nopt/lib/nopt-lib.js +40 -5
  355. package/node_modules/nopt/lib/nopt.js +4 -0
  356. package/node_modules/nopt/package.json +10 -9
  357. package/node_modules/semver/README.md +14 -4
  358. package/node_modules/semver/bin/semver.js +2 -1
  359. package/node_modules/semver/classes/semver.js +22 -6
  360. package/node_modules/semver/functions/diff.js +5 -12
  361. package/node_modules/semver/internal/re.js +2 -0
  362. package/node_modules/semver/package.json +8 -7
  363. package/package.json +17 -17
  364. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/LICENSE +0 -0
  365. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/README.md +0 -0
  366. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts +0 -0
  367. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts.map +0 -0
  368. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js +0 -0
  369. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js.map +0 -0
  370. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js +0 -0
  371. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js.map +0 -0
  372. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/package.json +0 -0
  373. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts +0 -0
  374. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts.map +0 -0
  375. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js +0 -0
  376. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js.map +0 -0
  377. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js +0 -0
  378. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js.map +0 -0
  379. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/package.json +0 -0
  380. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/package.json +0 -0
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "math-intrinsics",
3
+ "version": "1.1.0",
4
+ "description": "ES Math-related intrinsics and helpers, robustly cached.",
5
+ "main": false,
6
+ "exports": {
7
+ "./abs": "./abs.js",
8
+ "./floor": "./floor.js",
9
+ "./isFinite": "./isFinite.js",
10
+ "./isInteger": "./isInteger.js",
11
+ "./isNaN": "./isNaN.js",
12
+ "./isNegativeZero": "./isNegativeZero.js",
13
+ "./max": "./max.js",
14
+ "./min": "./min.js",
15
+ "./mod": "./mod.js",
16
+ "./pow": "./pow.js",
17
+ "./sign": "./sign.js",
18
+ "./round": "./round.js",
19
+ "./constants/maxArrayLength": "./constants/maxArrayLength.js",
20
+ "./constants/maxSafeInteger": "./constants/maxSafeInteger.js",
21
+ "./constants/maxValue": "./constants/maxValue.js",
22
+ "./package.json": "./package.json"
23
+ },
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "prepack": "npmignore --auto --commentLines=autogenerated",
27
+ "prepublishOnly": "safe-publish-latest",
28
+ "prepublish": "not-in-publish || npm run prepublishOnly",
29
+ "pretest": "npm run lint",
30
+ "test": "npm run tests-only",
31
+ "tests-only": "nyc tape 'test/**/*.js'",
32
+ "posttest": "npx npm@'>= 10.2' audit --production",
33
+ "prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
34
+ "lint": "eslint --ext=js,mjs .",
35
+ "postlint": "tsc && attw -P",
36
+ "version": "auto-changelog && git add CHANGELOG.md",
37
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/es-shims/math-intrinsics.git"
42
+ },
43
+ "author": "Jordan Harband <ljharb@gmail.com>",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/es-shims/math-intrinsics/issues"
47
+ },
48
+ "homepage": "https://github.com/es-shims/math-intrinsics#readme",
49
+ "devDependencies": {
50
+ "@arethetypeswrong/cli": "^0.17.1",
51
+ "@ljharb/eslint-config": "^21.1.1",
52
+ "@ljharb/tsconfig": "^0.2.2",
53
+ "@types/for-each": "^0.3.3",
54
+ "@types/object-inspect": "^1.13.0",
55
+ "@types/tape": "^5.8.0",
56
+ "auto-changelog": "^2.5.0",
57
+ "eclint": "^2.8.1",
58
+ "es-value-fixtures": "^1.5.0",
59
+ "eslint": "^8.8.0",
60
+ "evalmd": "^0.0.19",
61
+ "for-each": "^0.3.3",
62
+ "in-publish": "^2.0.1",
63
+ "npmignore": "^0.3.1",
64
+ "nyc": "^10.3.2",
65
+ "object-inspect": "^1.13.3",
66
+ "safe-publish-latest": "^2.0.0",
67
+ "tape": "^5.9.0",
68
+ "typescript": "next"
69
+ },
70
+ "auto-changelog": {
71
+ "output": "CHANGELOG.md",
72
+ "template": "keepachangelog",
73
+ "unreleased": false,
74
+ "commitLimit": false,
75
+ "backfillLimit": false,
76
+ "hideCredit": true
77
+ },
78
+ "publishConfig": {
79
+ "ignore": [
80
+ ".github/workflows"
81
+ ]
82
+ },
83
+ "engines": {
84
+ "node": ">= 0.4"
85
+ }
86
+ }
@@ -0,0 +1 @@
1
+ export = Math.pow;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./pow')} */
4
+ module.exports = Math.pow;
@@ -0,0 +1 @@
1
+ export = Math.round;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./round')} */
4
+ module.exports = Math.round;
@@ -0,0 +1,3 @@
1
+ declare function sign(x: number): number;
2
+
3
+ export = sign;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var $isNaN = require('./isNaN');
4
+
5
+ /** @type {import('./sign')} */
6
+ module.exports = function sign(number) {
7
+ if ($isNaN(number) || number === 0) {
8
+ return number;
9
+ }
10
+ return number < 0 ? -1 : +1;
11
+ };
@@ -0,0 +1,192 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+ var v = require('es-value-fixtures');
5
+ var forEach = require('for-each');
6
+ var inspect = require('object-inspect');
7
+
8
+ var abs = require('../abs');
9
+ var floor = require('../floor');
10
+ var isFinite = require('../isFinite');
11
+ var isInteger = require('../isInteger');
12
+ var isNaN = require('../isNaN');
13
+ var isNegativeZero = require('../isNegativeZero');
14
+ var max = require('../max');
15
+ var min = require('../min');
16
+ var mod = require('../mod');
17
+ var pow = require('../pow');
18
+ var round = require('../round');
19
+ var sign = require('../sign');
20
+
21
+ var maxArrayLength = require('../constants/maxArrayLength');
22
+ var maxSafeInteger = require('../constants/maxSafeInteger');
23
+ var maxValue = require('../constants/maxValue');
24
+
25
+ test('abs', function (t) {
26
+ t.equal(abs(-1), 1, 'abs(-1) === 1');
27
+ t.equal(abs(+1), 1, 'abs(+1) === 1');
28
+ t.equal(abs(+0), +0, 'abs(+0) === +0');
29
+ t.equal(abs(-0), +0, 'abs(-0) === +0');
30
+
31
+ t.end();
32
+ });
33
+
34
+ test('floor', function (t) {
35
+ t.equal(floor(-1.1), -2, 'floor(-1.1) === -2');
36
+ t.equal(floor(+1.1), 1, 'floor(+1.1) === 1');
37
+ t.equal(floor(+0), +0, 'floor(+0) === +0');
38
+ t.equal(floor(-0), -0, 'floor(-0) === -0');
39
+ t.equal(floor(-Infinity), -Infinity, 'floor(-Infinity) === -Infinity');
40
+ t.equal(floor(Number(Infinity)), Number(Infinity), 'floor(+Infinity) === +Infinity');
41
+ t.equal(floor(NaN), NaN, 'floor(NaN) === NaN');
42
+ t.equal(floor(0), +0, 'floor(0) === +0');
43
+ t.equal(floor(-0), -0, 'floor(-0) === -0');
44
+ t.equal(floor(1), 1, 'floor(1) === 1');
45
+ t.equal(floor(-1), -1, 'floor(-1) === -1');
46
+ t.equal(floor(1.1), 1, 'floor(1.1) === 1');
47
+ t.equal(floor(-1.1), -2, 'floor(-1.1) === -2');
48
+ t.equal(floor(maxValue), maxValue, 'floor(maxValue) === maxValue');
49
+ t.equal(floor(maxSafeInteger), maxSafeInteger, 'floor(maxSafeInteger) === maxSafeInteger');
50
+
51
+ t.end();
52
+ });
53
+
54
+ test('isFinite', function (t) {
55
+ t.equal(isFinite(0), true, 'isFinite(+0) === true');
56
+ t.equal(isFinite(-0), true, 'isFinite(-0) === true');
57
+ t.equal(isFinite(1), true, 'isFinite(1) === true');
58
+ t.equal(isFinite(Infinity), false, 'isFinite(Infinity) === false');
59
+ t.equal(isFinite(-Infinity), false, 'isFinite(-Infinity) === false');
60
+ t.equal(isFinite(NaN), false, 'isFinite(NaN) === false');
61
+
62
+ forEach(v.nonNumbers, function (nonNumber) {
63
+ t.equal(isFinite(nonNumber), false, 'isFinite(' + inspect(nonNumber) + ') === false');
64
+ });
65
+
66
+ t.end();
67
+ });
68
+
69
+ test('isInteger', function (t) {
70
+ forEach([].concat(
71
+ // @ts-expect-error TS sucks with concat
72
+ v.nonNumbers,
73
+ v.nonIntegerNumbers
74
+ ), function (nonInteger) {
75
+ t.equal(isInteger(nonInteger), false, 'isInteger(' + inspect(nonInteger) + ') === false');
76
+ });
77
+
78
+ t.end();
79
+ });
80
+
81
+ test('isNaN', function (t) {
82
+ forEach([].concat(
83
+ // @ts-expect-error TS sucks with concat
84
+ v.nonNumbers,
85
+ v.infinities,
86
+ v.zeroes,
87
+ v.integerNumbers
88
+ ), function (nonNaN) {
89
+ t.equal(isNaN(nonNaN), false, 'isNaN(' + inspect(nonNaN) + ') === false');
90
+ });
91
+
92
+ t.equal(isNaN(NaN), true, 'isNaN(NaN) === true');
93
+
94
+ t.end();
95
+ });
96
+
97
+ test('isNegativeZero', function (t) {
98
+ t.equal(isNegativeZero(-0), true, 'isNegativeZero(-0) === true');
99
+ t.equal(isNegativeZero(+0), false, 'isNegativeZero(+0) === false');
100
+ t.equal(isNegativeZero(1), false, 'isNegativeZero(1) === false');
101
+ t.equal(isNegativeZero(-1), false, 'isNegativeZero(-1) === false');
102
+ t.equal(isNegativeZero(NaN), false, 'isNegativeZero(NaN) === false');
103
+ t.equal(isNegativeZero(Infinity), false, 'isNegativeZero(Infinity) === false');
104
+ t.equal(isNegativeZero(-Infinity), false, 'isNegativeZero(-Infinity) === false');
105
+
106
+ forEach(v.nonNumbers, function (nonNumber) {
107
+ t.equal(isNegativeZero(nonNumber), false, 'isNegativeZero(' + inspect(nonNumber) + ') === false');
108
+ });
109
+
110
+ t.end();
111
+ });
112
+
113
+ test('max', function (t) {
114
+ t.equal(max(1, 2), 2, 'max(1, 2) === 2');
115
+ t.equal(max(1, 2, 3), 3, 'max(1, 2, 3) === 3');
116
+ t.equal(max(1, 2, 3, 4), 4, 'max(1, 2, 3, 4) === 4');
117
+ t.equal(max(1, 2, 3, 4, 5), 5, 'max(1, 2, 3, 4, 5) === 5');
118
+ t.equal(max(1, 2, 3, 4, 5, 6), 6, 'max(1, 2, 3, 4, 5, 6) === 6');
119
+ t.equal(max(1, 2, 3, 4, 5, 6, 7), 7, 'max(1, 2, 3, 4, 5, 6, 7) === 7');
120
+
121
+ t.end();
122
+ });
123
+
124
+ test('min', function (t) {
125
+ t.equal(min(1, 2), 1, 'min(1, 2) === 1');
126
+ t.equal(min(1, 2, 3), 1, 'min(1, 2, 3) === 1');
127
+ t.equal(min(1, 2, 3, 4), 1, 'min(1, 2, 3, 4) === 1');
128
+ t.equal(min(1, 2, 3, 4, 5), 1, 'min(1, 2, 3, 4, 5) === 1');
129
+ t.equal(min(1, 2, 3, 4, 5, 6), 1, 'min(1, 2, 3, 4, 5, 6) === 1');
130
+
131
+ t.end();
132
+ });
133
+
134
+ test('mod', function (t) {
135
+ t.equal(mod(1, 2), 1, 'mod(1, 2) === 1');
136
+ t.equal(mod(2, 2), 0, 'mod(2, 2) === 0');
137
+ t.equal(mod(3, 2), 1, 'mod(3, 2) === 1');
138
+ t.equal(mod(4, 2), 0, 'mod(4, 2) === 0');
139
+ t.equal(mod(5, 2), 1, 'mod(5, 2) === 1');
140
+ t.equal(mod(6, 2), 0, 'mod(6, 2) === 0');
141
+ t.equal(mod(7, 2), 1, 'mod(7, 2) === 1');
142
+ t.equal(mod(8, 2), 0, 'mod(8, 2) === 0');
143
+ t.equal(mod(9, 2), 1, 'mod(9, 2) === 1');
144
+ t.equal(mod(10, 2), 0, 'mod(10, 2) === 0');
145
+ t.equal(mod(11, 2), 1, 'mod(11, 2) === 1');
146
+
147
+ t.end();
148
+ });
149
+
150
+ test('pow', function (t) {
151
+ t.equal(pow(2, 2), 4, 'pow(2, 2) === 4');
152
+ t.equal(pow(2, 3), 8, 'pow(2, 3) === 8');
153
+ t.equal(pow(2, 4), 16, 'pow(2, 4) === 16');
154
+ t.equal(pow(2, 5), 32, 'pow(2, 5) === 32');
155
+ t.equal(pow(2, 6), 64, 'pow(2, 6) === 64');
156
+ t.equal(pow(2, 7), 128, 'pow(2, 7) === 128');
157
+ t.equal(pow(2, 8), 256, 'pow(2, 8) === 256');
158
+ t.equal(pow(2, 9), 512, 'pow(2, 9) === 512');
159
+ t.equal(pow(2, 10), 1024, 'pow(2, 10) === 1024');
160
+
161
+ t.end();
162
+ });
163
+
164
+ test('round', function (t) {
165
+ t.equal(round(1.1), 1, 'round(1.1) === 1');
166
+ t.equal(round(1.5), 2, 'round(1.5) === 2');
167
+ t.equal(round(1.9), 2, 'round(1.9) === 2');
168
+
169
+ t.end();
170
+ });
171
+
172
+ test('sign', function (t) {
173
+ t.equal(sign(-1), -1, 'sign(-1) === -1');
174
+ t.equal(sign(+1), +1, 'sign(+1) === +1');
175
+ t.equal(sign(+0), +0, 'sign(+0) === +0');
176
+ t.equal(sign(-0), -0, 'sign(-0) === -0');
177
+ t.equal(sign(NaN), NaN, 'sign(NaN) === NaN');
178
+ t.equal(sign(Infinity), +1, 'sign(Infinity) === +1');
179
+ t.equal(sign(-Infinity), -1, 'sign(-Infinity) === -1');
180
+ t.equal(sign(maxValue), +1, 'sign(maxValue) === +1');
181
+ t.equal(sign(maxSafeInteger), +1, 'sign(maxSafeInteger) === +1');
182
+
183
+ t.end();
184
+ });
185
+
186
+ test('constants', function (t) {
187
+ t.equal(typeof maxArrayLength, 'number', 'typeof maxArrayLength === "number"');
188
+ t.equal(typeof maxSafeInteger, 'number', 'typeof maxSafeInteger === "number"');
189
+ t.equal(typeof maxValue, 'number', 'typeof maxValue === "number"');
190
+
191
+ t.end();
192
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ }
@@ -141,14 +141,15 @@ config object and remove its invalid properties.
141
141
 
142
142
  ## Error Handling
143
143
 
144
- By default, nopt outputs a warning to standard error when invalid values for
145
- known options are found. You can change this behavior by assigning a method
146
- to `nopt.invalidHandler`. This method will be called with
147
- the offending `nopt.invalidHandler(key, val, types)`.
148
-
149
- If no `nopt.invalidHandler` is assigned, then it will console.error
150
- its whining. If it is assigned to boolean `false` then the warning is
151
- suppressed.
144
+ By default nopt logs debug messages if `DEBUG_NOPT` or `NOPT_DEBUG` are set in the environment.
145
+
146
+ You can assign the following methods to `nopt` for a more granular notification of invalid, unknown, and expanding options:
147
+
148
+ `nopt.invalidHandler(key, value, type, data)` - Called when a value is invalid for its option.
149
+ `nopt.unknownHandler(key, next)` - Called when an option is found that has no configuration. In certain situations the next option on the command line will be parsed on its own instead of as part of the unknown option. In this case `next` will contain that option.
150
+ `nopt.abbrevHandler(short, long)` - Called when an option is automatically translated via abbreviations.
151
+
152
+ You can also set any of these to `false` to disable the debugging messages that they generate.
152
153
 
153
154
  ## Abbreviations
154
155
 
@@ -25,7 +25,9 @@ function nopt (args, {
25
25
  types,
26
26
  shorthands,
27
27
  typeDefs,
28
- invalidHandler,
28
+ invalidHandler, // opt is configured but its value does not validate against given type
29
+ unknownHandler, // opt is not configured
30
+ abbrevHandler, // opt is being expanded via abbrev
29
31
  typeDefault,
30
32
  dynamicTypes,
31
33
  } = {}) {
@@ -38,7 +40,9 @@ function nopt (args, {
38
40
  original: args.slice(0),
39
41
  }
40
42
 
41
- parse(args, data, argv.remain, { typeDefs, types, dynamicTypes, shorthands })
43
+ parse(args, data, argv.remain, {
44
+ typeDefs, types, dynamicTypes, shorthands, unknownHandler, abbrevHandler,
45
+ })
42
46
 
43
47
  // now data is full
44
48
  clean(data, { types, dynamicTypes, typeDefs, invalidHandler, typeDefault })
@@ -247,6 +251,8 @@ function parse (args, data, remain, {
247
251
  typeDefs = {},
248
252
  shorthands = {},
249
253
  dynamicTypes,
254
+ unknownHandler,
255
+ abbrevHandler,
250
256
  } = {}) {
251
257
  const StringType = typeDefs.String?.type
252
258
  const NumberType = typeDefs.Number?.type
@@ -282,7 +288,7 @@ function parse (args, data, remain, {
282
288
 
283
289
  // see if it's a shorthand
284
290
  // if so, splice and back up to re-parse it.
285
- const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands })
291
+ const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands, abbrevHandler })
286
292
  debug('arg=%j shRes=%j', arg, shRes)
287
293
  if (shRes) {
288
294
  args.splice.apply(args, [i, 1].concat(shRes))
@@ -298,7 +304,13 @@ function parse (args, data, remain, {
298
304
  arg = arg.slice(3)
299
305
  }
300
306
 
301
- if (abbrevs[arg]) {
307
+ // abbrev includes the original full string in its abbrev list
308
+ if (abbrevs[arg] && abbrevs[arg] !== arg) {
309
+ if (abbrevHandler) {
310
+ abbrevHandler(arg, abbrevs[arg])
311
+ } else if (abbrevHandler !== false) {
312
+ debug(`abbrev: ${arg} -> ${abbrevs[arg]}`)
313
+ }
302
314
  arg = abbrevs[arg]
303
315
  }
304
316
 
@@ -331,6 +343,23 @@ function parse (args, data, remain, {
331
343
  (argType === null ||
332
344
  isTypeArray && ~argType.indexOf(null)))
333
345
 
346
+ if (typeof argType === 'undefined') {
347
+ // la is going to unexpectedly be parsed outside the context of this arg
348
+ const hangingLa = !hadEq && la && !la?.startsWith('-') && !['true', 'false'].includes(la)
349
+ if (unknownHandler) {
350
+ if (hangingLa) {
351
+ unknownHandler(arg, la)
352
+ } else {
353
+ unknownHandler(arg)
354
+ }
355
+ } else if (unknownHandler !== false) {
356
+ debug(`unknown: ${arg}`)
357
+ if (hangingLa) {
358
+ debug(`unknown: ${la} parsed as normal opt`)
359
+ }
360
+ }
361
+ }
362
+
334
363
  if (isBool) {
335
364
  // just set and move along
336
365
  val = !no
@@ -420,7 +449,7 @@ const singleCharacters = (arg, shorthands) => {
420
449
  }
421
450
 
422
451
  function resolveShort (arg, ...rest) {
423
- const { types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
452
+ const { abbrevHandler, types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
424
453
  const shortAbbr = rest[0] ?? abbrev(Object.keys(shorthands))
425
454
  const abbrevs = rest[1] ?? abbrev(Object.keys(types))
426
455
 
@@ -457,7 +486,13 @@ function resolveShort (arg, ...rest) {
457
486
  }
458
487
 
459
488
  // if it's an abbr for a shorthand, then use that
489
+ // exact match has already happened so we don't need to account for that here
460
490
  if (shortAbbr[arg]) {
491
+ if (abbrevHandler) {
492
+ abbrevHandler(arg, shortAbbr[arg])
493
+ } else if (abbrevHandler !== false) {
494
+ debug(`abbrev: ${arg} -> ${shortAbbr[arg]}`)
495
+ }
461
496
  arg = shortAbbr[arg]
462
497
  }
463
498
 
@@ -18,6 +18,8 @@ function nopt (types, shorthands, args = process.argv, slice = 2) {
18
18
  shorthands: shorthands || {},
19
19
  typeDefs: exports.typeDefs,
20
20
  invalidHandler: exports.invalidHandler,
21
+ unknownHandler: exports.unknownHandler,
22
+ abbrevHandler: exports.abbrevHandler,
21
23
  })
22
24
  }
23
25
 
@@ -26,5 +28,7 @@ function clean (data, types, typeDefs = exports.typeDefs) {
26
28
  types: types || {},
27
29
  typeDefs,
28
30
  invalidHandler: exports.invalidHandler,
31
+ unknownHandler: exports.unknownHandler,
32
+ abbrevHandler: exports.abbrevHandler,
29
33
  })
30
34
  }
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "nopt",
3
- "version": "7.2.1",
3
+ "version": "8.1.0",
4
4
  "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",
5
5
  "author": "GitHub Inc.",
6
6
  "main": "lib/nopt.js",
7
7
  "scripts": {
8
8
  "test": "tap",
9
- "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
9
+ "lint": "npm run eslint",
10
10
  "postlint": "template-oss-check",
11
11
  "template-oss-apply": "template-oss-apply --force",
12
- "lintfix": "npm run lint -- --fix",
12
+ "lintfix": "npm run eslint -- --fix",
13
13
  "snap": "tap",
14
- "posttest": "npm run lint"
14
+ "posttest": "npm run lint",
15
+ "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -22,11 +23,11 @@
22
23
  },
23
24
  "license": "ISC",
24
25
  "dependencies": {
25
- "abbrev": "^2.0.0"
26
+ "abbrev": "^3.0.0"
26
27
  },
27
28
  "devDependencies": {
28
- "@npmcli/eslint-config": "^4.0.0",
29
- "@npmcli/template-oss": "4.22.0",
29
+ "@npmcli/eslint-config": "^5.0.0",
30
+ "@npmcli/template-oss": "4.23.6",
30
31
  "tap": "^16.3.0"
31
32
  },
32
33
  "tap": {
@@ -40,12 +41,12 @@
40
41
  "lib/"
41
42
  ],
42
43
  "engines": {
43
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
44
+ "node": "^18.17.0 || >=20.5.0"
44
45
  },
45
46
  "templateOSS": {
46
47
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
47
48
  "windowsCI": false,
48
- "version": "4.22.0",
49
+ "version": "4.23.6",
49
50
  "publish": true
50
51
  }
51
52
  }
@@ -100,7 +100,7 @@ Options:
100
100
  -i --increment [<level>]
101
101
  Increment a version by the specified level. Level can
102
102
  be one of: major, minor, patch, premajor, preminor,
103
- prepatch, or prerelease. Default level is 'patch'.
103
+ prepatch, prerelease, or release. Default level is 'patch'.
104
104
  Only one version may be specified.
105
105
 
106
106
  --preid <identifier>
@@ -141,6 +141,8 @@ A "version" is described by the `v2.0.0` specification found at
141
141
  <https://semver.org/>.
142
142
 
143
143
  A leading `"="` or `"v"` character is stripped off and ignored.
144
+ Support for stripping a leading "v" is kept for compatibility with `v1.0.0` of the SemVer
145
+ specification but should not be used anymore.
144
146
 
145
147
  ## Ranges
146
148
 
@@ -237,6 +239,13 @@ $ semver 1.2.4-beta.0 -i prerelease
237
239
  1.2.4-beta.1
238
240
  ```
239
241
 
242
+ To get out of the prerelease phase, use the `release` option:
243
+
244
+ ```bash
245
+ $ semver 1.2.4-beta.1 -i release
246
+ 1.2.4
247
+ ```
248
+
240
249
  #### Prerelease Identifier Base
241
250
 
242
251
  The method `.inc` takes an optional parameter 'identifierBase' string
@@ -415,10 +424,10 @@ Strict-mode Comparators and Ranges will be strict about the SemVer
415
424
  strings that they parse.
416
425
 
417
426
  * `valid(v)`: Return the parsed version, or null if it's not valid.
418
- * `inc(v, release, options, identifier, identifierBase)`:
427
+ * `inc(v, releaseType, options, identifier, identifierBase)`:
419
428
  Return the version incremented by the release
420
429
  type (`major`, `premajor`, `minor`, `preminor`, `patch`,
421
- `prepatch`, or `prerelease`), or null if it's not valid
430
+ `prepatch`, `prerelease`, or `release`), or null if it's not valid
422
431
  * `premajor` in one call will bump the version up to the next major
423
432
  version and down to a prerelease of that major version.
424
433
  `preminor`, and `prepatch` work the same way.
@@ -426,6 +435,7 @@ strings that they parse.
426
435
  same as `prepatch`. It increments the patch version and then makes a
427
436
  prerelease. If the input version is already a prerelease it simply
428
437
  increments it.
438
+ * `release` will remove any prerelease part of the version.
429
439
  * `identifier` can be used to prefix `premajor`, `preminor`,
430
440
  `prepatch`, or `prerelease` version increments. `identifierBase`
431
441
  is the base to be used for the `prerelease` identifier.
@@ -477,7 +487,7 @@ strings that they parse.
477
487
 
478
488
  ### Ranges
479
489
 
480
- * `validRange(range)`: Return the valid range or null if it's not valid
490
+ * `validRange(range)`: Return the valid range or null if it's not valid.
481
491
  * `satisfies(version, range)`: Return true if the version satisfies the
482
492
  range.
483
493
  * `maxSatisfying(versions, range)`: Return the highest version in the list
@@ -61,6 +61,7 @@ const main = () => {
61
61
  switch (argv[0]) {
62
62
  case 'major': case 'minor': case 'patch': case 'prerelease':
63
63
  case 'premajor': case 'preminor': case 'prepatch':
64
+ case 'release':
64
65
  inc = argv.shift()
65
66
  break
66
67
  default:
@@ -149,7 +150,7 @@ Options:
149
150
  -i --increment [<level>]
150
151
  Increment a version by the specified level. Level can
151
152
  be one of: major, minor, patch, premajor, preminor,
152
- prepatch, or prerelease. Default level is 'patch'.
153
+ prepatch, prerelease, or release. Default level is 'patch'.
153
154
  Only one version may be specified.
154
155
 
155
156
  --preid <identifier>
@@ -1,6 +1,6 @@
1
1
  const debug = require('../internal/debug')
2
2
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
3
- const { safeRe: re, t } = require('../internal/re')
3
+ const { safeRe: re, safeSrc: src, t } = require('../internal/re')
4
4
 
5
5
  const parseOptions = require('../internal/parse-options')
6
6
  const { compareIdentifiers } = require('../internal/identifiers')
@@ -10,7 +10,7 @@ class SemVer {
10
10
 
11
11
  if (version instanceof SemVer) {
12
12
  if (version.loose === !!options.loose &&
13
- version.includePrerelease === !!options.includePrerelease) {
13
+ version.includePrerelease === !!options.includePrerelease) {
14
14
  return version
15
15
  } else {
16
16
  version = version.version
@@ -176,6 +176,20 @@ class SemVer {
176
176
  // preminor will bump the version up to the next minor release, and immediately
177
177
  // down to pre-release. premajor and prepatch work the same way.
178
178
  inc (release, identifier, identifierBase) {
179
+ if (release.startsWith('pre')) {
180
+ if (!identifier && identifierBase === false) {
181
+ throw new Error('invalid increment argument: identifier is empty')
182
+ }
183
+ // Avoid an invalid semver results
184
+ if (identifier) {
185
+ const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
186
+ const match = `-${identifier}`.match(r)
187
+ if (!match || match[1] !== identifier) {
188
+ throw new Error(`invalid identifier: ${identifier}`)
189
+ }
190
+ }
191
+ }
192
+
179
193
  switch (release) {
180
194
  case 'premajor':
181
195
  this.prerelease.length = 0
@@ -206,6 +220,12 @@ class SemVer {
206
220
  }
207
221
  this.inc('pre', identifier, identifierBase)
208
222
  break
223
+ case 'release':
224
+ if (this.prerelease.length === 0) {
225
+ throw new Error(`version ${this.raw} is not a prerelease`)
226
+ }
227
+ this.prerelease.length = 0
228
+ break
209
229
 
210
230
  case 'major':
211
231
  // If this is a pre-major version, bump up to the same major version.
@@ -249,10 +269,6 @@ class SemVer {
249
269
  case 'pre': {
250
270
  const base = Number(identifierBase) ? 1 : 0
251
271
 
252
- if (!identifier && identifierBase === false) {
253
- throw new Error('invalid increment argument: identifier is empty')
254
- }
255
-
256
272
  if (this.prerelease.length === 0) {
257
273
  this.prerelease = [base]
258
274
  } else {