Review funkt
This commit is contained in:
13
node_modules/bullmq/dist/esm/classes/abort-controller.js
generated
vendored
Normal file
13
node_modules/bullmq/dist/esm/classes/abort-controller.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// Note: this Polyfill is only needed for Node versions < 15.4.0
|
||||
import { AbortController as AbortControllerPolyfill } from 'node-abort-controller';
|
||||
let AbortControllerImpl;
|
||||
// prefer native AbortController implementation if found
|
||||
if (globalThis.AbortController) {
|
||||
AbortControllerImpl =
|
||||
globalThis.AbortController;
|
||||
}
|
||||
else {
|
||||
AbortControllerImpl = AbortControllerPolyfill;
|
||||
}
|
||||
export class AbortController extends AbortControllerImpl {
|
||||
}
|
||||
Reference in New Issue
Block a user