Socket
Socket
Sign inDemoInstall

popsicle-proxy-agent

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

2

dist/index.d.ts
import { Request } from 'popsicle';
declare function proxy(options?: proxy.Options): (request: Request) => void;
declare function proxy(options?: proxy.Options): (request: Request, next: () => any) => any;
declare namespace proxy {

@@ -4,0 +4,0 @@ interface Options {

@@ -0,1 +1,2 @@

"use strict";
var url_1 = require('url');

@@ -7,4 +8,5 @@ var HttpProxyAgent = require('http-proxy-agent');

var getProxyAgent = createGetProxyAgent(options);
return function (request) {
return function (request, next) {
request.options.agent = getProxyAgent(request.Url);
return next();
};

@@ -11,0 +13,0 @@ }

@@ -0,1 +1,2 @@

"use strict";
var popsicle_1 = require('popsicle');

@@ -2,0 +3,0 @@ var url_1 = require('url');

{
"name": "popsicle-proxy-agent",
"version": "1.0.0",
"version": "2.0.0",
"description": "Enable proxy support for Popsicle (for node)",

@@ -41,13 +41,13 @@ "main": "dist/index.js",

"devDependencies": {
"blue-tape": "^0.1.10",
"blue-tape": "^0.2.0",
"bluebird": "^3.2.1",
"istanbul": "1.0.0-alpha.2",
"nock": "^7.0.2",
"popsicle": "^3.0.3",
"pre-commit": "^1.0.6",
"nock": "^8.0.0",
"popsicle": "^6.0.0",
"server-address": "^1.0.4",
"tap-spec": "^4.1.1",
"ts-node": "^0.5.0",
"ts-node": "^0.7.2",
"tslint": "^3.1.1",
"typescript": "^1.7.3",
"typings": "^0.3.1"
"typings": "^0.8.1"
},

@@ -54,0 +54,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc