pac-resolver
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -12,3 +12,3 @@ /// <reference types="node" /> | ||
*/ | ||
declare function createPacResolver(_str: string | Buffer, opts?: createPacResolver.PacResolverOptions): { | ||
declare function createPacResolver(_str: string | Buffer, _opts?: createPacResolver.PacResolverOptions): { | ||
(url: string, host?: string | undefined): Promise<string>; | ||
@@ -29,4 +29,5 @@ (url: string, callback: createPacResolver.FindProxyForURLCallback): void; | ||
} | ||
type FindProxyForURL = ReturnType<typeof createPacResolver>; | ||
const sandbox: Readonly<Context>; | ||
} | ||
export = createPacResolver; |
@@ -30,4 +30,5 @@ "use strict"; | ||
*/ | ||
function createPacResolver(_str, opts = {}) { | ||
function createPacResolver(_str, _opts = {}) { | ||
const str = Buffer.isBuffer(_str) ? _str.toString('utf8') : _str; | ||
const opts = Object.assign({}, _opts); | ||
// The sandbox to use for the `vm` context. | ||
@@ -34,0 +35,0 @@ opts.sandbox = Object.assign(Object.assign({}, createPacResolver.sandbox), opts.sandbox); |
{ | ||
"name": "pac-resolver", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Generates an asynchronous resolver function from a PAC file", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52895
1074
3