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

hrt

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hrt - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

2

package.json
{
"name": "hrt",
"version": "1.0.23",
"version": "1.0.24",
"description": "HTTP Rewrite Tool",

@@ -5,0 +5,0 @@ "author": "Longhao Luo <lhluo@tudou.com>",

var Fs = require('fs');
var Fs = require('fs');
var Path = require('path');

@@ -35,3 +34,3 @@ var Util = require('../util');

var root = path.replace(/^(.*?)[\\\/](src|build|dist)[\\\/].*$/, '$1');
var relativePath = path.split(Path.sep).join('/').replace(/^.+\/src\//, '');
var relativePath = path.split(Path.sep).join('/').replace(/^.+\/src\/js\//, '');
var mid = relativePath.replace(/\.js$/, '');

@@ -139,3 +138,3 @@

dumpLineNumbers : 'comments',
paths : ['.', root + '/src'],
paths : ['.', root + '/src/css'],
filename : path,

@@ -153,3 +152,3 @@ });

if (!/src\/(lib|lite|loader)\.js$/.test(newPath) && /src\/.+\.js$/.test(newPath)) {
if (!/src\/js\/(lib|lite|loader)\.js$/.test(newPath) && /src\/js\/.+\.js$/.test(newPath)) {
var str = Util.readFileSync(path, 'utf-8');

@@ -156,0 +155,0 @@ str = fixModule(path, str);

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