@remotion/renderer 4.0.0-fastlambda.11 → 4.0.0-fastlambda.17

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.
@@ -1,7 +1,4 @@
1
1
  export declare const createFfmpegComplexFilter: (filters: number) => Promise<{
2
- complexFilterFlag: [
3
- string,
4
- string
5
- ] | null;
2
+ complexFilterFlag: [string, string] | null;
6
3
  cleanup: () => void;
7
4
  }>;
@@ -27,7 +27,7 @@ const killAllBrowsers = async () => {
27
27
  };
28
28
  exports.killAllBrowsers = killAllBrowsers;
29
29
  const openBrowser = async (browser, options) => {
30
- var _a, _b, _c, _d, _e, _f, _g;
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
31
31
  if (browser === 'firefox' && !remotion_1.Internals.FEATURE_FLAG_FIREFOX_SUPPORT) {
32
32
  throw new TypeError('Firefox supported is not yet turned on. Stay tuned for the future.');
33
33
  }
@@ -38,7 +38,6 @@ const openBrowser = async (browser, options) => {
38
38
  executablePath,
39
39
  product: browser,
40
40
  dumpio: (_e = options === null || options === void 0 ? void 0 : options.shouldDumpIo) !== null && _e !== void 0 ? _e : false,
41
- headless: false,
42
41
  ignoreDefaultArgs: true,
43
42
  args: [
44
43
  'about:blank',
@@ -77,7 +76,7 @@ const openBrowser = async (browser, options) => {
77
76
  '--enable-blink-features=IdleDetection',
78
77
  '--export-tagged-pdf',
79
78
  '--intensive-wake-up-throttling-policy=0',
80
- '--headless',
79
+ ((_g = (_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.headless) !== null && _g !== void 0 ? _g : true) ? '--headless' : null,
81
80
  '--no-sandbox',
82
81
  '--disable-setuid-sandbox',
83
82
  '--disable-dev-shm-usage',
@@ -95,10 +94,13 @@ const openBrowser = async (browser, options) => {
95
94
  '--no-default-browser-check',
96
95
  '--no-pings',
97
96
  '--no-zygote',
98
- ((_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.ignoreCertificateErrors)
97
+ (options === null || options === void 0 ? void 0 : options.forceDeviceScaleFactor)
98
+ ? `--force-device-scale-factor=${options.forceDeviceScaleFactor}`
99
+ : null,
100
+ ((_h = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _h === void 0 ? void 0 : _h.ignoreCertificateErrors)
99
101
  ? '--ignore-certificate-errors'
100
102
  : null,
101
- ...(((_g = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _g === void 0 ? void 0 : _g.disableWebSecurity)
103
+ ...(((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.disableWebSecurity)
102
104
  ? [
103
105
  '--disable-web-security',
104
106
  '--user-data-dir=' +
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import puppeteer from 'puppeteer-core';
2
3
  import { ImageFormat } from 'remotion';
3
4
  export declare const provideScreenshot: ({ page, imageFormat, options, quality, }: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="node" />
1
2
  import { Page, ScreenshotOptions } from 'puppeteer-core';
2
3
  export declare const screenshot: (page: Page, options?: ScreenshotOptions) => Promise<Buffer | string | void>;
@@ -69,6 +69,7 @@ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, inputProps
69
69
  : frameRange === null || frameRange === undefined
70
70
  ? 0
71
71
  : frameRange[0];
72
+ console.log({ frameRange });
72
73
  await (0, set_props_and_env_1.setPropsAndEnv)({
73
74
  inputProps,
74
75
  envVariables,
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import puppeteer from 'puppeteer-core';
2
3
  import { ImageFormat } from 'remotion';
3
4
  export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Page, ScreenshotOptions } from 'puppeteer-core';
2
3
  import { StillImageFormat } from 'remotion';
3
4
  export declare const _screenshotTask: (page: Page, format: StillImageFormat, options: ScreenshotOptions) => Promise<Buffer | string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.0-fastlambda.11+a37d8b175",
3
+ "version": "4.0.0-fastlambda.17+ab926ae8d",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "@remotion/bundler": "4.0.0-fastlambda.11+a37d8b175",
23
+ "@remotion/bundler": "4.0.0-fastlambda.17+ab926ae8d",
24
24
  "execa": "5.1.1",
25
25
  "puppeteer-core": "13.5.1",
26
- "remotion": "4.0.0-fastlambda.11+a37d8b175",
26
+ "remotion": "4.0.0-fastlambda.17+ab926ae8d",
27
27
  "serve-handler": "6.1.3",
28
28
  "source-map": "^0.8.0-beta.0"
29
29
  },
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "a37d8b17591c74bb6f0ee66cfe6fac46ad552419"
63
+ "gitHead": "ab926ae8d7255286f77960fd2c508c26b2311c3f"
64
64
  }