@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,12 +1,12 @@
1
1
  import {
2
2
  manifest
3
- } from "./chunk-TX4BG5GS.mjs";
3
+ } from "./chunk-2SUDRRT6.mjs";
4
4
  import {
5
5
  executeSteps
6
- } from "./chunk-HJ4276TR.mjs";
6
+ } from "./chunk-YCYGKEXF.mjs";
7
7
  import {
8
8
  CommandError
9
- } from "./chunk-OF4BF57X.mjs";
9
+ } from "./chunk-X7TESUC7.mjs";
10
10
 
11
11
  // src/commands/manifest/manifest.ts
12
12
  import { isFile } from "@metamask/snaps-utils/node";
@@ -49,4 +49,4 @@ async function manifestHandler(config, options) {
49
49
  export {
50
50
  manifestHandler
51
51
  };
52
- //# sourceMappingURL=chunk-FYTQTDZU.mjs.map
52
+ //# sourceMappingURL=chunk-PFB25A2Q.mjs.map
@@ -0,0 +1,52 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWP2N4NCOjs = require('./chunk-WP2N4NCO.js');
4
+
5
+
6
+ var _chunkXGWLFH7Yjs = require('./chunk-XGWLFH7Y.js');
7
+
8
+
9
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
10
+
11
+ // src/commands/manifest/manifest.ts
12
+ var _node = require('@metamask/snaps-utils/node');
13
+ var steps = [
14
+ {
15
+ name: "Checking the input file.",
16
+ task: async ({ input }) => {
17
+ if (!await _node.isFile.call(void 0, input)) {
18
+ throw new (0, _chunkBALQOCUOjs.CommandError)(
19
+ `Manifest file not found: "${input}". Make sure that the \`snap.manifest.json\` file exists.`
20
+ );
21
+ }
22
+ }
23
+ },
24
+ {
25
+ name: "Validating the snap manifest.",
26
+ task: async ({ input, config, options, spinner }) => {
27
+ const write = getWriteManifest(config, options);
28
+ const valid = await _chunkWP2N4NCOjs.manifest.call(void 0, input, write, spinner);
29
+ if (valid) {
30
+ spinner.succeed("The snap manifest file is valid.");
31
+ }
32
+ }
33
+ }
34
+ ];
35
+ function getWriteManifest(config, options) {
36
+ if (typeof options.fix === "boolean") {
37
+ return options.fix;
38
+ }
39
+ return config.legacy?.writeManifest ?? false;
40
+ }
41
+ async function manifestHandler(config, options) {
42
+ await _chunkXGWLFH7Yjs.executeSteps.call(void 0, steps, {
43
+ input: config.manifest.path,
44
+ config,
45
+ options
46
+ });
47
+ }
48
+
49
+
50
+
51
+ exports.manifestHandler = manifestHandler;
52
+ //# sourceMappingURL=chunk-QFK7JVP3.js.map
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/webpack/loaders/function.ts
2
+ var loader = function(content) {
3
+ const { fn } = this.getOptions();
4
+ return fn.bind(this)(content);
5
+ };
6
+ var function_default = loader;
7
+ function getFunctionLoader(fn, options) {
8
+ return {
9
+ // We use `__filename` as the loader, so Webpack will execute the loader in
10
+ // this file, with the actual function in the options.
11
+ loader: __filename,
12
+ options: {
13
+ fn,
14
+ ...options
15
+ }
16
+ };
17
+ }
18
+ if (typeof module !== "undefined" && process?.env?.NODE_ENV !== "test") {
19
+ module.exports = loader;
20
+ module.exports.getFunctionLoader = getFunctionLoader;
21
+ module.exports.raw = true;
22
+ }
23
+
24
+
25
+
26
+
27
+ exports.function_default = function_default; exports.getFunctionLoader = getFunctionLoader;
28
+ //# sourceMappingURL=chunk-QHCKVO3P.js.map
@@ -27,4 +27,4 @@ export {
27
27
  getDependencyRegExp,
28
28
  sanitizeDependencyPaths
29
29
  };
30
- //# sourceMappingURL=chunk-V5Q5HRXB.mjs.map
30
+ //# sourceMappingURL=chunk-QMD3VO6R.mjs.map
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXUYXKO4Fjs = require('./chunk-XUYXKO4F.js');
4
+
5
+ // src/webpack/compiler.ts
6
+ var _webpack = require('webpack');
7
+ async function getCompiler(config, options) {
8
+ const baseWebpackConfig = await _chunkXUYXKO4Fjs.getDefaultConfiguration.call(void 0, config, options);
9
+ const webpackConfig = config.customizeWebpackConfig?.(baseWebpackConfig) ?? baseWebpackConfig;
10
+ return _webpack.webpack.call(void 0, webpackConfig);
11
+ }
12
+
13
+
14
+
15
+ exports.getCompiler = getCompiler;
16
+ //# sourceMappingURL=chunk-R6NBQKVH.js.map
@@ -33,18 +33,12 @@ var __privateMethod = (obj, member, method) => {
33
33
  return method;
34
34
  };
35
35
 
36
- // ../../node_modules/tsup/assets/esm_shims.js
37
- import { fileURLToPath } from "url";
38
- var getFilename = () => fileURLToPath(import.meta.url);
39
- var __filename = /* @__PURE__ */ getFilename();
40
-
41
36
  export {
42
37
  __require,
43
38
  __export,
44
39
  __privateGet,
45
40
  __privateAdd,
46
41
  __privateSet,
47
- __privateMethod,
48
- __filename
42
+ __privateMethod
49
43
  };
50
- //# sourceMappingURL=chunk-T74IXMA3.mjs.map
44
+ //# sourceMappingURL=chunk-R77RJHC5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -10,4 +10,4 @@ function file() {
10
10
 
11
11
 
12
12
  exports.file = file;
13
- //# sourceMappingURL=chunk-MIV2UFTA.js.map
13
+ //# sourceMappingURL=chunk-S45DIQPN.js.map
@@ -1,23 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4OKAI7APjs = require('./chunk-4OKAI7AP.js');
3
+ var _chunkQFK7JVP3js = require('./chunk-QFK7JVP3.js');
4
4
 
5
5
 
6
- var _chunk6NJAXMSBjs = require('./chunk-6NJAXMSB.js');
6
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
7
7
 
8
8
  // src/commands/manifest/index.ts
9
9
  var command = {
10
10
  command: ["manifest", "m"],
11
11
  desc: "Validate the snap.manifest.json file",
12
12
  builder: (yarg) => {
13
- yarg.option("writeManifest", _chunk6NJAXMSBjs.builders_default.writeManifest);
14
- yarg.option("fix", _chunk6NJAXMSBjs.builders_default.fix);
13
+ yarg.option("writeManifest", _chunkS7UP2YYFjs.builders_default.writeManifest);
14
+ yarg.option("fix", _chunkS7UP2YYFjs.builders_default.fix);
15
15
  },
16
- handler: async (argv) => _chunk4OKAI7APjs.manifestHandler.call(void 0, argv.context.config, { fix: argv.fix })
16
+ handler: async (argv) => _chunkQFK7JVP3js.manifestHandler.call(void 0, argv.context.config, { fix: argv.fix })
17
17
  };
18
18
  var manifest_default = command;
19
19
 
20
20
 
21
21
 
22
22
  exports.manifest_default = manifest_default;
23
- //# sourceMappingURL=chunk-IYAFFTJU.js.map
23
+ //# sourceMappingURL=chunk-S76EZ6HY.js.map
@@ -132,4 +132,4 @@ var builders_default = builders;
132
132
 
133
133
 
134
134
  exports.TranspilationModes = TranspilationModes; exports.builders_default = builders_default;
135
- //# sourceMappingURL=chunk-6NJAXMSB.js.map
135
+ //# sourceMappingURL=chunk-S7UP2YYF.js.map
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKZFWI73Ajs = require('./chunk-KZFWI73A.js');
3
+ var _chunkCGJKCIHPjs = require('./chunk-CGJKCIHP.js');
4
4
 
5
5
 
6
- var _chunkYDLKS46Rjs = require('./chunk-YDLKS46R.js');
6
+ var _chunkMUYXNIONjs = require('./chunk-MUYXNION.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 _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
12
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
13
13
 
14
14
 
15
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
15
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
16
16
 
17
17
  // src/commands/build/build.ts
18
18
  var _node = require('@metamask/snaps-utils/node');
@@ -23,7 +23,7 @@ var steps = [
23
23
  task: async ({ config }) => {
24
24
  const { input } = config;
25
25
  if (!await _node.isFile.call(void 0, input)) {
26
- throw new (0, _chunk46JUPGRYjs.CommandError)(
26
+ throw new (0, _chunkBALQOCUOjs.CommandError)(
27
27
  `Input file not found: "${input}". Make sure that the "input" field in your snap config is correct.`
28
28
  );
29
29
  }
@@ -32,7 +32,7 @@ var steps = [
32
32
  {
33
33
  name: "Building the snap bundle.",
34
34
  task: async ({ config, spinner }) => {
35
- return await _chunkKZFWI73Ajs.build.call(void 0, config, { evaluate: false, spinner });
35
+ return await _chunkCGJKCIHPjs.build.call(void 0, config, { evaluate: false, spinner });
36
36
  }
37
37
  },
38
38
  {
@@ -44,13 +44,13 @@ var steps = [
44
44
  config.output.path,
45
45
  config.output.filename
46
46
  );
47
- await _chunkYDLKS46Rjs.evaluate.call(void 0, path);
48
- _chunkG3IYVYVRjs.info.call(void 0, `Snap bundle evaluated successfully.`, spinner);
47
+ await _chunkMUYXNIONjs.evaluate.call(void 0, path);
48
+ _chunkTJ2F3J6Xjs.info.call(void 0, `Snap bundle evaluated successfully.`, spinner);
49
49
  }
50
50
  }
51
51
  ];
52
52
  async function buildHandler(config) {
53
- return await _chunk5DDAAM2Xjs.executeSteps.call(void 0, steps, {
53
+ return await _chunkXGWLFH7Yjs.executeSteps.call(void 0, steps, {
54
54
  config
55
55
  });
56
56
  }
@@ -58,4 +58,4 @@ async function buildHandler(config) {
58
58
 
59
59
 
60
60
  exports.buildHandler = buildHandler;
61
- //# sourceMappingURL=chunk-NO53G7NT.js.map
61
+ //# sourceMappingURL=chunk-SVYNCWMH.js.map
@@ -121,4 +121,4 @@ export {
121
121
  getAllowedPaths,
122
122
  getServer
123
123
  };
124
- //# sourceMappingURL=chunk-6VFUO2H5.mjs.map
124
+ //# sourceMappingURL=chunk-SYRWT2KT.mjs.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-25SLEORF.mjs";
3
+ } from "./chunk-WYDHPUWV.mjs";
4
4
  import {
5
5
  evaluate
6
- } from "./chunk-MMBQXT2G.mjs";
6
+ } from "./chunk-3WWFQLH4.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/build/build.ts
18
18
  import { isFile } from "@metamask/snaps-utils/node";
@@ -58,4 +58,4 @@ async function buildHandler(config) {
58
58
  export {
59
59
  buildHandler
60
60
  };
61
- //# sourceMappingURL=chunk-QH4AQR33.mjs.map
61
+ //# sourceMappingURL=chunk-T7NEPTM5.mjs.map
@@ -7,4 +7,4 @@ function getRelativePath(absolutePath, cwd = process.cwd()) {
7
7
  export {
8
8
  getRelativePath
9
9
  };
10
- //# sourceMappingURL=chunk-5DSV76XV.mjs.map
10
+ //# sourceMappingURL=chunk-TDSL55B3.mjs.map
@@ -28,4 +28,4 @@ function error(message, spinner) {
28
28
 
29
29
 
30
30
  exports.warn = warn; exports.info = info; exports.error = error;
31
- //# sourceMappingURL=chunk-G3IYVYVR.js.map
31
+ //# sourceMappingURL=chunk-TJ2F3J6X.js.map
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkC44RRX3Hjs = require('./chunk-C44RRX3H.js');
4
+
5
+
6
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
7
+
8
+ // src/commands/serve/index.ts
9
+ var command = {
10
+ command: ["serve", "s"],
11
+ desc: "Locally serve Snap file(s) for testing",
12
+ builder: (yarg) => {
13
+ yarg.option("root", _chunkS7UP2YYFjs.builders_default.root).option("port", _chunkS7UP2YYFjs.builders_default.port);
14
+ },
15
+ handler: async (argv) => _chunkC44RRX3Hjs.serveHandler.call(void 0, argv.context.config, {
16
+ port: argv.port ?? argv.context.config.server.port
17
+ })
18
+ };
19
+ var serve_default = command;
20
+
21
+
22
+
23
+ exports.serve_default = serve_default;
24
+ //# sourceMappingURL=chunk-U4VFMIGO.js.map
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-VXOV3ZCB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDefaultConfiguration
3
- } from "./chunk-KKTPKAZN.mjs";
3
+ } from "./chunk-YWCNJELN.mjs";
4
4
 
5
5
  // src/webpack/compiler.ts
6
6
  import { webpack } from "webpack";
@@ -13,4 +13,4 @@ async function getCompiler(config, options) {
13
13
  export {
14
14
  getCompiler
15
15
  };
16
- //# sourceMappingURL=chunk-WKL7DYYW.mjs.map
16
+ //# sourceMappingURL=chunk-WO7DMSQU.mjs.map
@@ -1,8 +1,8 @@
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
3
 
4
4
 
5
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
5
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
6
6
 
7
7
  // src/commands/manifest/implementation.ts
8
8
  var _node = require('@metamask/snaps-utils/node');
@@ -14,11 +14,11 @@ async function manifest(path, write, spinner) {
14
14
  write
15
15
  );
16
16
  if (write && updated) {
17
- _chunkG3IYVYVRjs.info.call(void 0, "The snap manifest file has been updated.", spinner);
17
+ _chunkTJ2F3J6Xjs.info.call(void 0, "The snap manifest file has been updated.", spinner);
18
18
  }
19
19
  if (!write && errors.length > 0) {
20
20
  const formattedErrors = errors.map((manifestError) => _node.indent.call(void 0, _chalk.red.call(void 0, `\u2022 ${manifestError}`))).join("\n");
21
- _chunkG3IYVYVRjs.error.call(void 0,
21
+ _chunkTJ2F3J6Xjs.error.call(void 0,
22
22
  `The snap manifest file is invalid.
23
23
 
24
24
  ${formattedErrors}
@@ -26,7 +26,7 @@ ${formattedErrors}
26
26
  Run the command with the \`--fix\` flag to attempt to fix the manifest.`,
27
27
  spinner
28
28
  );
29
- _optionalChain([spinner, 'optionalAccess', _ => _.stop, 'call', _2 => _2()]);
29
+ spinner?.stop();
30
30
  process.exitCode = 1;
31
31
  return false;
32
32
  }
@@ -34,7 +34,7 @@ Run the command with the \`--fix\` flag to attempt to fix the manifest.`,
34
34
  const formattedWarnings = warnings.map(
35
35
  (manifestWarning) => _node.indent.call(void 0, _chalk.yellow.call(void 0, `\u2022 ${manifestWarning}`))
36
36
  );
37
- _chunkG3IYVYVRjs.warn.call(void 0,
37
+ _chunkTJ2F3J6Xjs.warn.call(void 0,
38
38
  `The snap manifest file has warnings.
39
39
 
40
40
  ${formattedWarnings.join("\n")}`,
@@ -47,4 +47,4 @@ ${formattedWarnings.join("\n")}`,
47
47
 
48
48
 
49
49
  exports.manifest = manifest;
50
- //# sourceMappingURL=chunk-HGYXRW5B.js.map
50
+ //# sourceMappingURL=chunk-WP2N4NCO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCompiler
3
- } from "./chunk-WKL7DYYW.mjs";
3
+ } from "./chunk-WO7DMSQU.mjs";
4
4
 
5
5
  // src/commands/build/implementation.ts
6
6
  async function build(config, options) {
@@ -25,4 +25,4 @@ async function build(config, options) {
25
25
  export {
26
26
  build
27
27
  };
28
- //# sourceMappingURL=chunk-25SLEORF.mjs.map
28
+ //# sourceMappingURL=chunk-WYDHPUWV.mjs.map
@@ -19,4 +19,4 @@ export {
19
19
  CommandError,
20
20
  ConfigError
21
21
  };
22
- //# sourceMappingURL=chunk-OF4BF57X.mjs.map
22
+ //# sourceMappingURL=chunk-X7TESUC7.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  file
3
- } from "./chunk-6IF2UBYA.mjs";
3
+ } from "./chunk-HYPSSFE5.mjs";
4
4
  import {
5
5
  CONFIG_FILE,
6
6
  TS_CONFIG_FILE
7
- } from "./chunk-TLTTWAEI.mjs";
7
+ } from "./chunk-L72RLBV5.mjs";
8
8
  import {
9
9
  ConfigError
10
- } from "./chunk-OF4BF57X.mjs";
10
+ } from "./chunk-X7TESUC7.mjs";
11
11
 
12
12
  // src/config.ts
13
13
  import { literal, union } from "@metamask/snaps-sdk";
@@ -362,4 +362,4 @@ export {
362
362
  mergeLegacyOptions,
363
363
  getWebpackConfig
364
364
  };
365
- //# sourceMappingURL=chunk-PDNDGMB2.mjs.map
365
+ //# sourceMappingURL=chunk-X7VYAL2L.mjs.map
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkIJYBCHVMjs = require('./chunk-IJYBCHVM.js');
3
+ var _chunkB3NNVTA6js = require('./chunk-B3NNVTA6.js');
4
4
 
5
5
 
6
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
6
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
7
7
 
8
8
  // src/utils/steps.ts
9
9
  var _chalk = require('chalk');
@@ -29,7 +29,7 @@ async function executeSteps(steps, context) {
29
29
  spinner.succeed("Done!");
30
30
  }
31
31
  } catch (_error) {
32
- _chunkG3IYVYVRjs.error.call(void 0, _chunkIJYBCHVMjs.getErrorMessage.call(void 0, _error), spinner);
32
+ _chunkTJ2F3J6Xjs.error.call(void 0, _chunkB3NNVTA6js.getErrorMessage.call(void 0, _error), spinner);
33
33
  spinner.stop();
34
34
  process.exitCode = 1;
35
35
  }
@@ -38,4 +38,4 @@ async function executeSteps(steps, context) {
38
38
 
39
39
 
40
40
  exports.executeSteps = executeSteps;
41
- //# sourceMappingURL=chunk-5DDAAM2X.js.map
41
+ //# sourceMappingURL=chunk-XGWLFH7Y.js.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 _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
3
 
4
4
 
5
5
 
6
- var _chunkEQRMXKXYjs = require('./chunk-EQRMXKXY.js');
6
+ var _chunkOKDY7C7Sjs = require('./chunk-OKDY7C7S.js');
7
7
 
8
8
 
9
9
 
@@ -11,13 +11,13 @@ var _chunkEQRMXKXYjs = require('./chunk-EQRMXKXY.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk7SN4Y44Hjs = require('./chunk-7SN4Y44H.js');
14
+ var _chunkMDHJ5HLMjs = require('./chunk-MDHJ5HLM.js');
15
15
 
16
16
 
17
- var _chunkGKG7TO7Tjs = require('./chunk-GKG7TO7T.js');
17
+ var _chunkQHCKVO3Pjs = require('./chunk-QHCKVO3P.js');
18
18
 
19
19
 
20
- var _chunk5VAZH7L7js = require('./chunk-5VAZH7L7.js');
20
+ var _chunkYQ2E7NEAjs = require('./chunk-YQ2E7NEA.js');
21
21
 
22
22
  // src/webpack/config.ts
23
23
  var _snapswebpackplugin = require('@metamask/snaps-webpack-plugin'); var _snapswebpackplugin2 = _interopRequireDefault(_snapswebpackplugin);
@@ -27,8 +27,8 @@ var _webpack = require('webpack');
27
27
  async function getDefaultConfiguration(config, options = {
28
28
  evaluate: config.evaluate
29
29
  }) {
30
- const spinnerText = _optionalChain([options, 'access', _ => _.spinner, 'optionalAccess', _2 => _2.text]);
31
- const builtInResolver = config.stats.builtIns && new (0, _chunkEQRMXKXYjs.SnapsBuiltInResolver)(config.stats.builtIns, options.spinner);
30
+ const spinnerText = options.spinner?.text;
31
+ const builtInResolver = config.stats.builtIns && new (0, _chunkOKDY7C7Sjs.SnapsBuiltInResolver)(config.stats.builtIns, options.spinner);
32
32
  return {
33
33
  /**
34
34
  * The target is set to `browserslist` so that Webpack will compile the
@@ -38,7 +38,7 @@ async function getDefaultConfiguration(config, options = {
38
38
  *
39
39
  * @see https://webpack.js.org/configuration/target/
40
40
  */
41
- target: `browserslist:${_chunk7SN4Y44Hjs.BROWSERSLIST_FILE}`,
41
+ target: `browserslist:${_chunkMDHJ5HLMjs.BROWSERSLIST_FILE}`,
42
42
  /**
43
43
  * The mode is set to `production` by default, so that Webpack will minify
44
44
  * and optimize the bundle.
@@ -58,7 +58,7 @@ async function getDefaultConfiguration(config, options = {
58
58
  *
59
59
  * @see https://webpack.js.org/configuration/devtool/
60
60
  */
61
- devtool: _chunk7SN4Y44Hjs.getDevTool.call(void 0, config.sourceMap),
61
+ devtool: _chunkMDHJ5HLMjs.getDevTool.call(void 0, config.sourceMap),
62
62
  /**
63
63
  * The stats option controls how much information is printed to the console
64
64
  * when Webpack is running. We set it to `none` so that we can control the
@@ -138,7 +138,7 @@ async function getDefaultConfiguration(config, options = {
138
138
  {
139
139
  test: /\.(js|mjs|cjs|ts)$/u,
140
140
  exclude: /node_modules/u,
141
- use: await _chunk7SN4Y44Hjs.getDefaultLoader.call(void 0, config)
141
+ use: await _chunkMDHJ5HLMjs.getDefaultLoader.call(void 0, config)
142
142
  },
143
143
  /**
144
144
  * This allows importing modules that uses `.js` and not `.mjs` for the
@@ -154,7 +154,7 @@ async function getDefaultConfiguration(config, options = {
154
154
  },
155
155
  config.experimental.wasm && {
156
156
  test: /\.wasm$/u,
157
- use: _chunkGKG7TO7Tjs.getFunctionLoader.call(void 0, _chunk5VAZH7L7js.wasm_default, {})
157
+ use: _chunkQHCKVO3Pjs.getFunctionLoader.call(void 0, _chunkYQ2E7NEAjs.wasm_default, {})
158
158
  }
159
159
  ]
160
160
  },
@@ -175,7 +175,7 @@ async function getDefaultConfiguration(config, options = {
175
175
  * aren't resolved. By default, we set Node.js built-ins to `false`, so
176
176
  * that they are ignored.
177
177
  */
178
- fallback: _chunk7SN4Y44Hjs.getFallbacks.call(void 0, config.polyfills),
178
+ fallback: _chunkMDHJ5HLMjs.getFallbacks.call(void 0, config.polyfills),
179
179
  /**
180
180
  * The plugins to use. We use the {@link SnapsBuiltInResolver} to show
181
181
  * warnings about using Node.js built-ins, when no fallback is specified.
@@ -203,27 +203,27 @@ async function getDefaultConfiguration(config, options = {
203
203
  * output. It's used to show the stats in the terminal, in a format that
204
204
  * is easy to read.
205
205
  */
206
- new (0, _chunkEQRMXKXYjs.SnapsStatsPlugin)({ verbose: config.stats.verbose }, options.spinner),
206
+ new (0, _chunkOKDY7C7Sjs.SnapsStatsPlugin)({ verbose: config.stats.verbose }, options.spinner),
207
207
  /**
208
208
  * The `DefinePlugin` is a Webpack plugin that adds static values to the
209
209
  * bundle. We use it to add the `NODE_DEBUG`, `NODE_ENV`, and `DEBUG`
210
210
  * environment variables, as well as any custom environment
211
211
  * variables (as `process.env`).
212
212
  */
213
- new (0, _webpack.DefinePlugin)(_chunk7SN4Y44Hjs.getEnvironmentVariables.call(void 0, config.environment)),
213
+ new (0, _webpack.DefinePlugin)(_chunkMDHJ5HLMjs.getEnvironmentVariables.call(void 0, config.environment)),
214
214
  /**
215
215
  * The `ProgressPlugin` is a Webpack plugin that logs the progress of
216
216
  * the build. We set it to log the progress to the spinner.
217
217
  */
218
218
  new (0, _webpack.ProgressPlugin)({
219
- handler: _chunk7SN4Y44Hjs.getProgressHandler.call(void 0, options.spinner, spinnerText)
219
+ handler: _chunkMDHJ5HLMjs.getProgressHandler.call(void 0, options.spinner, spinnerText)
220
220
  }),
221
221
  /**
222
222
  * The `SnapsBundleWarningPlugin` is a Webpack plugin that shows a
223
223
  * warning when the bundle is potentially incompatible with MetaMask
224
224
  * Snaps.
225
225
  */
226
- new (0, _chunkEQRMXKXYjs.SnapsBundleWarningsPlugin)({
226
+ new (0, _chunkOKDY7C7Sjs.SnapsBundleWarningsPlugin)({
227
227
  builtInResolver,
228
228
  builtIns: Boolean(config.stats.builtIns),
229
229
  buffer: config.stats.buffer
@@ -233,7 +233,7 @@ async function getDefaultConfiguration(config, options = {
233
233
  * for changes. This is useful for rebuilding the bundle when the
234
234
  * manifest file changes.
235
235
  */
236
- options.watch && new (0, _chunkEQRMXKXYjs.SnapsWatchPlugin)(
236
+ options.watch && new (0, _chunkOKDY7C7Sjs.SnapsWatchPlugin)(
237
237
  {
238
238
  bundle: _path.resolve.call(void 0, config.output.path, config.output.filename),
239
239
  evaluate: options.evaluate,
@@ -299,4 +299,4 @@ async function getDefaultConfiguration(config, options = {
299
299
 
300
300
 
301
301
  exports.getDefaultConfiguration = getDefaultConfiguration;
302
- //# sourceMappingURL=chunk-3LNPS7AX.js.map
302
+ //# sourceMappingURL=chunk-XUYXKO4F.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  getConfigByArgv
3
- } from "./chunk-PDNDGMB2.mjs";
3
+ } from "./chunk-X7VYAL2L.mjs";
4
4
  import {
5
5
  sanitizeInputs
6
- } from "./chunk-TLTTWAEI.mjs";
6
+ } from "./chunk-L72RLBV5.mjs";
7
7
  import {
8
8
  getYargsErrorMessage
9
- } from "./chunk-YYYOE2GO.mjs";
9
+ } from "./chunk-7RHK2YTB.mjs";
10
10
  import {
11
11
  error
12
- } from "./chunk-JMISQ4HT.mjs";
12
+ } from "./chunk-ZAW4ZWQX.mjs";
13
13
  import {
14
14
  builders_default
15
- } from "./chunk-ZOQ32RQI.mjs";
15
+ } from "./chunk-MR44GPM3.mjs";
16
16
 
17
17
  // src/cli.ts
18
18
  import semver from "semver";
@@ -61,4 +61,4 @@ export {
61
61
  checkNodeVersion,
62
62
  cli
63
63
  };
64
- //# sourceMappingURL=chunk-S5ERYB6I.mjs.map
64
+ //# sourceMappingURL=chunk-XZJLYKES.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getErrorMessage
3
- } from "./chunk-YYYOE2GO.mjs";
3
+ } from "./chunk-7RHK2YTB.mjs";
4
4
  import {
5
5
  error
6
- } from "./chunk-JMISQ4HT.mjs";
6
+ } from "./chunk-ZAW4ZWQX.mjs";
7
7
 
8
8
  // src/utils/steps.ts
9
9
  import { dim } from "chalk";
@@ -38,4 +38,4 @@ async function executeSteps(steps, context) {
38
38
  export {
39
39
  executeSteps
40
40
  };
41
- //# sourceMappingURL=chunk-HJ4276TR.mjs.map
41
+ //# sourceMappingURL=chunk-YCYGKEXF.mjs.map