remotion 4.0.183 → 4.0.185

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.
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cancelRender = void 0;
4
4
  const isErrorLike = (err) => {
5
+ if (err instanceof Error) {
6
+ return true;
7
+ }
5
8
  if (err === null) {
6
9
  return false;
7
10
  }
@@ -34,6 +37,9 @@ function cancelRender(err) {
34
37
  let error;
35
38
  if (isErrorLike(err)) {
36
39
  error = err;
40
+ if (!error.stack) {
41
+ error.stack = new Error(error.message).stack;
42
+ }
37
43
  }
38
44
  else if (typeof err === 'string') {
39
45
  error = Error(err);
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.183";
6
+ export declare const VERSION = "4.0.185";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.183';
10
+ exports.VERSION = '4.0.185';
@@ -138,7 +138,7 @@ function truthy(value) {
138
138
  }
139
139
 
140
140
  // src/version.ts
141
- var VERSION = "4.0.183";
141
+ var VERSION = "4.0.185";
142
142
 
143
143
  // src/multiple-versions-warning.ts
144
144
  var checkMultipleRemotionVersions = () => {
@@ -1714,6 +1714,9 @@ function cancelRender(err) {
1714
1714
  let error;
1715
1715
  if (isErrorLike(err)) {
1716
1716
  error = err;
1717
+ if (!error.stack) {
1718
+ error.stack = new Error(error.message).stack;
1719
+ }
1717
1720
  } else if (typeof err === "string") {
1718
1721
  error = Error(err);
1719
1722
  } else {
@@ -1723,6 +1726,9 @@ function cancelRender(err) {
1723
1726
  throw error;
1724
1727
  }
1725
1728
  var isErrorLike = (err) => {
1729
+ if (err instanceof Error) {
1730
+ return true;
1731
+ }
1726
1732
  if (err === null) {
1727
1733
  return false;
1728
1734
  }
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.183";
2
+ var VERSION = "4.0.185";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
4
4
  },
5
5
  "name": "remotion",
6
- "version": "4.0.183",
6
+ "version": "4.0.185",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",