Comparing version 1.0.0-y.107 to 1.0.0-y.108
@@ -1,3 +0,3 @@ | ||
export declare const deferRender: () => number; | ||
export declare const readyToRender: (handle: number) => void; | ||
export declare const delayRender: () => number; | ||
export declare const continueRender: (handle: number) => void; | ||
declare global { | ||
@@ -4,0 +4,0 @@ interface Window { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readyToRender = exports.deferRender = void 0; | ||
exports.continueRender = exports.delayRender = void 0; | ||
if (typeof window !== 'undefined') { | ||
@@ -8,3 +8,3 @@ window.ready = false; | ||
let handles = []; | ||
const deferRender = () => { | ||
const delayRender = () => { | ||
const handle = Math.random(); | ||
@@ -17,4 +17,4 @@ handles.push(handle); | ||
}; | ||
exports.deferRender = deferRender; | ||
const readyToRender = (handle) => { | ||
exports.delayRender = delayRender; | ||
const continueRender = (handle) => { | ||
handles = handles.filter((h) => h !== handle); | ||
@@ -25,3 +25,3 @@ if (handles.length === 0 && typeof window !== 'undefined') { | ||
}; | ||
exports.readyToRender = readyToRender; | ||
exports.continueRender = continueRender; | ||
//# sourceMappingURL=defer-ready.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.continueRender = exports.delayRender = void 0; | ||
const register_root_1 = require("./register-root"); | ||
if (typeof window !== 'undefined') { | ||
@@ -10,2 +11,6 @@ window.ready = false; | ||
const handle = Math.random(); | ||
if (register_root_1.getIsEvaluation()) { | ||
// Don't wait while statically determining the composition list | ||
return handle; | ||
} | ||
handles.push(handle); | ||
@@ -12,0 +17,0 @@ if (typeof window !== 'undefined') { |
{ | ||
"name": "remotion", | ||
"version": "1.0.0-y.107", | ||
"version": "1.0.0-y.108", | ||
"description": "Render videos in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
114442
145
1499
4