@metamask/snaps-cli 6.0.0 → 6.0.1

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 (235) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/builders.js +2 -2
  3. package/dist/builders.mjs +2 -2
  4. package/dist/{chunk-MCN7UXG3.mjs → chunk-26C34AS7.mjs} +4 -4
  5. package/dist/{chunk-TX4BG5GS.mjs → chunk-2SUDRRT6.mjs} +2 -2
  6. package/dist/{chunk-MMBQXT2G.mjs → chunk-3WWFQLH4.mjs} +2 -2
  7. package/dist/chunk-45LOTCC4.mjs +1 -0
  8. package/dist/chunk-4QUVE3EK.js +53 -0
  9. package/dist/{chunk-4NHBPMKT.js → chunk-5CLEKHXE.js} +13 -13
  10. package/dist/{chunk-VI3ZJJYO.mjs → chunk-5KQNAW4C.mjs} +6 -6
  11. package/dist/{chunk-GC7BNDLY.js → chunk-6EEZHGF5.js} +6 -6
  12. package/dist/{chunk-USFFVX52.mjs → chunk-7NQQGJZJ.mjs} +2 -2
  13. package/dist/{chunk-YYYOE2GO.mjs → chunk-7RHK2YTB.mjs} +2 -2
  14. package/dist/{chunk-UBWM7UOC.mjs → chunk-AZMQTZXZ.mjs} +1 -5
  15. package/dist/{chunk-UBWM7UOC.mjs.map → chunk-AZMQTZXZ.mjs.map} +1 -1
  16. package/dist/{chunk-IJYBCHVM.js → chunk-B3NNVTA6.js} +3 -3
  17. package/dist/{chunk-46JUPGRY.js → chunk-BALQOCUO.js} +1 -1
  18. package/dist/{chunk-2QVYYMUD.js → chunk-BVPYLBE5.js} +17 -17
  19. package/dist/{chunk-SAEZHRJJ.mjs → chunk-BYNQODL3.mjs} +3 -3
  20. package/dist/{chunk-IQTGFRWK.js → chunk-C44RRX3H.js} +5 -5
  21. package/dist/{chunk-L5TMG6BQ.js → chunk-C46KEPAC.js} +1 -1
  22. package/dist/{chunk-KZFWI73A.js → chunk-CGJKCIHP.js} +3 -3
  23. package/dist/chunk-CIYE263O.js +30 -0
  24. package/dist/{chunk-ASOCIPDR.js → chunk-DBLADLQ4.js} +1 -1
  25. package/dist/chunk-EDEA4QTA.js +35 -0
  26. package/dist/{chunk-DWS4BJTE.mjs → chunk-ERSRIVYH.mjs} +1 -1
  27. package/dist/{chunk-EXJCMAUI.mjs → chunk-G3COWLG5.mjs} +3 -3
  28. package/dist/{chunk-UA5FEKKH.mjs → chunk-GKRRE4WN.mjs} +6 -6
  29. package/dist/{chunk-B455GFXP.mjs → chunk-HQBA5RU6.mjs} +6 -6
  30. package/dist/{chunk-6IF2UBYA.mjs → chunk-HYPSSFE5.mjs} +1 -1
  31. package/dist/{chunk-X4FWMO4H.mjs → chunk-JAHNVVLT.mjs} +3 -3
  32. package/dist/{chunk-QCP4QKMQ.mjs → chunk-JCVSYVPD.mjs} +3 -3
  33. package/dist/chunk-JI3B665Z.js +24 -0
  34. package/dist/{chunk-GU2KH52B.mjs → chunk-JL3URCHO.mjs} +8 -8
  35. package/dist/{chunk-GUXDSKV4.mjs → chunk-K26BOY6Z.mjs} +5 -5
  36. package/dist/{chunk-VTJFPUIA.mjs → chunk-K5QMGTQL.mjs} +3 -3
  37. package/dist/{chunk-WH7GOZP7.js → chunk-KLOPX6DO.js} +9 -9
  38. package/dist/{chunk-EXGQAOQS.js → chunk-KUSHMQXD.js} +13 -13
  39. package/dist/{chunk-TLTTWAEI.mjs → chunk-L72RLBV5.mjs} +1 -1
  40. package/dist/{chunk-7SN4Y44H.js → chunk-MDHJ5HLM.js} +8 -8
  41. package/dist/{chunk-ZOQ32RQI.mjs → chunk-MR44GPM3.mjs} +1 -1
  42. package/dist/{chunk-YDLKS46R.js → chunk-MUYXNION.js} +3 -3
  43. package/dist/{chunk-EQRMXKXY.js → chunk-OKDY7C7S.js} +32 -32
  44. package/dist/{chunk-X2RPNWBJ.mjs → chunk-OPE2PGM6.mjs} +3 -3
  45. package/dist/{chunk-HNLMKJBX.js → chunk-PDYQXXLP.js} +1 -1
  46. package/dist/{chunk-FYTQTDZU.mjs → chunk-PFB25A2Q.mjs} +4 -4
  47. package/dist/chunk-QFK7JVP3.js +52 -0
  48. package/dist/chunk-QHCKVO3P.js +28 -0
  49. package/dist/{chunk-V5Q5HRXB.mjs → chunk-QMD3VO6R.mjs} +1 -1
  50. package/dist/chunk-R6NBQKVH.js +16 -0
  51. package/dist/{chunk-T74IXMA3.mjs → chunk-R77RJHC5.mjs} +2 -8
  52. package/dist/chunk-R77RJHC5.mjs.map +1 -0
  53. package/dist/{chunk-MIV2UFTA.js → chunk-S45DIQPN.js} +1 -1
  54. package/dist/{chunk-IYAFFTJU.js → chunk-S76EZ6HY.js} +6 -6
  55. package/dist/{chunk-6NJAXMSB.js → chunk-S7UP2YYF.js} +1 -1
  56. package/dist/{chunk-NO53G7NT.js → chunk-SVYNCWMH.js} +11 -11
  57. package/dist/{chunk-6VFUO2H5.mjs → chunk-SYRWT2KT.mjs} +1 -1
  58. package/dist/{chunk-QH4AQR33.mjs → chunk-T7NEPTM5.mjs} +6 -6
  59. package/dist/{chunk-5DSV76XV.mjs → chunk-TDSL55B3.mjs} +1 -1
  60. package/dist/{chunk-G3IYVYVR.js → chunk-TJ2F3J6X.js} +1 -1
  61. package/dist/chunk-U4VFMIGO.js +24 -0
  62. package/dist/chunk-VXOV3ZCB.js +1 -0
  63. package/dist/{chunk-WKL7DYYW.mjs → chunk-WO7DMSQU.mjs} +2 -2
  64. package/dist/{chunk-HGYXRW5B.js → chunk-WP2N4NCO.js} +7 -7
  65. package/dist/{chunk-25SLEORF.mjs → chunk-WYDHPUWV.mjs} +2 -2
  66. package/dist/{chunk-OF4BF57X.mjs → chunk-X7TESUC7.mjs} +1 -1
  67. package/dist/{chunk-PDNDGMB2.mjs → chunk-X7VYAL2L.mjs} +4 -4
  68. package/dist/{chunk-5DDAAM2X.js → chunk-XGWLFH7Y.js} +4 -4
  69. package/dist/{chunk-3LNPS7AX.js → chunk-XUYXKO4F.js} +18 -18
  70. package/dist/{chunk-S5ERYB6I.mjs → chunk-XZJLYKES.mjs} +6 -6
  71. package/dist/{chunk-HJ4276TR.mjs → chunk-YCYGKEXF.mjs} +3 -3
  72. package/dist/{chunk-YURDB35F.js → chunk-YGEAZQSC.js} +7 -7
  73. package/dist/{chunk-5VAZH7L7.js → chunk-YQ2E7NEA.js} +3 -3
  74. package/dist/chunk-YQVCFM6L.js +22 -0
  75. package/dist/{chunk-KKTPKAZN.mjs → chunk-YWCNJELN.mjs} +5 -5
  76. package/dist/{chunk-JMISQ4HT.mjs → chunk-ZAW4ZWQX.mjs} +1 -1
  77. package/dist/cli.js +13 -13
  78. package/dist/cli.mjs +13 -13
  79. package/dist/commands/build/build.js +23 -23
  80. package/dist/commands/build/build.mjs +23 -23
  81. package/dist/commands/build/implementation.js +22 -22
  82. package/dist/commands/build/implementation.mjs +22 -22
  83. package/dist/commands/build/index.js +24 -24
  84. package/dist/commands/build/index.mjs +24 -24
  85. package/dist/commands/eval/eval.js +12 -12
  86. package/dist/commands/eval/eval.mjs +12 -12
  87. package/dist/commands/eval/implementation.js +3 -3
  88. package/dist/commands/eval/implementation.mjs +3 -3
  89. package/dist/commands/eval/index.js +13 -13
  90. package/dist/commands/eval/index.mjs +13 -13
  91. package/dist/commands/index.js +33 -33
  92. package/dist/commands/index.mjs +33 -33
  93. package/dist/commands/manifest/implementation.js +11 -11
  94. package/dist/commands/manifest/implementation.mjs +11 -11
  95. package/dist/commands/manifest/index.js +13 -13
  96. package/dist/commands/manifest/index.mjs +13 -13
  97. package/dist/commands/manifest/manifest.js +12 -12
  98. package/dist/commands/manifest/manifest.mjs +12 -12
  99. package/dist/commands/serve/index.js +23 -23
  100. package/dist/commands/serve/index.mjs +23 -23
  101. package/dist/commands/serve/serve.js +22 -22
  102. package/dist/commands/serve/serve.mjs +22 -22
  103. package/dist/commands/watch/implementation.js +22 -22
  104. package/dist/commands/watch/implementation.mjs +22 -22
  105. package/dist/commands/watch/index.js +24 -24
  106. package/dist/commands/watch/index.mjs +24 -24
  107. package/dist/commands/watch/watch.js +23 -23
  108. package/dist/commands/watch/watch.mjs +23 -23
  109. package/dist/config.js +12 -12
  110. package/dist/config.mjs +12 -12
  111. package/dist/errors.js +2 -2
  112. package/dist/errors.mjs +2 -2
  113. package/dist/index.js +21 -21
  114. package/dist/index.mjs +21 -21
  115. package/dist/main.js +36 -36
  116. package/dist/main.mjs +36 -36
  117. package/dist/structs.js +2 -2
  118. package/dist/structs.mjs +2 -2
  119. package/dist/types/yargs.d.mjs +0 -1
  120. package/dist/utils/cli.js +2 -2
  121. package/dist/utils/cli.mjs +2 -2
  122. package/dist/utils/errors.js +3 -3
  123. package/dist/utils/errors.mjs +3 -3
  124. package/dist/utils/index.js +10 -10
  125. package/dist/utils/index.mjs +10 -10
  126. package/dist/utils/legacy.js +3 -3
  127. package/dist/utils/legacy.mjs +3 -3
  128. package/dist/utils/logging.js +2 -2
  129. package/dist/utils/logging.mjs +2 -2
  130. package/dist/utils/path.js +2 -2
  131. package/dist/utils/path.mjs +2 -2
  132. package/dist/utils/steps.js +5 -5
  133. package/dist/utils/steps.mjs +5 -5
  134. package/dist/webpack/compiler.js +19 -19
  135. package/dist/webpack/compiler.mjs +19 -19
  136. package/dist/webpack/config.js +18 -18
  137. package/dist/webpack/config.mjs +18 -18
  138. package/dist/webpack/index.js +21 -21
  139. package/dist/webpack/index.mjs +21 -21
  140. package/dist/webpack/loaders/browserify.js +13 -13
  141. package/dist/webpack/loaders/browserify.mjs +13 -13
  142. package/dist/webpack/loaders/function.js +2 -2
  143. package/dist/webpack/loaders/function.mjs +2 -2
  144. package/dist/webpack/loaders/index.js +13 -13
  145. package/dist/webpack/loaders/index.mjs +13 -13
  146. package/dist/webpack/loaders/wasm.js +2 -2
  147. package/dist/webpack/loaders/wasm.mjs +2 -2
  148. package/dist/webpack/plugins.js +17 -17
  149. package/dist/webpack/plugins.mjs +17 -17
  150. package/dist/webpack/server.js +2 -2
  151. package/dist/webpack/server.mjs +2 -2
  152. package/dist/webpack/utils.js +13 -13
  153. package/dist/webpack/utils.mjs +13 -13
  154. package/package.json +4 -4
  155. package/dist/chunk-4OKAI7AP.js +0 -52
  156. package/dist/chunk-5JPLNWCO.js +0 -24
  157. package/dist/chunk-5YUHRLH6.js +0 -22
  158. package/dist/chunk-FPG4GBXZ.js +0 -30
  159. package/dist/chunk-GKG7TO7T.js +0 -28
  160. package/dist/chunk-K3TSXPME.js +0 -16
  161. package/dist/chunk-O2QUFUOY.js +0 -53
  162. package/dist/chunk-OVCYXVWI.mjs +0 -1
  163. package/dist/chunk-T3KPXUAU.js +0 -24
  164. package/dist/chunk-T74IXMA3.mjs.map +0 -1
  165. package/dist/chunk-WJNHZ4YF.js +0 -35
  166. package/dist/chunk-Y5PQG4KA.js +0 -1
  167. /package/dist/{chunk-MCN7UXG3.mjs.map → chunk-26C34AS7.mjs.map} +0 -0
  168. /package/dist/{chunk-TX4BG5GS.mjs.map → chunk-2SUDRRT6.mjs.map} +0 -0
  169. /package/dist/{chunk-MMBQXT2G.mjs.map → chunk-3WWFQLH4.mjs.map} +0 -0
  170. /package/dist/{chunk-OVCYXVWI.mjs.map → chunk-45LOTCC4.mjs.map} +0 -0
  171. /package/dist/{chunk-O2QUFUOY.js.map → chunk-4QUVE3EK.js.map} +0 -0
  172. /package/dist/{chunk-4NHBPMKT.js.map → chunk-5CLEKHXE.js.map} +0 -0
  173. /package/dist/{chunk-VI3ZJJYO.mjs.map → chunk-5KQNAW4C.mjs.map} +0 -0
  174. /package/dist/{chunk-GC7BNDLY.js.map → chunk-6EEZHGF5.js.map} +0 -0
  175. /package/dist/{chunk-USFFVX52.mjs.map → chunk-7NQQGJZJ.mjs.map} +0 -0
  176. /package/dist/{chunk-YYYOE2GO.mjs.map → chunk-7RHK2YTB.mjs.map} +0 -0
  177. /package/dist/{chunk-IJYBCHVM.js.map → chunk-B3NNVTA6.js.map} +0 -0
  178. /package/dist/{chunk-46JUPGRY.js.map → chunk-BALQOCUO.js.map} +0 -0
  179. /package/dist/{chunk-2QVYYMUD.js.map → chunk-BVPYLBE5.js.map} +0 -0
  180. /package/dist/{chunk-SAEZHRJJ.mjs.map → chunk-BYNQODL3.mjs.map} +0 -0
  181. /package/dist/{chunk-IQTGFRWK.js.map → chunk-C44RRX3H.js.map} +0 -0
  182. /package/dist/{chunk-L5TMG6BQ.js.map → chunk-C46KEPAC.js.map} +0 -0
  183. /package/dist/{chunk-KZFWI73A.js.map → chunk-CGJKCIHP.js.map} +0 -0
  184. /package/dist/{chunk-FPG4GBXZ.js.map → chunk-CIYE263O.js.map} +0 -0
  185. /package/dist/{chunk-ASOCIPDR.js.map → chunk-DBLADLQ4.js.map} +0 -0
  186. /package/dist/{chunk-WJNHZ4YF.js.map → chunk-EDEA4QTA.js.map} +0 -0
  187. /package/dist/{chunk-DWS4BJTE.mjs.map → chunk-ERSRIVYH.mjs.map} +0 -0
  188. /package/dist/{chunk-EXJCMAUI.mjs.map → chunk-G3COWLG5.mjs.map} +0 -0
  189. /package/dist/{chunk-UA5FEKKH.mjs.map → chunk-GKRRE4WN.mjs.map} +0 -0
  190. /package/dist/{chunk-B455GFXP.mjs.map → chunk-HQBA5RU6.mjs.map} +0 -0
  191. /package/dist/{chunk-6IF2UBYA.mjs.map → chunk-HYPSSFE5.mjs.map} +0 -0
  192. /package/dist/{chunk-X4FWMO4H.mjs.map → chunk-JAHNVVLT.mjs.map} +0 -0
  193. /package/dist/{chunk-QCP4QKMQ.mjs.map → chunk-JCVSYVPD.mjs.map} +0 -0
  194. /package/dist/{chunk-5JPLNWCO.js.map → chunk-JI3B665Z.js.map} +0 -0
  195. /package/dist/{chunk-GU2KH52B.mjs.map → chunk-JL3URCHO.mjs.map} +0 -0
  196. /package/dist/{chunk-GUXDSKV4.mjs.map → chunk-K26BOY6Z.mjs.map} +0 -0
  197. /package/dist/{chunk-VTJFPUIA.mjs.map → chunk-K5QMGTQL.mjs.map} +0 -0
  198. /package/dist/{chunk-WH7GOZP7.js.map → chunk-KLOPX6DO.js.map} +0 -0
  199. /package/dist/{chunk-EXGQAOQS.js.map → chunk-KUSHMQXD.js.map} +0 -0
  200. /package/dist/{chunk-TLTTWAEI.mjs.map → chunk-L72RLBV5.mjs.map} +0 -0
  201. /package/dist/{chunk-7SN4Y44H.js.map → chunk-MDHJ5HLM.js.map} +0 -0
  202. /package/dist/{chunk-ZOQ32RQI.mjs.map → chunk-MR44GPM3.mjs.map} +0 -0
  203. /package/dist/{chunk-YDLKS46R.js.map → chunk-MUYXNION.js.map} +0 -0
  204. /package/dist/{chunk-EQRMXKXY.js.map → chunk-OKDY7C7S.js.map} +0 -0
  205. /package/dist/{chunk-X2RPNWBJ.mjs.map → chunk-OPE2PGM6.mjs.map} +0 -0
  206. /package/dist/{chunk-HNLMKJBX.js.map → chunk-PDYQXXLP.js.map} +0 -0
  207. /package/dist/{chunk-FYTQTDZU.mjs.map → chunk-PFB25A2Q.mjs.map} +0 -0
  208. /package/dist/{chunk-4OKAI7AP.js.map → chunk-QFK7JVP3.js.map} +0 -0
  209. /package/dist/{chunk-GKG7TO7T.js.map → chunk-QHCKVO3P.js.map} +0 -0
  210. /package/dist/{chunk-V5Q5HRXB.mjs.map → chunk-QMD3VO6R.mjs.map} +0 -0
  211. /package/dist/{chunk-K3TSXPME.js.map → chunk-R6NBQKVH.js.map} +0 -0
  212. /package/dist/{chunk-MIV2UFTA.js.map → chunk-S45DIQPN.js.map} +0 -0
  213. /package/dist/{chunk-IYAFFTJU.js.map → chunk-S76EZ6HY.js.map} +0 -0
  214. /package/dist/{chunk-6NJAXMSB.js.map → chunk-S7UP2YYF.js.map} +0 -0
  215. /package/dist/{chunk-NO53G7NT.js.map → chunk-SVYNCWMH.js.map} +0 -0
  216. /package/dist/{chunk-6VFUO2H5.mjs.map → chunk-SYRWT2KT.mjs.map} +0 -0
  217. /package/dist/{chunk-QH4AQR33.mjs.map → chunk-T7NEPTM5.mjs.map} +0 -0
  218. /package/dist/{chunk-5DSV76XV.mjs.map → chunk-TDSL55B3.mjs.map} +0 -0
  219. /package/dist/{chunk-G3IYVYVR.js.map → chunk-TJ2F3J6X.js.map} +0 -0
  220. /package/dist/{chunk-T3KPXUAU.js.map → chunk-U4VFMIGO.js.map} +0 -0
  221. /package/dist/{chunk-Y5PQG4KA.js.map → chunk-VXOV3ZCB.js.map} +0 -0
  222. /package/dist/{chunk-WKL7DYYW.mjs.map → chunk-WO7DMSQU.mjs.map} +0 -0
  223. /package/dist/{chunk-HGYXRW5B.js.map → chunk-WP2N4NCO.js.map} +0 -0
  224. /package/dist/{chunk-25SLEORF.mjs.map → chunk-WYDHPUWV.mjs.map} +0 -0
  225. /package/dist/{chunk-OF4BF57X.mjs.map → chunk-X7TESUC7.mjs.map} +0 -0
  226. /package/dist/{chunk-PDNDGMB2.mjs.map → chunk-X7VYAL2L.mjs.map} +0 -0
  227. /package/dist/{chunk-5DDAAM2X.js.map → chunk-XGWLFH7Y.js.map} +0 -0
  228. /package/dist/{chunk-3LNPS7AX.js.map → chunk-XUYXKO4F.js.map} +0 -0
  229. /package/dist/{chunk-S5ERYB6I.mjs.map → chunk-XZJLYKES.mjs.map} +0 -0
  230. /package/dist/{chunk-HJ4276TR.mjs.map → chunk-YCYGKEXF.mjs.map} +0 -0
  231. /package/dist/{chunk-YURDB35F.js.map → chunk-YGEAZQSC.js.map} +0 -0
  232. /package/dist/{chunk-5VAZH7L7.js.map → chunk-YQ2E7NEA.js.map} +0 -0
  233. /package/dist/{chunk-5YUHRLH6.js.map → chunk-YQVCFM6L.js.map} +0 -0
  234. /package/dist/{chunk-KKTPKAZN.mjs.map → chunk-YWCNJELN.mjs.map} +0 -0
  235. /package/dist/{chunk-JMISQ4HT.mjs.map → chunk-ZAW4ZWQX.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  manifestHandler
3
- } from "./chunk-FYTQTDZU.mjs";
3
+ } from "./chunk-PFB25A2Q.mjs";
4
4
  import {
5
5
  builders_default
6
- } from "./chunk-ZOQ32RQI.mjs";
6
+ } from "./chunk-MR44GPM3.mjs";
7
7
 
8
8
  // src/commands/manifest/index.ts
9
9
  var command = {
@@ -20,4 +20,4 @@ var manifest_default = command;
20
20
  export {
21
21
  manifest_default
22
22
  };
23
- //# sourceMappingURL=chunk-EXJCMAUI.mjs.map
23
+ //# sourceMappingURL=chunk-G3COWLG5.mjs.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  watch_default
3
- } from "./chunk-X2RPNWBJ.mjs";
3
+ } from "./chunk-OPE2PGM6.mjs";
4
4
  import {
5
5
  build_default
6
- } from "./chunk-VTJFPUIA.mjs";
6
+ } from "./chunk-K5QMGTQL.mjs";
7
7
  import {
8
8
  manifest_default
9
- } from "./chunk-EXJCMAUI.mjs";
9
+ } from "./chunk-G3COWLG5.mjs";
10
10
  import {
11
11
  serve_default
12
- } from "./chunk-QCP4QKMQ.mjs";
12
+ } from "./chunk-JCVSYVPD.mjs";
13
13
  import {
14
14
  eval_default
15
- } from "./chunk-SAEZHRJJ.mjs";
15
+ } from "./chunk-BYNQODL3.mjs";
16
16
 
17
17
  // src/commands/index.ts
18
18
  var commands = [
@@ -27,4 +27,4 @@ var commands_default = commands;
27
27
  export {
28
28
  commands_default
29
29
  };
30
- //# sourceMappingURL=chunk-UA5FEKKH.mjs.map
30
+ //# sourceMappingURL=chunk-GKRRE4WN.mjs.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-USFFVX52.mjs";
3
+ } from "./chunk-7NQQGJZJ.mjs";
4
4
  import {
5
5
  getServer
6
- } from "./chunk-6VFUO2H5.mjs";
6
+ } from "./chunk-SYRWT2KT.mjs";
7
7
  import {
8
8
  executeSteps
9
- } from "./chunk-HJ4276TR.mjs";
9
+ } from "./chunk-YCYGKEXF.mjs";
10
10
  import {
11
11
  info
12
- } from "./chunk-JMISQ4HT.mjs";
12
+ } from "./chunk-ZAW4ZWQX.mjs";
13
13
  import {
14
14
  CommandError
15
- } from "./chunk-OF4BF57X.mjs";
15
+ } from "./chunk-X7TESUC7.mjs";
16
16
 
17
17
  // src/commands/watch/watch.ts
18
18
  import { isFile } from "@metamask/snaps-utils/node";
@@ -51,4 +51,4 @@ async function watchHandler(config, options) {
51
51
  export {
52
52
  watchHandler
53
53
  };
54
- //# sourceMappingURL=chunk-B455GFXP.mjs.map
54
+ //# sourceMappingURL=chunk-HQBA5RU6.mjs.map
@@ -10,4 +10,4 @@ function file() {
10
10
  export {
11
11
  file
12
12
  };
13
- //# sourceMappingURL=chunk-6IF2UBYA.mjs.map
13
+ //# sourceMappingURL=chunk-HYPSSFE5.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getServer
3
- } from "./chunk-6VFUO2H5.mjs";
3
+ } from "./chunk-SYRWT2KT.mjs";
4
4
  import {
5
5
  info
6
- } from "./chunk-JMISQ4HT.mjs";
6
+ } from "./chunk-ZAW4ZWQX.mjs";
7
7
 
8
8
  // src/commands/serve/serve.ts
9
9
  async function serveHandler(config, options) {
@@ -15,4 +15,4 @@ async function serveHandler(config, options) {
15
15
  export {
16
16
  serveHandler
17
17
  };
18
- //# sourceMappingURL=chunk-X4FWMO4H.mjs.map
18
+ //# sourceMappingURL=chunk-JAHNVVLT.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  serveHandler
3
- } from "./chunk-X4FWMO4H.mjs";
3
+ } from "./chunk-JAHNVVLT.mjs";
4
4
  import {
5
5
  builders_default
6
- } from "./chunk-ZOQ32RQI.mjs";
6
+ } from "./chunk-MR44GPM3.mjs";
7
7
 
8
8
  // src/commands/serve/index.ts
9
9
  var command = {
@@ -21,4 +21,4 @@ var serve_default = command;
21
21
  export {
22
22
  serve_default
23
23
  };
24
- //# sourceMappingURL=chunk-QCP4QKMQ.mjs.map
24
+ //# sourceMappingURL=chunk-JCVSYVPD.mjs.map
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk5CLEKHXEjs = require('./chunk-5CLEKHXE.js');
4
+
5
+
6
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
7
+
8
+ // src/commands/watch/index.ts
9
+ var command = {
10
+ command: ["watch", "w"],
11
+ desc: "Build Snap on change",
12
+ builder: (yarg) => {
13
+ yarg.option("src", _chunkS7UP2YYFjs.builders_default.src).option("eval", _chunkS7UP2YYFjs.builders_default.eval).option("dist", _chunkS7UP2YYFjs.builders_default.dist).option("outfileName", _chunkS7UP2YYFjs.builders_default.outfileName).option("sourceMaps", _chunkS7UP2YYFjs.builders_default.sourceMaps).option("stripComments", _chunkS7UP2YYFjs.builders_default.stripComments).option("transpilationMode", _chunkS7UP2YYFjs.builders_default.transpilationMode).option("depsToTranspile", _chunkS7UP2YYFjs.builders_default.depsToTranspile).option("manifest", _chunkS7UP2YYFjs.builders_default.manifest).option("writeManifest", _chunkS7UP2YYFjs.builders_default.writeManifest).option("serve", _chunkS7UP2YYFjs.builders_default.serve).option("root", _chunkS7UP2YYFjs.builders_default.root).option("port", _chunkS7UP2YYFjs.builders_default.port).implies("writeManifest", "manifest").implies("depsToTranspile", "transpilationMode");
14
+ },
15
+ handler: async (argv) => _chunk5CLEKHXEjs.watchHandler.call(void 0, argv.context.config, {
16
+ port: argv.port
17
+ })
18
+ };
19
+ var watch_default = command;
20
+
21
+
22
+
23
+ exports.watch_default = watch_default;
24
+ //# sourceMappingURL=chunk-JI3B665Z.js.map
@@ -3,30 +3,30 @@ import {
3
3
  TS_CONFIG_FILE,
4
4
  sanitizeInputs,
5
5
  trimPathString
6
- } from "./chunk-TLTTWAEI.mjs";
6
+ } from "./chunk-L72RLBV5.mjs";
7
7
  import {
8
8
  getDependencyRegExp,
9
9
  processDependencies,
10
10
  sanitizeDependencyPaths
11
- } from "./chunk-V5Q5HRXB.mjs";
11
+ } from "./chunk-QMD3VO6R.mjs";
12
12
  import {
13
13
  getRelativePath
14
- } from "./chunk-5DSV76XV.mjs";
14
+ } from "./chunk-TDSL55B3.mjs";
15
15
  import {
16
16
  executeSteps
17
- } from "./chunk-HJ4276TR.mjs";
17
+ } from "./chunk-YCYGKEXF.mjs";
18
18
  import {
19
19
  getErrorMessage,
20
20
  getYargsErrorMessage
21
- } from "./chunk-YYYOE2GO.mjs";
21
+ } from "./chunk-7RHK2YTB.mjs";
22
22
  import {
23
23
  error,
24
24
  info,
25
25
  warn
26
- } from "./chunk-JMISQ4HT.mjs";
26
+ } from "./chunk-ZAW4ZWQX.mjs";
27
27
  import {
28
28
  __export
29
- } from "./chunk-T74IXMA3.mjs";
29
+ } from "./chunk-R77RJHC5.mjs";
30
30
 
31
31
  // src/utils/index.ts
32
32
  var utils_exports = {};
@@ -50,4 +50,4 @@ __export(utils_exports, {
50
50
  export {
51
51
  utils_exports
52
52
  };
53
- //# sourceMappingURL=chunk-GU2KH52B.mjs.map
53
+ //# sourceMappingURL=chunk-JL3URCHO.mjs.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  evaluate
3
- } from "./chunk-MMBQXT2G.mjs";
3
+ } from "./chunk-3WWFQLH4.mjs";
4
4
  import {
5
5
  getRelativePath
6
- } from "./chunk-5DSV76XV.mjs";
6
+ } from "./chunk-TDSL55B3.mjs";
7
7
  import {
8
8
  executeSteps
9
- } from "./chunk-HJ4276TR.mjs";
9
+ } from "./chunk-YCYGKEXF.mjs";
10
10
  import {
11
11
  CommandError
12
- } from "./chunk-OF4BF57X.mjs";
12
+ } from "./chunk-X7TESUC7.mjs";
13
13
 
14
14
  // src/commands/eval/eval.ts
15
15
  import { isFile } from "@metamask/snaps-utils/node";
@@ -48,4 +48,4 @@ async function evaluateHandler(config, options = {}) {
48
48
  export {
49
49
  evaluateHandler
50
50
  };
51
- //# sourceMappingURL=chunk-GUXDSKV4.mjs.map
51
+ //# sourceMappingURL=chunk-K26BOY6Z.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  buildHandler
3
- } from "./chunk-QH4AQR33.mjs";
3
+ } from "./chunk-T7NEPTM5.mjs";
4
4
  import {
5
5
  builders_default
6
- } from "./chunk-ZOQ32RQI.mjs";
6
+ } from "./chunk-MR44GPM3.mjs";
7
7
 
8
8
  // src/commands/build/index.ts
9
9
  var command = {
@@ -19,4 +19,4 @@ var build_default = command;
19
19
  export {
20
20
  build_default
21
21
  };
22
- //# sourceMappingURL=chunk-VTJFPUIA.mjs.map
22
+ //# sourceMappingURL=chunk-K5QMGTQL.mjs.map
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYDLKS46Rjs = require('./chunk-YDLKS46R.js');
3
+ var _chunkMUYXNIONjs = require('./chunk-MUYXNION.js');
4
4
 
5
5
 
6
- var _chunkASOCIPDRjs = require('./chunk-ASOCIPDR.js');
6
+ var _chunkDBLADLQ4js = require('./chunk-DBLADLQ4.js');
7
7
 
8
8
 
9
- var _chunk5DDAAM2Xjs = require('./chunk-5DDAAM2X.js');
9
+ var _chunkXGWLFH7Yjs = require('./chunk-XGWLFH7Y.js');
10
10
 
11
11
 
12
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
12
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
13
13
 
14
14
  // src/commands/eval/eval.ts
15
15
  var _node = require('@metamask/snaps-utils/node');
@@ -19,8 +19,8 @@ var steps = [
19
19
  name: "Checking the input file.",
20
20
  task: async ({ input }) => {
21
21
  if (!await _node.isFile.call(void 0, input)) {
22
- const relativePath = _chunkASOCIPDRjs.getRelativePath.call(void 0, input);
23
- throw new (0, _chunk46JUPGRYjs.CommandError)(
22
+ const relativePath = _chunkDBLADLQ4js.getRelativePath.call(void 0, input);
23
+ throw new (0, _chunkBALQOCUOjs.CommandError)(
24
24
  `Input file not found: "${relativePath}". Make sure that the "input" field in your snap config or the specified input file is correct.`
25
25
  );
26
26
  }
@@ -29,7 +29,7 @@ var steps = [
29
29
  {
30
30
  name: "Evaluating the snap bundle.",
31
31
  task: async ({ input, spinner }) => {
32
- await _chunkYDLKS46Rjs.evaluate.call(void 0, input);
32
+ await _chunkMUYXNIONjs.evaluate.call(void 0, input);
33
33
  spinner.succeed("Snap bundle evaluated successfully.");
34
34
  }
35
35
  }
@@ -42,10 +42,10 @@ function getBundlePath(config, options) {
42
42
  }
43
43
  async function evaluateHandler(config, options = {}) {
44
44
  const input = getBundlePath(config, options);
45
- await _chunk5DDAAM2Xjs.executeSteps.call(void 0, steps, { input });
45
+ await _chunkXGWLFH7Yjs.executeSteps.call(void 0, steps, { input });
46
46
  }
47
47
 
48
48
 
49
49
 
50
50
  exports.evaluateHandler = evaluateHandler;
51
- //# sourceMappingURL=chunk-WH7GOZP7.js.map
51
+ //# sourceMappingURL=chunk-KLOPX6DO.js.map
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunk2QVYYMUDjs = require('./chunk-2QVYYMUD.js');
3
+ var _chunkBVPYLBE5js = require('./chunk-BVPYLBE5.js');
4
4
 
5
5
 
6
- var _chunkL5TMG6BQjs = require('./chunk-L5TMG6BQ.js');
6
+ var _chunkC46KEPACjs = require('./chunk-C46KEPAC.js');
7
7
 
8
8
 
9
- var _chunkIJYBCHVMjs = require('./chunk-IJYBCHVM.js');
9
+ var _chunkB3NNVTA6js = require('./chunk-B3NNVTA6.js');
10
10
 
11
11
 
12
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
12
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
13
13
 
14
14
 
15
- var _chunk6NJAXMSBjs = require('./chunk-6NJAXMSB.js');
15
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
16
16
 
17
17
  // src/cli.ts
18
18
  var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);
@@ -24,15 +24,15 @@ function checkNodeVersion(nodeVersion = process.version.slice(1)) {
24
24
  const majorVersion = _semver2.default.major(nodeVersion);
25
25
  const message = `Node version ${nodeVersion} is not supported. Please use Node ${MINIMUM_NODE_16_VERSION} or later.`;
26
26
  if (majorVersion < 16) {
27
- _chunkG3IYVYVRjs.error.call(void 0, message);
27
+ _chunkTJ2F3J6Xjs.error.call(void 0, message);
28
28
  process.exit(1);
29
29
  }
30
30
  if (majorVersion === 16 && _semver2.default.lt(nodeVersion, MINIMUM_NODE_16_VERSION)) {
31
- _chunkG3IYVYVRjs.error.call(void 0, message);
31
+ _chunkTJ2F3J6Xjs.error.call(void 0, message);
32
32
  process.exit(1);
33
33
  }
34
34
  if (majorVersion === 18 && _semver2.default.lt(nodeVersion, MINIMUM_NODE_18_VERSION)) {
35
- _chunkG3IYVYVRjs.error.call(void 0,
35
+ _chunkTJ2F3J6Xjs.error.call(void 0,
36
36
  `Node version ${nodeVersion} is not supported. Please use Node ${MINIMUM_NODE_18_VERSION} or later.`
37
37
  );
38
38
  process.exit(1);
@@ -46,13 +46,13 @@ async function cli(argv, commands) {
46
46
  ).example("$0 manifest --fix", `Check the snap manifest, and fix any errors`).example(
47
47
  "$0 watch --port 8000",
48
48
  `The snap input file for changes, and serve it on port 8000`
49
- ).example("$0 serve --port 8000", `Serve the snap bundle on port 8000`).command(commands).option("config", _chunk6NJAXMSBjs.builders_default.config).option("verboseErrors", _chunk6NJAXMSBjs.builders_default.verboseErrors).option("suppressWarnings", _chunk6NJAXMSBjs.builders_default.suppressWarnings).strict().middleware(async (args) => {
49
+ ).example("$0 serve --port 8000", `Serve the snap bundle on port 8000`).command(commands).option("config", _chunkS7UP2YYFjs.builders_default.config).option("verboseErrors", _chunkS7UP2YYFjs.builders_default.verboseErrors).option("suppressWarnings", _chunkS7UP2YYFjs.builders_default.suppressWarnings).strict().middleware(async (args) => {
50
50
  args.context = {
51
- config: await _chunk2QVYYMUDjs.getConfigByArgv.call(void 0, args)
51
+ config: await _chunkBVPYLBE5js.getConfigByArgv.call(void 0, args)
52
52
  };
53
- _chunkL5TMG6BQjs.sanitizeInputs.call(void 0, args);
53
+ _chunkC46KEPACjs.sanitizeInputs.call(void 0, args);
54
54
  }, false).demandCommand(1, "You must specify at least one command.").fail((message, failure) => {
55
- _chunkG3IYVYVRjs.error.call(void 0, _chunkIJYBCHVMjs.getYargsErrorMessage.call(void 0, message, failure));
55
+ _chunkTJ2F3J6Xjs.error.call(void 0, _chunkB3NNVTA6js.getYargsErrorMessage.call(void 0, message, failure));
56
56
  process.exit(1);
57
57
  }).help().alias("help", "h").parseAsync();
58
58
  }
@@ -61,4 +61,4 @@ async function cli(argv, commands) {
61
61
 
62
62
 
63
63
  exports.checkNodeVersion = checkNodeVersion; exports.cli = cli;
64
- //# sourceMappingURL=chunk-EXGQAOQS.js.map
64
+ //# sourceMappingURL=chunk-KUSHMQXD.js.map
@@ -34,4 +34,4 @@ export {
34
34
  sanitizeInputs,
35
35
  trimPathString
36
36
  };
37
- //# sourceMappingURL=chunk-TLTTWAEI.mjs.map
37
+ //# sourceMappingURL=chunk-L72RLBV5.mjs.map
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkGKG7TO7Tjs = require('./chunk-GKG7TO7T.js');
3
+ var _chunkQHCKVO3Pjs = require('./chunk-QHCKVO3P.js');
4
4
 
5
5
 
6
- var _chunkHNLMKJBXjs = require('./chunk-HNLMKJBX.js');
6
+ var _chunkPDYQXXLPjs = require('./chunk-PDYQXXLP.js');
7
7
 
8
8
 
9
9
  var _chunkX3D3MHWFjs = require('./chunk-X3D3MHWF.js');
@@ -27,7 +27,7 @@ var loader = async function(content, sourceMap) {
27
27
  standalone: "<snap>"
28
28
  });
29
29
  if (transpilationMode !== "none" /* None */) {
30
- const babelifyOptions = _chunkHNLMKJBXjs.processDependencies.call(void 0, config);
30
+ const babelifyOptions = _chunkPDYQXXLPjs.processDependencies.call(void 0, config);
31
31
  bundler.transform(_chunkX3D3MHWFjs.__require.call(void 0, "babelify"), {
32
32
  global: transpilationMode === "localAndDeps" /* LocalAndDeps */,
33
33
  extensions: [".js", ".ts"],
@@ -52,7 +52,7 @@ var loader = async function(content, sourceMap) {
52
52
  ...babelifyOptions
53
53
  });
54
54
  }
55
- _optionalChain([config, 'access', _ => _.bundlerCustomizer, 'optionalCall', _2 => _2(bundler)]);
55
+ config.bundlerCustomizer?.(bundler);
56
56
  const stream = new (0, _readablestream.Readable)();
57
57
  stream.push(content);
58
58
  stream.push(null);
@@ -118,7 +118,7 @@ async function getDefaultLoader({
118
118
  sourceMap
119
119
  }) {
120
120
  if (legacy) {
121
- return _chunkGKG7TO7Tjs.getFunctionLoader.call(void 0, browserify_default, legacy);
121
+ return _chunkQHCKVO3Pjs.getFunctionLoader.call(void 0, browserify_default, legacy);
122
122
  }
123
123
  const targets = await getBrowserslistTargets();
124
124
  return {
@@ -209,7 +209,7 @@ function getFallbacks(polyfills) {
209
209
  return Object.fromEntries(
210
210
  _module.builtinModules.map((name) => [
211
211
  name,
212
- _nullishCoalesce(WEBPACK_FALLBACKS[name], () => ( false))
212
+ WEBPACK_FALLBACKS[name] ?? false
213
213
  ])
214
214
  );
215
215
  }
@@ -284,4 +284,4 @@ function formatText(text, indent, initialIndent = indent) {
284
284
 
285
285
 
286
286
  exports.BROWSERSLIST_FILE = BROWSERSLIST_FILE; exports.WEBPACK_FALLBACKS = WEBPACK_FALLBACKS; exports.getDefaultLoader = getDefaultLoader; exports.getDevTool = getDevTool; exports.getProgressHandler = getProgressHandler; exports.getBrowserslistTargets = getBrowserslistTargets; exports.pluralize = pluralize; exports.getFallbacks = getFallbacks; exports.getEnvironmentVariables = getEnvironmentVariables; exports.formatText = formatText; exports.browserify_default = browserify_default;
287
- //# sourceMappingURL=chunk-7SN4Y44H.js.map
287
+ //# sourceMappingURL=chunk-MDHJ5HLM.js.map
@@ -132,4 +132,4 @@ export {
132
132
  TranspilationModes,
133
133
  builders_default
134
134
  };
135
- //# sourceMappingURL=chunk-ZOQ32RQI.mjs.map
135
+ //# sourceMappingURL=chunk-MR44GPM3.mjs.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
3
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
4
4
 
5
5
  // src/commands/eval/implementation.ts
6
6
  var _node = require('@metamask/snaps-utils/node');
@@ -10,7 +10,7 @@ async function evaluate(path) {
10
10
  return await _node.evalBundle.call(void 0, path);
11
11
  } catch (evalError) {
12
12
  if (evalError instanceof _node.SnapEvalError) {
13
- throw new (0, _chunk46JUPGRYjs.CommandError)(
13
+ throw new (0, _chunkBALQOCUOjs.CommandError)(
14
14
  `Failed to evaluate snap bundle in SES. This is likely due to an incompatibility with the SES environment in your snap.
15
15
  Received the following error from the SES environment:
16
16
 
@@ -27,4 +27,4 @@ ${_node.indent.call(void 0,
27
27
 
28
28
 
29
29
  exports.evaluate = evaluate;
30
- //# sourceMappingURL=chunk-YDLKS46R.js.map
30
+ //# sourceMappingURL=chunk-MUYXNION.js.map
@@ -1,18 +1,18 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYDLKS46Rjs = require('./chunk-YDLKS46R.js');
3
+ var _chunkMUYXNIONjs = require('./chunk-MUYXNION.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk7SN4Y44Hjs = require('./chunk-7SN4Y44H.js');
7
+ var _chunkMDHJ5HLMjs = require('./chunk-MDHJ5HLM.js');
8
8
 
9
9
 
10
- var _chunkIJYBCHVMjs = require('./chunk-IJYBCHVM.js');
10
+ var _chunkB3NNVTA6js = require('./chunk-B3NNVTA6.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
15
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
16
16
 
17
17
 
18
18
 
@@ -58,13 +58,13 @@ var SnapsStatsPlugin = class {
58
58
  const { modules, time, errors, warnings } = stats.toJson();
59
59
  _utils.assert.call(void 0, modules, "Modules must be defined in stats.");
60
60
  _utils.assert.call(void 0, time, "Time must be defined in stats.");
61
- if (_optionalChain([errors, 'optionalAccess', _2 => _2.length])) {
61
+ if (errors?.length) {
62
62
  const formattedErrors = errors.map((statsError) => _chunkX3D3MHWFjs.__privateMethod.call(void 0, this, _getStatsErrorMessage, getStatsErrorMessage_fn).call(this, statsError)).join("\n\n");
63
- _chunkG3IYVYVRjs.error.call(void 0,
64
- `Compiled ${modules.length} ${_chunk7SN4Y44Hjs.pluralize.call(void 0,
63
+ _chunkTJ2F3J6Xjs.error.call(void 0,
64
+ `Compiled ${modules.length} ${_chunkMDHJ5HLMjs.pluralize.call(void 0,
65
65
  modules.length,
66
66
  "file"
67
- )} in ${time}ms with ${errors.length} ${_chunk7SN4Y44Hjs.pluralize.call(void 0,
67
+ )} in ${time}ms with ${errors.length} ${_chunkMDHJ5HLMjs.pluralize.call(void 0,
68
68
  errors.length,
69
69
  "error"
70
70
  )}.
@@ -73,19 +73,19 @@ ${formattedErrors}
73
73
  `,
74
74
  _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner)
75
75
  );
76
- _optionalChain([_chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner), 'optionalAccess', _3 => _3.stop, 'call', _4 => _4()]);
76
+ _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner)?.stop();
77
77
  process.exitCode = 1;
78
78
  return;
79
79
  }
80
- if (_optionalChain([warnings, 'optionalAccess', _5 => _5.length])) {
80
+ if (warnings?.length) {
81
81
  const formattedWarnings = warnings.map(
82
82
  (statsWarning) => _chunkX3D3MHWFjs.__privateMethod.call(void 0, this, _getStatsErrorMessage, getStatsErrorMessage_fn).call(this, statsWarning, _chalk.yellow)
83
83
  ).join("\n\n");
84
- _chunkG3IYVYVRjs.warn.call(void 0,
85
- `Compiled ${modules.length} ${_chunk7SN4Y44Hjs.pluralize.call(void 0,
84
+ _chunkTJ2F3J6Xjs.warn.call(void 0,
85
+ `Compiled ${modules.length} ${_chunkMDHJ5HLMjs.pluralize.call(void 0,
86
86
  modules.length,
87
87
  "file"
88
- )} in ${time}ms with ${warnings.length} ${_chunk7SN4Y44Hjs.pluralize.call(void 0,
88
+ )} in ${time}ms with ${warnings.length} ${_chunkMDHJ5HLMjs.pluralize.call(void 0,
89
89
  warnings.length,
90
90
  "warning"
91
91
  )}.
@@ -95,8 +95,8 @@ ${formattedWarnings}
95
95
  _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner)
96
96
  );
97
97
  } else {
98
- _chunkG3IYVYVRjs.info.call(void 0,
99
- `Compiled ${modules.length} ${_chunk7SN4Y44Hjs.pluralize.call(void 0,
98
+ _chunkTJ2F3J6Xjs.info.call(void 0,
99
+ `Compiled ${modules.length} ${_chunkMDHJ5HLMjs.pluralize.call(void 0,
100
100
  modules.length,
101
101
  "file"
102
102
  )} in ${time}ms.`,
@@ -104,7 +104,7 @@ ${formattedWarnings}
104
104
  );
105
105
  }
106
106
  if (compiler.watchMode) {
107
- _optionalChain([_chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner), 'optionalAccess', _6 => _6.succeed, 'call', _7 => _7("Done!")]);
107
+ _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner)?.succeed("Done!");
108
108
  }
109
109
  });
110
110
  }
@@ -112,13 +112,13 @@ ${formattedWarnings}
112
112
  _spinner = new WeakMap();
113
113
  _getStatsErrorMessage = new WeakSet();
114
114
  getStatsErrorMessage_fn = function(statsError, color = _chalk.red) {
115
- const baseMessage = this.options.verbose ? _chunkIJYBCHVMjs.getErrorMessage.call(void 0, statsError) : statsError.message;
115
+ const baseMessage = this.options.verbose ? _chunkB3NNVTA6js.getErrorMessage.call(void 0, statsError) : statsError.message;
116
116
  const [first, ...rest] = baseMessage.split("\n");
117
117
  return [
118
- color(_chunk7SN4Y44Hjs.formatText.call(void 0, `\u2022 ${first}`, 4, 2)),
119
- ...rest.map((message) => _chunk7SN4Y44Hjs.formatText.call(void 0, color(message), 4)),
118
+ color(_chunkMDHJ5HLMjs.formatText.call(void 0, `\u2022 ${first}`, 4, 2)),
119
+ ...rest.map((message) => _chunkMDHJ5HLMjs.formatText.call(void 0, color(message), 4)),
120
120
  statsError.details && `
121
- ${_chunk7SN4Y44Hjs.formatText.call(void 0, _chalk.dim.call(void 0, statsError.details), 6)}`
121
+ ${_chunkMDHJ5HLMjs.formatText.call(void 0, _chalk.dim.call(void 0, statsError.details), 6)}`
122
122
  ].filter(Boolean).join("\n");
123
123
  };
124
124
  var _spinner2, _safeEvaluate, safeEvaluate_fn;
@@ -147,15 +147,15 @@ var SnapsWatchPlugin = class {
147
147
  */
148
148
  apply(compiler) {
149
149
  compiler.hooks.invalid.tap(this.constructor.name, (file) => {
150
- _optionalChain([_chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2), 'optionalAccess', _8 => _8.start, 'call', _9 => _9()]);
151
- _chunkG3IYVYVRjs.info.call(void 0, `Changes detected in ${_chalk.yellow.call(void 0, file)}, recompiling.`, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
150
+ _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2)?.start();
151
+ _chunkTJ2F3J6Xjs.info.call(void 0, `Changes detected in ${_chalk.yellow.call(void 0, file)}, recompiling.`, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
152
152
  });
153
153
  compiler.hooks.afterEmit.tapPromise(
154
154
  this.constructor.name,
155
155
  async ({ fileDependencies }) => {
156
- _optionalChain([this, 'access', _10 => _10.options, 'access', _11 => _11.files, 'optionalAccess', _12 => _12.forEach, 'call', _13 => _13(
156
+ this.options.files?.forEach(
157
157
  fileDependencies.add.bind(fileDependencies)
158
- )]);
158
+ );
159
159
  if (this.options.bundle && this.options.evaluate) {
160
160
  await _chunkX3D3MHWFjs.__privateMethod.call(void 0, this, _safeEvaluate, safeEvaluate_fn).call(this, this.options.bundle);
161
161
  }
@@ -167,10 +167,10 @@ _spinner2 = new WeakMap();
167
167
  _safeEvaluate = new WeakSet();
168
168
  safeEvaluate_fn = async function(bundlePath) {
169
169
  try {
170
- await _chunkYDLKS46Rjs.evaluate.call(void 0, bundlePath);
171
- _chunkG3IYVYVRjs.info.call(void 0, `Snap bundle evaluated successfully.`, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
170
+ await _chunkMUYXNIONjs.evaluate.call(void 0, bundlePath);
171
+ _chunkTJ2F3J6Xjs.info.call(void 0, `Snap bundle evaluated successfully.`, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
172
172
  } catch (evaluateError) {
173
- _chunkG3IYVYVRjs.error.call(void 0, evaluateError.message, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
173
+ _chunkTJ2F3J6Xjs.error.call(void 0, evaluateError.message, _chunkX3D3MHWFjs.__privateGet.call(void 0, this, _spinner2));
174
174
  }
175
175
  };
176
176
  var _source, _spinner3;
@@ -206,7 +206,7 @@ var SnapsBuiltInResolver = class {
206
206
  return callback();
207
207
  }
208
208
  const baseRequest = request.split("/")[0];
209
- if (_module.isBuiltin.call(void 0, baseRequest) && !_optionalChain([this, 'access', _14 => _14.options, 'access', _15 => _15.ignore, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(baseRequest)])) {
209
+ if (_module.isBuiltin.call(void 0, baseRequest) && !this.options.ignore?.includes(baseRequest)) {
210
210
  const fallback = resolver.options.fallback.find(
211
211
  ({ name }) => name === baseRequest
212
212
  );
@@ -304,9 +304,9 @@ isProvidePlugin_fn = function(instance) {
304
304
  };
305
305
  _checkBuffer = new WeakSet();
306
306
  checkBuffer_fn = function(compiler) {
307
- const plugin = _optionalChain([compiler, 'access', _18 => _18.options, 'access', _19 => _19.plugins, 'optionalAccess', _20 => _20.find, 'call', _21 => _21(
307
+ const plugin = compiler.options.plugins?.find(
308
308
  (instance) => _chunkX3D3MHWFjs.__privateMethod.call(void 0, this, _isProvidePlugin, isProvidePlugin_fn).call(this, instance)
309
- )]);
309
+ );
310
310
  if (plugin) {
311
311
  const { definitions } = plugin;
312
312
  if (definitions.Buffer) {
@@ -343,4 +343,4 @@ checkBuffer_fn = function(compiler) {
343
343
 
344
344
 
345
345
  exports.SnapsStatsPlugin = SnapsStatsPlugin; exports.SnapsWatchPlugin = SnapsWatchPlugin; exports.SnapsBuiltInResolver = SnapsBuiltInResolver; exports.SnapsBundleWarningsPlugin = SnapsBundleWarningsPlugin;
346
- //# sourceMappingURL=chunk-EQRMXKXY.js.map
346
+ //# sourceMappingURL=chunk-OKDY7C7S.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  watchHandler
3
- } from "./chunk-B455GFXP.mjs";
3
+ } from "./chunk-HQBA5RU6.mjs";
4
4
  import {
5
5
  builders_default
6
- } from "./chunk-ZOQ32RQI.mjs";
6
+ } from "./chunk-MR44GPM3.mjs";
7
7
 
8
8
  // src/commands/watch/index.ts
9
9
  var command = {
@@ -21,4 +21,4 @@ var watch_default = command;
21
21
  export {
22
22
  watch_default
23
23
  };
24
- //# sourceMappingURL=chunk-X2RPNWBJ.mjs.map
24
+ //# sourceMappingURL=chunk-OPE2PGM6.mjs.map
@@ -27,4 +27,4 @@ function sanitizeDependencyPaths(dependencies) {
27
27
 
28
28
 
29
29
  exports.processDependencies = processDependencies; exports.getDependencyRegExp = getDependencyRegExp; exports.sanitizeDependencyPaths = sanitizeDependencyPaths;
30
- //# sourceMappingURL=chunk-HNLMKJBX.js.map
30
+ //# sourceMappingURL=chunk-PDYQXXLP.js.map