Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "hrt", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "HTTP Rewrite Tool", | ||
@@ -28,3 +28,4 @@ "author": "Longhao Luo <lhluo@tudou.com>", | ||
"less": "~1.4.0-b2", | ||
"http-proxy": "~1.11.1" | ||
"http-proxy": "~1.11.1", | ||
"react-tools": "~0.13.3" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
@@ -7,2 +7,3 @@ var Fs = require('fs'); | ||
var Iconv = require('iconv-lite'); | ||
var ReactTools = require('react-tools'); | ||
@@ -155,2 +156,6 @@ var RE_AUTOFIXNAME = /define\((?=[^'"])/; | ||
str = replaceTemplate(path, str); | ||
if (str.indexOf('use strict') > 0) { | ||
str = ReactTools.transform(str, { harmony: true }); | ||
// console.log(ReactTools.transform(str)); | ||
} | ||
return callback('application/javascript', str); | ||
@@ -157,0 +162,0 @@ }else{ |
28154
709
9
+ Addedreact-tools@~0.13.3
+ Addedacorn@5.7.4(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@0.1.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@13001.1001.0-dev-harmony-fb(transitive)
+ Addedglob@5.0.15(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjstransform@10.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact-tools@0.13.3(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.1.310.5.7(transitive)
+ Addedwrappy@1.0.2(transitive)