Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid Identifier 'global' has already been declared #30

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
const fetch = require('node-fetch')
const merge = require('merge-options')
const { URL, URLSearchParams } = require('iso-url')
const global = require('./globalthis')
const TextDecoder = require('./text-encoder')
const Request = global.Request
const Request = require('./globalthis').Request
const AbortController = require('abort-controller')

class TimeoutError extends Error {
Expand Down
4 changes: 1 addition & 3 deletions src/text-encoder.browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const global = require('./globalthis')

module.exports = global.TextDecoder
module.exports = require('./globalthis').TextDecoder