@remotion/serverless 4.0.245 → 4.0.246
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-make.log +1 -1
- package/dist/best-frames-per-function-param.js +5 -5
- package/dist/client.d.ts +9 -0
- package/dist/client.js +30 -12
- package/dist/compress-props.d.ts +6 -2
- package/dist/compress-props.js +5 -3
- package/dist/concat-videos.d.ts +3 -4
- package/dist/concat-videos.js +2 -2
- package/dist/constants.d.ts +39 -3
- package/dist/constants.js +8 -1
- package/dist/create-post-render-data.d.ts +1 -1
- package/dist/create-post-render-data.js +2 -2
- package/dist/estimate-price-from-bucket.d.ts +2 -2
- package/dist/estimate-price-from-bucket.js +4 -4
- package/dist/expected-out-name.d.ts +1 -1
- package/dist/get-browser-instance.d.ts +5 -12
- package/dist/get-browser-instance.js +8 -7
- package/dist/get-custom-out-name.d.ts +1 -1
- package/dist/get-or-create-bucket.d.ts +1 -1
- package/dist/handlers/check-version-mismatch.d.ts +8 -0
- package/dist/handlers/check-version-mismatch.js +23 -0
- package/dist/handlers/compositions.d.ts +7 -2
- package/dist/handlers/compositions.js +25 -25
- package/dist/handlers/launch.d.ts +3 -2
- package/dist/handlers/launch.js +30 -31
- package/dist/handlers/progress.d.ts +6 -2
- package/dist/handlers/progress.js +23 -20
- package/dist/handlers/renderer.d.ts +3 -2
- package/dist/handlers/renderer.js +13 -11
- package/dist/handlers/start.d.ts +7 -2
- package/dist/handlers/start.js +10 -11
- package/dist/handlers/still.d.ts +2 -1
- package/dist/handlers/still.js +68 -67
- package/dist/index.d.ts +21 -5
- package/dist/index.js +54 -7
- package/dist/info.d.ts +1 -1
- package/dist/inner-routine.d.ts +22 -0
- package/dist/inner-routine.js +267 -0
- package/dist/inspect-error.d.ts +2 -2
- package/dist/invoke-webhook.d.ts +14 -11
- package/dist/invoke-webhook.js +1 -1
- package/dist/is-warm.d.ts +2 -0
- package/dist/is-warm.js +10 -0
- package/dist/make-bucket-name.d.ts +1 -1
- package/dist/make-timeout-error.d.ts +1 -1
- package/dist/make-timeout-message.js +3 -2
- package/dist/merge-chunks.d.ts +2 -1
- package/dist/merge-chunks.js +3 -3
- package/dist/most-expensive-chunks.d.ts +2 -2
- package/dist/most-expensive-chunks.js +1 -1
- package/dist/overall-render-progress.d.ts +3 -3
- package/dist/plan-frame-ranges.d.ts +2 -2
- package/dist/plan-frame-ranges.js +4 -4
- package/dist/print-logging-grep-helper.d.ts +4 -0
- package/dist/print-logging-grep-helper.js +12 -0
- package/dist/progress.js +2 -2
- package/dist/provider-implementation.d.ts +152 -3
- package/dist/render-metadata.d.ts +1 -1
- package/dist/render-progress.d.ts +1 -1
- package/dist/streaming/streaming.d.ts +6 -6
- package/dist/streaming/streaming.js +3 -3
- package/dist/types.d.ts +3 -2
- package/dist/validate-composition.d.ts +1 -1
- package/dist/validate-composition.js +11 -1
- package/dist/validate-frames-per-function.d.ts +2 -2
- package/dist/validate-frames-per-function.js +13 -13
- package/dist/{write-lambda-error.d.ts → write-error-to-storage.d.ts} +4 -4
- package/package.json +6 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-formatting.log +0 -7
- package/.turbo/turbo-lint.log +0 -11
- package/dist/compositions.d.ts +0 -11
- package/dist/compositions.js +0 -82
- package/dist/still.d.ts +0 -28
- package/dist/still.js +0 -2
- package/dist/validate-frames-per-lambda.d.ts +0 -4
- package/dist/validate-frames-per-lambda.js +0 -29
- /package/dist/{write-lambda-error.js → write-error-to-storage.js} +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFramesPerFunction = void 0;
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
|
-
const validateFramesPerFunction = ({ framesPerLambda, durationInFrames, }) => {
|
|
6
|
-
if (framesPerLambda === null) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (framesPerLambda === undefined) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
if (typeof framesPerLambda !== 'number') {
|
|
13
|
-
throw new TypeError(`'framesPerLambda' needs to be a number, passed ${JSON.stringify(framesPerLambda)}`);
|
|
14
|
-
}
|
|
15
|
-
if (!Number.isFinite(framesPerLambda)) {
|
|
16
|
-
throw new TypeError(`'framesPerLambda' needs to be finite, passed ${framesPerLambda}`);
|
|
17
|
-
}
|
|
18
|
-
if (Number.isNaN(framesPerLambda)) {
|
|
19
|
-
throw new TypeError(`'framesPerLambda' needs to be NaN, passed ${framesPerLambda}`);
|
|
20
|
-
}
|
|
21
|
-
if (framesPerLambda % 1 !== 0) {
|
|
22
|
-
throw new TypeError(`'framesPerLambda' needs to be an integer, passed ${framesPerLambda}`);
|
|
23
|
-
}
|
|
24
|
-
const effectiveMinimum = Math.min(constants_1.MINIMUM_FRAMES_PER_LAMBDA, durationInFrames);
|
|
25
|
-
if (framesPerLambda < effectiveMinimum) {
|
|
26
|
-
throw new TypeError(`The framesPerLambda needs to be at least ${effectiveMinimum}, but is ${framesPerLambda}`);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.validateFramesPerFunction = validateFramesPerFunction;
|
|
File without changes
|