remotion 4.0.48 → 4.0.50
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/LICENSE.md +7 -3
- package/dist/cjs/get-environment.d.ts +3 -0
- package/dist/cjs/get-environment.js +34 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
|
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright © 2023 [Remotion](https://www.remotion.dev
|
|
10
|
+
Copyright © 2023 [Remotion](https://www.remotion.dev)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
@@ -36,6 +36,10 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
|
39
|
-
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
|
|
39
|
+
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](https://www.remotion.dev/docs/support)).
|
|
40
40
|
|
|
41
|
-
Visit [remotion.pro](https://www.remotion.pro) for pricing and to buy a license.
|
|
41
|
+
Visit [remotion.pro](https://www.remotion.pro/license) for pricing and to buy a license.
|
|
42
|
+
|
|
43
|
+
### FAQs
|
|
44
|
+
|
|
45
|
+
Are you not sure whether you need a company license because of an edge case? Here are some [frequently asked questions](https://www.remotion.pro/faq).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
|
|
4
|
+
const is_player_js_1 = require("./is-player.js");
|
|
5
|
+
const getRemotionEnvironment = () => {
|
|
6
|
+
if (process.env.NODE_ENV === 'production') {
|
|
7
|
+
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
8
|
+
return 'player-production';
|
|
9
|
+
}
|
|
10
|
+
return 'rendering';
|
|
11
|
+
}
|
|
12
|
+
// The Vitest framework sets NODE_ENV as test.
|
|
13
|
+
// Right now we don't need to treat it in a special
|
|
14
|
+
// way which is good - defaulting to `rendering`.
|
|
15
|
+
if (process.env.NODE_ENV === 'test') {
|
|
16
|
+
return 'rendering';
|
|
17
|
+
}
|
|
18
|
+
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
19
|
+
return 'player-development';
|
|
20
|
+
}
|
|
21
|
+
return 'preview';
|
|
22
|
+
};
|
|
23
|
+
exports.getRemotionEnvironment = getRemotionEnvironment;
|
|
24
|
+
const useRemotionEnvironment = () => {
|
|
25
|
+
const isPlayer = (0, is_player_js_1.useIsPlayer)();
|
|
26
|
+
if (isPlayer) {
|
|
27
|
+
if (process.env.NODE_ENV === 'production') {
|
|
28
|
+
return 'player-production';
|
|
29
|
+
}
|
|
30
|
+
return 'player-development';
|
|
31
|
+
}
|
|
32
|
+
return (0, exports.getRemotionEnvironment)();
|
|
33
|
+
};
|
|
34
|
+
exports.useRemotionEnvironment = useRemotionEnvironment;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.50";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/version.mjs
CHANGED