decord/source/970_vercelWaitUntil.js

26 lines
676 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 970
2026-07-23 10:11:24 +00:00
// Function ID: 10464
2026-07-20 16:05:17 +00:00
// Name: vercelWaitUntil
2026-07-23 10:11:24 +00:00
// Dependencies: [798]
2026-07-20 16:05:17 +00:00
// Module 970 (vercelWaitUntil)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.vercelWaitUntil = function vercelWaitUntil(arg0) {
if ("string" === typeof globalThis.EdgeRuntime) {
const _Symbol = Symbol;
2026-07-23 10:11:24 +00:00
const obj = require(798).GLOBAL_OBJ[Symbol.for(Symbol, "@vercel/request-context")];
2026-07-20 16:05:17 +00:00
let value;
if (null != obj) {
if (null != obj.get) {
value = obj.get();
}
}
if (tmp2) {
value.waitUntil(arg0);
}
2026-07-23 10:11:24 +00:00
tmp2 = null != value && value.waitUntil;
2026-07-20 16:05:17 +00:00
}
};