grunt-connect-proxy
Advanced tools
Comparing version 0.1.8 to 0.1.10
'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 |
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
40344
824
279