remotion 4.0.0-prefetch.10 → 4.0.0-prefetch.13
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/.turbo/turbo-build.log +5 -5
- package/dist/get-environment.js +2 -2
- package/dist/preload.js +6 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[32mremotion:build: [0mcache hit, replaying output [2m18c502d5fd704f72[0m
|
|
2
|
+
[32mremotion:build: [0m
|
|
3
|
+
[32mremotion:build: [0m> remotion@3.2.16 build /Users/jonathanburger/remotion/packages/core
|
|
4
|
+
[32mremotion:build: [0m> tsc -d
|
|
5
|
+
[32mremotion:build: [0m
|
package/dist/get-environment.js
CHANGED
|
@@ -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
|
@@ -25,10 +25,10 @@ const fetchAndPreload = (src) => {
|
|
|
25
25
|
resolve = res;
|
|
26
26
|
reject = rej;
|
|
27
27
|
});
|
|
28
|
-
const
|
|
28
|
+
const controller = new AbortController();
|
|
29
29
|
let canBeAborted = true;
|
|
30
30
|
fetch(src, {
|
|
31
|
-
signal,
|
|
31
|
+
signal: controller.signal,
|
|
32
32
|
})
|
|
33
33
|
.then((res) => {
|
|
34
34
|
canBeAborted = false;
|
|
@@ -71,7 +71,10 @@ const fetchAndPreload = (src) => {
|
|
|
71
71
|
else {
|
|
72
72
|
canceled = true;
|
|
73
73
|
if (canBeAborted) {
|
|
74
|
-
|
|
74
|
+
try {
|
|
75
|
+
controller.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.
|
|
1
|
+
export declare const VERSION = "4.0.0-prefetch.13+bcc92c277";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "4.0.0-prefetch.
|
|
3
|
+
"version": "4.0.0-prefetch.13+bcc92c277",
|
|
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": "
|
|
57
|
+
"gitHead": "bcc92c27759081edb5d94fc3186358dbb2c8dcf8"
|
|
58
58
|
}
|