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

js-minify

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-minify - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

12

index.js

@@ -10,6 +10,8 @@ var gulp = require('gulp');

module.exports = function gulpJsMinify(config) {
var name = 'lab';
if(config.name) name = config.name;
if(config.production) var files = config.productionFiles;
else var files = config.files;
if (fs.existsSync(config.way + 'lab-min.js')) {
var data = fs.readFileSync(config.way + 'lab-min.js', 'utf8');
if (fs.existsSync(config.way + name + '-min.js')) {
var data = fs.readFileSync(config.way + name + '-min.js', 'utf8');
var lines = data.split("\n");

@@ -20,3 +22,3 @@ if (lines[lines.length - 1].indexOf(files.toString() + config.way + config.prefix) > -1) return;

.pipe(sourcemaps.init())
.pipe(concat('lab.js'))
.pipe(concat(name + '.js'))
.pipe(ngAnnotate())

@@ -29,4 +31,4 @@ .pipe(sourcemaps.write())

.pipe(gulpFn(function() {
fs.appendFile(config.way + 'lab-min.js', '\r\n/*' + files.toString() + config.way + config.prefix + '*/', function(err) {});
fs.appendFile(config.way + name + '-min.js', '\r\n/*' + files.toString() + config.way + config.prefix + '*/', function(err) {});
}));
};
};

@@ -52,3 +52,3 @@ {

"scripts": {},
"version": "0.1.6"
"version": "0.1.7"
}
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