immosquare-cleaner 0.1.63 → 0.1.65

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 (1339) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/lib/immosquare-cleaner.rb +37 -37
  4. data/lib/tasks/immosquare_cleaner.rake +17 -1
  5. data/linters/rubocop/cop/custom_cops/style/font_awesome_normalization.rb +106 -0
  6. data/linters/rubocop-3.4.1.yml +3 -1
  7. data/linters/rubocop.yml +4 -0
  8. data/node_modules/@babel/compat-data/data/plugins.json +6 -7
  9. data/node_modules/@babel/compat-data/package.json +2 -2
  10. data/node_modules/@babel/core/lib/config/files/configuration.js +3 -0
  11. data/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -1
  12. data/node_modules/@babel/core/lib/config/files/module-types.js +74 -63
  13. data/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  14. data/node_modules/@babel/core/lib/config/files/plugins.js +1 -0
  15. data/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -1
  16. data/node_modules/@babel/core/lib/config/partial.js +1 -1
  17. data/node_modules/@babel/core/lib/config/partial.js.map +1 -1
  18. data/node_modules/@babel/core/lib/index.js +1 -2
  19. data/node_modules/@babel/core/lib/index.js.map +1 -1
  20. data/node_modules/@babel/core/lib/parser/index.js.map +1 -1
  21. data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +3 -1
  22. data/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -1
  23. data/node_modules/@babel/core/lib/transformation/file/file.js +2 -4
  24. data/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  25. data/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -1
  26. data/node_modules/@babel/core/lib/transformation/util/clone-deep.js +27 -7
  27. data/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -1
  28. data/node_modules/@babel/core/package.json +13 -14
  29. data/node_modules/@babel/generator/lib/generators/classes.js +7 -4
  30. data/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  31. data/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
  32. data/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
  33. data/node_modules/@babel/generator/lib/generators/expressions.js +9 -3
  34. data/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  35. data/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
  36. data/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  37. data/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
  38. data/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  39. data/node_modules/@babel/generator/lib/generators/types.js +0 -9
  40. data/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  41. data/node_modules/@babel/generator/lib/generators/typescript.js +36 -18
  42. data/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  43. data/node_modules/@babel/generator/lib/node/parentheses.js +40 -3
  44. data/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  45. data/node_modules/@babel/generator/lib/printer.js +4 -3
  46. data/node_modules/@babel/generator/lib/printer.js.map +1 -1
  47. data/node_modules/@babel/generator/package.json +5 -5
  48. data/node_modules/@babel/helper-compilation-targets/lib/index.js +1 -1
  49. data/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  50. data/node_modules/@babel/helper-compilation-targets/package.json +2 -2
  51. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js +1 -9
  52. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js.map +1 -1
  53. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js +9 -0
  54. data/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js.map +1 -1
  55. data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js +1 -1
  56. data/node_modules/@babel/helper-create-class-features-plugin/lib/features.js.map +1 -1
  57. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js +8 -8
  58. data/node_modules/@babel/helper-create-class-features-plugin/lib/index.js.map +1 -1
  59. data/node_modules/@babel/helper-create-class-features-plugin/package.json +5 -5
  60. data/node_modules/@babel/helper-plugin-utils/lib/index.js.map +1 -1
  61. data/node_modules/@babel/helper-plugin-utils/package.json +2 -2
  62. data/node_modules/@babel/helper-replace-supers/lib/index.js.map +1 -1
  63. data/node_modules/@babel/helper-replace-supers/package.json +3 -3
  64. data/node_modules/@babel/helpers/lib/helpers/asyncIterator.js.map +1 -1
  65. data/node_modules/@babel/helpers/lib/helpers/isNativeFunction.js.map +1 -1
  66. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js +1 -1
  67. data/node_modules/@babel/helpers/lib/helpers/objectWithoutProperties.js.map +1 -1
  68. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js +1 -1
  69. data/node_modules/@babel/helpers/lib/helpers/objectWithoutPropertiesLoose.js.map +1 -1
  70. data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js +7 -3
  71. data/node_modules/@babel/helpers/lib/helpers/wrapRegExp.js.map +1 -1
  72. data/node_modules/@babel/helpers/lib/helpers-generated.js +3 -3
  73. data/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  74. data/node_modules/@babel/helpers/package.json +5 -5
  75. data/node_modules/@babel/parser/lib/index.js +426 -236
  76. data/node_modules/@babel/parser/lib/index.js.map +1 -1
  77. data/node_modules/@babel/parser/package.json +2 -2
  78. data/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
  79. data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js +6 -0
  80. data/node_modules/@babel/plugin-transform-flow-strip-types/lib/index.js.map +1 -1
  81. data/node_modules/@babel/plugin-transform-flow-strip-types/package.json +4 -4
  82. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js +3 -2
  83. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/lib/index.js.map +1 -1
  84. data/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +3 -3
  85. data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js +3 -1
  86. data/node_modules/@babel/plugin-transform-typescript/lib/const-enum.js.map +1 -1
  87. data/node_modules/@babel/plugin-transform-typescript/lib/enum.js +24 -11
  88. data/node_modules/@babel/plugin-transform-typescript/lib/enum.js.map +1 -1
  89. data/node_modules/@babel/plugin-transform-typescript/lib/index.js +38 -9
  90. data/node_modules/@babel/plugin-transform-typescript/lib/index.js.map +1 -1
  91. data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js +2 -0
  92. data/node_modules/@babel/plugin-transform-typescript/lib/namespace.js.map +1 -1
  93. data/node_modules/@babel/plugin-transform-typescript/package.json +5 -5
  94. data/node_modules/@babel/template/lib/options.js.map +1 -1
  95. data/node_modules/@babel/template/lib/parse.js.map +1 -1
  96. data/node_modules/@babel/template/package.json +4 -4
  97. data/node_modules/@babel/traverse/lib/cache.js +4 -5
  98. data/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  99. data/node_modules/@babel/traverse/lib/path/conversion.js +1 -2
  100. data/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  101. data/node_modules/@babel/traverse/lib/path/evaluation.js +17 -0
  102. data/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  103. data/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  104. data/node_modules/@babel/traverse/lib/path/modification.js +1 -1
  105. data/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  106. data/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  107. data/node_modules/@babel/traverse/lib/scope/index.js +9 -2
  108. data/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  109. data/node_modules/@babel/traverse/lib/visitors.js +1 -1
  110. data/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  111. data/node_modules/@babel/traverse/package.json +6 -6
  112. data/node_modules/@babel/types/lib/asserts/generated/index.js +8 -0
  113. data/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
  114. data/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  115. data/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
  116. data/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
  117. data/node_modules/@babel/types/lib/builders/generated/lowercase.js +2886 -0
  118. data/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
  119. data/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -255
  120. data/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  121. data/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  122. data/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  123. data/node_modules/@babel/types/lib/definitions/core.js +26 -17
  124. data/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  125. data/node_modules/@babel/types/lib/definitions/flow.js +6 -3
  126. data/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
  127. data/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
  128. data/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
  129. data/node_modules/@babel/types/lib/definitions/typescript.js +51 -26
  130. data/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  131. data/node_modules/@babel/types/lib/definitions/utils.js +2 -2
  132. data/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  133. data/node_modules/@babel/types/lib/index-legacy.d.ts +27 -7
  134. data/node_modules/@babel/types/lib/index.d.ts +1178 -1156
  135. data/node_modules/@babel/types/lib/index.js +10 -21
  136. data/node_modules/@babel/types/lib/index.js.flow +26 -6
  137. data/node_modules/@babel/types/lib/index.js.map +1 -1
  138. data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
  139. data/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  140. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
  141. data/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  142. data/node_modules/@babel/types/lib/validators/generated/index.js +17 -0
  143. data/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  144. data/node_modules/@babel/types/package.json +12 -12
  145. data/node_modules/{@babel/eslint-parser/node_modules/eslint-visitor-keys → @eslint/config-helpers}/LICENSE +2 -2
  146. data/node_modules/@eslint/config-helpers/README.md +97 -0
  147. data/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +546 -0
  148. data/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +22 -0
  149. data/node_modules/@eslint/config-helpers/dist/cjs/types.cts +31 -0
  150. data/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +22 -0
  151. data/node_modules/@eslint/config-helpers/dist/esm/index.js +544 -0
  152. data/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +23 -0
  153. data/node_modules/@eslint/config-helpers/dist/esm/types.ts +31 -0
  154. data/node_modules/@eslint/config-helpers/package.json +60 -0
  155. data/node_modules/@eslint/js/package.json +1 -1
  156. data/node_modules/@eslint-community/eslint-utils/index.js +21 -1
  157. data/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
  158. data/node_modules/@eslint-community/eslint-utils/index.mjs +21 -1
  159. data/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
  160. data/node_modules/@eslint-community/eslint-utils/package.json +1 -1
  161. data/node_modules/acorn/CHANGELOG.md +12 -0
  162. data/node_modules/acorn/dist/acorn.js +33 -24
  163. data/node_modules/acorn/dist/acorn.mjs +33 -24
  164. data/node_modules/acorn/package.json +1 -1
  165. data/node_modules/async-function/CHANGELOG.md +16 -0
  166. data/node_modules/{jscodeshift → async-function}/LICENSE +1 -1
  167. data/node_modules/async-function/README.md +51 -0
  168. data/node_modules/async-function/index.d.mts +3 -0
  169. data/node_modules/async-function/index.d.ts +13 -0
  170. data/node_modules/async-function/index.js +8 -0
  171. data/node_modules/async-function/index.mjs +4 -0
  172. data/node_modules/async-function/legacy.js +18 -0
  173. data/node_modules/async-function/package.json +86 -0
  174. data/node_modules/async-function/require.mjs +5 -0
  175. data/node_modules/async-function/test/index.js +40 -0
  176. data/node_modules/async-function/tsconfig.json +9 -0
  177. data/node_modules/browserslist/index.js +23 -4
  178. data/node_modules/browserslist/node.js +69 -60
  179. data/node_modules/browserslist/package.json +1 -1
  180. data/node_modules/call-bind-apply-helpers/CHANGELOG.md +7 -0
  181. data/node_modules/call-bind-apply-helpers/index.d.ts +38 -20
  182. data/node_modules/call-bind-apply-helpers/index.js +1 -1
  183. data/node_modules/call-bind-apply-helpers/package.json +8 -8
  184. data/node_modules/call-bind-apply-helpers/test/index.js +4 -4
  185. data/node_modules/call-bound/CHANGELOG.md +8 -0
  186. data/node_modules/call-bound/index.d.ts +91 -10
  187. data/node_modules/call-bound/index.js +4 -3
  188. data/node_modules/call-bound/package.json +10 -10
  189. data/node_modules/call-bound/test/index.js +11 -4
  190. data/node_modules/call-bound/tsconfig.json +2 -1
  191. data/node_modules/caniuse-lite/data/agents.js +1 -1
  192. data/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  193. data/node_modules/caniuse-lite/data/features/aac.js +1 -1
  194. data/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  195. data/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  196. data/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  197. data/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  198. data/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  199. data/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  200. data/node_modules/caniuse-lite/data/features/apng.js +1 -1
  201. data/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  202. data/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  203. data/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  204. data/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  205. data/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  206. data/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  207. data/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  208. data/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  209. data/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  210. data/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  211. data/node_modules/caniuse-lite/data/features/audio.js +1 -1
  212. data/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  213. data/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  214. data/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  215. data/node_modules/caniuse-lite/data/features/av1.js +1 -1
  216. data/node_modules/caniuse-lite/data/features/avif.js +1 -1
  217. data/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  218. data/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  219. data/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  220. data/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  221. data/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  222. data/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  223. data/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  224. data/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  225. data/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  226. data/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  227. data/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  228. data/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  229. data/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  230. data/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  231. data/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  232. data/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  233. data/node_modules/caniuse-lite/data/features/calc.js +1 -1
  234. data/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  235. data/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  236. data/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  237. data/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  238. data/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  239. data/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  240. data/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  241. data/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  242. data/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  243. data/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  244. data/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  245. data/node_modules/caniuse-lite/data/features/colr.js +1 -1
  246. data/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  247. data/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  248. data/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  249. data/node_modules/caniuse-lite/data/features/const.js +1 -1
  250. data/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  251. data/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  252. data/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  253. data/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  254. data/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  255. data/node_modules/caniuse-lite/data/features/cors.js +1 -1
  256. data/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  257. data/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  258. data/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  259. data/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  260. data/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  261. data/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  262. data/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  263. data/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  264. data/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  265. data/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  266. data/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  267. data/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  268. data/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  269. data/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  270. data/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  271. data/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  272. data/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  273. data/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  274. data/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  275. data/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  276. data/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  277. data/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  278. data/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  279. data/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  280. data/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  281. data/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  282. data/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  283. data/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  284. data/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  285. data/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  286. data/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  287. data/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  288. data/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  289. data/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  290. data/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  291. data/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  292. data/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  293. data/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  294. data/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  295. data/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  296. data/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  297. data/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  298. data/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  299. data/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  300. data/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  301. data/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  302. data/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  303. data/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  304. data/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  305. data/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  306. data/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  307. data/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  308. data/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  309. data/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  310. data/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  311. data/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  312. data/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  313. data/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  314. data/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  315. data/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  316. data/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  317. data/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  318. data/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  319. data/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  320. data/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  321. data/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  322. data/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  323. data/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  324. data/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  325. data/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  326. data/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  327. data/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  328. data/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  329. data/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  330. data/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  331. data/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  332. data/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  333. data/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  334. data/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  335. data/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  336. data/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  337. data/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  338. data/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  339. data/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  340. data/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  341. data/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  342. data/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  343. data/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  344. data/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  345. data/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  346. data/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  347. data/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  348. data/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  349. data/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  350. data/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  351. data/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  352. data/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  353. data/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  354. data/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  355. data/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  356. data/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  357. data/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  358. data/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  359. data/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  360. data/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  361. data/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  362. data/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  363. data/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  364. data/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  365. data/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  366. data/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  367. data/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  368. data/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  369. data/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  370. data/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  371. data/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  372. data/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  373. data/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  374. data/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  375. data/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  376. data/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  377. data/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  378. data/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  379. data/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  380. data/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  381. data/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  382. data/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  383. data/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  384. data/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  385. data/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  386. data/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  387. data/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  388. data/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  389. data/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  390. data/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  391. data/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  392. data/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  393. data/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  394. data/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  395. data/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  396. data/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  397. data/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  398. data/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  399. data/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  400. data/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  401. data/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  402. data/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  403. data/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  404. data/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  405. data/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  406. data/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  407. data/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  408. data/node_modules/caniuse-lite/data/features/details.js +1 -1
  409. data/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  410. data/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  411. data/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  412. data/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  413. data/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  414. data/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  415. data/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  416. data/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  417. data/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  418. data/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  419. data/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  420. data/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  421. data/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  422. data/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  423. data/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  424. data/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  425. data/node_modules/caniuse-lite/data/features/download.js +1 -1
  426. data/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  427. data/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  428. data/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  429. data/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  430. data/node_modules/caniuse-lite/data/features/eme.js +1 -1
  431. data/node_modules/caniuse-lite/data/features/eot.js +1 -1
  432. data/node_modules/caniuse-lite/data/features/es5.js +1 -1
  433. data/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  434. data/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  435. data/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  436. data/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  437. data/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  438. data/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  439. data/node_modules/caniuse-lite/data/features/es6.js +1 -1
  440. data/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  441. data/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  442. data/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  443. data/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  444. data/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  445. data/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  446. data/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  447. data/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  448. data/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  449. data/node_modules/caniuse-lite/data/features/flac.js +1 -1
  450. data/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  451. data/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  452. data/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  453. data/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  454. data/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  455. data/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  456. data/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  457. data/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  458. data/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  459. data/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  460. data/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  461. data/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  462. data/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  463. data/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  464. data/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  465. data/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  466. data/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  467. data/node_modules/caniuse-lite/data/features/forms.js +1 -1
  468. data/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  469. data/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  470. data/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  471. data/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  472. data/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  473. data/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  474. data/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  475. data/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  476. data/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  477. data/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  478. data/node_modules/caniuse-lite/data/features/heif.js +1 -1
  479. data/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  480. data/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  481. data/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  482. data/node_modules/caniuse-lite/data/features/history.js +1 -1
  483. data/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  484. data/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  485. data/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  486. data/node_modules/caniuse-lite/data/features/http2.js +1 -1
  487. data/node_modules/caniuse-lite/data/features/http3.js +1 -1
  488. data/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  489. data/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  490. data/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  491. data/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  492. data/node_modules/caniuse-lite/data/features/ime.js +1 -1
  493. data/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  494. data/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  495. data/node_modules/caniuse-lite/data/features/imports.js +1 -1
  496. data/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  497. data/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  498. data/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  499. data/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  500. data/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  501. data/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  502. data/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  503. data/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  504. data/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  505. data/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  506. data/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  507. data/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  508. data/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  509. data/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  510. data/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  511. data/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  512. data/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  513. data/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  514. data/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  515. data/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  516. data/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  517. data/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  518. data/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  519. data/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  520. data/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  521. data/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  522. data/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  523. data/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  524. data/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  525. data/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  526. data/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  527. data/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  528. data/node_modules/caniuse-lite/data/features/json.js +1 -1
  529. data/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  530. data/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  531. data/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  532. data/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  533. data/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  534. data/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  535. data/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  536. data/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  537. data/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  538. data/node_modules/caniuse-lite/data/features/let.js +1 -1
  539. data/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  540. data/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  541. data/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  542. data/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  543. data/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  544. data/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  545. data/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  546. data/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  547. data/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  548. data/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  549. data/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  550. data/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  551. data/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  552. data/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  553. data/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  554. data/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  555. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  556. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  557. data/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  558. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  559. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  560. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  561. data/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  562. data/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  563. data/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  564. data/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  565. data/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  566. data/node_modules/caniuse-lite/data/features/menu.js +1 -1
  567. data/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  568. data/node_modules/caniuse-lite/data/features/meter.js +1 -1
  569. data/node_modules/caniuse-lite/data/features/midi.js +1 -1
  570. data/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  571. data/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  572. data/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  573. data/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  574. data/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  575. data/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  576. data/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  577. data/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  578. data/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  579. data/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  580. data/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  581. data/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  582. data/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  583. data/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  584. data/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  585. data/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  586. data/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  587. data/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  588. data/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  589. data/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  590. data/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  591. data/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  592. data/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  593. data/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  594. data/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  595. data/node_modules/caniuse-lite/data/features/opus.js +1 -1
  596. data/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  597. data/node_modules/caniuse-lite/data/features/outline.js +1 -1
  598. data/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  599. data/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  600. data/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  601. data/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  602. data/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  603. data/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  604. data/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  605. data/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  606. data/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  607. data/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  608. data/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  609. data/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  610. data/node_modules/caniuse-lite/data/features/picture.js +1 -1
  611. data/node_modules/caniuse-lite/data/features/ping.js +1 -1
  612. data/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  613. data/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  614. data/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  615. data/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  616. data/node_modules/caniuse-lite/data/features/portals.js +1 -1
  617. data/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  618. data/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  619. data/node_modules/caniuse-lite/data/features/progress.js +1 -1
  620. data/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  621. data/node_modules/caniuse-lite/data/features/promises.js +1 -1
  622. data/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  623. data/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  624. data/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  625. data/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  626. data/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  627. data/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  628. data/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  629. data/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  630. data/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  631. data/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  632. data/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  633. data/node_modules/caniuse-lite/data/features/rem.js +1 -1
  634. data/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  635. data/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  636. data/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  637. data/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  638. data/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  639. data/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  640. data/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  641. data/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  642. data/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  643. data/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  644. data/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  645. data/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  646. data/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  647. data/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  648. data/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  649. data/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  650. data/node_modules/caniuse-lite/data/features/selectlist.js +1 -1
  651. data/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  652. data/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  653. data/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  654. data/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  655. data/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  656. data/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  657. data/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  658. data/node_modules/caniuse-lite/data/features/sni.js +1 -1
  659. data/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  660. data/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  661. data/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  662. data/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  663. data/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  664. data/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  665. data/node_modules/caniuse-lite/data/features/stream.js +1 -1
  666. data/node_modules/caniuse-lite/data/features/streams.js +1 -1
  667. data/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  668. data/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  669. data/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  670. data/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  671. data/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  672. data/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  673. data/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  674. data/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  675. data/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  676. data/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  677. data/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  678. data/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  679. data/node_modules/caniuse-lite/data/features/svg.js +1 -1
  680. data/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  681. data/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  682. data/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  683. data/node_modules/caniuse-lite/data/features/template.js +1 -1
  684. data/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  685. data/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  686. data/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  687. data/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  688. data/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  689. data/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  690. data/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  691. data/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  692. data/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  693. data/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  694. data/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  695. data/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  696. data/node_modules/caniuse-lite/data/features/touch.js +1 -1
  697. data/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  698. data/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  699. data/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  700. data/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  701. data/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  702. data/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  703. data/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  704. data/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  705. data/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  706. data/node_modules/caniuse-lite/data/features/url.js +1 -1
  707. data/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  708. data/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  709. data/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  710. data/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  711. data/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  712. data/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  713. data/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  714. data/node_modules/caniuse-lite/data/features/video.js +1 -1
  715. data/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  716. data/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  717. data/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  718. data/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  719. data/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  720. data/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  721. data/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  722. data/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  723. data/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  724. data/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  725. data/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  726. data/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  727. data/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  728. data/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  729. data/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  730. data/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  731. data/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  732. data/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  733. data/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  734. data/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  735. data/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  736. data/node_modules/caniuse-lite/data/features/wav.js +1 -1
  737. data/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  738. data/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  739. data/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  740. data/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  741. data/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  742. data/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  743. data/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  744. data/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  745. data/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  746. data/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  747. data/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  748. data/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  749. data/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  750. data/node_modules/caniuse-lite/data/features/webm.js +1 -1
  751. data/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  752. data/node_modules/caniuse-lite/data/features/webp.js +1 -1
  753. data/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  754. data/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  755. data/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  756. data/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  757. data/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  758. data/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  759. data/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  760. data/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  761. data/node_modules/caniuse-lite/data/features/woff.js +1 -1
  762. data/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  763. data/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  764. data/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  765. data/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  766. data/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  767. data/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  768. data/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  769. data/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  770. data/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  771. data/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  772. data/node_modules/caniuse-lite/data/regions/AD.js +1 -1
  773. data/node_modules/caniuse-lite/data/regions/AE.js +1 -1
  774. data/node_modules/caniuse-lite/data/regions/AF.js +1 -1
  775. data/node_modules/caniuse-lite/data/regions/AG.js +1 -1
  776. data/node_modules/caniuse-lite/data/regions/AI.js +1 -1
  777. data/node_modules/caniuse-lite/data/regions/AL.js +1 -1
  778. data/node_modules/caniuse-lite/data/regions/AM.js +1 -1
  779. data/node_modules/caniuse-lite/data/regions/AO.js +1 -1
  780. data/node_modules/caniuse-lite/data/regions/AR.js +1 -1
  781. data/node_modules/caniuse-lite/data/regions/AS.js +1 -1
  782. data/node_modules/caniuse-lite/data/regions/AT.js +1 -1
  783. data/node_modules/caniuse-lite/data/regions/AU.js +1 -1
  784. data/node_modules/caniuse-lite/data/regions/AW.js +1 -1
  785. data/node_modules/caniuse-lite/data/regions/AX.js +1 -1
  786. data/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
  787. data/node_modules/caniuse-lite/data/regions/BA.js +1 -1
  788. data/node_modules/caniuse-lite/data/regions/BB.js +1 -1
  789. data/node_modules/caniuse-lite/data/regions/BD.js +1 -1
  790. data/node_modules/caniuse-lite/data/regions/BE.js +1 -1
  791. data/node_modules/caniuse-lite/data/regions/BF.js +1 -1
  792. data/node_modules/caniuse-lite/data/regions/BG.js +1 -1
  793. data/node_modules/caniuse-lite/data/regions/BH.js +1 -1
  794. data/node_modules/caniuse-lite/data/regions/BI.js +1 -1
  795. data/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
  796. data/node_modules/caniuse-lite/data/regions/BM.js +1 -1
  797. data/node_modules/caniuse-lite/data/regions/BN.js +1 -1
  798. data/node_modules/caniuse-lite/data/regions/BO.js +1 -1
  799. data/node_modules/caniuse-lite/data/regions/BR.js +1 -1
  800. data/node_modules/caniuse-lite/data/regions/BS.js +1 -1
  801. data/node_modules/caniuse-lite/data/regions/BT.js +1 -1
  802. data/node_modules/caniuse-lite/data/regions/BW.js +1 -1
  803. data/node_modules/caniuse-lite/data/regions/BY.js +1 -1
  804. data/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
  805. data/node_modules/caniuse-lite/data/regions/CA.js +1 -1
  806. data/node_modules/caniuse-lite/data/regions/CD.js +1 -1
  807. data/node_modules/caniuse-lite/data/regions/CF.js +1 -1
  808. data/node_modules/caniuse-lite/data/regions/CG.js +1 -1
  809. data/node_modules/caniuse-lite/data/regions/CH.js +1 -1
  810. data/node_modules/caniuse-lite/data/regions/CI.js +1 -1
  811. data/node_modules/caniuse-lite/data/regions/CK.js +1 -1
  812. data/node_modules/caniuse-lite/data/regions/CL.js +1 -1
  813. data/node_modules/caniuse-lite/data/regions/CM.js +1 -1
  814. data/node_modules/caniuse-lite/data/regions/CN.js +1 -1
  815. data/node_modules/caniuse-lite/data/regions/CO.js +1 -1
  816. data/node_modules/caniuse-lite/data/regions/CR.js +1 -1
  817. data/node_modules/caniuse-lite/data/regions/CU.js +1 -1
  818. data/node_modules/caniuse-lite/data/regions/CV.js +1 -1
  819. data/node_modules/caniuse-lite/data/regions/CX.js +1 -1
  820. data/node_modules/caniuse-lite/data/regions/CY.js +1 -1
  821. data/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
  822. data/node_modules/caniuse-lite/data/regions/DE.js +1 -1
  823. data/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
  824. data/node_modules/caniuse-lite/data/regions/DK.js +1 -1
  825. data/node_modules/caniuse-lite/data/regions/DM.js +1 -1
  826. data/node_modules/caniuse-lite/data/regions/DO.js +1 -1
  827. data/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
  828. data/node_modules/caniuse-lite/data/regions/EC.js +1 -1
  829. data/node_modules/caniuse-lite/data/regions/EE.js +1 -1
  830. data/node_modules/caniuse-lite/data/regions/EG.js +1 -1
  831. data/node_modules/caniuse-lite/data/regions/ER.js +1 -1
  832. data/node_modules/caniuse-lite/data/regions/ES.js +1 -1
  833. data/node_modules/caniuse-lite/data/regions/ET.js +1 -1
  834. data/node_modules/caniuse-lite/data/regions/FI.js +1 -1
  835. data/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
  836. data/node_modules/caniuse-lite/data/regions/FK.js +1 -1
  837. data/node_modules/caniuse-lite/data/regions/FM.js +1 -1
  838. data/node_modules/caniuse-lite/data/regions/FO.js +1 -1
  839. data/node_modules/caniuse-lite/data/regions/FR.js +1 -1
  840. data/node_modules/caniuse-lite/data/regions/GA.js +1 -1
  841. data/node_modules/caniuse-lite/data/regions/GB.js +1 -1
  842. data/node_modules/caniuse-lite/data/regions/GD.js +1 -1
  843. data/node_modules/caniuse-lite/data/regions/GE.js +1 -1
  844. data/node_modules/caniuse-lite/data/regions/GF.js +1 -1
  845. data/node_modules/caniuse-lite/data/regions/GG.js +1 -1
  846. data/node_modules/caniuse-lite/data/regions/GH.js +1 -1
  847. data/node_modules/caniuse-lite/data/regions/GI.js +1 -1
  848. data/node_modules/caniuse-lite/data/regions/GL.js +1 -1
  849. data/node_modules/caniuse-lite/data/regions/GM.js +1 -1
  850. data/node_modules/caniuse-lite/data/regions/GN.js +1 -1
  851. data/node_modules/caniuse-lite/data/regions/GP.js +1 -1
  852. data/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
  853. data/node_modules/caniuse-lite/data/regions/GR.js +1 -1
  854. data/node_modules/caniuse-lite/data/regions/GT.js +1 -1
  855. data/node_modules/caniuse-lite/data/regions/GU.js +1 -1
  856. data/node_modules/caniuse-lite/data/regions/GW.js +1 -1
  857. data/node_modules/caniuse-lite/data/regions/GY.js +1 -1
  858. data/node_modules/caniuse-lite/data/regions/HK.js +1 -1
  859. data/node_modules/caniuse-lite/data/regions/HN.js +1 -1
  860. data/node_modules/caniuse-lite/data/regions/HR.js +1 -1
  861. data/node_modules/caniuse-lite/data/regions/HT.js +1 -1
  862. data/node_modules/caniuse-lite/data/regions/HU.js +1 -1
  863. data/node_modules/caniuse-lite/data/regions/ID.js +1 -1
  864. data/node_modules/caniuse-lite/data/regions/IE.js +1 -1
  865. data/node_modules/caniuse-lite/data/regions/IL.js +1 -1
  866. data/node_modules/caniuse-lite/data/regions/IM.js +1 -1
  867. data/node_modules/caniuse-lite/data/regions/IN.js +1 -1
  868. data/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
  869. data/node_modules/caniuse-lite/data/regions/IR.js +1 -1
  870. data/node_modules/caniuse-lite/data/regions/IS.js +1 -1
  871. data/node_modules/caniuse-lite/data/regions/IT.js +1 -1
  872. data/node_modules/caniuse-lite/data/regions/JE.js +1 -1
  873. data/node_modules/caniuse-lite/data/regions/JM.js +1 -1
  874. data/node_modules/caniuse-lite/data/regions/JO.js +1 -1
  875. data/node_modules/caniuse-lite/data/regions/JP.js +1 -1
  876. data/node_modules/caniuse-lite/data/regions/KE.js +1 -1
  877. data/node_modules/caniuse-lite/data/regions/KG.js +1 -1
  878. data/node_modules/caniuse-lite/data/regions/KH.js +1 -1
  879. data/node_modules/caniuse-lite/data/regions/KI.js +1 -1
  880. data/node_modules/caniuse-lite/data/regions/KM.js +1 -1
  881. data/node_modules/caniuse-lite/data/regions/KN.js +1 -1
  882. data/node_modules/caniuse-lite/data/regions/KP.js +1 -1
  883. data/node_modules/caniuse-lite/data/regions/KR.js +1 -1
  884. data/node_modules/caniuse-lite/data/regions/KW.js +1 -1
  885. data/node_modules/caniuse-lite/data/regions/KY.js +1 -1
  886. data/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
  887. data/node_modules/caniuse-lite/data/regions/LA.js +1 -1
  888. data/node_modules/caniuse-lite/data/regions/LB.js +1 -1
  889. data/node_modules/caniuse-lite/data/regions/LC.js +1 -1
  890. data/node_modules/caniuse-lite/data/regions/LI.js +1 -1
  891. data/node_modules/caniuse-lite/data/regions/LK.js +1 -1
  892. data/node_modules/caniuse-lite/data/regions/LR.js +1 -1
  893. data/node_modules/caniuse-lite/data/regions/LS.js +1 -1
  894. data/node_modules/caniuse-lite/data/regions/LT.js +1 -1
  895. data/node_modules/caniuse-lite/data/regions/LU.js +1 -1
  896. data/node_modules/caniuse-lite/data/regions/LV.js +1 -1
  897. data/node_modules/caniuse-lite/data/regions/LY.js +1 -1
  898. data/node_modules/caniuse-lite/data/regions/MA.js +1 -1
  899. data/node_modules/caniuse-lite/data/regions/MC.js +1 -1
  900. data/node_modules/caniuse-lite/data/regions/MD.js +1 -1
  901. data/node_modules/caniuse-lite/data/regions/ME.js +1 -1
  902. data/node_modules/caniuse-lite/data/regions/MG.js +1 -1
  903. data/node_modules/caniuse-lite/data/regions/MH.js +1 -1
  904. data/node_modules/caniuse-lite/data/regions/MK.js +1 -1
  905. data/node_modules/caniuse-lite/data/regions/ML.js +1 -1
  906. data/node_modules/caniuse-lite/data/regions/MM.js +1 -1
  907. data/node_modules/caniuse-lite/data/regions/MN.js +1 -1
  908. data/node_modules/caniuse-lite/data/regions/MO.js +1 -1
  909. data/node_modules/caniuse-lite/data/regions/MP.js +1 -1
  910. data/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
  911. data/node_modules/caniuse-lite/data/regions/MR.js +1 -1
  912. data/node_modules/caniuse-lite/data/regions/MS.js +1 -1
  913. data/node_modules/caniuse-lite/data/regions/MT.js +1 -1
  914. data/node_modules/caniuse-lite/data/regions/MU.js +1 -1
  915. data/node_modules/caniuse-lite/data/regions/MV.js +1 -1
  916. data/node_modules/caniuse-lite/data/regions/MW.js +1 -1
  917. data/node_modules/caniuse-lite/data/regions/MX.js +1 -1
  918. data/node_modules/caniuse-lite/data/regions/MY.js +1 -1
  919. data/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
  920. data/node_modules/caniuse-lite/data/regions/NA.js +1 -1
  921. data/node_modules/caniuse-lite/data/regions/NC.js +1 -1
  922. data/node_modules/caniuse-lite/data/regions/NE.js +1 -1
  923. data/node_modules/caniuse-lite/data/regions/NF.js +1 -1
  924. data/node_modules/caniuse-lite/data/regions/NG.js +1 -1
  925. data/node_modules/caniuse-lite/data/regions/NI.js +1 -1
  926. data/node_modules/caniuse-lite/data/regions/NL.js +1 -1
  927. data/node_modules/caniuse-lite/data/regions/NO.js +1 -1
  928. data/node_modules/caniuse-lite/data/regions/NP.js +1 -1
  929. data/node_modules/caniuse-lite/data/regions/NR.js +1 -1
  930. data/node_modules/caniuse-lite/data/regions/NU.js +1 -1
  931. data/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
  932. data/node_modules/caniuse-lite/data/regions/OM.js +1 -1
  933. data/node_modules/caniuse-lite/data/regions/PA.js +1 -1
  934. data/node_modules/caniuse-lite/data/regions/PE.js +1 -1
  935. data/node_modules/caniuse-lite/data/regions/PF.js +1 -1
  936. data/node_modules/caniuse-lite/data/regions/PG.js +1 -1
  937. data/node_modules/caniuse-lite/data/regions/PH.js +1 -1
  938. data/node_modules/caniuse-lite/data/regions/PK.js +1 -1
  939. data/node_modules/caniuse-lite/data/regions/PL.js +1 -1
  940. data/node_modules/caniuse-lite/data/regions/PM.js +1 -1
  941. data/node_modules/caniuse-lite/data/regions/PN.js +1 -1
  942. data/node_modules/caniuse-lite/data/regions/PR.js +1 -1
  943. data/node_modules/caniuse-lite/data/regions/PS.js +1 -1
  944. data/node_modules/caniuse-lite/data/regions/PT.js +1 -1
  945. data/node_modules/caniuse-lite/data/regions/PW.js +1 -1
  946. data/node_modules/caniuse-lite/data/regions/PY.js +1 -1
  947. data/node_modules/caniuse-lite/data/regions/QA.js +1 -1
  948. data/node_modules/caniuse-lite/data/regions/RE.js +1 -1
  949. data/node_modules/caniuse-lite/data/regions/RO.js +1 -1
  950. data/node_modules/caniuse-lite/data/regions/RS.js +1 -1
  951. data/node_modules/caniuse-lite/data/regions/RU.js +1 -1
  952. data/node_modules/caniuse-lite/data/regions/RW.js +1 -1
  953. data/node_modules/caniuse-lite/data/regions/SA.js +1 -1
  954. data/node_modules/caniuse-lite/data/regions/SB.js +1 -1
  955. data/node_modules/caniuse-lite/data/regions/SC.js +1 -1
  956. data/node_modules/caniuse-lite/data/regions/SD.js +1 -1
  957. data/node_modules/caniuse-lite/data/regions/SE.js +1 -1
  958. data/node_modules/caniuse-lite/data/regions/SG.js +1 -1
  959. data/node_modules/caniuse-lite/data/regions/SH.js +1 -1
  960. data/node_modules/caniuse-lite/data/regions/SI.js +1 -1
  961. data/node_modules/caniuse-lite/data/regions/SK.js +1 -1
  962. data/node_modules/caniuse-lite/data/regions/SL.js +1 -1
  963. data/node_modules/caniuse-lite/data/regions/SM.js +1 -1
  964. data/node_modules/caniuse-lite/data/regions/SN.js +1 -1
  965. data/node_modules/caniuse-lite/data/regions/SO.js +1 -1
  966. data/node_modules/caniuse-lite/data/regions/SR.js +1 -1
  967. data/node_modules/caniuse-lite/data/regions/ST.js +1 -1
  968. data/node_modules/caniuse-lite/data/regions/SV.js +1 -1
  969. data/node_modules/caniuse-lite/data/regions/SY.js +1 -1
  970. data/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
  971. data/node_modules/caniuse-lite/data/regions/TC.js +1 -1
  972. data/node_modules/caniuse-lite/data/regions/TD.js +1 -1
  973. data/node_modules/caniuse-lite/data/regions/TG.js +1 -1
  974. data/node_modules/caniuse-lite/data/regions/TH.js +1 -1
  975. data/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
  976. data/node_modules/caniuse-lite/data/regions/TL.js +1 -1
  977. data/node_modules/caniuse-lite/data/regions/TM.js +1 -1
  978. data/node_modules/caniuse-lite/data/regions/TN.js +1 -1
  979. data/node_modules/caniuse-lite/data/regions/TO.js +1 -1
  980. data/node_modules/caniuse-lite/data/regions/TR.js +1 -1
  981. data/node_modules/caniuse-lite/data/regions/TT.js +1 -1
  982. data/node_modules/caniuse-lite/data/regions/TV.js +1 -1
  983. data/node_modules/caniuse-lite/data/regions/TW.js +1 -1
  984. data/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
  985. data/node_modules/caniuse-lite/data/regions/UA.js +1 -1
  986. data/node_modules/caniuse-lite/data/regions/UG.js +1 -1
  987. data/node_modules/caniuse-lite/data/regions/US.js +1 -1
  988. data/node_modules/caniuse-lite/data/regions/UY.js +1 -1
  989. data/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
  990. data/node_modules/caniuse-lite/data/regions/VA.js +1 -1
  991. data/node_modules/caniuse-lite/data/regions/VC.js +1 -1
  992. data/node_modules/caniuse-lite/data/regions/VE.js +1 -1
  993. data/node_modules/caniuse-lite/data/regions/VG.js +1 -1
  994. data/node_modules/caniuse-lite/data/regions/VI.js +1 -1
  995. data/node_modules/caniuse-lite/data/regions/VN.js +1 -1
  996. data/node_modules/caniuse-lite/data/regions/VU.js +1 -1
  997. data/node_modules/caniuse-lite/data/regions/WF.js +1 -1
  998. data/node_modules/caniuse-lite/data/regions/WS.js +1 -1
  999. data/node_modules/caniuse-lite/data/regions/YE.js +1 -1
  1000. data/node_modules/caniuse-lite/data/regions/YT.js +1 -1
  1001. data/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
  1002. data/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
  1003. data/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
  1004. data/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
  1005. data/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
  1006. data/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
  1007. data/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
  1008. data/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
  1009. data/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
  1010. data/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
  1011. data/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
  1012. data/node_modules/caniuse-lite/package.json +1 -1
  1013. data/node_modules/electron-to-chromium/chromium-versions.js +4 -1
  1014. data/node_modules/electron-to-chromium/chromium-versions.json +1 -1
  1015. data/node_modules/electron-to-chromium/full-chromium-versions.js +75 -3
  1016. data/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
  1017. data/node_modules/electron-to-chromium/full-versions.js +45 -1
  1018. data/node_modules/electron-to-chromium/full-versions.json +1 -1
  1019. data/node_modules/electron-to-chromium/package.json +1 -1
  1020. data/node_modules/electron-to-chromium/versions.js +8 -1
  1021. data/node_modules/electron-to-chromium/versions.json +1 -1
  1022. data/node_modules/es-object-atoms/CHANGELOG.md +21 -0
  1023. data/node_modules/es-object-atoms/README.md +7 -0
  1024. data/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +2 -2
  1025. data/node_modules/es-object-atoms/ToObject.d.ts +6 -2
  1026. data/node_modules/es-object-atoms/isObject.d.ts +3 -0
  1027. data/node_modules/es-object-atoms/isObject.js +6 -0
  1028. data/node_modules/es-object-atoms/package.json +9 -8
  1029. data/node_modules/es-object-atoms/test/index.js +11 -1
  1030. data/node_modules/es-shim-unscopables/CHANGELOG.md +8 -0
  1031. data/node_modules/es-shim-unscopables/index.d.ts +8 -0
  1032. data/node_modules/es-shim-unscopables/index.js +2 -1
  1033. data/node_modules/es-shim-unscopables/package.json +20 -11
  1034. data/node_modules/es-shim-unscopables/test/index.js +4 -1
  1035. data/node_modules/es-shim-unscopables/test/with.js +8 -0
  1036. data/node_modules/es-shim-unscopables/tsconfig.json +10 -0
  1037. data/node_modules/eslint/README.md +6 -4
  1038. data/node_modules/eslint/lib/config-api.js +12 -0
  1039. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +18 -14
  1040. data/node_modules/eslint/lib/rules/no-console.js +19 -11
  1041. data/node_modules/eslint/lib/rules/no-native-reassign.js +1 -1
  1042. data/node_modules/eslint/lib/rules/no-negated-in-lhs.js +1 -1
  1043. data/node_modules/eslint/lib/types/config-api.d.ts +8 -0
  1044. data/node_modules/eslint/lib/types/rules.d.ts +5199 -0
  1045. data/node_modules/eslint/package.json +14 -6
  1046. data/node_modules/eslint-scope/README.md +4 -3
  1047. data/node_modules/eslint-scope/dist/eslint-scope.cjs +59 -2
  1048. data/node_modules/eslint-scope/lib/index.js +1 -0
  1049. data/node_modules/eslint-scope/lib/referencer.js +52 -0
  1050. data/node_modules/eslint-scope/lib/scope-manager.js +4 -0
  1051. data/node_modules/eslint-scope/lib/scope.js +1 -1
  1052. data/node_modules/eslint-scope/lib/version.js +1 -1
  1053. data/node_modules/eslint-scope/package.json +1 -1
  1054. data/node_modules/flatted/index.js +3 -3
  1055. data/node_modules/flatted/min.js +1 -1
  1056. data/node_modules/flatted/package.json +21 -8
  1057. data/node_modules/flatted/python/flatted.py +4 -4
  1058. data/node_modules/flow-parser/flow_parser.js +5550 -5530
  1059. data/node_modules/flow-parser/package.json +1 -1
  1060. data/node_modules/for-each/CHANGELOG.md +107 -0
  1061. data/node_modules/for-each/README.md +0 -4
  1062. data/node_modules/for-each/index.d.ts +35 -0
  1063. data/node_modules/for-each/index.js +11 -4
  1064. data/node_modules/for-each/package.json +47 -36
  1065. data/node_modules/for-each/test/test.js +54 -12
  1066. data/node_modules/for-each/tsconfig.json +8 -0
  1067. data/node_modules/get-intrinsic/CHANGELOG.md +8 -0
  1068. data/node_modules/get-intrinsic/index.js +1 -0
  1069. data/node_modules/get-intrinsic/package.json +8 -8
  1070. data/node_modules/import-fresh/index.js +2 -1
  1071. data/node_modules/import-fresh/package.json +6 -1
  1072. data/node_modules/import-fresh/readme.md +14 -8
  1073. data/node_modules/is-async-function/CHANGELOG.md +13 -0
  1074. data/node_modules/is-async-function/index.d.ts +4 -2
  1075. data/node_modules/is-async-function/index.js +3 -18
  1076. data/node_modules/is-async-function/package.json +8 -3
  1077. data/node_modules/is-boolean-object/CHANGELOG.md +11 -0
  1078. data/node_modules/is-boolean-object/index.js +1 -1
  1079. data/node_modules/is-boolean-object/package.json +8 -6
  1080. data/node_modules/is-boolean-object/test/index.js +24 -1
  1081. data/node_modules/is-weakref/CHANGELOG.md +8 -0
  1082. data/node_modules/is-weakref/index.d.ts +1 -1
  1083. data/node_modules/is-weakref/index.js +3 -1
  1084. data/node_modules/is-weakref/package.json +6 -6
  1085. data/node_modules/object-inspect/CHANGELOG.md +8 -0
  1086. data/node_modules/object-inspect/index.js +10 -7
  1087. data/node_modules/object-inspect/package.json +5 -4
  1088. data/node_modules/object-inspect/test/values.js +50 -0
  1089. data/node_modules/possible-typed-array-names/CHANGELOG.md +14 -0
  1090. data/node_modules/possible-typed-array-names/README.md +4 -2
  1091. data/node_modules/possible-typed-array-names/index.d.ts +1 -0
  1092. data/node_modules/possible-typed-array-names/index.js +1 -0
  1093. data/node_modules/possible-typed-array-names/package.json +10 -9
  1094. data/node_modules/possible-typed-array-names/test/index.js +6 -3
  1095. data/node_modules/possible-typed-array-names/tsconfig.json +2 -42
  1096. data/node_modules/recast/lib/lines.d.ts +2 -2
  1097. data/node_modules/recast/lib/printer.js +17 -5
  1098. data/node_modules/recast/package.json +1 -1
  1099. data/node_modules/typescript/README.md +1 -1
  1100. data/node_modules/typescript/lib/_tsc.js +931 -500
  1101. data/node_modules/typescript/lib/_tsserver.js +43 -7
  1102. data/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +14 -8
  1103. data/node_modules/typescript/lib/de/diagnosticMessages.generated.json +14 -8
  1104. data/node_modules/typescript/lib/es/diagnosticMessages.generated.json +14 -8
  1105. data/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +14 -8
  1106. data/node_modules/typescript/lib/it/diagnosticMessages.generated.json +14 -8
  1107. data/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +14 -8
  1108. data/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +14 -8
  1109. data/node_modules/typescript/lib/lib.dom.d.ts +769 -142
  1110. data/node_modules/typescript/lib/lib.dom.iterable.d.ts +9 -7
  1111. data/node_modules/typescript/lib/lib.es2015.iterable.d.ts +69 -54
  1112. data/node_modules/typescript/lib/lib.es2020.bigint.d.ts +41 -7
  1113. data/node_modules/typescript/lib/lib.es2023.array.d.ts +24 -24
  1114. data/node_modules/typescript/lib/lib.es5.d.ts +60 -51
  1115. data/node_modules/typescript/lib/lib.esnext.d.ts +2 -0
  1116. data/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
  1117. data/node_modules/typescript/lib/lib.esnext.iterator.d.ts +1 -1
  1118. data/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  1119. data/node_modules/typescript/lib/lib.webworker.d.ts +262 -55
  1120. data/node_modules/typescript/lib/lib.webworker.iterable.d.ts +6 -7
  1121. data/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +14 -8
  1122. data/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +14 -8
  1123. data/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +14 -8
  1124. data/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +14 -8
  1125. data/node_modules/typescript/lib/typescript.d.ts +14 -3
  1126. data/node_modules/typescript/lib/typescript.js +1035 -570
  1127. data/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +14 -8
  1128. data/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +14 -8
  1129. data/node_modules/typescript/package.json +22 -22
  1130. data/node_modules/update-browserslist-db/index.js +5 -7
  1131. data/node_modules/update-browserslist-db/package.json +2 -2
  1132. data/node_modules/which-typed-array/CHANGELOG.md +10 -0
  1133. data/node_modules/which-typed-array/index.js +21 -20
  1134. data/node_modules/which-typed-array/package.json +9 -7
  1135. data/node_modules/which-typed-array/tsconfig.json +1 -1
  1136. data/package.json +2 -3
  1137. metadata +41 -206
  1138. data/linters/jscodeshift/arrow-function-transform.js +0 -42
  1139. data/node_modules/.bin/jscodeshift +0 -1
  1140. data/node_modules/@babel/eslint-parser/LICENSE +0 -22
  1141. data/node_modules/@babel/eslint-parser/README.md +0 -142
  1142. data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs +0 -322
  1143. data/node_modules/@babel/eslint-parser/lib/analyze-scope.cjs.map +0 -1
  1144. data/node_modules/@babel/eslint-parser/lib/client.cjs +0 -106
  1145. data/node_modules/@babel/eslint-parser/lib/client.cjs.map +0 -1
  1146. data/node_modules/@babel/eslint-parser/lib/configuration.cjs +0 -23
  1147. data/node_modules/@babel/eslint-parser/lib/configuration.cjs.map +0 -1
  1148. data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs +0 -134
  1149. data/node_modules/@babel/eslint-parser/lib/convert/convertAST.cjs.map +0 -1
  1150. data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs +0 -10
  1151. data/node_modules/@babel/eslint-parser/lib/convert/convertComments.cjs.map +0 -1
  1152. data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs +0 -159
  1153. data/node_modules/@babel/eslint-parser/lib/convert/convertTokens.cjs.map +0 -1
  1154. data/node_modules/@babel/eslint-parser/lib/convert/index.cjs +0 -25
  1155. data/node_modules/@babel/eslint-parser/lib/convert/index.cjs.map +0 -1
  1156. data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs +0 -32
  1157. data/node_modules/@babel/eslint-parser/lib/experimental-worker.cjs.map +0 -1
  1158. data/node_modules/@babel/eslint-parser/lib/index.cjs +0 -32
  1159. data/node_modules/@babel/eslint-parser/lib/index.cjs.map +0 -1
  1160. data/node_modules/@babel/eslint-parser/lib/parse.cjs +0 -37
  1161. data/node_modules/@babel/eslint-parser/lib/parse.cjs.map +0 -1
  1162. data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs +0 -5
  1163. data/node_modules/@babel/eslint-parser/lib/utils/eslint-version.cjs.map +0 -1
  1164. data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs +0 -37
  1165. data/node_modules/@babel/eslint-parser/lib/worker/ast-info.cjs.map +0 -1
  1166. data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs +0 -21
  1167. data/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs.map +0 -1
  1168. data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs +0 -91
  1169. data/node_modules/@babel/eslint-parser/lib/worker/configuration.cjs.map +0 -1
  1170. data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs +0 -11
  1171. data/node_modules/@babel/eslint-parser/lib/worker/extract-parser-options-plugin.cjs.map +0 -1
  1172. data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs +0 -32
  1173. data/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs.map +0 -1
  1174. data/node_modules/@babel/eslint-parser/lib/worker/index.cjs +0 -39
  1175. data/node_modules/@babel/eslint-parser/lib/worker/index.cjs.map +0 -1
  1176. data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs +0 -48
  1177. data/node_modules/@babel/eslint-parser/lib/worker/maybeParse.cjs.map +0 -1
  1178. data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/CHANGELOG.md +0 -36
  1179. data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/README.md +0 -98
  1180. data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/index.js +0 -81
  1181. data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/lib/visitor-keys.json +0 -289
  1182. data/node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys/package.json +0 -39
  1183. data/node_modules/@babel/eslint-parser/node_modules/semver/LICENSE +0 -15
  1184. data/node_modules/@babel/eslint-parser/node_modules/semver/README.md +0 -443
  1185. data/node_modules/@babel/eslint-parser/node_modules/semver/bin/semver.js +0 -174
  1186. data/node_modules/@babel/eslint-parser/node_modules/semver/package.json +0 -38
  1187. data/node_modules/@babel/eslint-parser/node_modules/semver/range.bnf +0 -16
  1188. data/node_modules/@babel/eslint-parser/node_modules/semver/semver.js +0 -1643
  1189. data/node_modules/@babel/eslint-parser/package.json +0 -53
  1190. data/node_modules/@babel/eslint-parser/types.d.cts +0 -9
  1191. data/node_modules/@babel/plugin-proposal-decorators/LICENSE +0 -22
  1192. data/node_modules/@babel/plugin-proposal-decorators/README.md +0 -19
  1193. data/node_modules/@babel/plugin-proposal-decorators/lib/index.js +0 -41
  1194. data/node_modules/@babel/plugin-proposal-decorators/lib/index.js.map +0 -1
  1195. data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js +0 -165
  1196. data/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js.map +0 -1
  1197. data/node_modules/@babel/plugin-proposal-decorators/package.json +0 -42
  1198. data/node_modules/@babel/plugin-syntax-decorators/LICENSE +0 -22
  1199. data/node_modules/@babel/plugin-syntax-decorators/README.md +0 -19
  1200. data/node_modules/@babel/plugin-syntax-decorators/lib/index.js +0 -81
  1201. data/node_modules/@babel/plugin-syntax-decorators/lib/index.js.map +0 -1
  1202. data/node_modules/@babel/plugin-syntax-decorators/package.json +0 -33
  1203. data/node_modules/@babel/plugin-transform-react-display-name/LICENSE +0 -22
  1204. data/node_modules/@babel/plugin-transform-react-display-name/README.md +0 -19
  1205. data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js +0 -92
  1206. data/node_modules/@babel/plugin-transform-react-display-name/lib/index.js.map +0 -1
  1207. data/node_modules/@babel/plugin-transform-react-display-name/package.json +0 -34
  1208. data/node_modules/@babel/plugin-transform-react-jsx/LICENSE +0 -22
  1209. data/node_modules/@babel/plugin-transform-react-jsx/README.md +0 -19
  1210. data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js +0 -505
  1211. data/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js.map +0 -1
  1212. data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js +0 -13
  1213. data/node_modules/@babel/plugin-transform-react-jsx/lib/development.js.map +0 -1
  1214. data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js +0 -13
  1215. data/node_modules/@babel/plugin-transform-react-jsx/lib/index.js.map +0 -1
  1216. data/node_modules/@babel/plugin-transform-react-jsx/package.json +0 -39
  1217. data/node_modules/@babel/plugin-transform-react-jsx-development/LICENSE +0 -22
  1218. data/node_modules/@babel/plugin-transform-react-jsx-development/README.md +0 -19
  1219. data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js +0 -10
  1220. data/node_modules/@babel/plugin-transform-react-jsx-development/lib/index.js.map +0 -1
  1221. data/node_modules/@babel/plugin-transform-react-jsx-development/package.json +0 -33
  1222. data/node_modules/@babel/plugin-transform-react-pure-annotations/LICENSE +0 -22
  1223. data/node_modules/@babel/plugin-transform-react-pure-annotations/README.md +0 -19
  1224. data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js +0 -49
  1225. data/node_modules/@babel/plugin-transform-react-pure-annotations/lib/index.js.map +0 -1
  1226. data/node_modules/@babel/plugin-transform-react-pure-annotations/package.json +0 -34
  1227. data/node_modules/@babel/preset-react/LICENSE +0 -22
  1228. data/node_modules/@babel/preset-react/README.md +0 -19
  1229. data/node_modules/@babel/preset-react/lib/index.js +0 -79
  1230. data/node_modules/@babel/preset-react/lib/index.js.map +0 -1
  1231. data/node_modules/@babel/preset-react/package.json +0 -37
  1232. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/LICENSE +0 -7
  1233. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/index.js +0 -8
  1234. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/CHANGELOG.md +0 -70
  1235. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/LICENSE +0 -22
  1236. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/README.md +0 -54
  1237. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/definition.js +0 -86
  1238. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/index.js +0 -165
  1239. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/pattern-visitor.js +0 -152
  1240. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/reference.js +0 -167
  1241. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/referencer.js +0 -629
  1242. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope-manager.js +0 -247
  1243. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/scope.js +0 -748
  1244. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/lib/variable.js +0 -88
  1245. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/LICENSE.BSD +0 -19
  1246. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/README.md +0 -153
  1247. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/estraverse.js +0 -782
  1248. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/gulpfile.js +0 -70
  1249. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/node_modules/estraverse/package.json +0 -40
  1250. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope/package.json +0 -48
  1251. data/node_modules/@nicolo-ribaudo/eslint-scope-5-internals/package.json +0 -14
  1252. data/node_modules/eslint/lib/types/rules/best-practices.d.ts +0 -1143
  1253. data/node_modules/eslint/lib/types/rules/deprecated.d.ts +0 -252
  1254. data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +0 -647
  1255. data/node_modules/eslint/lib/types/rules/index.d.ts +0 -50
  1256. data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +0 -171
  1257. data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +0 -685
  1258. data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +0 -38
  1259. data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +0 -2043
  1260. data/node_modules/eslint/lib/types/rules/variables.d.ts +0 -234
  1261. data/node_modules/flatted/python/test.py +0 -63
  1262. data/node_modules/jscodeshift/CHANGELOG.md +0 -226
  1263. data/node_modules/jscodeshift/CODE_OF_CONDUCT.md +0 -3
  1264. data/node_modules/jscodeshift/CONTRIBUTING.md +0 -48
  1265. data/node_modules/jscodeshift/README.md +0 -671
  1266. data/node_modules/jscodeshift/bin/jscodeshift.js +0 -182
  1267. data/node_modules/jscodeshift/bin/jscodeshift.sh +0 -12
  1268. data/node_modules/jscodeshift/dist/Collection.js +0 -472
  1269. data/node_modules/jscodeshift/dist/Runner.js +0 -322
  1270. data/node_modules/jscodeshift/dist/Worker.js +0 -210
  1271. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.input.js +0 -1
  1272. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.js +0 -11
  1273. data/node_modules/jscodeshift/dist/__testfixtures__/test-async-transform.output.js +0 -1
  1274. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.input.js +0 -1
  1275. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.js +0 -7
  1276. data/node_modules/jscodeshift/dist/__testfixtures__/test-sync-transform.output.js +0 -1
  1277. data/node_modules/jscodeshift/dist/argsParser.js +0 -273
  1278. data/node_modules/jscodeshift/dist/collections/ImportDeclaration.js +0 -113
  1279. data/node_modules/jscodeshift/dist/collections/JSXElement.js +0 -221
  1280. data/node_modules/jscodeshift/dist/collections/Node.js +0 -187
  1281. data/node_modules/jscodeshift/dist/collections/VariableDeclarator.js +0 -210
  1282. data/node_modules/jscodeshift/dist/collections/index.js +0 -14
  1283. data/node_modules/jscodeshift/dist/core.js +0 -183
  1284. data/node_modules/jscodeshift/dist/getParser.js +0 -25
  1285. data/node_modules/jscodeshift/dist/ignoreFiles.js +0 -68
  1286. data/node_modules/jscodeshift/dist/matchNode.js +0 -40
  1287. data/node_modules/jscodeshift/dist/template.js +0 -173
  1288. data/node_modules/jscodeshift/dist/testUtils.js +0 -173
  1289. data/node_modules/jscodeshift/dist/utils/intersection.js +0 -27
  1290. data/node_modules/jscodeshift/dist/utils/once.js +0 -21
  1291. data/node_modules/jscodeshift/dist/utils/union.js +0 -20
  1292. data/node_modules/jscodeshift/index.js +0 -9
  1293. data/node_modules/jscodeshift/package.json +0 -74
  1294. data/node_modules/jscodeshift/parser/babel5Compat.js +0 -50
  1295. data/node_modules/jscodeshift/parser/babylon.js +0 -57
  1296. data/node_modules/jscodeshift/parser/flow.js +0 -34
  1297. data/node_modules/jscodeshift/parser/ts.js +0 -24
  1298. data/node_modules/jscodeshift/parser/tsOptions.js +0 -46
  1299. data/node_modules/jscodeshift/parser/tsx.js +0 -27
  1300. data/node_modules/jscodeshift/src/Collection.js +0 -472
  1301. data/node_modules/jscodeshift/src/Runner.js +0 -322
  1302. data/node_modules/jscodeshift/src/Worker.js +0 -210
  1303. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.input.js +0 -1
  1304. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.js +0 -11
  1305. data/node_modules/jscodeshift/src/__testfixtures__/test-async-transform.output.js +0 -1
  1306. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.input.js +0 -1
  1307. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.js +0 -7
  1308. data/node_modules/jscodeshift/src/__testfixtures__/test-sync-transform.output.js +0 -1
  1309. data/node_modules/jscodeshift/src/argsParser.js +0 -273
  1310. data/node_modules/jscodeshift/src/collections/ImportDeclaration.js +0 -113
  1311. data/node_modules/jscodeshift/src/collections/JSXElement.js +0 -221
  1312. data/node_modules/jscodeshift/src/collections/Node.js +0 -187
  1313. data/node_modules/jscodeshift/src/collections/VariableDeclarator.js +0 -210
  1314. data/node_modules/jscodeshift/src/collections/index.js +0 -14
  1315. data/node_modules/jscodeshift/src/core.js +0 -183
  1316. data/node_modules/jscodeshift/src/getParser.js +0 -25
  1317. data/node_modules/jscodeshift/src/ignoreFiles.js +0 -68
  1318. data/node_modules/jscodeshift/src/matchNode.js +0 -40
  1319. data/node_modules/jscodeshift/src/template.js +0 -173
  1320. data/node_modules/jscodeshift/src/testUtils.js +0 -173
  1321. data/node_modules/jscodeshift/src/utils/intersection.js +0 -27
  1322. data/node_modules/jscodeshift/src/utils/once.js +0 -21
  1323. data/node_modules/jscodeshift/src/utils/union.js +0 -20
  1324. data/node_modules/jscodeshift/utils/requirePackage.js +0 -24
  1325. data/node_modules/jscodeshift/utils/testUtils.js +0 -49
  1326. data/node_modules/jscodeshift/website/README.md +0 -44
  1327. data/node_modules/jscodeshift/website/astro.config.mjs +0 -36
  1328. data/node_modules/jscodeshift/website/package.json +0 -17
  1329. data/node_modules/jscodeshift/website/public/favicon.svg +0 -1
  1330. data/node_modules/jscodeshift/website/src/assets/houston.webp +0 -0
  1331. data/node_modules/jscodeshift/website/src/content/config.ts +0 -6
  1332. data/node_modules/jscodeshift/website/src/content/docs/build/api-reference.mdx +0 -406
  1333. data/node_modules/jscodeshift/website/src/content/docs/build/ast-grammar.mdx +0 -3086
  1334. data/node_modules/jscodeshift/website/src/content/docs/index.mdx +0 -15
  1335. data/node_modules/jscodeshift/website/src/content/docs/overview/introduction.mdx +0 -45
  1336. data/node_modules/jscodeshift/website/src/content/docs/run/cli.mdx +0 -161
  1337. data/node_modules/jscodeshift/website/src/env.d.ts +0 -2
  1338. data/node_modules/jscodeshift/website/tsconfig.json +0 -3
  1339. data/node_modules/typescript/lib/cancellationToken.js +0 -90
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = loadCodeDefault;
7
7
  exports.supportsESM = void 0;
8
- var _async3 = require("../../gensync-utils/async.js");
8
+ var _async = require("../../gensync-utils/async.js");
9
9
  function _path() {
10
10
  const data = require("path");
11
11
  _path = function () {
@@ -20,6 +20,7 @@ function _url() {
20
20
  };
21
21
  return data;
22
22
  }
23
+ require("module");
23
24
  function _semver() {
24
25
  const data = require("semver");
25
26
  _semver = function () {
@@ -78,95 +79,105 @@ const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () {
78
79
  }
79
80
  return loadMjsFromPath;
80
81
  }());
81
- const SUPPORTED_EXTENSIONS = new Set([".js", ".mjs", ".cjs", ".cts"]);
82
+ const SUPPORTED_EXTENSIONS = {
83
+ ".js": "unknown",
84
+ ".mjs": "esm",
85
+ ".cjs": "cjs",
86
+ ".ts": "unknown",
87
+ ".mts": "esm",
88
+ ".cts": "cjs"
89
+ };
82
90
  const asyncModules = new Set();
83
91
  function* loadCodeDefault(filepath, loader, esmError, tlaError) {
84
- var _async2;
85
92
  let async;
86
- let ext = _path().extname(filepath);
87
- if (!SUPPORTED_EXTENSIONS.has(ext)) ext = ".js";
88
- const pattern = `${loader} ${ext}`;
93
+ const ext = _path().extname(filepath);
94
+ const isTS = ext === ".ts" || ext === ".cts" || ext === ".mts";
95
+ const type = SUPPORTED_EXTENSIONS[hasOwnProperty.call(SUPPORTED_EXTENSIONS, ext) ? ext : ".js"];
96
+ const pattern = `${loader} ${type}`;
89
97
  switch (pattern) {
90
- case "require .cjs":
91
- case "auto .cjs":
92
- {
98
+ case "require cjs":
99
+ case "auto cjs":
100
+ if (isTS) {
101
+ return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
102
+ } else {
93
103
  return loadCjsDefault(filepath, arguments[2]);
94
104
  }
95
- case "require .cts":
96
- case "auto .cts":
97
- return loadCtsDefault(filepath);
98
- case "auto .js":
99
- case "require .js":
100
- case "require .mjs":
105
+ case "auto unknown":
106
+ case "require unknown":
107
+ case "require esm":
101
108
  try {
102
- {
109
+ if (isTS) {
110
+ return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));
111
+ } else {
103
112
  return loadCjsDefault(filepath, arguments[2]);
104
113
  }
105
114
  } catch (e) {
106
115
  if (e.code === "ERR_REQUIRE_ASYNC_MODULE" || e.code === "ERR_REQUIRE_CYCLE_MODULE" && asyncModules.has(filepath)) {
107
- var _async;
108
116
  asyncModules.add(filepath);
109
- if (!((_async = async) != null ? _async : async = yield* (0, _async3.isAsync)())) {
117
+ if (!(async != null ? async : async = yield* (0, _async.isAsync)())) {
110
118
  throw new _configError.default(tlaError, filepath);
111
119
  }
112
- } else if (e.code === "ERR_REQUIRE_ESM" || ext === ".mjs") {} else {
120
+ } else if (e.code === "ERR_REQUIRE_ESM" || type === "esm") {} else {
113
121
  throw e;
114
122
  }
115
123
  }
116
- case "auto .mjs":
117
- if ((_async2 = async) != null ? _async2 : async = yield* (0, _async3.isAsync)()) {
118
- return (yield* (0, _async3.waitFor)(loadMjsFromPath(filepath))).default;
124
+ case "auto esm":
125
+ if (async != null ? async : async = yield* (0, _async.isAsync)()) {
126
+ const promise = isTS ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath)) : loadMjsFromPath(filepath);
127
+ return (yield* (0, _async.waitFor)(promise)).default;
119
128
  }
120
129
  throw new _configError.default(esmError, filepath);
121
130
  default:
122
131
  throw new Error("Internal Babel error: unreachable code.");
123
132
  }
124
133
  }
125
- function loadCtsDefault(filepath) {
126
- const ext = ".cts";
127
- const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]);
128
- let handler;
129
- if (!hasTsSupport) {
130
- const opts = {
131
- babelrc: false,
132
- configFile: false,
133
- sourceType: "unambiguous",
134
- sourceMaps: "inline",
135
- sourceFileName: _path().basename(filepath),
136
- presets: [[getTSPreset(filepath), Object.assign({
137
- onlyRemoveTypeImports: true,
138
- optimizeConstEnums: true
139
- }, {
140
- allowDeclareFields: true
141
- })]]
142
- };
143
- handler = function (m, filename) {
144
- if (handler && filename.endsWith(ext)) {
145
- try {
146
- return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
147
- filename
148
- })).code, filename);
149
- } catch (error) {
150
- if (!hasTsSupport) {
151
- const packageJson = require("@babel/preset-typescript/package.json");
152
- if (_semver().lt(packageJson.version, "7.21.4")) {
153
- console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
154
- }
155
- }
156
- throw error;
134
+ function ensureTsSupport(filepath, ext, callback) {
135
+ if (require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) {
136
+ return callback();
137
+ }
138
+ if (ext !== ".cts") {
139
+ throw new _configError.default(`\
140
+ You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:
141
+ - Use a .cts config file
142
+ - Update to Node.js 23.6.0, which has native TypeScript support
143
+ - Install ts-node to transpile ${ext} files on the fly\
144
+ `, filepath);
145
+ }
146
+ const opts = {
147
+ babelrc: false,
148
+ configFile: false,
149
+ sourceType: "unambiguous",
150
+ sourceMaps: "inline",
151
+ sourceFileName: _path().basename(filepath),
152
+ presets: [[getTSPreset(filepath), Object.assign({
153
+ onlyRemoveTypeImports: true,
154
+ optimizeConstEnums: true
155
+ }, {
156
+ allowDeclareFields: true
157
+ })]]
158
+ };
159
+ let handler = function (m, filename) {
160
+ if (handler && filename.endsWith(".cts")) {
161
+ try {
162
+ return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
163
+ filename
164
+ })).code, filename);
165
+ } catch (error) {
166
+ const packageJson = require("@babel/preset-typescript/package.json");
167
+ if (_semver().lt(packageJson.version, "7.21.4")) {
168
+ console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.");
157
169
  }
170
+ throw error;
158
171
  }
159
- return require.extensions[".js"](m, filename);
160
- };
161
- require.extensions[ext] = handler;
162
- }
172
+ }
173
+ return require.extensions[".js"](m, filename);
174
+ };
175
+ require.extensions[ext] = handler;
163
176
  try {
164
- return loadCjsDefault(filepath);
177
+ return callback();
165
178
  } finally {
166
- if (!hasTsSupport) {
167
- if (require.extensions[ext] === handler) delete require.extensions[ext];
168
- handler = undefined;
169
- }
179
+ if (require.extensions[ext] === handler) delete require.extensions[ext];
180
+ handler = undefined;
170
181
  }
171
182
  }
172
183
  function getTSPreset(filepath) {
@@ -1 +1 @@
1
- {"version":3,"names":["_async3","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","_async2","async","ext","path","extname","pattern","loadCtsDefault","code","_async","isAsync","waitFor","Error","hasTsSupport","extensions","handler","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { createRequire } from \"module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst SUPPORTED_EXTENSIONS = new Set([\".js\", \".mjs\", \".cjs\", \".cts\"] as const);\ntype SetValue<T extends Set<unknown>> = T extends Set<infer U> ? U : never;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler<unknown> {\n let async;\n\n let ext = path.extname(filepath);\n if (!SUPPORTED_EXTENSIONS.has(ext as any)) ext = \".js\";\n\n const pattern =\n `${loader} ${ext}` as `${typeof loader} ${SetValue<typeof SUPPORTED_EXTENSIONS>}`;\n switch (pattern) {\n case \"require .cjs\":\n case \"auto .cjs\":\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"require .cts\":\n case \"auto .cts\":\n return loadCtsDefault(filepath);\n case \"auto .js\":\n case \"require .js\":\n case \"require .mjs\": // Some versions of Node.js support require(esm):\n try {\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && ext === \".mjs\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto .mjs\":\n if ((async ??= yield* isAsync())) {\n return (yield* waitFor(loadMjsFromPath(filepath))).default;\n }\n throw new ConfigError(esmError, filepath);\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction loadCtsDefault(filepath: string) {\n const ext = \".cts\";\n const hasTsSupport = !!(\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n );\n\n let handler: NodeJS.RequireExtensions[\"\"];\n\n if (!hasTsSupport) {\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING\n ? {}\n : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n handler = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(ext)) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n if (!hasTsSupport) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n }\n try {\n return loadCjsDefault(filepath);\n } finally {\n if (!hasTsSupport) {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,O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AA0B,CAAC;EAC5C,CAAC,CAAC,OAAOqG,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC3B,IAAI,KAAK,kBAAkB,EAAE,MAAM2B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAIrE,OAAO,CAACC,QAAQ,CAACqE,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAI/C,oBAAW,CAAC+C,OAAO,EAAE/D,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]}
1
+ {"version":3,"names":["_async","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","async","ext","path","extname","isTS","type","hasOwnProperty","call","pattern","ensureTsSupport","code","isAsync","promise","waitFor","Error","callback","extensions","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","handler","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { createRequire } from \"module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst SUPPORTED_EXTENSIONS = {\n \".js\": \"unknown\",\n \".mjs\": \"esm\",\n \".cjs\": \"cjs\",\n \".ts\": \"unknown\",\n \".mts\": \"esm\",\n \".cts\": \"cjs\",\n} as const;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler<unknown> {\n let async;\n\n const ext = path.extname(filepath);\n const isTS = ext === \".ts\" || ext === \".cts\" || ext === \".mts\";\n\n const type =\n SUPPORTED_EXTENSIONS[\n Object.hasOwn(SUPPORTED_EXTENSIONS, ext)\n ? (ext as keyof typeof SUPPORTED_EXTENSIONS)\n : (\".js\" as const)\n ];\n\n const pattern = `${loader} ${type}` as const;\n switch (pattern) {\n case \"require cjs\":\n case \"auto cjs\":\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"auto unknown\":\n case \"require unknown\":\n case \"require esm\":\n try {\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && type === \"esm\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto esm\":\n if ((async ??= yield* isAsync())) {\n const promise = isTS\n ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath))\n : loadMjsFromPath(filepath);\n\n return (yield* waitFor(promise)).default;\n }\n throw new ConfigError(esmError, filepath);\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction ensureTsSupport<T>(\n filepath: string,\n ext: string,\n callback: () => T,\n): T {\n if (\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n ) {\n return callback();\n }\n\n if (ext !== \".cts\") {\n throw new ConfigError(\n `\\\nYou are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install ts-node to transpile ${ext} files on the fly\\\n`,\n filepath,\n );\n }\n\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING ? {} : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n let handler: NodeJS.RequireExtensions[\"\"] = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(\".cts\")) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n\n try {\n return callback();\n } finally {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACAF,OAAA;AACA,SAAAI,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IA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O,CAACmF,UAAU,CAAC,KAAK,CAAC,CAACgB,CAAC,EAAEC,QAAQ,CAAC;EAC/C,CAAC;EACDpG,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC,GAAG8B,OAAO;EAEjC,IAAI;IACF,OAAOhB,QAAQ,CAAC,CAAC;EACnB,CAAC,SAAS;IACR,IAAIlF,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC,KAAK8B,OAAO,EAAE,OAAOlG,OAAO,CAACmF,UAAU,CAACf,GAAG,CAAC;IACvE8B,OAAO,GAAG7C,SAAS;EACrB;AACF;AAEA,SAASuC,WAAWA,CAACjD,QAAgB,EAAE;EACrC,IAAI;IAEF,OAAO3C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAOwG,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC3B,IAAI,KAAK,kBAAkB,EAAE,MAAM2B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAIxE,OAAO,CAACC,QAAQ,CAACwE,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAIlD,oBAAW,CAACkD,OAAO,EAAElE,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]}
@@ -30,6 +30,7 @@ function _url() {
30
30
  return data;
31
31
  }
32
32
  var _importMetaResolve = require("../../vendor/import-meta-resolve.js");
33
+ require("module");
33
34
  function _fs() {
34
35
  const data = require("fs");
35
36
  _fs = function () {
@@ -1 +1 @@
1
- {"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"module\";\nimport { existsSync } from \"fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result<string> {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters<typeof importMetaResolve>[0],\n options: Parameters<typeof importMetaResolve>[1],\n): Result<string> {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler<unknown> {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAGA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAs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IC,EAAE,CAACnD,IAAI,KAAK,kBAAkB,EAAE,MAAMmD,EAAE;MAC5C,MAAMD,CAAC;IACT;EACF;AACF;AAEmC;EAEjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CACrBG,IAAY,EACZN,MAA0B,EAC1BH,IAAY,EACM;EACiB;IACjC,IAAI,EAAE,OAAO,IAAAI,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC/D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIsC,KAAK,CACb,aAAa7B,IAAI,6BAA6BT,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC6D,eAAe,CAACG,GAAG,CAAChE,IAAI,CAAC;IAC3B;IAYO;MACL,OAAO,OAAO,IAAAiE,oBAAe,EAC3BjE,IAAI,EACJG,MAAM,EACN,qDAAqDM,IAAI,IAAI,GAC3D,4DAA4D,GAC5D,iEAAiE,EACnE,4BAA4BA,IAAI,kCAAkC,GAChE,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]}
1
+ {"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"module\";\nimport { existsSync } from \"fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result<T> = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator<string, string, Result<string>> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result<string> {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters<typeof importMetaResolve>[0],\n options: Parameters<typeof importMetaResolve>[1],\n): Result<string> {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler<unknown> {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAEAA,OAAA;AACA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAsB,GA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AAE,CAACnD,IAAI,KAAK,kBAAkB,EAAE,MAAMmD,EAAE;MAC5C,MAAMD,CAAC;IACT;EACF;AACF;AAEmC;EAEjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CACrBG,IAAY,EACZN,MAA0B,EAC1BH,IAAY,EACM;EACiB;IACjC,IAAI,EAAE,OAAO,IAAAI,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC/D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIsC,KAAK,CACb,aAAa7B,IAAI,6BAA6BT,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC6D,eAAe,CAACG,GAAG,CAAChE,IAAI,CAAC;IAC3B;IAYO;MACL,OAAO,OAAO,IAAAiE,oBAAe,EAC3BjE,IAAI,EACJG,MAAM,EACN,qDAAqDM,IAAI,IAAI,GAC3D,4DAA4D,GAC5D,iEAAiE,EACnE,4BAA4BA,IAAI,kCAAkC,GAChE,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]}
@@ -21,7 +21,7 @@ var _options = require("./validation/options.js");
21
21
  var _index = require("./files/index.js");
22
22
  var _resolveTargets = require("./resolve-targets.js");
23
23
  const _excluded = ["showIgnoredFiles"];
24
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
24
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
25
25
  function resolveRootMode(rootDir, rootMode) {
26
26
  switch (rootMode) {
27
27
  case "root":
@@ -1 +1 @@
1
- {"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","r","e","t","n","hasOwnProperty","call","includes","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","Object","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n InputOptions,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\nexport type PrivPartialConfig = {\n showIgnoredFiles?: boolean;\n options: NormalizedOptions;\n context: ConfigContext;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set<string>;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: InputOptions,\n): Handler<PrivPartialConfig | null> {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\nexport function* loadPartialConfig(\n opts?: InputOptions,\n): Handler<PartialConfig | null> {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set<string>;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set<string>,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,gBAAAC,CAAA,IAAAH,CAAA,SAAAI,cAAA,CAAAC,IAAA,CAAAL,CAAA,EAAAG,CAAA,SAAAF,CAAA,CAAAK,QAAA,CAAAH,CAAA,aAAAD,CAAA,CAAAC,CAAA,IAAAH,CAAA,CAAAG,CAAA,YAAAD,CAAA;AAEtD,SAASK,eAAeA,CAACC,OAAe,EAAEC,Q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EAEA,CAACpB,OAAO,CAACU,OAAO,IAAI,EAAE,EAAET,OAAO,CAACsB,IAAI,IAAI;IAEtC,IAAIA,IAAI,CAACC,KAAK,YAAYC,eAAM,EAAE;MAChC,MAAM,IAAIxD,KAAK,CACb,sDAAsD,GACpD,2BACJ,CAAC;IACH;EACF,CAAC,CAAC;EAEF,OAAO,IAAIyD,aAAa,CACtB1B,OAAO,EACPM,OAAO,GAAGA,OAAO,CAACqB,QAAQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlBnD,MAAM,CAAC+D,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAxB,MAAM,CAAC+D,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]}
1
+ {"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","r","e","t","n","hasOwnProperty","call","indexOf","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","Object","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n InputOptions,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\nexport type PrivPartialConfig = {\n showIgnoredFiles?: boolean;\n options: NormalizedOptions;\n context: ConfigContext;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set<string>;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: InputOptions,\n): Handler<PrivPartialConfig | null> {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\nexport function* loadPartialConfig(\n opts?: InputOptions,\n): Handler<PartialConfig | null> {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set<string>;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set<string>,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,gBAAAC,CAAA,IAAAH,CAAA,SAAAI,cAAA,CAAAC,IAAA,CAAAL,CAAA,EAAAG,CAAA,gBAAAF,CAAA,CAAAK,OAAA,CAAAH,CAAA,aAAAD,CAAA,CAAAC,CAAA,IAAAH,CAAA,CAAAG,CAAA,YAAAD,CAAA;AAEtD,SAASK,eAAeA,CAACC,OAAe,EAAEC,QAAkB,EAAU;EACpE,QAAQA,QAAQ;IACd,KAAK,MAAM;MACT,OAAOD,OAAO;IAEhB,KAAK,iBAAiB;MAAE;QACtB,MAAME,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,OAAOE,aAAa,KAAK,IAAI,GAAGF,OAAO,GAAGE,aAAa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EF,OAAO,IAAIyD,aAAa,CACtB1B,OAAO,EACPM,OAAO,GAAGA,OAAO,CAACqB,QAAQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlBnD,MAAM,CAAC+D,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAxB,MAAM,CAAC+D,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]}
@@ -211,9 +211,8 @@ var _transform = require("./transform.js");
211
211
  var _transformFile = require("./transform-file.js");
212
212
  var _transformAst = require("./transform-ast.js");
213
213
  var _parse = require("./parse.js");
214
- var thisFile = require("./index.js");
215
214
  ;
216
- const version = exports.version = "7.26.0";
215
+ const version = exports.version = "7.26.10";
217
216
  const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath;
218
217
  exports.resolvePlugin = resolvePlugin;
219
218
  const resolvePreset = (name, dirname) => resolvers.resolvePreset(name, dirname, false).filepath;
@@ -1 +1 @@
1
- {"version":3,"names":["_file","require","_buildExternalHelpers","resolvers","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","thisFile","version","resolvePlugin","name","dirname","filepath","resolvePreset","DEFAULT_EXTENSIONS","freeze","OptionManager","init","opts","loadOptionsSync","Plugin","alias","Error","types","traverse","tokTypes","template"],"sources":["../src/index.ts"],"sourcesContent":["if (!process.env.IS_PUBLISH && !USE_ESM && process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"BABEL_8_BREAKING is only supported in ESM. Please run `make use-esm`.\",\n );\n}\n\nexport const version = PACKAGE_JSON.version;\n\nexport { default as File } from \"./transformation/file/file.ts\";\nexport type { default as PluginPass } from \"./transformation/plugin-pass.ts\";\nexport { default as buildExternalHelpers } from \"./tools/build-external-helpers.ts\";\n\nimport * as resolvers from \"./config/files/index.ts\";\n// For backwards-compatibility, we expose the resolvers\n// with the old API.\nexport const resolvePlugin = (name: string, dirname: string) =>\n resolvers.resolvePlugin(name, dirname, false).filepath;\nexport const resolvePreset = (name: string, dirname: string) =>\n resolvers.resolvePreset(name, dirname, false).filepath;\n\nexport { getEnv } from \"./config/helpers/environment.ts\";\n\n// NOTE: Lazy re-exports aren't detected by the Node.js CJS-ESM interop.\n// These are handled by pluginInjectNodeReexportsHints in our babel.config.js\n// so that they can work well.\nexport * as types from \"@babel/types\";\nexport { tokTypes } from \"@babel/parser\";\nexport { default as traverse } from \"@babel/traverse\";\nexport { default as template } from \"@babel/template\";\n\n// rollup-plugin-dts assumes that all re-exported types are also valid values\n// Visitor is only a type, so we need to use this workaround to prevent\n// rollup-plugin-dts from breaking it.\n// TODO: Figure out how to fix this upstream.\nexport type { NodePath, Scope } from \"@babel/traverse\";\nexport type Visitor<S = unknown> = import(\"@babel/traverse\").Visitor<S>;\n\nexport {\n createConfigItem,\n createConfigItemAsync,\n createConfigItemSync,\n} from \"./config/index.ts\";\n\nexport {\n loadOptions,\n loadOptionsAsync,\n loadPartialConfig,\n loadPartialConfigAsync,\n loadPartialConfigSync,\n} from \"./config/index.ts\";\nimport { loadOptionsSync } from \"./config/index.ts\";\nexport { loadOptionsSync };\n\nexport type {\n CallerMetadata,\n ConfigItem,\n InputOptions,\n PluginAPI,\n PluginObject,\n PresetAPI,\n PresetObject,\n} from \"./config/index.ts\";\n\nexport {\n type FileResult,\n transform,\n transformAsync,\n transformSync,\n} from \"./transform.ts\";\nexport {\n transformFile,\n transformFileAsync,\n transformFileSync,\n} from \"./transform-file.ts\";\nexport {\n transformFromAst,\n transformFromAstAsync,\n transformFromAstSync,\n} from \"./transform-ast.ts\";\nexport { parse, parseAsync, parseSync } from \"./parse.ts\";\n\n/**\n * Recommended set of compilable extensions. Not used in @babel/core directly, but meant as\n * as an easy source for tooling making use of @babel/core.\n */\nexport const DEFAULT_EXTENSIONS = Object.freeze([\n \".js\",\n \".jsx\",\n \".es6\",\n \".es\",\n \".mjs\",\n \".cjs\",\n] as const);\n\nimport Module from \"module\";\nimport * as thisFile from \"./index.ts\";\nif (USE_ESM && !IS_STANDALONE) {\n // Pass this module to the CJS proxy, so that it can be synchronously accessed.\n const cjsProxy = Module.createRequire(import.meta.url)(\"../cjs-proxy.cjs\");\n cjsProxy[\"__ initialize @babel/core cjs proxy __\"] = thisFile;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // For easier backward-compatibility, provide an API like the one we exposed in Babel 6.\n // eslint-disable-next-line no-restricted-globals\n exports.OptionManager = class OptionManager {\n init(opts: any) {\n return loadOptionsSync(opts);\n }\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.Plugin = function Plugin(alias: string) {\n throw new Error(\n `The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAe,KACzDrB,SAAS,CAACmB,aAAa,CAACC,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAAChB,OAAA,CAAAa,aAAA,GAAAA,aAAA;AAClD,MAAMI,aAAa,GAAGA,CAACH,IAAY,EAAEC,OAAe,KACzDrB,SAAS,CAACuB,aAAa,CAACH,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAAChB,OAAA,CAAAiB,aAAA,GAAAA,aAAA;AAmElD,MAAMC,kBAAkB,GAAAlB,OAAA,CAAAkB,kBAAA,GAAGpB,MAAM,CAACqB,MAAM,CAAC,CAC9C,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAAC;AAUmC;EAG7CnB,OAAO,CAACoB,aAAa,GAAG,MAAMA,aAAa,CAAC;IAC1CC,IAAIA,CAACC,IAAS,EAAE;MACd,OAAO,IAAAC,uBAAe,EAACD,IAAI,CAAC;IAC9B;EACF,CAAC;EAGDtB,OAAO,CAACwB,MAAM,GAAG,SAASA,MAAMA,CAACC,KAAa,EAAE;IAC9C,MAAM,IAAIC,KAAK,CACb,QAAQD,KAAK,kEACf,CAAC;EACH,CAAC;AACH;AAAC,MAAAzB,OAAA,CAAA2B,KAAA,GAAA3B,OAAA,CAAA4B,QAAA,GAAA5B,OAAA,CAAA6B,QAAA,GAAA7B,OAAA,CAAA8B,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_file","require","_buildExternalHelpers","resolvers","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","version","resolvePlugin","name","dirname","filepath","resolvePreset","DEFAULT_EXTENSIONS","freeze","OptionManager","init","opts","loadOptionsSync","Plugin","alias","Error","types","traverse","tokTypes","template"],"sources":["../src/index.ts"],"sourcesContent":["if (!process.env.IS_PUBLISH && !USE_ESM && process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"BABEL_8_BREAKING is only supported in ESM. Please run `make use-esm`.\",\n );\n}\n\nexport const version = PACKAGE_JSON.version;\n\nexport { default as File } from \"./transformation/file/file.ts\";\nexport type { default as PluginPass } from \"./transformation/plugin-pass.ts\";\nexport { default as buildExternalHelpers } from \"./tools/build-external-helpers.ts\";\n\nimport * as resolvers from \"./config/files/index.ts\";\n// For backwards-compatibility, we expose the resolvers\n// with the old API.\nexport const resolvePlugin = (name: string, dirname: string) =>\n resolvers.resolvePlugin(name, dirname, false).filepath;\nexport const resolvePreset = (name: string, dirname: string) =>\n resolvers.resolvePreset(name, dirname, false).filepath;\n\nexport { getEnv } from \"./config/helpers/environment.ts\";\n\n// NOTE: Lazy re-exports aren't detected by the Node.js CJS-ESM interop.\n// These are handled by pluginInjectNodeReexportsHints in our babel.config.js\n// so that they can work well.\nexport * as types from \"@babel/types\";\nexport { tokTypes } from \"@babel/parser\";\nexport { default as traverse } from \"@babel/traverse\";\nexport { default as template } from \"@babel/template\";\n\n// rollup-plugin-dts assumes that all re-exported types are also valid values\n// Visitor is only a type, so we need to use this workaround to prevent\n// rollup-plugin-dts from breaking it.\n// TODO: Figure out how to fix this upstream.\nexport type { NodePath, Scope } from \"@babel/traverse\";\nexport type Visitor<S = unknown> = import(\"@babel/traverse\").Visitor<S>;\n\nexport {\n createConfigItem,\n createConfigItemAsync,\n createConfigItemSync,\n} from \"./config/index.ts\";\n\nexport {\n loadOptions,\n loadOptionsAsync,\n loadPartialConfig,\n loadPartialConfigAsync,\n loadPartialConfigSync,\n} from \"./config/index.ts\";\nimport { loadOptionsSync } from \"./config/index.ts\";\nexport { loadOptionsSync };\n\nexport type {\n CallerMetadata,\n ConfigItem,\n InputOptions,\n PluginAPI,\n PluginObject,\n PresetAPI,\n PresetObject,\n} from \"./config/index.ts\";\n\nexport {\n type FileResult,\n transform,\n transformAsync,\n transformSync,\n} from \"./transform.ts\";\nexport {\n transformFile,\n transformFileAsync,\n transformFileSync,\n} from \"./transform-file.ts\";\nexport {\n transformFromAst,\n transformFromAstAsync,\n transformFromAstSync,\n} from \"./transform-ast.ts\";\nexport { parse, parseAsync, parseSync } from \"./parse.ts\";\n\n/**\n * Recommended set of compilable extensions. Not used in @babel/core directly, but meant as\n * as an easy source for tooling making use of @babel/core.\n */\nexport const DEFAULT_EXTENSIONS = Object.freeze([\n \".js\",\n \".jsx\",\n \".es6\",\n \".es\",\n \".mjs\",\n \".cjs\",\n] as const);\n\nimport Module from \"module\" with { if: \"USE_ESM && !IS_STANDALONE\" };\nimport * as thisFile from \"./index.ts\" with { if: \"USE_ESM && !IS_STANDALONE\" };\nif (USE_ESM && !IS_STANDALONE) {\n // Pass this module to the CJS proxy, so that it can be synchronously accessed.\n const cjsProxy = Module.createRequire(import.meta.url)(\"../cjs-proxy.cjs\");\n cjsProxy[\"__ initialize @babel/core cjs proxy __\"] = thisFile;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // For easier backward-compatibility, provide an API like the one we exposed in Babel 6.\n // eslint-disable-next-line no-restricted-globals\n exports.OptionManager = class OptionManager {\n init(opts: any) {\n return loadOptionsSync(opts);\n }\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.Plugin = function Plugin(alias: string) {\n throw new Error(\n `The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAQA,IAAAG,YAAA,GAAAH,OAAA;AAAyD,SAAAI,OAAA;EAAA,MAAAC,IAAA,GAAAL,OAAA;EAAAI,MAAA,YAAA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,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAAC;AAUmC;EAG7ClB,OAAO,CAACmB,aAAa,GAAG,MAAMA,aAAa,CAAC;IAC1CC,IAAIA,CAACC,IAAS,EAAE;MACd,OAAO,IAAAC,uBAAe,EAACD,IAAI,CAAC;IAC9B;EACF,CAAC;EAGDrB,OAAO,CAACuB,MAAM,GAAG,SAASA,MAAMA,CAACC,KAAa,EAAE;IAC9C,MAAM,IAAIC,KAAK,CACb,QAAQD,KAAK,kEACf,CAAC;EACH,CAAC;AACH;AAAC,MAAAxB,OAAA,CAAA0B,KAAA,GAAA1B,OAAA,CAAA2B,QAAA,GAAA3B,OAAA,CAAA4B,QAAA,GAAA5B,OAAA,CAAA6B,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type File as ParseResult } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport generateMissingPluginMessage from \"./util/missing-plugin-helper.ts\";\nimport type { PluginPasses } from \"../config/index.ts\";\n\nexport type { ParseResult };\n\nexport default function* parser(\n pluginPasses: PluginPasses,\n { parserOpts, highlightCode = true, filename = \"unknown\" }: any,\n code: string,\n): Handler<ParseResult> {\n try {\n const results = [];\n for (const plugins of pluginPasses) {\n for (const plugin of plugins) {\n const { parserOverride } = plugin;\n if (parserOverride) {\n const ast = parserOverride(code, parserOpts, parse);\n\n if (ast !== undefined) results.push(ast);\n }\n }\n }\n\n if (results.length === 0) {\n return parse(code, parserOpts);\n } else if (results.length === 1) {\n // If we want to allow async parsers\n yield* [];\n if (typeof results[0].then === \"function\") {\n throw new Error(\n `You appear to be using an async parser plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n return results[0];\n }\n // TODO: Add an error code\n throw new Error(\"More than one plugin attempted to override parsing.\");\n } catch (err) {\n if (err.code === \"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED\") {\n err.message +=\n \"\\nConsider renaming the file to '.mjs', or setting sourceType:module \" +\n \"or sourceType:unambiguous in your Babel config for this file.\";\n // err.code will be changed to BABEL_PARSE_ERROR later.\n }\n\n const { loc, missingPlugin } = err;\n if (loc) {\n const codeFrame = codeFrameColumns(\n code,\n {\n start: {\n line: loc.line,\n column: loc.column + 1,\n },\n },\n {\n highlightCode,\n },\n );\n if (missingPlugin) {\n err.message =\n `${filename}: ` +\n generateMissingPluginMessage(\n missingPlugin[0],\n loc,\n codeFrame,\n filename,\n );\n } else {\n err.message = `${filename}: ${err.message}\\n\\n` + codeFrame;\n }\n err.code = \"BABEL_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAG,oBAAA,GAAAF,OAAA;AAKe,UAAUG,MAAMA,CAC7BC,YAA0B,EAC1B;EAAEC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAEC,QAAQ,GAAG;AAAe,CAAC,EAC/DC,IAAY,EACU;EACtB,IAAI;IACF,MAAMC,OAAO,GAAG,EAAE;IAClB,KAAK,MAAMC,OAAO,IAAIN,YAAY,EAAE;MAClC,KAAK,MAAMO,MAAM,IAAID,OAAO,EAAE;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,CAAC,CAAC,CAAC,EAChBD,GAAG,EACHE,SAAS,EACTjB,QACF,CAAC;MACL,CAAC,MAAM;QACLa,GAAG,CAACC,OAAO,GAAG,GAAGd,QAAQ,KAAKa,GAAG,CAACC,OAAO,MAAM,GAAGG,SAAS;MAC7D;MACAJ,GAAG,CAACZ,IAAI,GAAG,mBAAmB;IAChC;IACA,MAAMY,GAAG;EACX;AACF;AAAC","ignoreList":[]}
1
+ {"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type ParseResult } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport generateMissingPluginMessage from \"./util/missing-plugin-helper.ts\";\nimport type { PluginPasses } from \"../config/index.ts\";\n\nexport type { ParseResult };\n\nexport default function* parser(\n pluginPasses: PluginPasses,\n { parserOpts, highlightCode = true, filename = \"unknown\" }: any,\n code: string,\n): Handler<ParseResult> {\n try {\n const results = [];\n for (const plugins of pluginPasses) {\n for (const plugin of plugins) {\n const { parserOverride } = plugin;\n if (parserOverride) {\n const ast = parserOverride(code, parserOpts, parse);\n\n if (ast !== undefined) results.push(ast);\n }\n }\n }\n\n if (results.length === 0) {\n return parse(code, parserOpts);\n } else if (results.length === 1) {\n // If we want to allow async parsers\n yield* [];\n if (typeof results[0].then === \"function\") {\n throw new Error(\n `You appear to be using an async parser plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n return results[0];\n }\n // TODO: Add an error code\n throw new Error(\"More than one plugin attempted to override parsing.\");\n } catch (err) {\n if (err.code === \"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED\") {\n err.message +=\n \"\\nConsider renaming the file to '.mjs', or setting sourceType:module \" +\n \"or sourceType:unambiguous in your Babel config for this file.\";\n // err.code will be changed to BABEL_PARSE_ERROR later.\n }\n\n const { loc, missingPlugin } = err;\n if (loc) {\n const codeFrame = codeFrameColumns(\n code,\n {\n start: {\n line: loc.line,\n column: loc.column + 1,\n },\n },\n {\n highlightCode,\n },\n );\n if (missingPlugin) {\n err.message =\n `${filename}: ` +\n generateMissingPluginMessage(\n missingPlugin[0],\n loc,\n codeFrame,\n filename,\n );\n } else {\n err.message = `${filename}: ${err.message}\\n\\n` + codeFrame;\n }\n err.code = \"BABEL_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAG,oBAAA,GAAAF,OAAA;AAKe,UAAUG,MAAMA,CAC7BC,YAA0B,EAC1B;EAAEC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAEC,QAAQ,GAAG;AAAe,CAAC,EAC/DC,IAAY,EACU;EACtB,IAAI;IACF,MAAMC,OAAO,GAAG,EAAE;IAClB,KAAK,MAAMC,OAAO,IAAIN,YAAY,EAAE;MAClC,KAAK,MAAMO,MAAM,IAAID,OAAO,EAAE;QAC5B,MAAM;UAAEE;QAAe,CAAC,GAAGD,MAAM;QACjC,IAAIC,cAAc,EAAE;UAClB,MAAMC,GAAG,GAAGD,cAAc,CAACJ,IAAI,EAAEH,UAAU,EAAES,eAAK,CAAC;UAEnD,IAAID,GAAG,KAAKE,SAAS,EAAEN,OAAO,CAACO,IAAI,CAACH,GAAG,CAAC;QAC1C;MACF;IACF;IAEA,IAAIJ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AC","ignoreList":[]}
@@ -1,4 +1,6 @@
1
- exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName;
1
+ {
2
+ exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName;
3
+ }
2
4
  0 && 0;
3
5
 
4
6
  //# sourceMappingURL=babel-7-helpers.cjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nexports.getModuleName = () =>\n require(\"@babel/helper-module-transforms\").getModuleName;\n"],"mappings":"AAEAA,OAAO,CAACC,aAAa,GAAG,MACtBC,OAAO,CAAC,iCAAiC,CAAC,CAACD,aAAa;AAAC","ignoreList":[]}
1
+ {"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nif (!process.env.BABEL_8_BREAKING) {\n exports.getModuleName = () =>\n require(\"@babel/helper-module-transforms\").getModuleName;\n} else if (process.env.IS_PUBLISH) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n"],"mappings":"AAEmC;EACjCA,OAAO,CAACC,aAAa,GAAG,MACtBC,OAAO,CAAC,iCAAiC,CAAC,CAACD,aAAa;AAC5D;AAAC","ignoreList":[]}
@@ -39,9 +39,7 @@ function _semver() {
39
39
  };
40
40
  return data;
41
41
  }
42
- var babel7 = _interopRequireWildcard(require("./babel-7-helpers.cjs"), true);
43
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
44
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
42
+ var _babel7Helpers = require("./babel-7-helpers.cjs");
45
43
  const {
46
44
  cloneNode,
47
45
  interpreterDirective
@@ -205,7 +203,7 @@ exports.default = File;
205
203
  };
206
204
  {
207
205
  File.prototype.getModuleName = function getModuleName() {
208
- return babel7.getModuleName()(this.opts, this.opts);
206
+ return _babel7Helpers.getModuleName()(this.opts, this.opts);
209
207
  };
210
208
  }
211
209
  }