-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
669fc65
commit f9860e0
Showing
13 changed files
with
1,623 additions
and
1,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"prettier.configPath": ".prettierrc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** Detect free variable `global` from Node.js. */ | ||
const freeGlobal = | ||
typeof global === 'object' && global !== null && global.Object === Object && global | ||
|
||
export default freeGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* global globalThis, self */ | ||
import freeGlobal from './freeGlobal' | ||
|
||
/** Detect free variable `globalThis` */ | ||
const freeGlobalThis = | ||
typeof globalThis === 'object' && | ||
globalThis !== null && | ||
globalThis.Object === Object && | ||
globalThis | ||
|
||
/** Detect free variable `self`. */ | ||
const freeSelf = typeof self === 'object' && self !== null && self.Object === Object && self | ||
|
||
/** Used as a reference to the global object. */ | ||
const root = freeGlobalThis || freeGlobal || freeSelf || Function('return this')() | ||
|
||
export default root |
Oops, something went wrong.