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

grunt-connect-proxy

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-connect-proxy - npm Package Compare versions

Comparing version 0.1.8 to 0.1.10

11

lib/utils.js
'use strict';
var utils = module.exports;
var httpProxy = require('http-proxy');
var grunt = require('grunt');
var _ = require('lodash');

@@ -49,5 +50,5 @@ var proxies = [];

rules.push(rule);
utils.log.writeln('Rewrite rule created for: [' + rule.from + ' -> ' + rule.to + '].');
grunt.log.writeln('Rewrite rule created for: [' + rule.from + ' -> ' + rule.to + '].');
} else {
utils.log.error('Invalid rule');
grunt.log.error('Invalid rule');
}

@@ -93,3 +94,3 @@ });

var target = (proxy.server.target.https ? 'wss://' : 'ws://') + proxy.server.target.host + ':' + proxy.server.target.port + req.url;
utils.log.verbose.writeln('[WS] Proxied request: ' + source + ' -> ' + target + '\n' + JSON.stringify(req.headers, true, 2));
grunt.log.verbose.writeln('[WS] Proxied request: ' + source + ' -> ' + target + '\n' + JSON.stringify(req.headers, true, 2));
}

@@ -103,3 +104,3 @@ });

server.proxyWs = true;
utils.log.verbose.writeln('[WS] Catching upgrade event...');
grunt.log.verbose.writeln('[WS] Catching upgrade event...');
server.on('upgrade', onUpgrade);

@@ -131,3 +132,3 @@ }

var target = (proxy.server.target.https ? 'https://' : 'http://') + proxy.server.target.host + ':' + proxy.server.target.port + req.url;
utils.log.verbose.writeln('Proxied request: ' + source + ' -> ' + target + '\n' + JSON.stringify(req.headers, true, 2));
grunt.log.verbose.writeln('Proxied request: ' + source + ' -> ' + target + '\n' + JSON.stringify(req.headers, true, 2));
}

@@ -134,0 +135,0 @@ });

{
"name": "grunt-connect-proxy",
"description": "Provides a http proxy as middleware for grunt connect.",
"version": "0.1.8",
"version": "0.1.10",
"homepage": "https://github.com/drewzboto/grunt-connect-proxy",

@@ -6,0 +6,0 @@ "author": {

@@ -278,1 +278,2 @@ # grunt-connect-proxy

* 0.1.8 Minor websocket bug fix
* 0.1.10 Minor bug fix
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