@remotion/bundler 3.1.10 → 3.1.11
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.
- package/dist/bundler.d.ts +0 -1
- package/dist/bundler.js +0 -1
- package/dist/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/dev-middleware/compatible-api.js +0 -1
- package/dist/dev-middleware/get-filename-from-url.d.ts +0 -1
- package/dist/dev-middleware/get-filename-from-url.js +1 -2
- package/dist/dev-middleware/get-paths.d.ts +0 -1
- package/dist/dev-middleware/get-paths.js +0 -1
- package/dist/dev-middleware/index.d.ts +0 -1
- package/dist/dev-middleware/index.js +3 -4
- package/dist/dev-middleware/is-color-supported.d.ts +0 -1
- package/dist/dev-middleware/is-color-supported.js +5 -2
- package/dist/dev-middleware/middleware.d.ts +1 -2
- package/dist/dev-middleware/middleware.js +3 -4
- package/dist/dev-middleware/range-parser.d.ts +1 -2
- package/dist/dev-middleware/range-parser.js +0 -1
- package/dist/dev-middleware/ready.d.ts +0 -1
- package/dist/dev-middleware/ready.js +0 -1
- package/dist/dev-middleware/setup-hooks.d.ts +0 -1
- package/dist/dev-middleware/setup-hooks.js +0 -1
- package/dist/dev-middleware/setup-output-filesystem.d.ts +0 -1
- package/dist/dev-middleware/setup-output-filesystem.js +0 -1
- package/dist/dev-middleware/types.d.ts +0 -1
- package/dist/dev-middleware/types.js +0 -1
- package/dist/error-overlay/entry-basic.d.ts +0 -1
- package/dist/error-overlay/entry-basic.js +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.js +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.js +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.js +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.js +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -1
- package/dist/error-overlay/react-overlay/index.d.ts +0 -1
- package/dist/error-overlay/react-overlay/index.js +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +4 -5
- package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.js +1 -2
- package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/get-lines-around.js +0 -1
- package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +1 -2
- package/dist/error-overlay/react-overlay/utils/get-source-map.js +7 -5
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -7
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +6 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.js +8 -5
- package/dist/error-overlay/react-overlay/utils/parser.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/parser.js +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.js +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.js +7 -3
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +1 -2
- package/dist/error-overlay/remotion-overlay/Button.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/Button.js +1 -2
- package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +2 -3
- package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/DismissButton.js +1 -2
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +4 -5
- package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js +4 -5
- package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.js +1 -2
- package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -2
- package/dist/error-overlay/remotion-overlay/Overlay.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/Overlay.js +1 -2
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -2
- package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +2 -3
- package/dist/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/Symbolicating.js +1 -2
- package/dist/error-overlay/remotion-overlay/carets.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/carets.js +2 -3
- package/dist/error-overlay/remotion-overlay/format-location.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.js +0 -1
- package/dist/error-overlay/remotion-overlay/index.d.ts +0 -1
- package/dist/error-overlay/remotion-overlay/index.js +2 -7
- package/dist/get-latest-remotion-version.d.ts +0 -1
- package/dist/get-latest-remotion-version.js +0 -1
- package/dist/get-package-manager.d.ts +0 -1
- package/dist/get-package-manager.js +1 -2
- package/dist/get-port.d.ts +0 -1
- package/dist/get-port.js +26 -25
- package/dist/hot-middleware/client.d.ts +0 -1
- package/dist/hot-middleware/client.js +0 -1
- package/dist/hot-middleware/index.d.ts +0 -1
- package/dist/hot-middleware/index.js +1 -2
- package/dist/hot-middleware/process-update.d.ts +0 -1
- package/dist/hot-middleware/process-update.js +2 -3
- package/dist/hot-middleware/strip-ansi.d.ts +0 -1
- package/dist/hot-middleware/strip-ansi.js +0 -1
- package/dist/hot-middleware/types.d.ts +0 -1
- package/dist/hot-middleware/types.js +0 -1
- package/dist/is-path-inside.d.ts +1 -0
- package/dist/is-path-inside.js +27 -0
- package/dist/p-limit.d.ts +1 -0
- package/dist/p-limit.js +57 -0
- package/dist/project-info.d.ts +0 -1
- package/dist/project-info.js +0 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.js +121 -0
- package/dist/serve-static.d.ts +9 -0
- package/dist/serve-static.js +81 -0
- package/dist/start-server-pure.d.ts +8 -0
- package/dist/start-server-pure.js +68 -0
- package/dist/start-server.d.ts +6 -7
- package/dist/start-server.js +22 -12
- package/dist/static-preview.d.ts +0 -1
- package/dist/static-preview.js +0 -1
- package/dist/test/expect-to-throw.d.ts +0 -1
- package/dist/test/expect-to-throw.js +0 -1
- package/dist/test/latest-remotion-version.test.d.ts +0 -1
- package/dist/test/latest-remotion-version.test.js +0 -1
- package/dist/test/parse-error-stack.test.d.ts +0 -1
- package/dist/test/parse-error-stack.test.js +0 -1
- package/dist/test/parse-module-not-found.test.d.ts +0 -1
- package/dist/test/parse-module-not-found.test.js +0 -1
- package/dist/test/secure-source-read.test.d.ts +0 -1
- package/dist/test/secure-source-read.test.js +0 -1
- package/dist/ts-alias-plugin.d.ts +4 -0
- package/dist/ts-alias-plugin.js +21 -0
- package/dist/update-available.d.ts +0 -1
- package/dist/update-available.js +0 -1
- package/package.json +3 -3
- package/dist/bundle-mode.d.ts.map +0 -1
- package/dist/bundle-mode.js.map +0 -1
- package/dist/bundler.d.ts.map +0 -1
- package/dist/bundler.js.map +0 -1
- package/dist/copy-dir.d.ts.map +0 -1
- package/dist/copy-dir.js.map +0 -1
- package/dist/dev-middleware/compatible-api.d.ts.map +0 -1
- package/dist/dev-middleware/compatible-api.js.map +0 -1
- package/dist/dev-middleware/get-filename-from-url.d.ts.map +0 -1
- package/dist/dev-middleware/get-filename-from-url.js.map +0 -1
- package/dist/dev-middleware/get-paths.d.ts.map +0 -1
- package/dist/dev-middleware/get-paths.js.map +0 -1
- package/dist/dev-middleware/index.d.ts.map +0 -1
- package/dist/dev-middleware/index.js.map +0 -1
- package/dist/dev-middleware/is-color-supported.d.ts.map +0 -1
- package/dist/dev-middleware/is-color-supported.js.map +0 -1
- package/dist/dev-middleware/middleware.d.ts.map +0 -1
- package/dist/dev-middleware/middleware.js.map +0 -1
- package/dist/dev-middleware/range-parser.d.ts.map +0 -1
- package/dist/dev-middleware/range-parser.js.map +0 -1
- package/dist/dev-middleware/ready.d.ts.map +0 -1
- package/dist/dev-middleware/ready.js.map +0 -1
- package/dist/dev-middleware/setup-hooks.d.ts.map +0 -1
- package/dist/dev-middleware/setup-hooks.js.map +0 -1
- package/dist/dev-middleware/setup-output-filesystem.d.ts.map +0 -1
- package/dist/dev-middleware/setup-output-filesystem.js.map +0 -1
- package/dist/dev-middleware/types.d.ts.map +0 -1
- package/dist/dev-middleware/types.js.map +0 -1
- package/dist/error-overlay/entry-basic.d.ts.map +0 -1
- package/dist/error-overlay/entry-basic.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/format-warning.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/resolve-file-source.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +0 -1
- package/dist/error-overlay/react-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/index.js.map +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-file-source.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/parser.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/utils/unmapper.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Button.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Button.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/DismissButton.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorLoader.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorLoader.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/ErrorTitle.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Overlay.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/Symbolicating.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/Symbolicating.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/carets.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/carets.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/format-location.js.map +0 -1
- package/dist/error-overlay/remotion-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/remotion-overlay/index.js.map +0 -1
- package/dist/esbuild-loader/index.d.ts.map +0 -1
- package/dist/esbuild-loader/index.js.map +0 -1
- package/dist/esbuild-loader/interfaces.d.ts.map +0 -1
- package/dist/esbuild-loader/interfaces.js.map +0 -1
- package/dist/fast-refresh/helpers.d.ts.map +0 -1
- package/dist/fast-refresh/helpers.js.map +0 -1
- package/dist/fast-refresh/index.d.ts.map +0 -1
- package/dist/fast-refresh/index.js.map +0 -1
- package/dist/fast-refresh/loader.d.ts.map +0 -1
- package/dist/fast-refresh/loader.js.map +0 -1
- package/dist/fast-refresh/runtime.d.ts.map +0 -1
- package/dist/fast-refresh/runtime.js.map +0 -1
- package/dist/get-latest-remotion-version.d.ts.map +0 -1
- package/dist/get-latest-remotion-version.js.map +0 -1
- package/dist/get-package-manager.d.ts.map +0 -1
- package/dist/get-package-manager.js.map +0 -1
- package/dist/get-port.d.ts.map +0 -1
- package/dist/get-port.js.map +0 -1
- package/dist/homepage/homepage.d.ts.map +0 -1
- package/dist/homepage/homepage.js.map +0 -1
- package/dist/hot-middleware/client.d.ts.map +0 -1
- package/dist/hot-middleware/client.js.map +0 -1
- package/dist/hot-middleware/index.d.ts.map +0 -1
- package/dist/hot-middleware/index.js.map +0 -1
- package/dist/hot-middleware/process-update.d.ts.map +0 -1
- package/dist/hot-middleware/process-update.js.map +0 -1
- package/dist/hot-middleware/strip-ansi.d.ts.map +0 -1
- package/dist/hot-middleware/strip-ansi.js.map +0 -1
- package/dist/hot-middleware/types.d.ts.map +0 -1
- package/dist/hot-middleware/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/project-info.d.ts.map +0 -1
- package/dist/project-info.js.map +0 -1
- package/dist/renderEntry.d.ts.map +0 -1
- package/dist/renderEntry.js.map +0 -1
- package/dist/setup-environment.d.ts.map +0 -1
- package/dist/setup-environment.js.map +0 -1
- package/dist/start-server.d.ts.map +0 -1
- package/dist/start-server.js.map +0 -1
- package/dist/static-preview.d.ts.map +0 -1
- package/dist/static-preview.js.map +0 -1
- package/dist/test/expect-to-throw.d.ts.map +0 -1
- package/dist/test/expect-to-throw.js.map +0 -1
- package/dist/test/latest-remotion-version.test.d.ts.map +0 -1
- package/dist/test/latest-remotion-version.test.js.map +0 -1
- package/dist/test/parse-error-stack.test.d.ts.map +0 -1
- package/dist/test/parse-error-stack.test.js.map +0 -1
- package/dist/test/parse-module-not-found.test.d.ts.map +0 -1
- package/dist/test/parse-module-not-found.test.js.map +0 -1
- package/dist/test/secure-source-read.test.d.ts.map +0 -1
- package/dist/test/secure-source-read.test.js.map +0 -1
- package/dist/update-available.d.ts.map +0 -1
- package/dist/update-available.js.map +0 -1
- package/dist/webpack-cache.d.ts.map +0 -1
- package/dist/webpack-cache.js.map +0 -1
- package/dist/webpack-config.d.ts.map +0 -1
- package/dist/webpack-config.js.map +0 -1
|
@@ -18,7 +18,6 @@ const DismissButton = () => {
|
|
|
18
18
|
const dismiss = (0, react_1.useCallback)(() => {
|
|
19
19
|
window.location.href = '/';
|
|
20
20
|
}, []);
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", style: style, onClick: dismiss, children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", style: style, onClick: dismiss, children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }) }));
|
|
22
22
|
};
|
|
23
23
|
exports.DismissButton = DismissButton;
|
|
24
|
-
//# sourceMappingURL=DismissButton.js.map
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ErrorDisplay = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const map_error_to_react_stack_1 = require("../react-overlay/effects/map-error-to-react-stack");
|
|
6
7
|
const AskOnDiscord_1 = require("./AskOnDiscord");
|
|
8
|
+
const ErrorTitle_1 = require("./ErrorTitle");
|
|
7
9
|
const OpenInEditor_1 = require("./OpenInEditor");
|
|
8
10
|
const SearchGitHubIssues_1 = require("./SearchGitHubIssues");
|
|
9
11
|
const StackFrame_1 = require("./StackFrame");
|
|
10
|
-
const map_error_to_react_stack_1 = require("../react-overlay/effects/map-error-to-react-stack");
|
|
11
|
-
const ErrorTitle_1 = require("./ErrorTitle");
|
|
12
12
|
const stack = {
|
|
13
13
|
marginTop: 17,
|
|
14
14
|
overflowX: 'scroll',
|
|
@@ -36,11 +36,10 @@ const ErrorDisplay = ({ display }) => {
|
|
|
36
36
|
.trim();
|
|
37
37
|
}, [display.error]);
|
|
38
38
|
const lineNumberWidth = String(highestLineNumber).length;
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message }
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message }), display.stackFrames.length > 0 && window.remotion_editorName ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OpenInEditor_1.OpenInEditor, { stack: display.stackFrames[0] }), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(SearchGitHubIssues_1.SearchGithubIssues, { message: display.error.message }), (0, jsx_runtime_1.jsx)("div", { style: spacer }), (0, jsx_runtime_1.jsx)(AskOnDiscord_1.AskOnDiscord, {}), (0, jsx_runtime_1.jsx)("div", { style: stack, children: display.stackFrames.map((s, i) => {
|
|
40
40
|
return ((0, jsx_runtime_1.jsx)(StackFrame_1.StackElement
|
|
41
41
|
// eslint-disable-next-line react/no-array-index-key
|
|
42
42
|
, { isFirst: i === 0, s: s, lineNumberWidth: lineNumberWidth, defaultFunctionName: '(anonymous function)' }, i));
|
|
43
|
-
}) }
|
|
43
|
+
}) })] }));
|
|
44
44
|
};
|
|
45
45
|
exports.ErrorDisplay = ErrorDisplay;
|
|
46
|
-
//# sourceMappingURL=ErrorDisplay.js.map
|
|
@@ -48,15 +48,14 @@ const ErrorLoader = ({ error }) => {
|
|
|
48
48
|
});
|
|
49
49
|
}, [error]);
|
|
50
50
|
if (state.type === 'loading') {
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: true, name: error.name, message: error.message }
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: true, name: error.name, message: error.message }) }));
|
|
52
52
|
}
|
|
53
53
|
if (state.type === 'error') {
|
|
54
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Error while getting stack trace:" }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: state.err.stack }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Report this in the Remotion repo." })] }));
|
|
55
55
|
}
|
|
56
56
|
if (state.type === 'no-record') {
|
|
57
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Check the Terminal and browser console for error messages." })] }));
|
|
58
58
|
}
|
|
59
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: state.record }
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: state.record }) }));
|
|
60
60
|
};
|
|
61
61
|
exports.ErrorLoader = ErrorLoader;
|
|
62
|
-
//# sourceMappingURL=ErrorLoader.js.map
|
|
@@ -36,7 +36,6 @@ const spacer = {
|
|
|
36
36
|
width: 5,
|
|
37
37
|
};
|
|
38
38
|
const ErrorTitle = ({ name, message, symbolicating }) => {
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)("div", { children: message })] })] }), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {})] }));
|
|
40
40
|
};
|
|
41
41
|
exports.ErrorTitle = ErrorTitle;
|
|
42
|
-
//# sourceMappingURL=ErrorTitle.js.map
|
|
@@ -85,7 +85,6 @@ const OpenInEditor = ({ stack }) => {
|
|
|
85
85
|
throw new Error('invalid state');
|
|
86
86
|
}
|
|
87
87
|
}, [state.type]);
|
|
88
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: label }
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: label }));
|
|
89
89
|
};
|
|
90
90
|
exports.OpenInEditor = OpenInEditor;
|
|
91
|
-
//# sourceMappingURL=OpenInEditor.js.map
|
|
@@ -44,7 +44,6 @@ const Overlay = () => {
|
|
|
44
44
|
color: 'white',
|
|
45
45
|
}, children: errors.errors.map((err) => {
|
|
46
46
|
return (0, jsx_runtime_1.jsx)(ErrorLoader_1.ErrorLoader, { error: err }, err.stack);
|
|
47
|
-
}) }
|
|
47
|
+
}) }));
|
|
48
48
|
};
|
|
49
49
|
exports.Overlay = Overlay;
|
|
50
|
-
//# sourceMappingURL=Overlay.js.map
|
|
@@ -8,7 +8,6 @@ const SearchGithubIssues = ({ message }) => {
|
|
|
8
8
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
9
9
|
window.open(`https://github.com/remotion-dev/remotion/issues?q=${encodeURIComponent(message)}`, '_blank');
|
|
10
10
|
}, [message]);
|
|
11
|
-
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Search GitHub Issues" }
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Search GitHub Issues" });
|
|
12
12
|
};
|
|
13
13
|
exports.SearchGithubIssues = SearchGithubIssues;
|
|
14
|
-
//# sourceMappingURL=SearchGitHubIssues.js.map
|
|
@@ -41,9 +41,8 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
|
41
41
|
const toggleCodeFrame = (0, react_1.useCallback)(() => {
|
|
42
42
|
setShowCodeFrame((f) => !f);
|
|
43
43
|
}, []);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, {}) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
45
45
|
s.originalScriptCode.length > 0 &&
|
|
46
|
-
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode }
|
|
46
|
+
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode })) : null })] }));
|
|
47
47
|
};
|
|
48
48
|
exports.StackElement = StackElement;
|
|
49
|
-
//# sourceMappingURL=StackFrame.js.map
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Symbolicating = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Symbolicating = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: "white", ...props, children: [(0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: "white", ...props, children: [(0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(45 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.125s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(90 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.25s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(135 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.375s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(180 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.5s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(225 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.675s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(270 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.75s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(315 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.875s" }) })] }));
|
|
7
7
|
};
|
|
8
8
|
exports.Symbolicating = Symbolicating;
|
|
9
|
-
//# sourceMappingURL=Symbolicating.js.map
|
|
@@ -3,11 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CaretDown = exports.CaretRight = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const CaretRight = () => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.CaretRight = CaretRight;
|
|
9
9
|
const CaretDown = () => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
11
11
|
};
|
|
12
12
|
exports.CaretDown = CaretDown;
|
|
13
|
-
//# sourceMappingURL=carets.js.map
|
|
@@ -5,19 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.mountRemotionOverlay = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
// In React 18, you should use createRoot() from "react-dom/client".
|
|
9
|
-
// In React 18, you should use render from "react-dom".
|
|
10
|
-
// We support both, but Webpack chooses both of them and normalizes them to "react-dom/client",
|
|
11
|
-
// hence why we import the right thing all the time but need to differentiate here
|
|
12
8
|
const client_1 = __importDefault(require("react-dom/client"));
|
|
13
9
|
const Overlay_1 = require("./Overlay");
|
|
14
10
|
const mountRemotionOverlay = () => {
|
|
15
11
|
if (client_1.default.createRoot) {
|
|
16
|
-
client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}
|
|
12
|
+
client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}));
|
|
17
13
|
}
|
|
18
14
|
else {
|
|
19
|
-
client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}
|
|
15
|
+
client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}), document.getElementById('remotion-error-overlay'));
|
|
20
16
|
}
|
|
21
17
|
};
|
|
22
18
|
exports.mountRemotionOverlay = mountRemotionOverlay;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPackageManager = exports.lockFilePaths = void 0;
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
9
|
exports.lockFilePaths = [
|
|
10
10
|
{ path: 'package-lock.json', manager: 'npm' },
|
|
11
11
|
{
|
|
@@ -36,4 +36,3 @@ const getPackageManager = () => {
|
|
|
36
36
|
return existingPkgManagers[0].manager;
|
|
37
37
|
};
|
|
38
38
|
exports.getPackageManager = getPackageManager;
|
|
39
|
-
//# sourceMappingURL=get-package-manager.js.map
|
package/dist/get-port.d.ts
CHANGED
package/dist/get-port.js
CHANGED
|
@@ -5,16 +5,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getDesiredPort = void 0;
|
|
7
7
|
const net_1 = __importDefault(require("net"));
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
8
|
+
const p_limit_1 = require("./p-limit");
|
|
9
|
+
const getAvailablePort = (portToTry) => new Promise((resolve) => {
|
|
10
|
+
let status = 'unavailable';
|
|
11
|
+
const host = '127.0.0.1';
|
|
12
|
+
const socket = new net_1.default.Socket();
|
|
13
|
+
socket.on('connect', () => {
|
|
14
|
+
status = 'unavailable';
|
|
15
|
+
socket.destroy();
|
|
17
16
|
});
|
|
17
|
+
socket.setTimeout(1000);
|
|
18
|
+
socket.on('timeout', () => {
|
|
19
|
+
status = 'unavailable';
|
|
20
|
+
socket.destroy();
|
|
21
|
+
resolve(status);
|
|
22
|
+
});
|
|
23
|
+
socket.on('error', () => {
|
|
24
|
+
status = 'available';
|
|
25
|
+
});
|
|
26
|
+
socket.on('close', () => resolve(status));
|
|
27
|
+
socket.connect(portToTry, host);
|
|
18
28
|
});
|
|
19
29
|
const portCheckSequence = function* (ports) {
|
|
20
30
|
if (ports) {
|
|
@@ -22,30 +32,18 @@ const portCheckSequence = function* (ports) {
|
|
|
22
32
|
}
|
|
23
33
|
yield 0; // Fall back to 0 if anything else failed
|
|
24
34
|
};
|
|
25
|
-
const isPortAvailable = async (port) => {
|
|
26
|
-
try {
|
|
27
|
-
await getAvailablePort(port);
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
if (!['EADDRINUSE', 'EACCES'].includes(error.code)) {
|
|
32
|
-
throw error;
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
35
|
const getPort = async (from, to) => {
|
|
38
36
|
const ports = makeRange(from, to);
|
|
39
37
|
for (const port of portCheckSequence(ports)) {
|
|
40
|
-
if (await
|
|
38
|
+
if ((await getAvailablePort(port)) === 'available') {
|
|
41
39
|
return port;
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
throw new Error('No available ports found');
|
|
45
43
|
};
|
|
46
|
-
const
|
|
44
|
+
const getDesiredPortUnlimited = async (desiredPort, from, to) => {
|
|
47
45
|
if (typeof desiredPort !== 'undefined' &&
|
|
48
|
-
(await
|
|
46
|
+
(await getAvailablePort(desiredPort)) === 'available') {
|
|
49
47
|
return desiredPort;
|
|
50
48
|
}
|
|
51
49
|
const actualPort = await getPort(from, to);
|
|
@@ -55,6 +53,10 @@ const getDesiredPort = async (desiredPort, from, to) => {
|
|
|
55
53
|
}
|
|
56
54
|
return actualPort;
|
|
57
55
|
};
|
|
56
|
+
const limit = (0, p_limit_1.pLimit)(1);
|
|
57
|
+
const getDesiredPort = (desiredPort, from, to) => {
|
|
58
|
+
return limit(getDesiredPortUnlimited, desiredPort, from, to);
|
|
59
|
+
};
|
|
58
60
|
exports.getDesiredPort = getDesiredPort;
|
|
59
61
|
const makeRange = (from, to) => {
|
|
60
62
|
if (!Number.isInteger(from) || !Number.isInteger(to)) {
|
|
@@ -76,4 +78,3 @@ const makeRange = (from, to) => {
|
|
|
76
78
|
};
|
|
77
79
|
return generator(from, to);
|
|
78
80
|
};
|
|
79
|
-
//# sourceMappingURL=get-port.js.map
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.webpackHotMiddleware = void 0;
|
|
9
|
-
const types_1 = require("./types");
|
|
10
9
|
const url_1 = require("url");
|
|
10
|
+
const types_1 = require("./types");
|
|
11
11
|
const pathMatch = function (url, path) {
|
|
12
12
|
try {
|
|
13
13
|
return (0, url_1.parse)(url).pathname === path;
|
|
@@ -178,4 +178,3 @@ function buildModuleMap(modules) {
|
|
|
178
178
|
});
|
|
179
179
|
return map;
|
|
180
180
|
}
|
|
181
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -50,7 +50,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
50
50
|
async function check() {
|
|
51
51
|
var _a;
|
|
52
52
|
const cb = function (err, updatedModules) {
|
|
53
|
-
var _a
|
|
53
|
+
var _a;
|
|
54
54
|
if (err)
|
|
55
55
|
return handleError(err);
|
|
56
56
|
if (!updatedModules) {
|
|
@@ -69,7 +69,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
69
69
|
logUpdates(updatedModules, renewedModules);
|
|
70
70
|
};
|
|
71
71
|
const applyResult = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions, applyCallback);
|
|
72
|
-
if (
|
|
72
|
+
if (applyResult === null || applyResult === void 0 ? void 0 : applyResult.then) {
|
|
73
73
|
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
|
|
74
74
|
applyResult
|
|
75
75
|
.then((outdatedModules) => {
|
|
@@ -145,4 +145,3 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
exports.processUpdate = processUpdate;
|
|
148
|
-
//# sourceMappingURL=process-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isPathInside: (thePath: string, potentialParent: string) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isPathInside = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const isPathInside = function (thePath, potentialParent) {
|
|
9
|
+
// For inside-directory checking, we want to allow trailing slashes, so normalize.
|
|
10
|
+
thePath = stripTrailingSep(thePath);
|
|
11
|
+
potentialParent = stripTrailingSep(potentialParent);
|
|
12
|
+
// Node treats only Windows as case-insensitive in its path module; we follow those conventions.
|
|
13
|
+
if (process.platform === 'win32') {
|
|
14
|
+
thePath = thePath.toLowerCase();
|
|
15
|
+
potentialParent = potentialParent.toLowerCase();
|
|
16
|
+
}
|
|
17
|
+
return (thePath.lastIndexOf(potentialParent, 0) === 0 &&
|
|
18
|
+
(thePath[potentialParent.length] === path_1.default.sep ||
|
|
19
|
+
thePath[potentialParent.length] === undefined));
|
|
20
|
+
};
|
|
21
|
+
exports.isPathInside = isPathInside;
|
|
22
|
+
function stripTrailingSep(thePath) {
|
|
23
|
+
if (thePath[thePath.length - 1] === path_1.default.sep) {
|
|
24
|
+
return thePath.slice(0, -1);
|
|
25
|
+
}
|
|
26
|
+
return thePath;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType_1>(fn: (..._arguments: Arguments) => ReturnType_1 | PromiseLike<ReturnType_1>, ...args: Arguments) => Promise<ReturnType_1>;
|
package/dist/p-limit.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pLimit = void 0;
|
|
4
|
+
const pLimit = (concurrency) => {
|
|
5
|
+
const queue = [];
|
|
6
|
+
let activeCount = 0;
|
|
7
|
+
const next = () => {
|
|
8
|
+
var _a;
|
|
9
|
+
activeCount--;
|
|
10
|
+
if (queue.length > 0) {
|
|
11
|
+
(_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const run = async (fn, resolve, ...args) => {
|
|
15
|
+
activeCount++;
|
|
16
|
+
// eslint-disable-next-line require-await
|
|
17
|
+
const result = (async () => fn(...args))();
|
|
18
|
+
resolve(result);
|
|
19
|
+
try {
|
|
20
|
+
await result;
|
|
21
|
+
}
|
|
22
|
+
catch (_a) { }
|
|
23
|
+
next();
|
|
24
|
+
};
|
|
25
|
+
const enqueue = (fn, resolve, ...args) => {
|
|
26
|
+
queue.push(() => run(fn, resolve, ...args));
|
|
27
|
+
(async () => {
|
|
28
|
+
var _a;
|
|
29
|
+
// This function needs to wait until the next microtask before comparing
|
|
30
|
+
// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously
|
|
31
|
+
// when the run function is dequeued and called. The comparison in the if-statement
|
|
32
|
+
// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.
|
|
33
|
+
await Promise.resolve();
|
|
34
|
+
if (activeCount < concurrency && queue.length > 0) {
|
|
35
|
+
(_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
|
|
36
|
+
}
|
|
37
|
+
})();
|
|
38
|
+
};
|
|
39
|
+
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
40
|
+
enqueue(fn, resolve, ...args);
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperties(generator, {
|
|
43
|
+
activeCount: {
|
|
44
|
+
get: () => activeCount,
|
|
45
|
+
},
|
|
46
|
+
pendingCount: {
|
|
47
|
+
get: () => queue.length,
|
|
48
|
+
},
|
|
49
|
+
clearQueue: {
|
|
50
|
+
value: () => {
|
|
51
|
+
queue.length = 0;
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
return generator;
|
|
56
|
+
};
|
|
57
|
+
exports.pLimit = pLimit;
|
package/dist/project-info.d.ts
CHANGED
package/dist/project-info.js
CHANGED
package/dist/routes.d.ts
ADDED