New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-query

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-query - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "gulp-query",
"version": "1.0.1",
"version": "1.0.2",
"description": "Your workflow will be easier",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -154,3 +154,7 @@ const gulp = require('gulp');

let tasks = pluginModule.getAllTasks();
let tasks = pluginModule.getAllTasks()
.filter((task) => {
return params.length === 0 || params.indexOf(plugin) !== -1 || params.indexOf(task) !== -1;
});
tasks.forEach((task) => {

@@ -178,6 +182,13 @@ gulp.task(task, pluginModule.runTask.bind(pluginModule, task));

let params = [...this._params];
this._watchPlugins.forEach((pluginModule) => {
let tasks = pluginModule.getAllTasks();
let plugin = pluginModule.constructor.method();
let tasks = pluginModule.getAllTasks()
.filter((task) => {
return params.length === 0 || params.indexOf(plugin) !== -1 || params.indexOf(task) !== -1;
});
tasks.forEach((task) => {

@@ -184,0 +195,0 @@ let files = pluginModule.watchTaskFiles(task);

@@ -43,2 +43,26 @@ const ThrowError = require('./ThrowError');

_prepareConfig(config) {
if (config.length > 1) {
let new_config = {
from: config[0],
to: config[1],
};
if (config[2]) {
if (typeof config[2] === 'object') {
new_config = Object.assign({}, new_config, config[2]);
} else {
new_config.name = config[2];
}
}
config = new_config;
} else {
config = config[0];
}
return config;
}
_initConfigs() {

@@ -48,22 +72,4 @@ let i = 1;

if (config.length > 1) {
let new_config = {
from: config[0],
to: config[1],
};
config = this._prepareConfig(config);
if (config[2]) {
if (typeof config[2] === 'object') {
new_config = Object.assign({},new_config,config[2]);
} else {
new_config.name = config[2];
}
}
config = new_config;
} else {
config = config[0];
}
let taskName = this.constructor.method() + ':' + (config.name ? config.name : ('task-' + i));

@@ -92,4 +98,3 @@

*/
watchTaskFiles(task_name)
{
watchTaskFiles(task_name) {
if (!(task_name in this._taskToConfig)) {

@@ -138,3 +143,3 @@ ThrowError.make('Not found config for a task «' + task_name + '»');

this._GulpQuery.report.draw();
},10);
}, 10);
}

@@ -154,3 +159,3 @@ }

this._GulpQuery.report.draw();
},10);
}, 10);
}

@@ -157,0 +162,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