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

jake

Package Overview
Dependencies
Maintainers
0
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jake - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

29

lib/jake.js

@@ -20,3 +20,3 @@ #!/usr/bin/env node

var JAKE_VERSION = '0.1.11'
var JAKE_VERSION = '0.1.12'
, jake

@@ -192,2 +192,9 @@ , args = process.argv.slice(2)

, _mixin = function (t, f) {
for (var p in f) {
t[p] = f[p];
}
return t;
}
/**

@@ -214,3 +221,4 @@ * Tells us if the task has any dependencies

, deps = opts.deps
, includeDeps = opts.includeDeps;
, includeDeps = opts.includeDeps
, subOpts = {};
// If the task has dependencies these are invoked in order.

@@ -222,5 +230,8 @@ // If any of them were changed after the current file, or

stats = stats || {ctime: 0};
// Clone original opts, set root to false
_mixin(subOpts, opts);
subOpts.root = false;
for (var i = 0, ii = deps.length, depsLeft = deps.length, maxTime = stats.ctime;
i < ii; i++) {
_parseDeps(deps[i], {root: false}, function (ctime) {
_parseDeps(deps[i], subOpts, function (ctime) {
depsLeft -= 1;

@@ -271,3 +282,4 @@ maxTime = (maxTime == null || maxTime < ctime) ? ctime : maxTime;

, root = opts.root
, includeDeps = opts.includeDeps;
, includeDeps = opts.includeDeps
, subOpts = {};

@@ -311,4 +323,7 @@ // No task found

if (includeDeps && _taskHasDeps(deps)) {
// Clone original opts, set root to false
_mixin(subOpts, opts);
subOpts.root = false;
for (var i = 0, ii = deps.length, ctr = deps.length; i < ii; i++) {
_parseDeps(deps[i], {root: false}, function () {
_parseDeps(deps[i], subOpts, function () {
ctr -= 1;

@@ -376,3 +391,2 @@ if (ctr == 0) {

var self = this;
console.log('reenabling ' + name);
this.populateAndProcessTaskList(name, includeDeps, function () {

@@ -649,3 +663,4 @@ var name

global.fail = function (msg) {
throw new Error(msg.toString());
var message = (msg && msg.toString()) || '(No error message specified.)';
throw new Error(message);
};

@@ -652,0 +667,0 @@

{ "name" : "jake"
, "version" : "0.1.11"
, "version" : "0.1.12"
, "author" : "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)"

@@ -4,0 +4,0 @@ , "main" : "./lib/jake"

Sorry, the diff of this file is not supported yet

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