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

google-closure-compiler

Package Overview
Dependencies
Maintainers
4
Versions
1963
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-closure-compiler - npm Package Compare versions

Comparing version 20161024.1.0 to 20161024.2.0

lib/grunt/vinyl-stream.js

8

lib/grunt/index.js

@@ -30,4 +30,4 @@ /*

module.exports = function(grunt, extraArguments) {
var chalk = require('gulp-util').colors;
var vinylfs = require('vinyl-fs');
var chalk = require('chalk');
var VinylStream = require('./vinyl-stream');
var fs = require('fs');

@@ -75,4 +75,4 @@ var path = require('path');

// the compiler task
stream = vinylfs.src(files, {base: process.cwd()})
.pipe(gulpCompiler(options, gulpCompilerOptions))
stream = new VinylStream(files, {base: process.cwd()})
.pipe(gulpCompiler(options, gulpCompilerOptions));
} else {

@@ -79,0 +79,0 @@ // No source files were provided. Assume the options specify

@@ -31,3 +31,2 @@ /*

/**

@@ -41,4 +40,2 @@ * @param {Object<string,string>} initOptions

var Compiler = require('../node/closure-compiler');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var stream = require('stream');

@@ -51,4 +48,30 @@ /** @const */

var path = require('path');
var chalk = require('chalk');
var File = require('vinyl');
/** @constructor */
function CustomError(plugin, msg) {
var superError = Error.call(this) || this;
Error.captureStackTrace(superError, this.constructor);
superError.name = 'Error';
superError.message = msg;
return superError;
}
CustomError.prototype = Object.create(Error.prototype);
CustomError.prototype.name = 'Error';
var PluginError;
try {
PluginError = require('gulp-util').PluginError;
} catch(e) {
PluginError = CustomError;
}
var gulpLog;
try {
gulpLog = require('gulp-util').log;
} catch(e) {
gulpLog = console;
}
function CompilationStream(compilationOptions, pluginOptions) {

@@ -61,3 +84,3 @@ stream.Transform.call(this, {objectMode: true});

this.streamMode_ = pluginOptions.streamMode || 'BOTH';
this.logger_ = pluginOptions.logger || gutil.log;
this.logger_ = pluginOptions.logger || gulpLog;
this.PLUGIN_NAME_ = pluginOptions.pluginName || PLUGIN_NAME;

@@ -75,7 +98,7 @@

var stdInStream = new stream.Readable({ read: function() {
return new gutil.File();
return new File();
}});
stdInStream.pipe(this);
stdInStream.push(null);
}).bind(this));
stdInStream.pipe(this);
stdInStream.push(null);
}).bind(this));
return this;

@@ -159,3 +182,3 @@ };

if (stdErrData.trim().length > 0) {
logger(gutil.colors.yellow(this.PLUGIN_NAME_) + ': ' + stdErrData);
logger(chalk.yellow(this.PLUGIN_NAME_) + ': ' + stdErrData);
}

@@ -162,0 +185,0 @@

@@ -26,4 +26,3 @@ /*

var gutil = require('gulp-util');
var File = gutil.File;
var File = require('vinyl');
var path = require('path');

@@ -30,0 +29,0 @@

{
"name": "google-closure-compiler",
"version": "20161024.1.0",
"version": "20161024.2.0",
"description": "Check, compile, optimize and compress Javascript with Closure-Compiler",

@@ -40,4 +40,3 @@ "repository": {

"chalk": "^1.0.0",
"gulp-util": "^3.0.7",
"vinyl-fs": "^2.2.1",
"vinyl": "^1.2.0",
"vinyl-sourcemaps-apply": "^0.2.0"

@@ -62,4 +61,4 @@ },

"engines": {
"node" : ">=0.12.0"
"node": ">=0.12.0"
}
}
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