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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/dev-middleware/range-parser.d.ts +1 -1
  2. package/dist/error-overlay/entry-basic.js +3 -0
  3. package/dist/error-overlay/entry-basic.js.map +1 -1
  4. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +1 -2
  5. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -1
  6. package/dist/error-overlay/react-overlay/effects/format-warning.js +3 -3
  7. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -1
  8. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +8 -0
  9. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts.map +1 -0
  10. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js +36 -0
  11. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js.map +1 -0
  12. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +10 -3
  13. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +1 -1
  14. package/dist/error-overlay/react-overlay/effects/proxy-console.js +11 -1
  15. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -1
  16. package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts +4 -0
  17. package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts.map +1 -0
  18. package/dist/error-overlay/react-overlay/effects/resolve-file-source.js +38 -0
  19. package/dist/error-overlay/react-overlay/effects/resolve-file-source.js.map +1 -0
  20. package/dist/error-overlay/react-overlay/index.d.ts +1 -0
  21. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -1
  22. package/dist/error-overlay/react-overlay/index.js +5 -1
  23. package/dist/error-overlay/react-overlay/index.js.map +1 -1
  24. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -3
  25. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -1
  26. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +25 -15
  27. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -1
  28. package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts +2 -0
  29. package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts.map +1 -0
  30. package/dist/error-overlay/react-overlay/utils/get-file-source.js +22 -0
  31. package/dist/error-overlay/react-overlay/utils/get-file-source.js.map +1 -0
  32. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +2 -4
  33. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -1
  34. package/dist/error-overlay/react-overlay/utils/get-source-map.js +1 -4
  35. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -1
  36. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +7 -4
  37. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -1
  38. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +28 -17
  39. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -1
  40. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +0 -2
  41. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -1
  42. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +2 -4
  43. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -1
  44. package/dist/error-overlay/react-overlay/utils/parser.d.ts +1 -2
  45. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -1
  46. package/dist/error-overlay/react-overlay/utils/parser.js +2 -3
  47. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -1
  48. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +0 -8
  49. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -1
  50. package/dist/error-overlay/react-overlay/utils/stack-frame.js +0 -14
  51. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -1
  52. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +1 -2
  53. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -1
  54. package/dist/error-overlay/react-overlay/utils/unmapper.js +1 -2
  55. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -1
  56. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -1
  57. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +20 -2
  58. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -1
  59. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +1 -0
  60. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -1
  61. package/dist/error-overlay/remotion-overlay/StackFrame.js +4 -2
  62. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -1
  63. package/dist/hot-middleware/process-update.d.ts.map +1 -1
  64. package/dist/hot-middleware/process-update.js +6 -4
  65. package/dist/hot-middleware/process-update.js.map +1 -1
  66. package/dist/hot-middleware/strip-ansi.d.ts +0 -5
  67. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -1
  68. package/dist/hot-middleware/strip-ansi.js +2 -3
  69. package/dist/hot-middleware/strip-ansi.js.map +1 -1
  70. package/dist/setup-environment.js +1 -0
  71. package/dist/setup-environment.js.map +1 -1
  72. package/dist/start-server.d.ts.map +1 -1
  73. package/dist/start-server.js +17 -0
  74. package/dist/start-server.js.map +1 -1
  75. package/dist/test/expect-to-throw.d.ts +2 -0
  76. package/dist/test/expect-to-throw.d.ts.map +1 -0
  77. package/dist/test/expect-to-throw.js +15 -0
  78. package/dist/test/expect-to-throw.js.map +1 -0
  79. package/dist/test/parse-error-stack.test.d.ts +2 -0
  80. package/dist/test/parse-error-stack.test.d.ts.map +1 -0
  81. package/dist/test/parse-error-stack.test.js +18 -0
  82. package/dist/test/parse-error-stack.test.js.map +1 -0
  83. package/dist/test/secure-source-read.test.d.ts +2 -0
  84. package/dist/test/secure-source-read.test.d.ts.map +1 -0
  85. package/dist/test/secure-source-read.test.js +9 -0
  86. package/dist/test/secure-source-read.test.js.map +1 -0
  87. package/dist/update-available.d.ts +1 -1
  88. package/dist/update-available.d.ts.map +1 -1
  89. package/dist/webpack-cache.d.ts +0 -1
  90. package/dist/webpack-cache.d.ts.map +1 -1
  91. package/dist/webpack-cache.js +2 -3
  92. package/dist/webpack-cache.js.map +1 -1
  93. package/package.json +6 -4
  94. package/dist/dev-middleware/compatible.api.d.ts +0 -1
  95. package/dist/dev-middleware/compatible.api.d.ts.map +0 -1
  96. package/dist/dev-middleware/compatible.api.js +0 -2
  97. package/dist/dev-middleware/compatible.api.js.map +0 -1
  98. package/dist/dev-middleware/compatibleapi.d.ts +0 -1
  99. package/dist/dev-middleware/compatibleapi.d.ts.map +0 -1
  100. package/dist/dev-middleware/compatibleapi.js +0 -2
  101. package/dist/dev-middleware/compatibleapi.js.map +0 -1
  102. package/dist/error-overlay/entry-devserver.d.ts +0 -12
  103. package/dist/error-overlay/entry-devserver.d.ts.map +0 -1
  104. package/dist/error-overlay/entry-devserver.js +0 -36
  105. package/dist/error-overlay/entry-devserver.js.map +0 -1
  106. package/dist/error-overlay/index.d.ts +0 -5
  107. package/dist/error-overlay/index.d.ts.map +0 -1
  108. package/dist/error-overlay/index.js +0 -28
  109. package/dist/error-overlay/index.js.map +0 -1
  110. package/dist/error-overlay/react-overlay/stack-frame.d.ts +0 -47
  111. package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +0 -1
  112. package/dist/error-overlay/react-overlay/stack-frame.js +0 -82
  113. package/dist/error-overlay/react-overlay/stack-frame.js.map +0 -1
  114. package/dist/setup-env-variables.d.ts +0 -2
  115. package/dist/setup-env-variables.d.ts.map +0 -1
  116. package/dist/setup-env-variables.js +0 -5
  117. package/dist/setup-env-variables.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-stack.test.d.ts","sourceRoot":"","sources":["../../src/test/parse-error-stack.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const map_error_to_react_stack_1 = require("../error-overlay/react-overlay/effects/map-error-to-react-stack");
4
+ const message = 'Module build failed (from ../../node_modules/.pnpm/esbuild-loader@2.15.1_webpack@5.60.0/node_modules/esbuild-loader/dist/index.js):\nError: Transform failed with 1 error:\n/Users/jonathanburger/remotion/packages/example/src/Video.tsx:31:83: error: Expected ">" but found "\\": 100}\'`\\n\\t\\t\\t\\tdurationInFrames={inputProps?.duration ?? 20}\\n\\t\\t\\t/>\\n\\t\\t\\t<Composition\\n\\t\\t\\t\\tid=\\""\n at failureErrorWithLog (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:1475:15)\n at /Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:1264:29\n at /Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:611:9\n at handleIncomingPacket (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:708:9)\n at Socket.readFromStdout (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:578:7)\n at Socket.emit (node:events:390:28)\n at addChunk (node:internal/streams/readable:315:12)\n at readableAddChunk (node:internal/streams/readable:289:9)\n at Socket.Readable.push (node:internal/streams/readable:228:10)\n at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)';
5
+ const stack = 'Error: Module build failed (from ../../node_modules/.pnpm/esbuild-loader@2.15.1_webpack@5.60.0/node_modules/esbuild-loader/dist/index.js):\nError: Transform failed with 1 error:\n/Users/jonathanburger/remotion/packages/example/src/Video.tsx:31:83: error: Expected ">" but found "\\": 100}\'`\\n\\t\\t\\t\\tdurationInFrames={inputProps?.duration ?? 20}\\n\\t\\t\\t/>\\n\\t\\t\\t<Composition\\n\\t\\t\\t\\tid=\\""\n at failureErrorWithLog (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:1475:15)\n at /Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:1264:29\n at /Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:611:9\n at handleIncomingPacket (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:708:9)\n at Socket.readFromStdout (/Users/jonathanburger/remotion/node_modules/.pnpm/esbuild@0.12.29/node_modules/esbuild/lib/main.js:578:7)\n at Socket.emit (node:events:390:28)\n at addChunk (node:internal/streams/readable:315:12)\n at readableAddChunk (node:internal/streams/readable:289:9)\n at Socket.Readable.push (node:internal/streams/readable:228:10)\n at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)';
6
+ test('Parse error stack', () => {
7
+ expect((0, map_error_to_react_stack_1.getLocationFromBuildError)({
8
+ stack,
9
+ message,
10
+ name: 'Error',
11
+ })).toEqual({
12
+ fileName: '/Users/jonathanburger/remotion/packages/example/src/Video.tsx',
13
+ lineNumber: 31,
14
+ columnNumber: 83,
15
+ message: 'error: Expected ">" but found "\\": 100}\'`\\n\\t\\t\\t\\tdurationInFrames={inputProps?.duration ?? 20}\\n\\t\\t\\t/>\\n\\t\\t\\t<Composition\\n\\t\\t\\t\\tid=\\""',
16
+ });
17
+ });
18
+ //# sourceMappingURL=parse-error-stack.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-error-stack.test.js","sourceRoot":"","sources":["../../src/test/parse-error-stack.test.ts"],"names":[],"mappings":";;AAAA,8GAA0G;AAE1G,MAAM,OAAO,GACZ,g0CAAg0C,CAAC;AACl0C,MAAM,KAAK,GACV,u0CAAu0C,CAAC;AAEz0C,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC9B,MAAM,CACL,IAAA,oDAAyB,EAAC;QACzB,KAAK;QACL,OAAO;QACP,IAAI,EAAE,OAAO;KACb,CAAC,CACF,CAAC,OAAO,CAAC;QACT,QAAQ,EAAE,+DAA+D;QACzE,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,OAAO,EACN,qKAAqK;KACtK,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=secure-source-read.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secure-source-read.test.d.ts","sourceRoot":"","sources":["../../src/test/secure-source-read.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const get_file_source_1 = require("../error-overlay/react-overlay/utils/get-file-source");
4
+ const expect_to_throw_1 = require("./expect-to-throw");
5
+ test('Should not allow to read files outside of the project', () => {
6
+ (0, expect_to_throw_1.expectToThrow)(() => (0, get_file_source_1.getFileSource)('/etc/passwd'), /Not allowed to open/);
7
+ (0, expect_to_throw_1.expectToThrow)(() => (0, get_file_source_1.getFileSource)('.env'), /Not allowed to open/);
8
+ });
9
+ //# sourceMappingURL=secure-source-read.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secure-source-read.test.js","sourceRoot":"","sources":["../../src/test/secure-source-read.test.ts"],"names":[],"mappings":";;AAAA,0FAAmF;AACnF,uDAAgD;AAEhD,IAAI,CAAC,uDAAuD,EAAE,GAAG,EAAE;IAClE,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,IAAA,+BAAa,EAAC,aAAa,CAAC,EAAE,qBAAqB,CAAC,CAAC;IACzE,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,IAAA,+BAAa,EAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  declare type PackageManager = 'npm' | 'yarn' | 'unknown';
2
- export declare type Info = {
2
+ declare type Info = {
3
3
  currentVersion: string;
4
4
  latestVersion: string;
5
5
  updateAvailable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"update-available.d.ts","sourceRoot":"","sources":["../src/update-available.ts"],"names":[],"mappings":"AAKA,aAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjD,oBAAY,IAAI,GAAG;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;CAC/B,CAAC;AAmBF,eAAO,MAAM,4BAA4B,qBAgBxC,CAAC"}
1
+ {"version":3,"file":"update-available.d.ts","sourceRoot":"","sources":["../src/update-available.ts"],"names":[],"mappings":"AAKA,aAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjD,aAAK,IAAI,GAAG;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;CAC/B,CAAC;AAmBF,eAAO,MAAM,4BAA4B,qBAgBxC,CAAC"}
@@ -6,7 +6,6 @@ declare global {
6
6
  }
7
7
  }
8
8
  }
9
- export declare const getWebpackCacheDir: () => string;
10
9
  export declare const clearCache: (environment: Environment, inputProps: object | null) => Promise<void>;
11
10
  export declare const getWebpackCacheName: (environment: Environment, inputProps: object | null) => string;
12
11
  export declare const cacheExists: (environment: Environment, inputProps: object | null) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-cache.d.ts","sourceRoot":"","sources":["../src/webpack-cache.ts"],"names":[],"mappings":"AAIA,aAAK,WAAW,GAAG,aAAa,GAAG,YAAY,CAAC;AAEhD,OAAO,CAAC,MAAM,CAAC;IAEd,UAAU,MAAM,CAAC;QAChB,UAAU,eAAe;YACxB,GAAG,CAAC,EAAE,MAAM,CAAC;SACb;KACD;CACD;AAID,eAAO,MAAM,kBAAkB,cAiC9B,CAAC;AAYF,eAAO,MAAM,UAAU,gBACT,WAAW,cACZ,MAAM,GAAG,IAAI,kBAQzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAClB,WAAW,cACZ,MAAM,GAAG,IAAI,WAYzB,CAAC;AAEF,eAAO,MAAM,WAAW,gBACV,WAAW,cACZ,MAAM,GAAG,IAAI,YAGzB,CAAC"}
1
+ {"version":3,"file":"webpack-cache.d.ts","sourceRoot":"","sources":["../src/webpack-cache.ts"],"names":[],"mappings":"AAIA,aAAK,WAAW,GAAG,aAAa,GAAG,YAAY,CAAC;AAEhD,OAAO,CAAC,MAAM,CAAC;IAEd,UAAU,MAAM,CAAC;QAChB,UAAU,eAAe;YACxB,GAAG,CAAC,EAAE,MAAM,CAAC;SACb;KACD;CACD;AAiDD,eAAO,MAAM,UAAU,gBACT,WAAW,cACZ,MAAM,GAAG,IAAI,kBAQzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAClB,WAAW,cACZ,MAAM,GAAG,IAAI,WAYzB,CAAC;AAEF,eAAO,MAAM,WAAW,gBACV,WAAW,cACZ,MAAM,GAAG,IAAI,YAGzB,CAAC"}
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.cacheExists = exports.getWebpackCacheName = exports.clearCache = exports.getWebpackCacheDir = void 0;
6
+ exports.cacheExists = exports.getWebpackCacheName = exports.clearCache = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const remotion_1 = require("remotion");
@@ -38,9 +38,8 @@ const getWebpackCacheDir = () => {
38
38
  }
39
39
  return path_1.default.resolve(dir, 'node_modules/.cache/webpack');
40
40
  };
41
- exports.getWebpackCacheDir = getWebpackCacheDir;
42
41
  const remotionCacheLocation = (environment, inputProps) => {
43
- return path_1.default.join((0, exports.getWebpackCacheDir)(), (0, exports.getWebpackCacheName)(environment, inputProps));
42
+ return path_1.default.join(getWebpackCacheDir(), (0, exports.getWebpackCacheName)(environment, inputProps));
44
43
  };
45
44
  const clearCache = (environment, inputProps) => {
46
45
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-cache.js","sourceRoot":"","sources":["../src/webpack-cache.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,uCAAgC;AAahC,4HAA4H;AAC5H,mEAAmE;AAC5D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACtC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,IAAI,GAAG,GAAuB,GAAG,CAAC;IAClC,SAAS;QACR,IAAI;YACH,IAAI,YAAE,CAAC,QAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;gBACzD,MAAM;aACN;YACD,oCAAoC;SACpC;QAAC,OAAO,CAAC,EAAE,GAAE;QAEd,MAAM,MAAM,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,GAAG,KAAK,MAAM,EAAE;YACnB,GAAG,GAAG,SAAS,CAAC;YAChB,MAAM;SACN;QAED,GAAG,GAAG,MAAM,CAAC;KACb;IAED,IAAI,CAAC,GAAG,EAAE;QACT,OAAO,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;KAC3C;IAED,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,GAAG,EAAE;QACjC,OAAO,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;KAChD;IAED,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,G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,cAAI,CAAC,IAAI,CACf,kBAAkB,EAAE,EACpB,IAAA,2BAAmB,EAAC,WAAW,EAAE,UAAU,CAAC,CAC5C,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,UAAU,GAAG,CACzB,WAAwB,EACxB,UAAyB,EACxB,EAAE;;IACH,OAAO,CAAC,MAAA,YAAE,CAAC,QAAQ,CAAC,EAAE,mCAAI,YAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC3C,qBAAqB,CAAC,WAAW,EAAE,UAAU,CAAC,EAC9C;QACC,SAAS,EAAE,IAAI;KACf,CACD,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB;AAEK,MAAM,mBAAmB,GAAG,CAClC,WAAwB,EACxB,UAAyB,EACxB,EAAE;IACH,yDAAyD;IACzD,wEAAwE;IACxE,iCAAiC;IACjC,IAAI,WAAW,KAAK,aAAa,EAAE;QAClC,OAAO,YAAY,WAAW,IAAI,IAAA,iBAAM,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;KACvE;IAED,mEAAmE;IACnE,4EAA4E;IAC5E,OAAO,YAAY,WAAW,EAAE,CAAC;AAClC,CAAC,CAAC;AAdW,QAAA,mBAAmB,uBAc9B;AAEK,MAAM,WAAW,GAAG,CAC1B,WAAwB,EACxB,UAAyB,EACxB,EAAE;IACH,OAAO,YAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC;AALW,QAAA,WAAW,eAKtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.0.0-lambda.274+a3183304a",
3
+ "version": "3.0.0-lambda.295+27d414600",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/remotion-dev/remotion"
9
9
  },
10
10
  "scripts": {
11
- "test": "eslint src --ext ts,tsx",
11
+ "test": "eslint src --ext ts,tsx && jest",
12
12
  "build": "tsc -d",
13
13
  "watch": "tsc -w"
14
14
  },
@@ -29,7 +29,7 @@
29
29
  "memfs": "^3.4.0",
30
30
  "mime-types": "^2.1.34",
31
31
  "react-refresh": "^0.9.0-rc.2",
32
- "remotion": "3.0.0-lambda.274+a3183304a",
32
+ "remotion": "3.0.0-lambda.295+27d414600",
33
33
  "semver": "7.3.4",
34
34
  "source-map": "^0.5.7",
35
35
  "source-map-loader": "^3.0.0",
@@ -48,12 +48,14 @@
48
48
  "@types/semver": "^7.3.4",
49
49
  "@types/source-map": "0.5.2",
50
50
  "eslint": "^7.25.0",
51
+ "jest": "^27.2.4",
51
52
  "prettier": "^2.0.5",
52
53
  "prettier-plugin-organize-imports": "^1.1.1",
54
+ "ts-jest": "^27.0.5",
53
55
  "typescript": "^4.4.2"
54
56
  },
55
57
  "publishConfig": {
56
58
  "access": "public"
57
59
  },
58
- "gitHead": "a3183304a37b03504e6192bb9a05624da48a3bd0"
60
+ "gitHead": "27d414600609e5076fc3b6144a352389dcb22f83"
59
61
  }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=compatible.api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compatible.api.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=compatible.api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compatible.api.js","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=compatibleapi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compatibleapi.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=compatibleapi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compatibleapi.js","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- declare const querystring: any;
2
- declare const url: any;
3
- declare const SockJS: any;
4
- declare const formatWebpackMessages: any;
5
- declare const reportBuildError: any, dismissBuildError: any;
6
- declare let sockOptions: {
7
- sockHost?: string;
8
- sockPort?: string;
9
- sockPath?: string;
10
- };
11
- declare const connection: any;
12
- //# sourceMappingURL=entry-devserver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-devserver.d.ts","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,WAAW,KAAyB,CAAC;AAC3C,QAAA,MAAM,GAAG,KAAiB,CAAC;AAC3B,QAAA,MAAM,MAAM,KAA2B,CAAC;AACxC,QAAA,MAAM,qBAAqB,KAAmD,CAAC;AAC/E,QAAA,MAAO,gBAAgB,OAAE,iBAAiB,KAAkC,CAAC;AAE7E,QAAA,IAAI,WAAW,EAAE;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAKP,QAAA,MAAM,UAAU,KAOf,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // @ts-check
3
- const querystring = require('querystring');
4
- const url = require('url');
5
- const SockJS = require('sockjs-client');
6
- const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
7
- const { reportBuildError, dismissBuildError } = require('react-error-overlay');
8
- let sockOptions = {};
9
- if (typeof __resourceQuery === 'string' && __resourceQuery.length > 1) {
10
- sockOptions = querystring.parse(__resourceQuery.substr(1));
11
- }
12
- const connection = new SockJS(url.format({
13
- protocol: window.location.protocol,
14
- hostname: sockOptions.sockHost || window.location.hostname,
15
- port: sockOptions.sockPort || window.location.port,
16
- pathname: sockOptions.sockPath || '/sockjs-node',
17
- }));
18
- connection.onmessage = function (e) {
19
- const { type, data } = JSON.parse(e.data);
20
- let formatted;
21
- switch (type) {
22
- case 'ok':
23
- dismissBuildError();
24
- break;
25
- case 'errors':
26
- formatted = formatWebpackMessages({
27
- errors: data,
28
- warnings: [],
29
- });
30
- reportBuildError(formatted.errors[0]);
31
- break;
32
- default:
33
- // Do nothing.
34
- }
35
- };
36
- //# sourceMappingURL=entry-devserver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-devserver.js","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC/E,MAAM,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7E,IAAI,WAAW,GAIX,EAAE,CAAC;AACP,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;IACtE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,UAAU,GAAG,IAAI,MAAM,CAC5B,GAAG,CAAC,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAC1D,IAAI,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI;IAClD,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,cAAc;CAChD,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,UAAU,CAAiB;IACjD,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,CAAC;IACd,QAAQ,IAAI,EAAE;QACb,KAAK,IAAI;YACR,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACP,KAAK,QAAQ;YACZ,SAAS,GAAG,qBAAqB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,EAAE;aACZ,CAAC,CAAC;YACH,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import webpack from 'webpack';
2
- export declare class ErrorOverlayPlugin {
3
- apply(compiler: webpack.Compiler): void;
4
- }
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAc9B,qBAAa,kBAAkB;IAC9B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAsBhC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorOverlayPlugin = void 0;
4
- const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
5
- const chunkPathBasic = require.resolve('./entry-basic.js');
6
- const chunkPathDevServer = require.resolve('./entry-devserver.js');
7
- const deps = [];
8
- class ErrorOverlayPlugin {
9
- apply(compiler) {
10
- const className = this.constructor.name;
11
- if (compiler.options.mode !== 'development') {
12
- return;
13
- }
14
- if (!compiler.options.devServer) {
15
- return;
16
- }
17
- const devServerEnabled = Boolean(compiler.options.devServer);
18
- const usingSocket = devServerEnabled && typeof compiler.options.devServer.socket === 'string';
19
- const sockOptions = {};
20
- if (devServerEnabled && usingSocket) {
21
- sockOptions.sockHost = compiler.options.devServer.sockHost;
22
- sockOptions.sockPath = compiler.options.devServer.sockPath;
23
- sockOptions.sockPort = compiler.options.devServer.sockPort;
24
- }
25
- }
26
- }
27
- exports.ErrorOverlayPlugin = ErrorOverlayPlugin;
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":";;;AAGA,MAAM,sBAAsB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAEjF,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC3D,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACnE,MAAM,IAAI,GAAa,EAAE,CAAC;AAQ1B,MAAa,kBAAkB;IAC9B,KAAK,CAAC,QAA0B;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE;YAC5C,OAAO;SACP;QAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE;YAChC,OAAO;SACP;QAED,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,WAAW,GAChB,gBAAgB,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC;QAE3E,MAAM,WAAW,GAAgB,EAAE,CAAC;QACpC,IAAI,gBAAgB,IAAI,WAAW,EAAE;YACpC,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;SAC3D;IACF,CAAC;CACD;AAvBD,gDAuBC"}
@@ -1,47 +0,0 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- /** A container holding a script line. */
8
- declare class ScriptLine {
9
- /** The line number of this line of source. */
10
- lineNumber: number;
11
- /** The content (or value) of this line of source. */
12
- content: string;
13
- /** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
14
- highlight: boolean;
15
- constructor(lineNumber: number, content: string, highlight?: boolean);
16
- }
17
- /**
18
- * A representation of a stack frame.
19
- */
20
- export declare class StackFrame {
21
- functionName: string | null;
22
- fileName: string | null;
23
- lineNumber: number | null;
24
- columnNumber: number | null;
25
- _originalFunctionName: string | null;
26
- _originalFileName: string | null;
27
- _originalLineNumber: number | null;
28
- _originalColumnNumber: number | null;
29
- _scriptCode: ScriptLine[] | null;
30
- _originalScriptCode: ScriptLine[] | null;
31
- constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
32
- /**
33
- * Returns the name of this function.
34
- */
35
- getFunctionName(): string;
36
- /**
37
- * Returns the source of the frame.
38
- * This contains the file name, line number, and column number when available.
39
- */
40
- getSource(): string;
41
- /**
42
- * Returns a pretty version of this stack frame.
43
- */
44
- toString(): string;
45
- }
46
- export {};
47
- //# sourceMappingURL=stack-frame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-fr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;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.StackFrame = void 0;
10
- /* @flow */
11
- /** A container holding a script line. */
12
- class ScriptLine {
13
- constructor(lineNumber, content, highlight = false) {
14
- this.lineNumber = lineNumber;
15
- this.content = content;
16
- this.highlight = highlight;
17
- }
18
- }
19
- /**
20
- * A representation of a stack frame.
21
- */
22
- class StackFrame {
23
- // eslint-disable-next-line max-params
24
- constructor(functionName = null, fileName = null, lineNumber = null, columnNumber = null, scriptCode = null, sourceFunctionName = null, sourceFileName = null, sourceLineNumber = null, sourceColumnNumber = null, sourceScriptCode = null) {
25
- if (functionName && functionName.indexOf('Object.') === 0) {
26
- functionName = functionName.slice('Object.'.length);
27
- }
28
- if (
29
- // Chrome has a bug with inferring function.name:
30
- // https://github.com/facebook/create-react-app/issues/2097
31
- // Let's ignore a meaningless name we get for top-level modules.
32
- functionName === 'friendlySyntaxErrorLabel' ||
33
- functionName === 'exports.__esModule' ||
34
- functionName === '<anonymous>' ||
35
- !functionName) {
36
- functionName = null;
37
- }
38
- this.functionName = functionName;
39
- this.fileName = fileName;
40
- this.lineNumber = lineNumber;
41
- this.columnNumber = columnNumber;
42
- this._originalFunctionName = sourceFunctionName;
43
- this._originalFileName = sourceFileName;
44
- this._originalLineNumber = sourceLineNumber;
45
- this._originalColumnNumber = sourceColumnNumber;
46
- this._scriptCode = scriptCode;
47
- this._originalScriptCode = sourceScriptCode;
48
- }
49
- /**
50
- * Returns the name of this function.
51
- */
52
- getFunctionName() {
53
- return this.functionName || '(anonymous function)';
54
- }
55
- /**
56
- * Returns the source of the frame.
57
- * This contains the file name, line number, and column number when available.
58
- */
59
- getSource() {
60
- let str = '';
61
- if (this.fileName !== null) {
62
- str += this.fileName + ':';
63
- }
64
- if (this.lineNumber !== null) {
65
- str += this.lineNumber + ':';
66
- }
67
- if (this.columnNumber !== null) {
68
- str += this.columnNumber + ':';
69
- }
70
- return str.slice(0, -1);
71
- }
72
- /**
73
- * Returns a pretty version of this stack frame.
74
- */
75
- toString() {
76
- const functionName = this.getFunctionName();
77
- const source = this.getSource();
78
- return `${functionName}${source ? ` (${source})` : ``}`;
79
- }
80
- }
81
- exports.StackFrame = StackFrame;
82
- //# sourceMappingURL=stack-frame.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-frame.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,WAAW;AAEX,yCAAyC;AACzC,MAAM,UAAU;IAQf,YAAY,UAAkB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACjE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;CACD;AAED;;GAEG;AACH,MAAa,UAAU;IActB,sCAAsC;IACtC,YACC,eAA8B,IAAI,EAClC,WAA0B,IAAI,EAC9B,aAA4B,IAAI,EAChC,eAA8B,IAAI,EAClC,aAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,iBAAgC,IAAI,EACpC,mBAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,mBAAwC,IAAI;QAE5C,IAAI,YAAY,IAAI,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC1D,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACpD;QAED;QACC,iDAAiD;QACjD,2DAA2D;QAC3D,gEAAgE;QAChE,YAAY,KAAK,0BAA0B;YAC3C,YAAY,KAAK,oBAAoB;YACrC,YAAY,KAAK,aAAa;YAC9B,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AAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACzD,CAAC;CACD;AA9FD,gCA8FC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=setup-env-variables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const remotion_1 = require("remotion");
4
- remotion_1.Internals.setupEnvVariables();
5
- //# sourceMappingURL=setup-env-variables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-env-variables.js","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC"}