remotion 4.0.0-prefetch.10 → 4.0.0-prefetch.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- remotion:build: cache hit, replaying output a583398c93291d66
1
+ remotion:build: cache hit, replaying output 0af0606516a25196
2
2
  remotion:build: 
3
3
  remotion:build: > remotion@3.2.16 build /Users/jonathanburger/remotion/packages/core
4
4
  remotion:build: > tsc -d
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRemotionEnvironment = void 0;
4
4
  const getRemotionEnvironment = () => {
5
- if (process.env.NODE_ENV === 'production') {
5
+ if (typeof process !== 'undefined' && process.env.NODE_ENV === 'production') {
6
6
  if (typeof window !== 'undefined' && window.remotion_isPlayer) {
7
7
  return 'player-production';
8
8
  }
@@ -11,7 +11,7 @@ const getRemotionEnvironment = () => {
11
11
  // The Jest framework sets NODE_ENV as test.
12
12
  // Right now we don't need to treat it in a special
13
13
  // way which is good - defaulting to `rendering`.
14
- if (process.env.NODE_ENV === 'test') {
14
+ if (typeof process !== 'undefined' && process.env.NODE_ENV === 'test') {
15
15
  return 'rendering';
16
16
  }
17
17
  if (typeof window !== 'undefined' && window.remotion_isPlayer) {
package/dist/preload.js CHANGED
@@ -71,7 +71,10 @@ const fetchAndPreload = (src) => {
71
71
  else {
72
72
  canceled = true;
73
73
  if (canBeAborted) {
74
- abort();
74
+ try {
75
+ abort();
76
+ }
77
+ catch (e) { }
75
78
  }
76
79
  }
77
80
  },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.0-prefetch.10+cf59c29c7";
1
+ export declare const VERSION = "4.0.0-prefetch.11+edeed0968";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.0-prefetch.10+cf59c29c7';
5
+ exports.VERSION = '4.0.0-prefetch.11+edeed0968';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.0-prefetch.10+cf59c29c7",
3
+ "version": "4.0.0-prefetch.11+edeed0968",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "cf59c29c7b500377b7157afb761754159156d25f"
57
+ "gitHead": "edeed0968f80a7678bd7c3bdf90fa8b9466f9059"
58
58
  }