Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/abort-controller/browser.mjs')
-rw-r--r--node_modules/abort-controller/browser.mjs11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/abort-controller/browser.mjs b/node_modules/abort-controller/browser.mjs
new file mode 100644
index 000000000..a8f321afe
--- /dev/null
+++ b/node_modules/abort-controller/browser.mjs
@@ -0,0 +1,11 @@
+/*globals self, window */
+
+/*eslint-disable @mysticatea/prettier */
+const { AbortController, AbortSignal } =
+ typeof self !== "undefined" ? self :
+ typeof window !== "undefined" ? window :
+ /* otherwise */ undefined
+/*eslint-enable @mysticatea/prettier */
+
+export default AbortController
+export { AbortController, AbortSignal }