@remotion/renderer 4.0.357 → 4.0.360
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/render-frames.js +1 -1
- package/dist/test/actual-concurrency.test.d.ts +1 -0
- package/dist/test/artifacts.test.d.ts +1 -0
- package/dist/test/asset-calculation.test.d.ts +1 -0
- package/dist/test/asset-compression.test.d.ts +1 -0
- package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
- package/dist/test/browser-log-message.test.d.ts +1 -0
- package/dist/test/calculate-atempo.test.d.ts +1 -0
- package/dist/test/compositor-rust.test.d.ts +1 -0
- package/dist/test/crf.test.d.ts +1 -0
- package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
- package/dist/test/dont-skip-assets.test.d.ts +1 -0
- package/dist/test/download-file.test.d.ts +1 -0
- package/dist/test/even-dimensions.test.d.ts +1 -0
- package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
- package/dist/test/extract-audio.test.d.ts +1 -0
- package/dist/test/extract-frame-rust.test.d.ts +1 -0
- package/dist/test/ffmpeg-filters.test.d.ts +1 -0
- package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
- package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
- package/dist/test/file-extension.test.d.ts +1 -0
- package/dist/test/find-closest-package-json.test.d.ts +1 -0
- package/dist/test/flatten-volume-array.test.d.ts +1 -0
- package/dist/test/format-logs.test.d.ts +1 -0
- package/dist/test/frame-padded-index.test.d.ts +1 -0
- package/dist/test/frame.test.d.ts +1 -0
- package/dist/test/get-assets-for-markup.d.ts +8 -0
- package/dist/test/get-audio-channels.test.d.ts +1 -0
- package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
- package/dist/test/get-silent-parts.test.d.ts +1 -0
- package/dist/test/guess-extension-for-media.test.d.ts +1 -0
- package/dist/test/handle-weird-file-names.test.d.ts +1 -0
- package/dist/test/log-level.test.d.ts +1 -0
- package/dist/test/mime-types.test.d.ts +1 -0
- package/dist/test/offthread-extract-url.test.d.ts +1 -0
- package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
- package/dist/test/partitions.test.d.ts +1 -0
- package/dist/test/pixel-format.test.d.ts +1 -0
- package/dist/test/port-config.test.d.ts +1 -0
- package/dist/test/port-selection.test.d.ts +1 -0
- package/dist/test/prores-profile.test.d.ts +1 -0
- package/dist/test/render-still.test.d.ts +1 -0
- package/dist/test/rust-errors.test.d.ts +1 -0
- package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
- package/dist/test/rust-memory-usage.test.d.ts +1 -0
- package/dist/test/sanitize-file-path.test.d.ts +1 -0
- package/dist/test/serve-url.test.d.ts +1 -0
- package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
- package/dist/test/validate-concurrency.test.d.ts +1 -0
- package/dist/test/validate-config-stitcher.test.d.ts +1 -0
- package/dist/test/validate-config.test.d.ts +1 -0
- package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
- package/dist/test/validate-image-format.test.d.ts +1 -0
- package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
- package/ensure-browser.mjs +18 -18
- package/package/dist/assets/apply-tone-frequency.d.ts +11 -0
- package/package/dist/assets/apply-tone-frequency.js +34 -0
- package/package/dist/assets/calculate-asset-positions.d.ts +3 -0
- package/package/dist/assets/calculate-asset-positions.js +72 -0
- package/package/dist/assets/calculate-atempo.d.ts +1 -0
- package/package/dist/assets/calculate-atempo.js +16 -0
- package/package/dist/assets/convert-assets-to-file-urls.d.ts +13 -0
- package/package/dist/assets/convert-assets-to-file-urls.js +36 -0
- package/package/dist/assets/download-and-map-assets-to-file.d.ts +37 -0
- package/package/dist/assets/download-and-map-assets-to-file.js +312 -0
- package/package/dist/assets/download-file.d.ts +18 -0
- package/package/dist/assets/download-file.js +135 -0
- package/package/dist/assets/download-map.d.ts +55 -0
- package/package/dist/assets/download-map.js +63 -0
- package/package/dist/assets/ffmpeg-volume-expression.d.ts +12 -0
- package/package/dist/assets/ffmpeg-volume-expression.js +96 -0
- package/package/dist/assets/flatten-volume-array.d.ts +3 -0
- package/package/dist/assets/flatten-volume-array.js +26 -0
- package/package/dist/assets/get-audio-channels.d.ts +20 -0
- package/package/dist/assets/get-audio-channels.js +78 -0
- package/package/dist/assets/inline-audio-mixing.d.ts +22 -0
- package/package/dist/assets/inline-audio-mixing.js +189 -0
- package/package/dist/assets/read-file.d.ts +7 -0
- package/package/dist/assets/read-file.js +97 -0
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +1 -0
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.js +17 -0
- package/package/dist/assets/sanitize-filename.d.ts +1 -0
- package/package/dist/assets/sanitize-filename.js +58 -0
- package/package/dist/assets/sanitize-filepath.d.ts +1 -0
- package/package/dist/assets/sanitize-filepath.js +16 -0
- package/package/dist/assets/truncate-utf8-bytes.d.ts +1 -0
- package/package/dist/assets/truncate-utf8-bytes.js +36 -0
- package/package/dist/assets/types.d.ts +18 -0
- package/package/dist/assets/types.js +21 -0
- package/package/dist/browser/Browser.d.ts +97 -0
- package/package/dist/browser/Browser.js +246 -0
- package/package/dist/browser/BrowserFetcher.d.ts +33 -0
- package/package/dist/browser/BrowserFetcher.js +215 -0
- package/package/dist/browser/BrowserPage.d.ts +104 -0
- package/package/dist/browser/BrowserPage.js +436 -0
- package/package/dist/browser/BrowserRunner.d.ts +33 -0
- package/package/dist/browser/BrowserRunner.js +303 -0
- package/package/dist/browser/Connection.d.ts +49 -0
- package/package/dist/browser/Connection.js +258 -0
- package/package/dist/browser/ConsoleMessage.d.ts +42 -0
- package/package/dist/browser/ConsoleMessage.js +47 -0
- package/package/dist/browser/DOMWorld.d.ts +56 -0
- package/package/dist/browser/DOMWorld.js +272 -0
- package/package/dist/browser/Errors.d.ts +25 -0
- package/package/dist/browser/Errors.js +35 -0
- package/package/dist/browser/EvalTypes.d.ts +27 -0
- package/package/dist/browser/EvalTypes.js +17 -0
- package/package/dist/browser/EventEmitter.d.ts +23 -0
- package/package/dist/browser/EventEmitter.js +53 -0
- package/package/dist/browser/ExecutionContext.d.ts +34 -0
- package/package/dist/browser/ExecutionContext.js +174 -0
- package/package/dist/browser/FrameManager.d.ts +89 -0
- package/package/dist/browser/FrameManager.js +487 -0
- package/package/dist/browser/HTTPRequest.d.ts +29 -0
- package/package/dist/browser/HTTPRequest.js +39 -0
- package/package/dist/browser/HTTPResponse.d.ts +21 -0
- package/package/dist/browser/HTTPResponse.js +41 -0
- package/package/dist/browser/JSHandle.d.ts +35 -0
- package/package/dist/browser/JSHandle.js +90 -0
- package/package/dist/browser/LaunchOptions.d.ts +26 -0
- package/package/dist/browser/LaunchOptions.js +17 -0
- package/package/dist/browser/Launcher.d.ts +18 -0
- package/package/dist/browser/Launcher.js +41 -0
- package/package/dist/browser/LifecycleWatcher.d.ts +29 -0
- package/package/dist/browser/LifecycleWatcher.js +180 -0
- package/package/dist/browser/NetworkEventManager.d.ts +34 -0
- package/package/dist/browser/NetworkEventManager.js +85 -0
- package/package/dist/browser/NetworkManager.d.ts +37 -0
- package/package/dist/browser/NetworkManager.js +246 -0
- package/package/dist/browser/NodeWebSocketTransport.d.ts +19 -0
- package/package/dist/browser/NodeWebSocketTransport.js +81 -0
- package/package/dist/browser/PuppeteerViewport.d.ts +5 -0
- package/package/dist/browser/PuppeteerViewport.js +2 -0
- package/package/dist/browser/ScreenshotOptions.d.ts +0 -0
- package/package/dist/browser/ScreenshotOptions.js +1 -0
- package/package/dist/browser/Target.d.ts +72 -0
- package/package/dist/browser/Target.js +161 -0
- package/package/dist/browser/TaskQueue.d.ts +20 -0
- package/package/dist/browser/TaskQueue.js +47 -0
- package/package/dist/browser/TimeoutSettings.d.ts +24 -0
- package/package/dist/browser/TimeoutSettings.js +62 -0
- package/package/dist/browser/assert.d.ts +1 -0
- package/package/dist/browser/assert.js +9 -0
- package/package/dist/browser/browser-download-progress-bar.d.ts +7 -0
- package/package/dist/browser/browser-download-progress-bar.js +31 -0
- package/package/dist/browser/devtools-commands.d.ts +274 -0
- package/package/dist/browser/devtools-commands.js +2 -0
- package/package/dist/browser/devtools-types.d.ts +1263 -0
- package/package/dist/browser/devtools-types.js +2 -0
- package/package/dist/browser/flaky-errors.d.ts +2 -0
- package/package/dist/browser/flaky-errors.js +20 -0
- package/package/dist/browser/get-download-destination.d.ts +1 -0
- package/package/dist/browser/get-download-destination.js +38 -0
- package/package/dist/browser/handle-failed-resource.d.ts +10 -0
- package/package/dist/browser/handle-failed-resource.js +21 -0
- package/package/dist/browser/mitt/index.d.ts +22 -0
- package/package/dist/browser/mitt/index.js +49 -0
- package/package/dist/browser/should-log-message.d.ts +24 -0
- package/package/dist/browser/should-log-message.js +104 -0
- package/package/dist/browser/source-map-getter.d.ts +2 -0
- package/package/dist/browser/source-map-getter.js +2 -0
- package/package/dist/browser/util.d.ts +37 -0
- package/package/dist/browser/util.js +169 -0
- package/package/dist/browser-executable.d.ts +1 -0
- package/package/dist/browser-executable.js +2 -0
- package/package/dist/browser-log.d.ts +6 -0
- package/package/dist/browser-log.js +2 -0
- package/package/dist/browser.d.ts +2 -0
- package/package/dist/browser.js +4 -0
- package/package/dist/call-ffmpeg.d.ts +22 -0
- package/package/dist/call-ffmpeg.js +53 -0
- package/package/dist/can-concat-seamlessly.d.ts +4 -0
- package/package/dist/can-concat-seamlessly.js +17 -0
- package/package/dist/can-use-parallel-encoding.d.ts +3 -0
- package/package/dist/can-use-parallel-encoding.js +19 -0
- package/package/dist/chalk/index.d.ts +55 -0
- package/package/dist/chalk/index.js +130 -0
- package/package/dist/chalk/is-color-supported.d.ts +1 -0
- package/package/dist/chalk/is-color-supported.js +55 -0
- package/package/dist/check-version-requirements.d.ts +3 -0
- package/package/dist/check-version-requirements.js +82 -0
- package/package/dist/chunk.d.ts +1 -0
- package/package/dist/chunk.js +11 -0
- package/package/dist/client.d.ts +3016 -0
- package/package/dist/client.js +57 -0
- package/package/dist/codec-supports-media.d.ts +9 -0
- package/package/dist/codec-supports-media.js +76 -0
- package/package/dist/codec.d.ts +4 -0
- package/package/dist/codec.js +17 -0
- package/package/dist/collect-assets.d.ts +7 -0
- package/package/dist/collect-assets.js +38 -0
- package/package/dist/combine-audio.d.ts +21 -0
- package/package/dist/combine-audio.js +183 -0
- package/package/dist/combine-chunks.d.ts +39 -0
- package/package/dist/combine-chunks.js +171 -0
- package/package/dist/combine-video-streams-seamlessly.d.ts +3 -0
- package/package/dist/combine-video-streams-seamlessly.js +8 -0
- package/package/dist/combine-video-streams.d.ts +17 -0
- package/package/dist/combine-video-streams.js +75 -0
- package/package/dist/compositor/compositor.d.ts +22 -0
- package/package/dist/compositor/compositor.js +182 -0
- package/package/dist/compositor/get-executable-path.d.ts +12 -0
- package/package/dist/compositor/get-executable-path.js +95 -0
- package/package/dist/compositor/get-explicit-env.d.ts +3 -0
- package/package/dist/compositor/get-explicit-env.js +13 -0
- package/package/dist/compositor/make-file-executable.d.ts +1 -0
- package/package/dist/compositor/make-file-executable.js +44 -0
- package/package/dist/compositor/make-nonce.d.ts +1 -0
- package/package/dist/compositor/make-nonce.js +8 -0
- package/package/dist/compositor/payloads.d.ts +73 -0
- package/package/dist/compositor/payloads.js +2 -0
- package/package/dist/compositor/serialize-command.d.ts +2 -0
- package/package/dist/compositor/serialize-command.js +14 -0
- package/package/dist/compress-assets.d.ts +7 -0
- package/package/dist/compress-assets.js +25 -0
- package/package/dist/compress-audio.d.ts +16 -0
- package/package/dist/compress-audio.js +44 -0
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.d.ts +1 -0
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.js +17 -0
- package/package/dist/convert-to-positive-frame-index.d.ts +4 -0
- package/package/dist/convert-to-positive-frame-index.js +8 -0
- package/package/dist/create-audio.d.ts +29 -0
- package/package/dist/create-audio.js +127 -0
- package/package/dist/create-ffmpeg-complex-filter.d.ts +10 -0
- package/package/dist/create-ffmpeg-complex-filter.js +24 -0
- package/package/dist/create-ffmpeg-merge-filter.d.ts +5 -0
- package/package/dist/create-ffmpeg-merge-filter.js +25 -0
- package/package/dist/create-silent-audio.d.ts +10 -0
- package/package/dist/create-silent-audio.js +28 -0
- package/package/dist/crf.d.ts +13 -0
- package/package/dist/crf.js +103 -0
- package/package/dist/cycle-browser-tabs.d.ts +10 -0
- package/package/dist/cycle-browser-tabs.js +50 -0
- package/package/dist/default-on-log.d.ts +2 -0
- package/package/dist/default-on-log.js +8 -0
- package/package/dist/delay-render-embedded-stack.d.ts +2 -0
- package/package/dist/delay-render-embedded-stack.js +17 -0
- package/package/dist/delete-directory.d.ts +1 -0
- package/package/dist/delete-directory.js +68 -0
- package/package/dist/ensure-browser.d.ts +24 -0
- package/package/dist/ensure-browser.js +58 -0
- package/package/dist/ensure-frames-in-order.d.ts +5 -0
- package/package/dist/ensure-frames-in-order.js +39 -0
- package/package/dist/ensure-output-directory.d.ts +1 -0
- package/package/dist/ensure-output-directory.js +17 -0
- package/package/dist/error-handling/handle-javascript-exception.d.ts +23 -0
- package/package/dist/error-handling/handle-javascript-exception.js +86 -0
- package/package/dist/error-handling/symbolicate-error.d.ts +3 -0
- package/package/dist/error-handling/symbolicate-error.js +26 -0
- package/package/dist/error-handling/symbolicateable-error.d.ts +18 -0
- package/package/dist/error-handling/symbolicateable-error.js +19 -0
- package/package/dist/error-handling.d.ts +1 -0
- package/package/dist/error-handling.js +5 -0
- package/package/dist/esm/client.mjs +3270 -0
- package/package/dist/esm/error-handling.mjs +363 -0
- package/package/dist/esm/index.mjs +23201 -0
- package/package/dist/esm/pure.mjs +526 -0
- package/package/dist/extract-audio.d.ts +7 -0
- package/package/dist/extract-audio.js +25 -0
- package/package/dist/ffmpeg-args.d.ts +21 -0
- package/package/dist/ffmpeg-args.js +96 -0
- package/package/dist/ffmpeg-filter-file.d.ts +13 -0
- package/package/dist/ffmpeg-filter-file.js +70 -0
- package/package/dist/ffmpeg-override.d.ts +4 -0
- package/package/dist/ffmpeg-override.js +2 -0
- package/package/dist/file-extensions.d.ts +14 -0
- package/package/dist/file-extensions.js +85 -0
- package/package/dist/filter-asset-types.d.ts +8 -0
- package/package/dist/filter-asset-types.js +44 -0
- package/package/dist/find-closest-package-json.d.ts +2 -0
- package/package/dist/find-closest-package-json.js +31 -0
- package/package/dist/format-logs.d.ts +3 -0
- package/package/dist/format-logs.js +214 -0
- package/package/dist/frame-range.d.ts +2 -0
- package/package/dist/frame-range.js +49 -0
- package/package/dist/get-browser-instance.d.ts +24 -0
- package/package/dist/get-browser-instance.js +63 -0
- package/package/dist/get-bundle-url-from-serve-url.d.ts +2 -0
- package/package/dist/get-bundle-url-from-serve-url.js +30 -0
- package/package/dist/get-codec-name.d.ts +21 -0
- package/package/dist/get-codec-name.js +87 -0
- package/package/dist/get-compositions.d.ts +34 -0
- package/package/dist/get-compositions.js +196 -0
- package/package/dist/get-concurrency.d.ts +1 -0
- package/package/dist/get-concurrency.js +27 -0
- package/package/dist/get-cpu-count.d.ts +2 -0
- package/package/dist/get-cpu-count.js +33 -0
- package/package/dist/get-duration-from-frame-range.d.ts +1 -0
- package/package/dist/get-duration-from-frame-range.js +17 -0
- package/package/dist/get-extension-from-codec.d.ts +6 -0
- package/package/dist/get-extension-from-codec.js +61 -0
- package/package/dist/get-extension-of-filename.d.ts +1 -0
- package/package/dist/get-extension-of-filename.js +15 -0
- package/package/dist/get-extra-frames-to-capture.d.ts +14 -0
- package/package/dist/get-extra-frames-to-capture.js +62 -0
- package/package/dist/get-frame-padded-index.d.ts +21 -0
- package/package/dist/get-frame-padded-index.js +43 -0
- package/package/dist/get-frame-to-render.d.ts +2 -0
- package/package/dist/get-frame-to-render.js +19 -0
- package/package/dist/get-local-browser-executable.d.ts +9 -0
- package/package/dist/get-local-browser-executable.js +36 -0
- package/package/dist/get-port.d.ts +15 -0
- package/package/dist/get-port.js +86 -0
- package/package/dist/get-prores-profile-name.d.ts +3 -0
- package/package/dist/get-prores-profile-name.js +25 -0
- package/package/dist/get-silent-parts.d.ts +10 -0
- package/package/dist/get-silent-parts.js +66 -0
- package/package/dist/get-video-metadata.d.ts +10 -0
- package/package/dist/get-video-metadata.js +25 -0
- package/package/dist/get-video-threads-flag.d.ts +2 -0
- package/package/dist/get-video-threads-flag.js +16 -0
- package/package/dist/goto-page-or-throw.d.ts +3 -0
- package/package/dist/goto-page-or-throw.js +16 -0
- package/package/dist/guess-extension-for-media.d.ts +9 -0
- package/package/dist/guess-extension-for-media.js +31 -0
- package/package/dist/image-format.d.ts +13 -0
- package/package/dist/image-format.js +37 -0
- package/package/dist/index.d.ts +1256 -0
- package/package/dist/index.js +227 -0
- package/package/dist/is-audio-codec.d.ts +2 -0
- package/package/dist/is-audio-codec.js +7 -0
- package/package/dist/is-delay-render-error-with-retry.d.ts +1 -0
- package/package/dist/is-delay-render-error-with-retry.js +28 -0
- package/package/dist/is-serve-url.d.ts +1 -0
- package/package/dist/is-serve-url.js +15 -0
- package/package/dist/jpeg-quality.d.ts +2 -0
- package/package/dist/jpeg-quality.js +22 -0
- package/package/dist/locks.d.ts +7 -0
- package/package/dist/locks.js +47 -0
- package/package/dist/log-level.d.ts +4 -0
- package/package/dist/log-level.js +15 -0
- package/package/dist/logger.d.ts +20 -0
- package/package/dist/logger.js +89 -0
- package/package/dist/make-cancel-signal.d.ts +14 -0
- package/package/dist/make-cancel-signal.js +48 -0
- package/package/dist/make-metadata-args.d.ts +2 -0
- package/package/dist/make-metadata-args.js +22 -0
- package/package/dist/make-page.d.ts +30 -0
- package/package/dist/make-page.js +70 -0
- package/package/dist/memory/from-docker-cgroup.d.ts +1 -0
- package/package/dist/memory/from-docker-cgroup.js +66 -0
- package/package/dist/memory/from-lambda-env.d.ts +1 -0
- package/package/dist/memory/from-lambda-env.js +10 -0
- package/package/dist/memory/from-proc-meminfo.d.ts +2 -0
- package/package/dist/memory/from-proc-meminfo.js +44 -0
- package/package/dist/memory/get-available-memory.d.ts +2 -0
- package/package/dist/memory/get-available-memory.js +44 -0
- package/package/dist/merge-audio-track.d.ts +19 -0
- package/package/dist/merge-audio-track.js +133 -0
- package/package/dist/mime-db.d.ts +6 -0
- package/package/dist/mime-db.js +8636 -0
- package/package/dist/mime-types.d.ts +3 -0
- package/package/dist/mime-types.js +94 -0
- package/package/dist/mux-video-and-audio.d.ts +15 -0
- package/package/dist/mux-video-and-audio.js +54 -0
- package/package/dist/next-frame-to-render.d.ts +11 -0
- package/package/dist/next-frame-to-render.js +41 -0
- package/package/dist/normalize-serve-url.d.ts +1 -0
- package/package/dist/normalize-serve-url.js +19 -0
- package/package/dist/offthread-video-server.d.ts +51 -0
- package/package/dist/offthread-video-server.js +217 -0
- package/package/dist/open-browser.d.ts +47 -0
- package/package/dist/open-browser.js +200 -0
- package/package/dist/options/api-key.d.ts +15 -0
- package/package/dist/options/api-key.js +29 -0
- package/package/dist/options/audio-bitrate.d.ts +18 -0
- package/package/dist/options/audio-bitrate.js +35 -0
- package/package/dist/options/audio-codec.d.ts +55 -0
- package/package/dist/options/audio-codec.js +188 -0
- package/package/dist/options/beep-on-finish.d.ts +15 -0
- package/package/dist/options/beep-on-finish.js +35 -0
- package/package/dist/options/binaries-directory.d.ts +15 -0
- package/package/dist/options/binaries-directory.js +35 -0
- package/package/dist/options/chrome-mode.d.ts +17 -0
- package/package/dist/options/chrome-mode.js +46 -0
- package/package/dist/options/color-space.d.ts +23 -0
- package/package/dist/options/color-space.js +49 -0
- package/package/dist/options/crf.d.ts +17 -0
- package/package/dist/options/crf.js +43 -0
- package/package/dist/options/cross-site-isolation.d.ts +15 -0
- package/package/dist/options/cross-site-isolation.js +29 -0
- package/package/dist/options/delete-after.d.ts +19 -0
- package/package/dist/options/delete-after.js +37 -0
- package/package/dist/options/disable-git-source.d.ts +15 -0
- package/package/dist/options/disable-git-source.js +28 -0
- package/package/dist/options/disallow-parallel-encoding.d.ts +15 -0
- package/package/dist/options/disallow-parallel-encoding.js +35 -0
- package/package/dist/options/enable-lambda-insights.d.ts +15 -0
- package/package/dist/options/enable-lambda-insights.js +35 -0
- package/package/dist/options/enable-multiprocess-on-linux.d.ts +15 -0
- package/package/dist/options/enable-multiprocess-on-linux.js +36 -0
- package/package/dist/options/encoding-buffer-size.d.ts +18 -0
- package/package/dist/options/encoding-buffer-size.js +39 -0
- package/package/dist/options/encoding-max-rate.d.ts +18 -0
- package/package/dist/options/encoding-max-rate.js +35 -0
- package/package/dist/options/enforce-audio.d.ts +18 -0
- package/package/dist/options/enforce-audio.js +36 -0
- package/package/dist/options/folder-expiry.d.ts +15 -0
- package/package/dist/options/folder-expiry.js +37 -0
- package/package/dist/options/for-seamless-aac-concatenation.d.ts +19 -0
- package/package/dist/options/for-seamless-aac-concatenation.js +40 -0
- package/package/dist/options/gl.d.ts +24 -0
- package/package/dist/options/gl.js +68 -0
- package/package/dist/options/hardware-acceleration.d.ts +18 -0
- package/package/dist/options/hardware-acceleration.js +56 -0
- package/package/dist/options/headless.d.ts +15 -0
- package/package/dist/options/headless.js +36 -0
- package/package/dist/options/image-sequence-pattern.d.ts +15 -0
- package/package/dist/options/image-sequence-pattern.js +30 -0
- package/package/dist/options/index.d.ts +747 -0
- package/package/dist/options/index.js +97 -0
- package/package/dist/options/jpeg-quality.d.ts +17 -0
- package/package/dist/options/jpeg-quality.js +47 -0
- package/package/dist/options/latency-hint.d.ts +18 -0
- package/package/dist/options/latency-hint.js +27 -0
- package/package/dist/options/log-level.d.ts +16 -0
- package/package/dist/options/log-level.js +32 -0
- package/package/dist/options/metadata.d.ts +18 -0
- package/package/dist/options/metadata.js +47 -0
- package/package/dist/options/mute.d.ts +15 -0
- package/package/dist/options/mute.js +37 -0
- package/package/dist/options/number-of-gif-loops.d.ts +19 -0
- package/package/dist/options/number-of-gif-loops.js +44 -0
- package/package/dist/options/offthreadvideo-cache-size.d.ts +20 -0
- package/package/dist/options/offthreadvideo-cache-size.js +60 -0
- package/package/dist/options/offthreadvideo-threads.d.ts +20 -0
- package/package/dist/options/offthreadvideo-threads.js +40 -0
- package/package/dist/options/on-browser-download.d.ts +22 -0
- package/package/dist/options/on-browser-download.js +19 -0
- package/package/dist/options/option.d.ts +20 -0
- package/package/dist/options/option.js +2 -0
- package/package/dist/options/options-map.d.ts +2040 -0
- package/package/dist/options/options-map.js +192 -0
- package/package/dist/options/overwrite.d.ts +15 -0
- package/package/dist/options/overwrite.js +42 -0
- package/package/dist/options/prefer-lossless.d.ts +18 -0
- package/package/dist/options/prefer-lossless.js +26 -0
- package/package/dist/options/public-dir.d.ts +18 -0
- package/package/dist/options/public-dir.js +37 -0
- package/package/dist/options/public-path.d.ts +18 -0
- package/package/dist/options/public-path.js +37 -0
- package/package/dist/options/repro.d.ts +15 -0
- package/package/dist/options/repro.js +36 -0
- package/package/dist/options/scale.d.ts +15 -0
- package/package/dist/options/scale.js +41 -0
- package/package/dist/options/separate-audio.d.ts +18 -0
- package/package/dist/options/separate-audio.js +28 -0
- package/package/dist/options/throw-if-site-exists.d.ts +15 -0
- package/package/dist/options/throw-if-site-exists.js +28 -0
- package/package/dist/options/timeout.d.ts +15 -0
- package/package/dist/options/timeout.js +44 -0
- package/package/dist/options/video-bitrate.d.ts +15 -0
- package/package/dist/options/video-bitrate.js +35 -0
- package/package/dist/options/video-cache-size.d.ts +19 -0
- package/package/dist/options/video-cache-size.js +39 -0
- package/package/dist/options/video-codec.d.ts +23 -0
- package/package/dist/options/video-codec.js +104 -0
- package/package/dist/options/webhook-custom-data.d.ts +10 -0
- package/package/dist/options/webhook-custom-data.js +21 -0
- package/package/dist/options/x264-preset.d.ts +25 -0
- package/package/dist/options/x264-preset.js +55 -0
- package/package/dist/overwrite.d.ts +1 -0
- package/package/dist/overwrite.js +4 -0
- package/package/dist/p-limit.d.ts +1 -0
- package/package/dist/p-limit.js +57 -0
- package/package/dist/parse-browser-error-stack.d.ts +7 -0
- package/package/dist/parse-browser-error-stack.js +87 -0
- package/package/dist/parse-ffmpeg-progress.d.ts +1 -0
- package/package/dist/parse-ffmpeg-progress.js +18 -0
- package/package/dist/path-normalize.d.ts +1 -0
- package/package/dist/path-normalize.js +132 -0
- package/package/dist/perf.d.ts +5 -0
- package/package/dist/perf.js +37 -0
- package/package/dist/pixel-format.d.ts +6 -0
- package/package/dist/pixel-format.js +37 -0
- package/package/dist/pool.d.ts +8 -0
- package/package/dist/pool.js +30 -0
- package/package/dist/port-config.d.ts +14 -0
- package/package/dist/port-config.js +79 -0
- package/package/dist/prepare-server.d.ts +32 -0
- package/package/dist/prepare-server.js +123 -0
- package/package/dist/preprocess-audio-track.d.ts +27 -0
- package/package/dist/preprocess-audio-track.js +82 -0
- package/package/dist/prespawn-ffmpeg.d.ts +49 -0
- package/package/dist/prespawn-ffmpeg.js +112 -0
- package/package/dist/prestitcher-memory-usage.d.ts +10 -0
- package/package/dist/prestitcher-memory-usage.js +26 -0
- package/package/dist/print-useful-error-message.d.ts +2 -0
- package/package/dist/print-useful-error-message.js +110 -0
- package/package/dist/prores-profile.d.ts +7 -0
- package/package/dist/prores-profile.js +23 -0
- package/package/dist/puppeteer-evaluate.d.ts +17 -0
- package/package/dist/puppeteer-evaluate.js +162 -0
- package/package/dist/puppeteer-screenshot.d.ts +12 -0
- package/package/dist/puppeteer-screenshot.js +58 -0
- package/package/dist/pure.d.ts +17 -0
- package/package/dist/pure.js +17 -0
- package/package/dist/redirect-status-codes.d.ts +1 -0
- package/package/dist/redirect-status-codes.js +6 -0
- package/package/dist/render-frame-and-retry-target-close.d.ts +54 -0
- package/package/dist/render-frame-and-retry-target-close.js +179 -0
- package/package/dist/render-frame-with-option-to-reject.d.ts +48 -0
- package/package/dist/render-frame-with-option-to-reject.js +156 -0
- package/package/dist/render-frame.d.ts +47 -0
- package/package/dist/render-frame.js +51 -0
- package/package/dist/render-frames.d.ts +97 -0
- package/package/dist/render-frames.js +413 -0
- package/package/dist/render-has-audio.d.ts +8 -0
- package/package/dist/render-has-audio.js +20 -0
- package/package/dist/render-media.d.ts +135 -0
- package/package/dist/render-media.js +621 -0
- package/package/dist/render-partitions.d.ts +7 -0
- package/package/dist/render-partitions.js +50 -0
- package/package/dist/render-still.d.ts +74 -0
- package/package/dist/render-still.js +356 -0
- package/package/dist/replace-browser.d.ts +7 -0
- package/package/dist/replace-browser.js +48 -0
- package/package/dist/repro.d.ts +25 -0
- package/package/dist/repro.js +184 -0
- package/package/dist/resolve-asset-src.d.ts +1 -0
- package/package/dist/resolve-asset-src.js +17 -0
- package/package/dist/sample-rate.d.ts +1 -0
- package/package/dist/sample-rate.js +4 -0
- package/package/dist/screenshot-task.d.ts +12 -0
- package/package/dist/screenshot-task.js +86 -0
- package/package/dist/seamless-aac-trim.d.ts +12 -0
- package/package/dist/seamless-aac-trim.js +24 -0
- package/package/dist/seek-to-frame.d.ts +18 -0
- package/package/dist/seek-to-frame.js +148 -0
- package/package/dist/select-composition.d.ts +45 -0
- package/package/dist/select-composition.js +219 -0
- package/package/dist/serialize-artifact.d.ts +7 -0
- package/package/dist/serialize-artifact.js +2 -0
- package/package/dist/serve-handler/index.d.ts +4 -0
- package/package/dist/serve-handler/index.js +208 -0
- package/package/dist/serve-handler/is-path-inside.d.ts +1 -0
- package/package/dist/serve-handler/is-path-inside.js +27 -0
- package/package/dist/serve-handler/range-parser.d.ts +13 -0
- package/package/dist/serve-handler/range-parser.js +57 -0
- package/package/dist/serve-static.d.ts +18 -0
- package/package/dist/serve-static.js +141 -0
- package/package/dist/set-props-and-env.d.ts +22 -0
- package/package/dist/set-props-and-env.js +219 -0
- package/package/dist/stitch-frames-to-video.d.ts +77 -0
- package/package/dist/stitch-frames-to-video.js +350 -0
- package/package/dist/stringify-ffmpeg-filter.d.ts +24 -0
- package/package/dist/stringify-ffmpeg-filter.js +140 -0
- package/package/dist/succeed-or-cancel.d.ts +6 -0
- package/package/dist/succeed-or-cancel.js +23 -0
- package/package/dist/symbolicate-stacktrace.d.ts +29 -0
- package/package/dist/symbolicate-stacktrace.js +155 -0
- package/package/dist/take-frame.d.ts +13 -0
- package/package/dist/take-frame.js +47 -0
- package/package/dist/test/actual-concurrency.test.d.ts +1 -0
- package/package/dist/test/artifacts.test.d.ts +1 -0
- package/package/dist/test/asset-calculation.test.d.ts +1 -0
- package/package/dist/test/asset-compression.test.d.ts +1 -0
- package/package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
- package/package/dist/test/browser-log-message.test.d.ts +1 -0
- package/package/dist/test/calculate-atempo.test.d.ts +1 -0
- package/package/dist/test/compositor-rust.test.d.ts +1 -0
- package/package/dist/test/crf.test.d.ts +1 -0
- package/package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
- package/package/dist/test/dont-skip-assets.test.d.ts +1 -0
- package/package/dist/test/download-file.test.d.ts +1 -0
- package/package/dist/test/even-dimensions.test.d.ts +1 -0
- package/package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
- package/package/dist/test/extract-audio.test.d.ts +1 -0
- package/package/dist/test/extract-frame-rust.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-filters.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
- package/package/dist/test/file-extension.test.d.ts +1 -0
- package/package/dist/test/find-closest-package-json.test.d.ts +1 -0
- package/package/dist/test/flatten-volume-array.test.d.ts +1 -0
- package/package/dist/test/format-logs.test.d.ts +1 -0
- package/package/dist/test/frame-padded-index.test.d.ts +1 -0
- package/package/dist/test/frame.test.d.ts +1 -0
- package/package/dist/test/get-assets-for-markup.d.ts +8 -0
- package/package/dist/test/get-audio-channels.test.d.ts +1 -0
- package/package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
- package/package/dist/test/get-silent-parts.test.d.ts +1 -0
- package/package/dist/test/guess-extension-for-media.test.d.ts +1 -0
- package/package/dist/test/handle-weird-file-names.test.d.ts +1 -0
- package/package/dist/test/log-level.test.d.ts +1 -0
- package/package/dist/test/mime-types.test.d.ts +1 -0
- package/package/dist/test/offthread-extract-url.test.d.ts +1 -0
- package/package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
- package/package/dist/test/partitions.test.d.ts +1 -0
- package/package/dist/test/pixel-format.test.d.ts +1 -0
- package/package/dist/test/port-config.test.d.ts +1 -0
- package/package/dist/test/port-selection.test.d.ts +1 -0
- package/package/dist/test/prores-profile.test.d.ts +1 -0
- package/package/dist/test/render-still.test.d.ts +1 -0
- package/package/dist/test/rust-errors.test.d.ts +1 -0
- package/package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
- package/package/dist/test/rust-memory-usage.test.d.ts +1 -0
- package/package/dist/test/sanitize-file-path.test.d.ts +1 -0
- package/package/dist/test/serve-url.test.d.ts +1 -0
- package/package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
- package/package/dist/test/validate-concurrency.test.d.ts +1 -0
- package/package/dist/test/validate-config-stitcher.test.d.ts +1 -0
- package/package/dist/test/validate-config.test.d.ts +1 -0
- package/package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
- package/package/dist/test/validate-image-format.test.d.ts +1 -0
- package/package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
- package/package/dist/test-gpu.d.ts +21 -0
- package/package/dist/test-gpu.js +45 -0
- package/package/dist/tmp-dir.d.ts +1 -0
- package/package/dist/tmp-dir.js +63 -0
- package/package/dist/to-megabytes.d.ts +1 -0
- package/package/dist/to-megabytes.js +7 -0
- package/package/dist/truthy.d.ts +3 -0
- package/package/dist/truthy.js +6 -0
- package/package/dist/types.d.ts +10 -0
- package/package/dist/types.js +2 -0
- package/package/dist/v5-required-input-props.d.ts +6 -0
- package/package/dist/v5-required-input-props.js +2 -0
- package/package/dist/validate-concurrency.d.ts +7 -0
- package/package/dist/validate-concurrency.js +38 -0
- package/package/dist/validate-even-dimensions-with-codec.d.ts +14 -0
- package/package/dist/validate-even-dimensions-with-codec.js +40 -0
- package/package/dist/validate-every-nth-frame.d.ts +1 -0
- package/package/dist/validate-every-nth-frame.js +24 -0
- package/package/dist/validate-ffmpeg-override.d.ts +2 -0
- package/package/dist/validate-ffmpeg-override.js +12 -0
- package/package/dist/validate-number-of-gif-loops.d.ts +2 -0
- package/package/dist/validate-number-of-gif-loops.js +24 -0
- package/package/dist/validate-output-filename.d.ts +9 -0
- package/package/dist/validate-output-filename.js +32 -0
- package/package/dist/validate-puppeteer-timeout.d.ts +1 -0
- package/package/dist/validate-puppeteer-timeout.js +25 -0
- package/package/dist/validate-scale.d.ts +1 -0
- package/package/dist/validate-scale.js +26 -0
- package/package/dist/validate-videobitrate.d.ts +1 -0
- package/package/dist/validate-videobitrate.js +20 -0
- package/package/dist/validate.d.ts +4 -0
- package/package/dist/validate.js +8 -0
- package/package/dist/wait-for-symbolication-error-to-be-done.d.ts +3 -0
- package/package/dist/wait-for-symbolication-error-to-be-done.js +8 -0
- package/package/dist/wrap-with-error-handling.d.ts +8 -0
- package/package/dist/wrap-with-error-handling.js +18 -0
- package/package/dist/ws/ws-types.d.ts +15 -0
- package/package/dist/ws/ws-types.js +8 -0
- package/package/ensure-browser.mjs +3337 -0
- package/package.json +105 -104
- package/LICENSE.md +0 -49
- package/bunfig.toml +0 -2
- package/dist/assets/change-tempo.d.ts +0 -34
- package/dist/assets/change-tempo.js +0 -287
- package/dist/assets/change-tonefrequency.d.ts +0 -2
- package/dist/assets/change-tonefrequency.js +0 -28
- package/dist/assets/resample-audiodata.d.ts +0 -6
- package/dist/assets/resample-audiodata.js +0 -54
|
@@ -0,0 +1,155 @@
|
|
|
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.getSourceMapFromLocalFile = exports.getSourceMapFromRemoteFile = exports.symbolicateStackFrame = exports.symbolicateFromSources = exports.symbolicateStackTraceFromRemoteFrames = exports.getSourceMapFromRemoteUrl = void 0;
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const source_map_1 = require("source-map");
|
|
10
|
+
const read_file_1 = require("./assets/read-file");
|
|
11
|
+
const truthy_1 = require("./truthy");
|
|
12
|
+
function extractSourceMapUrl(fileContents) {
|
|
13
|
+
const regex = /\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm;
|
|
14
|
+
let match = null;
|
|
15
|
+
for (;;) {
|
|
16
|
+
const next = regex.exec(fileContents);
|
|
17
|
+
if (next === null || next === undefined) {
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
match = next;
|
|
21
|
+
}
|
|
22
|
+
if (!(match === null || match === void 0 ? void 0 : match[1])) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return match[1].toString();
|
|
26
|
+
}
|
|
27
|
+
const getSourceMapFromRemoteUrl = async (url) => {
|
|
28
|
+
if (!url.endsWith('.js.map')) {
|
|
29
|
+
return Promise.reject(new Error(`The URL ${url} does not seem to be a valid source map URL.`));
|
|
30
|
+
}
|
|
31
|
+
const obj = await fetchUrl(url);
|
|
32
|
+
return new source_map_1.SourceMapConsumer(obj);
|
|
33
|
+
};
|
|
34
|
+
exports.getSourceMapFromRemoteUrl = getSourceMapFromRemoteUrl;
|
|
35
|
+
const getSourceMap = (filePath, fileContents, type) => {
|
|
36
|
+
const sm = extractSourceMapUrl(fileContents);
|
|
37
|
+
if (sm === null) {
|
|
38
|
+
return Promise.resolve(null);
|
|
39
|
+
}
|
|
40
|
+
if (sm.indexOf('data:') === 0) {
|
|
41
|
+
const base64 = /^data:application\/json;([\w=:"-]+;)*base64,/;
|
|
42
|
+
const match2 = sm.match(base64);
|
|
43
|
+
if (!match2) {
|
|
44
|
+
throw new Error('Sorry, non-base64 inline source-map encoding is not supported.');
|
|
45
|
+
}
|
|
46
|
+
const converted = window.atob(sm.substring(match2[0].length));
|
|
47
|
+
try {
|
|
48
|
+
const sourceMapConsumer = new source_map_1.SourceMapConsumer(JSON.parse(converted));
|
|
49
|
+
return Promise.resolve(sourceMapConsumer);
|
|
50
|
+
}
|
|
51
|
+
catch (_a) {
|
|
52
|
+
return Promise.resolve(null);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (type === 'local') {
|
|
56
|
+
// Find adjacent file: bundle.js -> bundle.js.map
|
|
57
|
+
const newFilePath = path_1.default.join(path_1.default.dirname(filePath), sm);
|
|
58
|
+
return Promise.resolve(new source_map_1.SourceMapConsumer((0, fs_1.readFileSync)(newFilePath, 'utf8')));
|
|
59
|
+
}
|
|
60
|
+
const index = filePath.lastIndexOf('/');
|
|
61
|
+
const url = filePath.substring(0, index + 1) + sm;
|
|
62
|
+
return (0, exports.getSourceMapFromRemoteUrl)(url);
|
|
63
|
+
};
|
|
64
|
+
const fetchUrl = async (url) => {
|
|
65
|
+
const { request, response } = await (0, read_file_1.readFile)(url);
|
|
66
|
+
return new Promise((resolve, reject) => {
|
|
67
|
+
let downloaded = '';
|
|
68
|
+
response.on('data', (d) => {
|
|
69
|
+
downloaded += d;
|
|
70
|
+
});
|
|
71
|
+
response.on('end', () => {
|
|
72
|
+
request.destroy();
|
|
73
|
+
response.destroy();
|
|
74
|
+
resolve(downloaded);
|
|
75
|
+
});
|
|
76
|
+
response.on('error', (err) => {
|
|
77
|
+
request.destroy();
|
|
78
|
+
response.destroy();
|
|
79
|
+
return reject(err);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
function getLinesAround(line, count, lines) {
|
|
84
|
+
const result = [];
|
|
85
|
+
for (let index = Math.max(0, line - 1 - count) + 1; index <= Math.min(lines.length - 1, line - 1 + count); ++index) {
|
|
86
|
+
result.push({
|
|
87
|
+
lineNumber: index + 1,
|
|
88
|
+
content: lines[index],
|
|
89
|
+
highlight: index + 1 === line,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
const getOriginalPosition = (source_map, line, column) => {
|
|
95
|
+
const result = source_map.originalPositionFor({
|
|
96
|
+
line,
|
|
97
|
+
column,
|
|
98
|
+
});
|
|
99
|
+
return { line: result.line, column: result.column, source: result.source };
|
|
100
|
+
};
|
|
101
|
+
const symbolicateStackTraceFromRemoteFrames = async (frames) => {
|
|
102
|
+
const uniqueFileNames = [
|
|
103
|
+
...new Set(frames
|
|
104
|
+
.map((f) => f.fileName)
|
|
105
|
+
.filter((f) => f.startsWith('http://') || f.startsWith('https://'))
|
|
106
|
+
.filter(truthy_1.truthy)),
|
|
107
|
+
];
|
|
108
|
+
const maps = await Promise.all(uniqueFileNames.map((fileName) => {
|
|
109
|
+
return (0, exports.getSourceMapFromRemoteFile)(fileName);
|
|
110
|
+
}));
|
|
111
|
+
const mapValues = {};
|
|
112
|
+
for (let i = 0; i < uniqueFileNames.length; i++) {
|
|
113
|
+
mapValues[uniqueFileNames[i]] = maps[i];
|
|
114
|
+
}
|
|
115
|
+
return (0, exports.symbolicateFromSources)(frames, mapValues);
|
|
116
|
+
};
|
|
117
|
+
exports.symbolicateStackTraceFromRemoteFrames = symbolicateStackTraceFromRemoteFrames;
|
|
118
|
+
const symbolicateFromSources = (frames, mapValues) => {
|
|
119
|
+
return frames
|
|
120
|
+
.map((frame) => {
|
|
121
|
+
const map = mapValues[frame.fileName];
|
|
122
|
+
if (!map) {
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
return (0, exports.symbolicateStackFrame)(frame, map);
|
|
126
|
+
})
|
|
127
|
+
.filter(truthy_1.truthy)
|
|
128
|
+
.filter((f) => f.originalScriptCode !== null);
|
|
129
|
+
};
|
|
130
|
+
exports.symbolicateFromSources = symbolicateFromSources;
|
|
131
|
+
const symbolicateStackFrame = (frame, map) => {
|
|
132
|
+
const pos = getOriginalPosition(map, frame.lineNumber, frame.columnNumber);
|
|
133
|
+
const hasSource = pos.source ? map.sourceContentFor(pos.source, false) : null;
|
|
134
|
+
const scriptCode = hasSource && pos.line
|
|
135
|
+
? getLinesAround(pos.line, 3, hasSource.split('\n'))
|
|
136
|
+
: null;
|
|
137
|
+
return {
|
|
138
|
+
originalColumnNumber: pos.column,
|
|
139
|
+
originalFileName: pos.source,
|
|
140
|
+
originalFunctionName: frame.functionName,
|
|
141
|
+
originalLineNumber: pos.line,
|
|
142
|
+
originalScriptCode: scriptCode,
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
exports.symbolicateStackFrame = symbolicateStackFrame;
|
|
146
|
+
const getSourceMapFromRemoteFile = async (fileName) => {
|
|
147
|
+
const fileContents = await fetchUrl(fileName);
|
|
148
|
+
return getSourceMap(fileName, fileContents, 'remote');
|
|
149
|
+
};
|
|
150
|
+
exports.getSourceMapFromRemoteFile = getSourceMapFromRemoteFile;
|
|
151
|
+
const getSourceMapFromLocalFile = (fileName) => {
|
|
152
|
+
const fileContents = (0, fs_1.readFileSync)(fileName, 'utf8');
|
|
153
|
+
return getSourceMap(fileName, fileContents, 'local');
|
|
154
|
+
};
|
|
155
|
+
exports.getSourceMapFromLocalFile = getSourceMapFromLocalFile;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Page } from './browser/BrowserPage';
|
|
2
|
+
import type { StillImageFormat, VideoImageFormat } from './image-format';
|
|
3
|
+
export declare const takeFrame: ({ freePage, imageFormat, jpegQuality, width, height, output, scale, wantsBuffer, timeoutInMilliseconds, }: {
|
|
4
|
+
freePage: Page;
|
|
5
|
+
imageFormat: VideoImageFormat | StillImageFormat;
|
|
6
|
+
jpegQuality: number | undefined;
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
output: string | null;
|
|
10
|
+
scale: number;
|
|
11
|
+
wantsBuffer: boolean;
|
|
12
|
+
timeoutInMilliseconds: number;
|
|
13
|
+
}) => Promise<Buffer | null>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.takeFrame = void 0;
|
|
4
|
+
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
5
|
+
const puppeteer_screenshot_1 = require("./puppeteer-screenshot");
|
|
6
|
+
const takeFrame = async ({ freePage, imageFormat, jpegQuality, width, height, output, scale, wantsBuffer, timeoutInMilliseconds, }) => {
|
|
7
|
+
var _a;
|
|
8
|
+
if (imageFormat === 'none') {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
if (imageFormat === 'png' ||
|
|
12
|
+
imageFormat === 'pdf' ||
|
|
13
|
+
imageFormat === 'webp') {
|
|
14
|
+
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
15
|
+
pageFunction: () => {
|
|
16
|
+
document.body.style.background = 'transparent';
|
|
17
|
+
},
|
|
18
|
+
args: [],
|
|
19
|
+
frame: null,
|
|
20
|
+
page: freePage,
|
|
21
|
+
timeoutInMilliseconds,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
26
|
+
pageFunction: () => {
|
|
27
|
+
document.body.style.background = 'black';
|
|
28
|
+
},
|
|
29
|
+
args: [],
|
|
30
|
+
frame: null,
|
|
31
|
+
page: freePage,
|
|
32
|
+
timeoutInMilliseconds,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const buf = await (0, puppeteer_screenshot_1.screenshot)({
|
|
36
|
+
page: freePage,
|
|
37
|
+
omitBackground: imageFormat === 'png',
|
|
38
|
+
path: (_a = (wantsBuffer ? undefined : output)) !== null && _a !== void 0 ? _a : undefined,
|
|
39
|
+
type: imageFormat,
|
|
40
|
+
jpegQuality,
|
|
41
|
+
width,
|
|
42
|
+
height,
|
|
43
|
+
scale,
|
|
44
|
+
});
|
|
45
|
+
return buf;
|
|
46
|
+
};
|
|
47
|
+
exports.takeFrame = takeFrame;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BrowserExecutable } from './browser-executable';
|
|
2
|
+
import type { OnLog } from './browser/BrowserPage';
|
|
3
|
+
import type { LogLevel } from './log-level';
|
|
4
|
+
import type { ChromiumOptions } from './open-browser';
|
|
5
|
+
import type { ChromeMode } from './options/chrome-mode';
|
|
6
|
+
import type { OnBrowserDownload } from './options/on-browser-download';
|
|
7
|
+
type Item = {
|
|
8
|
+
feature: string;
|
|
9
|
+
status: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const getChromiumGpuInformation: ({ browserExecutable, indent, logLevel, chromiumOptions, timeoutInMilliseconds, onBrowserDownload, chromeMode, onLog, }: {
|
|
12
|
+
browserExecutable: BrowserExecutable;
|
|
13
|
+
indent: boolean;
|
|
14
|
+
logLevel: LogLevel;
|
|
15
|
+
chromiumOptions: ChromiumOptions;
|
|
16
|
+
timeoutInMilliseconds: number;
|
|
17
|
+
onBrowserDownload: OnBrowserDownload;
|
|
18
|
+
chromeMode: ChromeMode;
|
|
19
|
+
onLog: OnLog;
|
|
20
|
+
}) => Promise<Item[]>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChromiumGpuInformation = void 0;
|
|
4
|
+
const get_browser_instance_1 = require("./get-browser-instance");
|
|
5
|
+
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
6
|
+
const getChromiumGpuInformation = async ({ browserExecutable, indent, logLevel, chromiumOptions, timeoutInMilliseconds, onBrowserDownload, chromeMode, onLog, }) => {
|
|
7
|
+
const { page, cleanupPage: cleanup } = await (0, get_browser_instance_1.getPageAndCleanupFn)({
|
|
8
|
+
passedInInstance: undefined,
|
|
9
|
+
browserExecutable,
|
|
10
|
+
chromiumOptions,
|
|
11
|
+
forceDeviceScaleFactor: undefined,
|
|
12
|
+
indent,
|
|
13
|
+
logLevel,
|
|
14
|
+
onBrowserDownload,
|
|
15
|
+
chromeMode,
|
|
16
|
+
pageIndex: 0,
|
|
17
|
+
onBrowserLog: null,
|
|
18
|
+
onLog,
|
|
19
|
+
});
|
|
20
|
+
await page.goto({ url: 'chrome://gpu', timeout: 12000 });
|
|
21
|
+
const { value } = await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
22
|
+
pageFunction: () => {
|
|
23
|
+
var _a, _b, _c;
|
|
24
|
+
const statuses = [];
|
|
25
|
+
const items = (_c = (_b = (_a = document
|
|
26
|
+
.querySelector('info-view')) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('ul')) === null || _c === void 0 ? void 0 : _c.querySelectorAll('li');
|
|
27
|
+
[].forEach.call(items, (item) => {
|
|
28
|
+
// do whatever
|
|
29
|
+
const [feature, status] = item.innerText.split(': ');
|
|
30
|
+
statuses.push({
|
|
31
|
+
feature,
|
|
32
|
+
status,
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
return statuses;
|
|
36
|
+
},
|
|
37
|
+
frame: null,
|
|
38
|
+
args: [],
|
|
39
|
+
page,
|
|
40
|
+
timeoutInMilliseconds,
|
|
41
|
+
});
|
|
42
|
+
cleanup();
|
|
43
|
+
return value;
|
|
44
|
+
};
|
|
45
|
+
exports.getChromiumGpuInformation = getChromiumGpuInformation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tmpDir: (str: string) => string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.tmpDir = void 0;
|
|
40
|
+
const node_fs_1 = __importStar(require("node:fs"));
|
|
41
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
42
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
43
|
+
const alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
|
44
|
+
const randomHash = () => {
|
|
45
|
+
return new Array(10)
|
|
46
|
+
.fill(1)
|
|
47
|
+
.map(() => {
|
|
48
|
+
return alphabet[Math.floor(Math.random() * alphabet.length)];
|
|
49
|
+
})
|
|
50
|
+
.join('');
|
|
51
|
+
};
|
|
52
|
+
const tmpDir = (str) => {
|
|
53
|
+
const newDir = node_path_1.default.join(node_os_1.default.tmpdir(), str + randomHash());
|
|
54
|
+
if (node_fs_1.default.existsSync(newDir)) {
|
|
55
|
+
node_fs_1.default.rmSync(newDir, {
|
|
56
|
+
recursive: true,
|
|
57
|
+
force: true,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
(0, node_fs_1.mkdirSync)(newDir);
|
|
61
|
+
return newDir;
|
|
62
|
+
};
|
|
63
|
+
exports.tmpDir = tmpDir;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toMegabytes(bytes: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RenderAssetInfo } from './assets/download-map';
|
|
2
|
+
export type RenderFramesOutput = {
|
|
3
|
+
frameCount: number;
|
|
4
|
+
assetsInfo: RenderAssetInfo;
|
|
5
|
+
};
|
|
6
|
+
export type OnStartData = {
|
|
7
|
+
frameCount: number;
|
|
8
|
+
parallelEncoding: boolean;
|
|
9
|
+
resolvedConcurrency: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
2
|
+
value: unknown;
|
|
3
|
+
setting: string;
|
|
4
|
+
checkIfValidForCurrentMachine: boolean;
|
|
5
|
+
}) => void;
|
|
6
|
+
export declare const getMaxConcurrency: () => number;
|
|
7
|
+
export declare const getMinConcurrency: () => number;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMinConcurrency = exports.getMaxConcurrency = exports.validateConcurrency = void 0;
|
|
4
|
+
const get_cpu_count_1 = require("./get-cpu-count");
|
|
5
|
+
const validateConcurrency = ({ setting, value, checkIfValidForCurrentMachine, }) => {
|
|
6
|
+
if (typeof value === 'undefined') {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (value === null) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (typeof value !== 'number' && typeof value !== 'string') {
|
|
13
|
+
throw new Error(setting + ' must a number or a string but is ' + value);
|
|
14
|
+
}
|
|
15
|
+
if (typeof value === 'number') {
|
|
16
|
+
if (value % 1 !== 0) {
|
|
17
|
+
throw new Error(setting + ' must be an integer, but is ' + value);
|
|
18
|
+
}
|
|
19
|
+
if (checkIfValidForCurrentMachine) {
|
|
20
|
+
if (value < (0, exports.getMinConcurrency)()) {
|
|
21
|
+
throw new Error(`${setting} must be at least ${(0, exports.getMinConcurrency)()}, but is ${JSON.stringify(value)}`);
|
|
22
|
+
}
|
|
23
|
+
if (value > (0, exports.getMaxConcurrency)()) {
|
|
24
|
+
throw new Error(`${setting} is set higher than the amount of CPU cores available. Available CPU cores: ${(0, exports.getMaxConcurrency)()}, value set: ${value}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else if (!/^\d+(\.\d+)?%$/.test(value)) {
|
|
29
|
+
throw new Error(`${setting} must be a number or percentage, but is ${JSON.stringify(value)}`);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.validateConcurrency = validateConcurrency;
|
|
33
|
+
const getMaxConcurrency = () => {
|
|
34
|
+
return (0, get_cpu_count_1.getCpuCount)();
|
|
35
|
+
};
|
|
36
|
+
exports.getMaxConcurrency = getMaxConcurrency;
|
|
37
|
+
const getMinConcurrency = () => 1;
|
|
38
|
+
exports.getMinConcurrency = getMinConcurrency;
|