Skip to content

Commit

Permalink
feat(core): proxy local dns feature
Browse files Browse the repository at this point in the history
fix(core): remove awaited-dom no-default-lib directive
  • Loading branch information
blakebyrnes committed Feb 22, 2023
1 parent 338f0aa commit bd6f7dc
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"./lib/internal": "./lib/internal.js"
},
"dependencies": {
"@ulixee/awaited-dom": "1.4.1",
"@ulixee/awaited-dom": "1.4.2",
"@ulixee/commons": "2.0.0-alpha.18",
"@ulixee/hero-interfaces": "2.0.0-alpha.18",
"@ulixee/hero-plugin-utils": "2.0.0-alpha.18",
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"./connections/*": "./connections/*.js"
},
"dependencies": {
"@ulixee/awaited-dom": "1.4.1",
"@ulixee/awaited-dom": "1.4.2",
"@ulixee/commons": "2.0.0-alpha.18",
"@ulixee/default-browser-emulator": "2.0.0-alpha.18",
"@ulixee/default-human-emulator": "2.0.0-alpha.18",
Expand Down
2 changes: 2 additions & 0 deletions docs/basic-client/hero.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const Hero = require('@ulixee/hero-playground');
- showChromeAlive `boolean`. A boolean whether to show the ChromeAlive! toolbar (if installed in devDependencies, or using Ulixee.app). Default `false`.
- userProfile `IUserProfile`. A json object matching the format created by [hero.exportUserProfile()](#export-profile). This property allows restoring user storage and cookies from a previous session.
- upstreamProxyUrl `string`. A socks5 or http proxy url (and optional auth) to use for all HTTP requests in this session. The optional "auth" should be included in the UserInfo section of the url, eg: `http://username:password@proxy.com:80`.
- upstreamProxyUseSystemDns `boolean`. A variable to indicate DNS should be resolved on the host machine. By default, if a proxy is used, hosts will be resolved by the remote proxy.
- upstreamProxyIpMask `object`. Optional settings to mask the Public IP Address of a host machine when using a proxy. This is used by the default BrowserEmulator to mask WebRTC IPs.
- ipLookupService `string`. The URL of an http based IpLookupService. A list of common options can be found in the [Unblocked Plugin](https://github.com/ulixee/unblocked/blob/46e1894b5089660d62ac71c18d601e7c47795447/plugins/default-browser-emulator/lib/helpers/lookupPublicIp.ts#L81).
- proxyIp `string`. The optional IP address of your proxy, if known ahead of time.
Expand Down Expand Up @@ -191,6 +192,7 @@ Retrieves metadata about the hero configuration:
- blockedResourceTypes `BlockedResourceType[]`. The blocked resource types.
- blockedResourceUrls `(string | RegExp)[]`. The blocked urls.
- upstreamProxyUrl `string`. The proxy url in use for this hero.
- upstreamProxyUseSystemDns `boolean`. A variable to indicate DNS should be resolved on the host machine.
- upstreamProxyIpMask `object`. The proxy IP mask settings for this hero.
- ipLookupService `string`. Lookup service used to find public IP.
- proxyIp `string`. The public IP address of the proxy.
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/core-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ This hook is called during the initialization of a session/browserEmulator.
- timezoneId `string`. The configured unicode TimezoneId or host default (eg, America/New_York).
- locale `string`. The configured locale in use (eg, en-US).
- upstreamProxyUrl `string`. A socks5 or http proxy url (and optional auth) to use for all HTTP requests in this session. See Hero constructor for details.
- upstreamProxyUseSystemDns `boolean`. A variable to indicate DNS should be resolved on the host machine. By default, if a proxy is used, hosts will be resolved by the remote proxy.
- upstreamProxyIpMask `object`. Optional settings to mask the Public IP Address of a host machine when using a proxy. See Hero constructor for details.
- dnsOverTlsProvider `object`. Configure the host and port to use for DNS over TLS. See Hero constructor for details.
Expand Down
2 changes: 1 addition & 1 deletion end-to-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@ulixee/net": "2.0.0-alpha.18"
},
"devDependencies": {
"@ulixee/awaited-dom": "1.4.1",
"@ulixee/awaited-dom": "1.4.2",
"@ulixee/default-browser-emulator": "2.0.0-alpha.18",
"@ulixee/default-human-emulator": "2.0.0-alpha.18",
"@ulixee/hero-plugin-utils": "2.0.0-alpha.18",
Expand Down
1 change: 1 addition & 0 deletions interfaces/IConfigureSessionOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default interface IConfigureSessionOptions
| 'timezoneId'
| 'locale'
| 'upstreamProxyUrl'
| 'upstreamProxyUseLocalDns'
| 'blockedResourceTypes'
| 'blockedResourceUrls'
> {}
2 changes: 1 addition & 1 deletion interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-alpha.18",
"description": "Core interfaces used by Hero",
"dependencies": {
"@ulixee/awaited-dom": "1.4.1",
"@ulixee/awaited-dom": "1.4.2",
"@ulixee/commons": "2.0.0-alpha.18",
"@ulixee/js-path": "2.0.0-alpha.18",
"@ulixee/unblocked-specification": "2.0.0-alpha.18",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/jest": "^28.1.0",
"@types/node": "^14.18.18",
"@ulixee/repo-tools": "^1.0.22",
"@ulixee/awaited-dom": "1.4.1",
"@ulixee/awaited-dom": "1.4.2",
"cross-env": "^7.0.3",
"decamelize": "^4.0.0",
"husky": "^7.0.1",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2047,12 +2047,12 @@
"@typescript-eslint/types" "5.39.0"
eslint-visitor-keys "^3.3.0"

"@ulixee/awaited-dom@1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@ulixee/awaited-dom/-/awaited-dom-1.4.1.tgz#faa43fcc25710caa0bb7558f106768c60ba3622a"
integrity sha512-lj5TqBm4thn6+8PcMesgWwPUP9HRf8jKO3+Pc3cst7nDqKKedfBnDvUhDS9outiI1U5dmFvxoYmiNwL1Pi3oXg==
"@ulixee/awaited-dom@1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@ulixee/awaited-dom/-/awaited-dom-1.4.2.tgz#9630a497fa20c7e1c6b0ddee4b527be6a7da3923"
integrity sha512-o32b+rBzB+6qPVzLK7wB0+TcPJ0BqM81zGmZ+dCCxDMGHo030ip0bW7TBf212YvCIEFDWJNIhrLTZ8SYZd1Dkw==
dependencies:
"@ulixee/js-path" "^2.0.0-alpha.13"
"@ulixee/js-path" "^2.0.0-alpha.18"

"@ulixee/chrome-108-0@^5359.125.6":
version "5359.125.7"
Expand Down

0 comments on commit bd6f7dc

Please sign in to comment.