@remotion/bundler 3.0.0-lambda.25 → 3.0.0-lambda.274

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 (254) hide show
  1. package/dist/bundler.d.ts.map +1 -1
  2. package/dist/bundler.js +29 -11
  3. package/dist/bundler.js.map +1 -1
  4. package/dist/copy-dir.d.ts +2 -0
  5. package/dist/copy-dir.d.ts.map +1 -0
  6. package/dist/copy-dir.js +24 -0
  7. package/dist/copy-dir.js.map +1 -0
  8. package/dist/dev-middleware/compatible-api.d.ts +10 -0
  9. package/dist/dev-middleware/compatible-api.d.ts.map +1 -0
  10. package/dist/dev-middleware/compatible-api.js +45 -0
  11. package/dist/dev-middleware/compatible-api.js.map +1 -0
  12. package/dist/dev-middleware/compatible.api.d.ts +1 -0
  13. package/dist/dev-middleware/compatible.api.d.ts.map +1 -0
  14. package/dist/dev-middleware/compatible.api.js +2 -0
  15. package/dist/dev-middleware/compatible.api.js.map +1 -0
  16. package/dist/dev-middleware/compatibleapi.d.ts +1 -0
  17. package/dist/dev-middleware/compatibleapi.d.ts.map +1 -0
  18. package/dist/dev-middleware/compatibleapi.js +2 -0
  19. package/dist/dev-middleware/compatibleapi.js.map +1 -0
  20. package/dist/dev-middleware/get-filename-from-url.d.ts +3 -0
  21. package/dist/dev-middleware/get-filename-from-url.d.ts.map +1 -0
  22. package/dist/dev-middleware/get-filename-from-url.js +93 -0
  23. package/dist/dev-middleware/get-filename-from-url.js.map +1 -0
  24. package/dist/dev-middleware/get-paths.d.ts +8 -0
  25. package/dist/dev-middleware/get-paths.d.ts.map +1 -0
  26. package/dist/dev-middleware/get-paths.js +20 -0
  27. package/dist/dev-middleware/get-paths.js.map +1 -0
  28. package/dist/dev-middleware/index.d.ts +3 -0
  29. package/dist/dev-middleware/index.d.ts.map +1 -0
  30. package/dist/dev-middleware/index.js +58 -0
  31. package/dist/dev-middleware/index.js.map +1 -0
  32. package/dist/dev-middleware/is-color-supported.d.ts +2 -0
  33. package/dist/dev-middleware/is-color-supported.d.ts.map +1 -0
  34. package/dist/dev-middleware/is-color-supported.js +34 -0
  35. package/dist/dev-middleware/is-color-supported.js.map +1 -0
  36. package/dist/dev-middleware/middleware.d.ts +4 -0
  37. package/dist/dev-middleware/middleware.d.ts.map +1 -0
  38. package/dist/dev-middleware/middleware.js +142 -0
  39. package/dist/dev-middleware/middleware.js.map +1 -0
  40. package/dist/dev-middleware/range-parser.d.ts +16 -0
  41. package/dist/dev-middleware/range-parser.d.ts.map +1 -0
  42. package/dist/dev-middleware/range-parser.js +97 -0
  43. package/dist/dev-middleware/range-parser.js.map +1 -0
  44. package/dist/dev-middleware/ready.d.ts +6 -0
  45. package/dist/dev-middleware/ready.d.ts.map +1 -0
  46. package/dist/dev-middleware/ready.js +14 -0
  47. package/dist/dev-middleware/ready.js.map +1 -0
  48. package/dist/dev-middleware/setup-hooks.d.ts +3 -0
  49. package/dist/dev-middleware/setup-hooks.d.ts.map +1 -0
  50. package/dist/dev-middleware/setup-hooks.js +45 -0
  51. package/dist/dev-middleware/setup-hooks.js.map +1 -0
  52. package/dist/dev-middleware/setup-output-filesystem.d.ts +3 -0
  53. package/dist/dev-middleware/setup-output-filesystem.d.ts.map +1 -0
  54. package/dist/dev-middleware/setup-output-filesystem.js +14 -0
  55. package/dist/dev-middleware/setup-output-filesystem.js.map +1 -0
  56. package/dist/dev-middleware/types.d.ts +12 -0
  57. package/dist/dev-middleware/types.d.ts.map +1 -0
  58. package/dist/dev-middleware/types.js +3 -0
  59. package/dist/dev-middleware/types.js.map +1 -0
  60. package/dist/error-overlay/entry-basic.d.ts +2 -0
  61. package/dist/error-overlay/entry-basic.d.ts.map +1 -0
  62. package/dist/error-overlay/entry-basic.js +22 -0
  63. package/dist/error-overlay/entry-basic.js.map +1 -0
  64. package/dist/error-overlay/entry-devserver.d.ts +12 -0
  65. package/dist/error-overlay/entry-devserver.d.ts.map +1 -0
  66. package/dist/error-overlay/entry-devserver.js +36 -0
  67. package/dist/error-overlay/entry-devserver.js.map +1 -0
  68. package/dist/error-overlay/index.d.ts +5 -0
  69. package/dist/error-overlay/index.d.ts.map +1 -0
  70. package/dist/error-overlay/index.js +28 -0
  71. package/dist/error-overlay/index.js.map +1 -0
  72. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +13 -0
  73. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -0
  74. package/dist/error-overlay/react-overlay/effects/format-warning.js +42 -0
  75. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -0
  76. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +18 -0
  77. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +1 -0
  78. package/dist/error-overlay/react-overlay/effects/proxy-console.js +55 -0
  79. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -0
  80. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +4 -0
  81. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +1 -0
  82. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +44 -0
  83. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +1 -0
  84. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +5 -0
  85. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +1 -0
  86. package/dist/error-overlay/react-overlay/effects/unhandled-error.js +46 -0
  87. package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +1 -0
  88. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +5 -0
  89. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +1 -0
  90. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +42 -0
  91. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +1 -0
  92. package/dist/error-overlay/react-overlay/index.d.ts +8 -0
  93. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -0
  94. package/dist/error-overlay/react-overlay/index.js +45 -0
  95. package/dist/error-overlay/react-overlay/index.js.map +1 -0
  96. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +12 -0
  97. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -0
  98. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +63 -0
  99. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -0
  100. package/dist/error-overlay/react-overlay/stack-frame.d.ts +47 -0
  101. package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +1 -0
  102. package/dist/error-overlay/react-overlay/stack-frame.js +82 -0
  103. package/dist/error-overlay/react-overlay/stack-frame.js.map +1 -0
  104. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +15 -0
  105. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +1 -0
  106. package/dist/error-overlay/react-overlay/utils/get-lines-around.js +31 -0
  107. package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +1 -0
  108. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +52 -0
  109. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -0
  110. package/dist/error-overlay/react-overlay/utils/get-source-map.js +108 -0
  111. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -0
  112. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +13 -0
  113. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -0
  114. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +32 -0
  115. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -0
  116. package/dist/error-overlay/react-overlay/utils/mapper.d.ts +16 -0
  117. package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +1 -0
  118. package/dist/error-overlay/react-overlay/utils/mapper.js +61 -0
  119. package/dist/error-overlay/react-overlay/utils/mapper.js.map +1 -0
  120. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +15 -0
  121. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -0
  122. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +452 -0
  123. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -0
  124. package/dist/error-overlay/react-overlay/utils/parser.d.ts +15 -0
  125. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -0
  126. package/dist/error-overlay/react-overlay/utils/parser.js +85 -0
  127. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -0
  128. package/dist/error-overlay/react-overlay/utils/path.d.ts +2 -0
  129. package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -0
  130. package/dist/error-overlay/react-overlay/utils/path.js +98 -0
  131. package/dist/error-overlay/react-overlay/utils/path.js.map +1 -0
  132. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +3 -0
  133. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +1 -0
  134. package/dist/error-overlay/react-overlay/utils/settle-promise.js +20 -0
  135. package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +1 -0
  136. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +46 -0
  137. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -0
  138. package/dist/error-overlay/react-overlay/utils/stack-frame.js +85 -0
  139. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -0
  140. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +14 -0
  141. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -0
  142. package/dist/error-overlay/react-overlay/utils/unmapper.js +94 -0
  143. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -0
  144. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -0
  145. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +1 -0
  146. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +15 -0
  147. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +1 -0
  148. package/dist/error-overlay/remotion-overlay/Button.d.ts +6 -0
  149. package/dist/error-overlay/remotion-overlay/Button.d.ts.map +1 -0
  150. package/dist/error-overlay/remotion-overlay/Button.js +25 -0
  151. package/dist/error-overlay/remotion-overlay/Button.js.map +1 -0
  152. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +7 -0
  153. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +1 -0
  154. package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -0
  155. package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +1 -0
  156. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +3 -0
  157. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +1 -0
  158. package/dist/error-overlay/remotion-overlay/DismissButton.js +24 -0
  159. package/dist/error-overlay/remotion-overlay/DismissButton.js.map +1 -0
  160. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
  161. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -0
  162. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +62 -0
  163. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -0
  164. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
  165. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +1 -0
  166. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +92 -0
  167. package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +1 -0
  168. package/dist/error-overlay/remotion-overlay/Overlay.d.ts +17 -0
  169. package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +1 -0
  170. package/dist/error-overlay/remotion-overlay/Overlay.js +35 -0
  171. package/dist/error-overlay/remotion-overlay/Overlay.js.map +1 -0
  172. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
  173. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +1 -0
  174. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +14 -0
  175. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +1 -0
  176. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
  177. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -0
  178. package/dist/error-overlay/remotion-overlay/StackFrame.js +42 -0
  179. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -0
  180. package/dist/error-overlay/remotion-overlay/carets.d.ts +3 -0
  181. package/dist/error-overlay/remotion-overlay/carets.d.ts.map +1 -0
  182. package/dist/error-overlay/remotion-overlay/carets.js +13 -0
  183. package/dist/error-overlay/remotion-overlay/carets.js.map +1 -0
  184. package/dist/error-overlay/remotion-overlay/format-location.d.ts +2 -0
  185. package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +1 -0
  186. package/dist/error-overlay/remotion-overlay/format-location.js +11 -0
  187. package/dist/error-overlay/remotion-overlay/format-location.js.map +1 -0
  188. package/dist/error-overlay/remotion-overlay/index.d.ts +2 -0
  189. package/dist/error-overlay/remotion-overlay/index.d.ts.map +1 -0
  190. package/dist/error-overlay/remotion-overlay/index.js +14 -0
  191. package/dist/error-overlay/remotion-overlay/index.js.map +1 -0
  192. package/dist/fast-refresh/helpers.d.ts +40 -0
  193. package/dist/fast-refresh/helpers.d.ts.map +1 -0
  194. package/dist/fast-refresh/helpers.js +146 -0
  195. package/dist/fast-refresh/helpers.js.map +1 -0
  196. package/dist/fast-refresh/index.d.ts +31 -0
  197. package/dist/fast-refresh/index.d.ts.map +1 -0
  198. package/dist/fast-refresh/index.js +60 -0
  199. package/dist/fast-refresh/index.js.map +1 -0
  200. package/dist/fast-refresh/loader.d.ts +36 -0
  201. package/dist/fast-refresh/loader.d.ts.map +1 -0
  202. package/dist/fast-refresh/loader.js +82 -0
  203. package/dist/fast-refresh/loader.js.map +1 -0
  204. package/dist/fast-refresh/runtime.d.ts +36 -0
  205. package/dist/fast-refresh/runtime.d.ts.map +1 -0
  206. package/dist/fast-refresh/runtime.js +33 -0
  207. package/dist/fast-refresh/runtime.js.map +1 -0
  208. package/dist/homepage/homepage.d.ts +4 -0
  209. package/dist/homepage/homepage.d.ts.map +1 -0
  210. package/dist/homepage/homepage.js +63 -0
  211. package/dist/homepage/homepage.js.map +1 -0
  212. package/dist/hot-middleware/client.d.ts +20 -0
  213. package/dist/hot-middleware/client.d.ts.map +1 -0
  214. package/dist/hot-middleware/client.js +208 -0
  215. package/dist/hot-middleware/client.js.map +1 -0
  216. package/dist/hot-middleware/index.d.ts +14 -0
  217. package/dist/hot-middleware/index.d.ts.map +1 -0
  218. package/dist/hot-middleware/index.js +181 -0
  219. package/dist/hot-middleware/index.js.map +1 -0
  220. package/dist/hot-middleware/process-update.d.ts +13 -0
  221. package/dist/hot-middleware/process-update.d.ts.map +1 -0
  222. package/dist/hot-middleware/process-update.js +147 -0
  223. package/dist/hot-middleware/process-update.js.map +1 -0
  224. package/dist/hot-middleware/strip-ansi.d.ts +7 -0
  225. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -0
  226. package/dist/hot-middleware/strip-ansi.js +23 -0
  227. package/dist/hot-middleware/strip-ansi.js.map +1 -0
  228. package/dist/hot-middleware/types.d.ts +39 -0
  229. package/dist/hot-middleware/types.d.ts.map +1 -0
  230. package/dist/hot-middleware/types.js +18 -0
  231. package/dist/hot-middleware/types.js.map +1 -0
  232. package/dist/index.d.ts +1 -1
  233. package/dist/index.d.ts.map +1 -1
  234. package/dist/index.js.map +1 -1
  235. package/dist/renderEntry.js +7 -3
  236. package/dist/renderEntry.js.map +1 -1
  237. package/dist/start-server.d.ts +0 -1
  238. package/dist/start-server.d.ts.map +1 -1
  239. package/dist/start-server.js +41 -14
  240. package/dist/start-server.js.map +1 -1
  241. package/dist/static-preview.d.ts +2 -0
  242. package/dist/static-preview.d.ts.map +1 -0
  243. package/dist/static-preview.js +34 -0
  244. package/dist/static-preview.js.map +1 -0
  245. package/dist/webpack-config.d.ts +1 -2
  246. package/dist/webpack-config.d.ts.map +1 -1
  247. package/dist/webpack-config.js +29 -12
  248. package/dist/webpack-config.js.map +1 -1
  249. package/package.json +11 -8
  250. package/dist/env-variables.d.ts +0 -2
  251. package/dist/env-variables.d.ts.map +0 -1
  252. package/dist/env-variables.js +0 -5
  253. package/dist/env-variables.js.map +0 -1
  254. package/web/index.html +0 -20
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { SourceMapConsumer } from 'source-map';
8
+ /**
9
+ * A wrapped instance of a <code>{@link https://github.com/mozilla/source-map SourceMapConsumer}</code>.
10
+ *
11
+ * This exposes methods which will be indifferent to changes made in <code>{@link https://github.com/mozilla/source-map source-map}</code>.
12
+ */
13
+ export declare class SourceMap {
14
+ __source_map: SourceMapConsumer;
15
+ constructor(sourceMap: SourceMapConsumer);
16
+ /**
17
+ * Returns the original code position for a generated code position.
18
+ * @param {number} line The line of the generated code position.
19
+ * @param {number} column The column of the generated code position.
20
+ */
21
+ getOriginalPosition(line: number, column: number): {
22
+ source: string;
23
+ line: number;
24
+ column: number;
25
+ };
26
+ /**
27
+ * Returns the generated code position for an original position.
28
+ * @param {string} source The source file of the original code position.
29
+ * @param {number} line The line of the original code position.
30
+ * @param {number} column The column of the original code position.
31
+ */
32
+ getGeneratedPosition(source: string, line: number, column: number): {
33
+ line: number;
34
+ column: number;
35
+ };
36
+ /**
37
+ * Returns the code for a given source file name.
38
+ * @param {string} sourceName The name of the source file.
39
+ */
40
+ getSource(sourceName: string): string;
41
+ getSources(): string[];
42
+ }
43
+ declare function extractSourceMapUrl(fileUri: string, fileContents: string): Promise<string>;
44
+ /**
45
+ * Returns an instance of <code>{@link SourceMap}</code> for a given fileUri and fileContents.
46
+ * @param {string} fileUri The URI of the source file.
47
+ * @param {string} fileContents The contents of the source file.
48
+ */
49
+ declare function getSourceMap(fileUri: string, fileContents: string): Promise<SourceMap>;
50
+ export { extractSourceMapUrl, getSourceMap };
51
+ export default getSourceMap;
52
+ //# sourceMappingURL=get-source-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-source-map.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/get-source-map.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AAEH,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,SAAS;IACrB,YAAY,EAAE,iBAAiB,CAAC;gBAEpB,SAAS,EAAE,iBAAiB;IAIxC;;;;OAIG;IACH,mBAAmB,CAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC;IAYjD;;;;;OAKG;IACH,oBAAoB,CACnB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACZ;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC;IAYjC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIrC,UAAU,IAAI,MAAM,EAAE;CAItB;AAED,iBAAS,mBAAmB,CAC3B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAmBjB;AAED;;;;GAIG;AACH,iBAAe,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,CAAC,CAqBpB;AAED,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAC,CAAC;AAC3C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getSourceMap = exports.extractSourceMapUrl = exports.SourceMap = void 0;
7
+ /* eslint-disable no-eq-null */
8
+ /* eslint-disable eqeqeq */
9
+ /**
10
+ * Copyright (c) 2015-present, Facebook, Inc.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ const source_map_1 = require("source-map");
16
+ /**
17
+ * A wrapped instance of a <code>{@link https://github.com/mozilla/source-map SourceMapConsumer}</code>.
18
+ *
19
+ * This exposes methods which will be indifferent to changes made in <code>{@link https://github.com/mozilla/source-map source-map}</code>.
20
+ */
21
+ class SourceMap {
22
+ constructor(sourceMap) {
23
+ this.__source_map = sourceMap;
24
+ }
25
+ /**
26
+ * Returns the original code position for a generated code position.
27
+ * @param {number} line The line of the generated code position.
28
+ * @param {number} column The column of the generated code position.
29
+ */
30
+ getOriginalPosition(line, column) {
31
+ const { line: l, column: c, source: s, } = this.__source_map.originalPositionFor({
32
+ line,
33
+ column,
34
+ });
35
+ return { line: l, column: c, source: s };
36
+ }
37
+ /**
38
+ * Returns the generated code position for an original position.
39
+ * @param {string} source The source file of the original code position.
40
+ * @param {number} line The line of the original code position.
41
+ * @param {number} column The column of the original code position.
42
+ */
43
+ getGeneratedPosition(source, line, column) {
44
+ const { line: l, column: c } = this.__source_map.generatedPositionFor({
45
+ source,
46
+ line,
47
+ column,
48
+ });
49
+ return {
50
+ line: l,
51
+ column: c,
52
+ };
53
+ }
54
+ /**
55
+ * Returns the code for a given source file name.
56
+ * @param {string} sourceName The name of the source file.
57
+ */
58
+ getSource(sourceName) {
59
+ return this.__source_map.sourceContentFor(sourceName);
60
+ }
61
+ getSources() {
62
+ // @ts-expect-error
63
+ return this.__source_map.sources;
64
+ }
65
+ }
66
+ exports.SourceMap = SourceMap;
67
+ function extractSourceMapUrl(fileUri, fileContents) {
68
+ const regex = /\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm;
69
+ let match = null;
70
+ for (;;) {
71
+ const next = regex.exec(fileContents);
72
+ if (next == null) {
73
+ break;
74
+ }
75
+ match = next;
76
+ }
77
+ if (!(match === null || match === void 0 ? void 0 : match[1])) {
78
+ return Promise.reject(new Error(`Cannot find a source map directive for ${fileUri}.`));
79
+ }
80
+ return Promise.resolve(match[1].toString());
81
+ }
82
+ exports.extractSourceMapUrl = extractSourceMapUrl;
83
+ /**
84
+ * Returns an instance of <code>{@link SourceMap}</code> for a given fileUri and fileContents.
85
+ * @param {string} fileUri The URI of the source file.
86
+ * @param {string} fileContents The contents of the source file.
87
+ */
88
+ async function getSourceMap(fileUri, fileContents) {
89
+ let sm = await extractSourceMapUrl(fileUri, fileContents);
90
+ if (sm.indexOf('data:') === 0) {
91
+ const base64 = /^data:application\/json;([\w=:"-]+;)*base64,/;
92
+ const match2 = sm.match(base64);
93
+ if (!match2) {
94
+ throw new Error('Sorry, non-base64 inline source-map encoding is not supported.');
95
+ }
96
+ sm = sm.substring(match2[0].length);
97
+ sm = window.atob(sm);
98
+ sm = JSON.parse(sm);
99
+ return new SourceMap(await new source_map_1.SourceMapConsumer(sm));
100
+ }
101
+ const index = fileUri.lastIndexOf('/');
102
+ const url = fileUri.substring(0, index + 1) + sm;
103
+ const obj = await fetch(url).then((res) => res.json());
104
+ return new SourceMap(await new source_map_1.SourceMapConsumer(obj));
105
+ }
106
+ exports.getSourceMap = getSourceMap;
107
+ exports.default = getSourceMap;
108
+ //# sourceMappingURL=get-source-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-source-map.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/get-source-map.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF,+BAA+B;AAC/B,2BAA2B;AAC3B;;;;;GAKG;AAEH,2CAA6C;AAE7C;;;;GAIG;AACH,MAAa,SAAS;IAGrB,YAAY,SAA4B;QACvC,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACH,mBAAmB,CACl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AiB,CAAC,GAAG,CAAC,CAAC,CAAC;AACxD,CAAC;AAE4B,oCAAY;AACzC,kBAAe,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import type { StackFrame } from './stack-frame';
8
+ declare function getStackFrames(error: Error & {
9
+ __unmap_source?: string;
10
+ }, contextSize?: number): Promise<StackFrame[] | null>;
11
+ export default getStackFrames;
12
+ export { getStackFrames };
13
+ //# sourceMappingURL=get-stack-frames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stack-frames.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/get-stack-frames.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAK9C,iBAAS,cAAc,CACtB,KAAK,EAAE,KAAK,GAAG;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAC,EACxC,WAAW,SAAI,GACb,OAAO,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAgC9B;AAED,eAAe,cAAc,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getStackFrames = void 0;
7
+ const parser_1 = require("./parser");
8
+ const mapper_1 = require("./mapper");
9
+ const unmapper_1 = require("./unmapper");
10
+ function getStackFrames(error, contextSize = 3) {
11
+ const parsedFrames = (0, parser_1.parse)(error);
12
+ let enhancedFramesPromise;
13
+ if (error.__unmap_source) {
14
+ enhancedFramesPromise = (0, unmapper_1.unmap)(error.__unmap_source, parsedFrames, contextSize);
15
+ }
16
+ else {
17
+ enhancedFramesPromise = (0, mapper_1.map)(parsedFrames, contextSize);
18
+ }
19
+ return enhancedFramesPromise.then((enhancedFrames) => {
20
+ if (enhancedFrames
21
+ .map((f) => f._originalFileName)
22
+ .filter((f) => f !== null && f !== undefined && f.indexOf('node_modules') === -1).length === 0) {
23
+ return null;
24
+ }
25
+ return enhancedFrames.filter(({ functionName }) => functionName === null ||
26
+ functionName === undefined ||
27
+ functionName.indexOf('__stack_frame_overlay_proxy_console__') === -1);
28
+ });
29
+ }
30
+ exports.getStackFrames = getStackFrames;
31
+ exports.default = getStackFrames;
32
+ //# sourceMappingURL=get-stack-frames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-stack-frames.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/get-stack-frames.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAUF,qCAA+B;AAC/B,qCAA6B;AAC7B,yCAAiC;AAEjC,SAAS,cAAc,CACtB,KAAwC,EACxC,WAAW,GAAG,CAAC;IAEf,MAAM,YAAY,GAAG,IAAA,cAAK,EAAC,KAAK,CAAC,CAAC;IAClC,IAAI,qBAAqB,CAAC;IAC1B,IAAI,KAAK,CAAC,cAAc,EAAE;QACzB,qBAAqB,GAAG,IAAA,gBAAK,EAC5B,KAAK,CAAC,cAAc,EACpB,YAAY,EACZ,WAAW,CACX,CAAC;KACF;SAAM;QACN,qBAAqB,GAAG,IAAA,YAAG,EAAC,YAAY,EAAE,WAAW,CAAC,CAAC;KACvD;IAED,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE;QACpD,IACC,cAAc;aACZ,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC;aAC/B,MAAM,CACN,CAAC,CAAC,EAAE,EAAE,CACL,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAClE,CAAC,MAAM,KAAK,CAAC,EACd;YACD,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,cAAc,CAAC,MAAM,CAC3B,CAAC,EAAC,YAAY,EAAC,EAAE,EAAE,CAClB,YAAY,KAAK,IAAI;YACrB,YAAY,KAAK,SAAS;YAC1B,YAAY,CAAC,OAAO,CAAC,uCAAuC,CAAC,KAAK,CAAC,CAAC,CACrE,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AAGO,wCAAc;AADtB,kBAAe,cAAc,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { StackFrame } from './stack-frame';
8
+ /**
9
+ * Enhances a set of <code>StackFrame</code>s with their original positions and code (when available).
10
+ * @param {StackFrame[]} frames A set of <code>StackFrame</code>s which contain (generated) code positions.
11
+ * @param {number} [contextLines=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
12
+ */
13
+ declare function map(frames: StackFrame[], contextLines?: number): Promise<StackFrame[]>;
14
+ export { map };
15
+ export default map;
16
+ //# sourceMappingURL=mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/mapper.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAKzC;;;;GAIG;AACH,iBAAe,GAAG,CACjB,MAAM,EAAE,UAAU,EAAE,EACpB,YAAY,SAAI,GACd,OAAO,CAAC,UAAU,EAAE,CAAC,CA4DvB;AAED,OAAO,EAAC,GAAG,EAAC,CAAC;AACb,eAAe,GAAG,CAAC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.map = void 0;
7
+ /**
8
+ * Copyright (c) 2015-present, Facebook, Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ const stack_frame_1 = require("./stack-frame");
14
+ const get_source_map_1 = require("./get-source-map");
15
+ const get_lines_around_1 = require("./get-lines-around");
16
+ const settle_promise_1 = require("./settle-promise");
17
+ /**
18
+ * Enhances a set of <code>StackFrame</code>s with their original positions and code (when available).
19
+ * @param {StackFrame[]} frames A set of <code>StackFrame</code>s which contain (generated) code positions.
20
+ * @param {number} [contextLines=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
21
+ */
22
+ async function map(frames, contextLines = 3) {
23
+ const cache = {};
24
+ const files = [];
25
+ frames.forEach((frame) => {
26
+ const { fileName } = frame;
27
+ if (fileName === null || fileName === undefined) {
28
+ return;
29
+ }
30
+ if (files.indexOf(fileName) !== -1) {
31
+ return;
32
+ }
33
+ files.push(fileName);
34
+ });
35
+ await (0, settle_promise_1.settle)(files.map(async (fileName) => {
36
+ const fetchUrl = fileName.indexOf('webpack-internal:') === 0
37
+ ? `/__get-internal-source?fileName=${encodeURIComponent(fileName)}`
38
+ : fileName;
39
+ const fileSource = await fetch(fetchUrl).then((r) => r.text());
40
+ const _map = await (0, get_source_map_1.getSourceMap)(fileName, fileSource);
41
+ cache[fileName] = { fileSource, map: _map };
42
+ }));
43
+ return frames.map((frame) => {
44
+ const { functionName, fileName, lineNumber, columnNumber } = frame;
45
+ const { map: _map, fileSource } = cache[fileName] || {};
46
+ if (_map === null ||
47
+ _map === undefined ||
48
+ columnNumber === null ||
49
+ columnNumber === undefined ||
50
+ lineNumber === null ||
51
+ lineNumber === undefined) {
52
+ return frame;
53
+ }
54
+ const { source, line, column } = _map.getOriginalPosition(lineNumber, columnNumber);
55
+ const originalSource = source === null || source === undefined ? [] : _map.getSource(source);
56
+ return new stack_frame_1.StackFrame(functionName, fileName, lineNumber, columnNumber, (0, get_lines_around_1.getLinesAround)(lineNumber, contextLines, fileSource), functionName, source, line, column, (0, get_lines_around_1.getLinesAround)(line, contextLines, originalSource));
57
+ });
58
+ }
59
+ exports.map = map;
60
+ exports.default = map;
61
+ //# sourceMappingURL=mapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/mapper.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF;;;;;GAKG;AAEH,+CAAyC;AACzC,qDAAyD;AACzD,yDAAkD;AAClD,qDAAwC;AAExC;;;;GAIG;AACH,KAAK,UAAU,GAAG,CACjB,MAAoB,EACpB,YAAY,GAAG,CAAC;IAEhB,MAAM,KAAK,GAA0D,EAAE,CAAC;IACxE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;QACzB,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;YAChD,OAAO;SACP;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;YACnC,OAAO;SACP;QAED,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,IAAA,uBAAM,EACX,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC5B,MAAM,QAAQ,GACb,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC;YAC1C,CAAC,CAAC,mCAAmC,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACnE,CAAC,CAAC,QAAQ,CAAC;QAEb,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,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C;AACJ,CAAC;AAEO,kBAAG;AACX,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const isVsCodeDerivative: (editor: Editor) => boolean;
2
+ export declare function isTerminalEditor(editor: Editor): boolean;
3
+ declare const editorNames: readonly ["atom", "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta", "brackets", "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl", "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl", "code", "code-insiders", "vscodium", "/Applications/AppCode.app/Contents/MacOS/appcode", "/Applications/CLion.app/Contents/MacOS/clion", "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea", "/Applications/PhpStorm.app/Contents/MacOS/phpstorm", "/Applications/PyCharm.app/Contents/MacOS/pycharm", "/Applications/PyCharm CE.app/Contents/MacOS/pycharm", "/Applications/RubyMine.app/Contents/MacOS/rubymine", "/Applications/WebStorm.app/Contents/MacOS/webstorm", "/Applications/GoLand.app/Contents/MacOS/goland", "/Applications/Rider.app/Contents/MacOS/rider", "mvim", "emacs", "gvim", "idea", "phpstorm", "pycharm", "rubymine", "sublime_text", "vim", "webstorm", "goland", "rider", "Brackets.exe", "Code.exe", "Code - Insiders.exe", "VSCodium.exe", "atom.exe", "sublime_text.exe", "notepad++.exe", "clion.exe", "clion64.exe", "idea.exe", "idea64.exe", "phpstorm.exe", "phpstorm64.exe", "pycharm.exe", "pycharm64.exe", "rubymine.exe", "rubymine64.exe", "webstorm.exe", "webstorm64.exe", "goland.exe", "goland64.exe", "rider.exe", "rider64.exe", "nano"];
4
+ export declare const getDisplayNameForEditor: (editor: Editor | undefined) => string | null;
5
+ declare type Editor = typeof editorNames[number];
6
+ export declare function guessEditor(): Promise<Editor[]>;
7
+ export declare function launchEditor({ colNumber, editor, fileName, lineNumber, vsCodeNewWindow, }: {
8
+ fileName: string;
9
+ lineNumber: number;
10
+ colNumber: number;
11
+ editor: Editor;
12
+ vsCodeNewWindow: boolean;
13
+ }): Promise<boolean>;
14
+ export {};
15
+ //# sourceMappingURL=open-in-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-editor.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/open-in-editor.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,kBAAkB,WAAY,MAAM,YAShD,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,WAS9C;AAED,QAAA,MAAM,WAAW,8zCAwDP,CAAC;AA+DX,eAAO,MAAM,uBAAuB,WAC3B,MAAM,GAAG,SAAS,KACxB,MAAM,GAAG,IAMX,CAAC;AAEF,aAAK,MAAM,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AA+JzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAsErD;AAID,wBAAsB,YAAY,CAAC,EAClC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,UAAU,EACV,eAAe,GACf,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;CACzB,GAAG,OAAO,CAAC,OAAO,CAAC,CAmGnB"}