-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
resolve()
being inadventently added as a global function
- Loading branch information
1 parent
06bdc88
commit 275602f
Showing
3 changed files
with
17 additions
and
10 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,5 @@ | ||
--- | ||
'nxjs-runtime': patch | ||
--- | ||
|
||
Fix `resolve()` being inadventently added as a global function |
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 |
---|---|---|
@@ -1,15 +1,6 @@ | ||
import { $ } from './$'; | ||
import { toPromise } from './utils'; | ||
|
||
/** | ||
* Performs a DNS lookup to resolve a hostname to an array of IP addresses. | ||
* | ||
* @example | ||
* | ||
* ```typescript | ||
* const ipAddresses = await Switch.resolveDns('example.com'); | ||
* ``` | ||
*/ | ||
export function resolve(hostname: string) { | ||
return toPromise($.dnsResolve, hostname); | ||
} |
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