@sebastianwessel/quickjs
Version:
A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox
11 lines (10 loc) • 376 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMaxIntervalAmount = void 0;
const getMaxIntervalAmount = (runtimeOptions) => {
if (!runtimeOptions.maxIntervalCount || runtimeOptions.maxIntervalCount <= 0) {
return 10;
}
return runtimeOptions.maxIntervalCount;
};
exports.getMaxIntervalAmount = getMaxIntervalAmount;