Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pac-resolver

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pac-resolver - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

3

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc