mirror of https://github.com/embarklabs/embark.git
remove async extension to a module
This commit is contained in:
parent
c2c41549c1
commit
92f9df4117
|
@ -1,18 +1,7 @@
|
|||
/*jshint esversion: 6, loopfunc: true */
|
||||
var async = require('async');
|
||||
var async = require('../core/async_extend.js');
|
||||
var SolcW = require('./solcW.js');
|
||||
|
||||
function asyncEachObject(object, iterator, callback) {
|
||||
async.each(
|
||||
Object.keys(object || {}),
|
||||
function(key, next){
|
||||
iterator(key, object[key], next);
|
||||
},
|
||||
callback
|
||||
);
|
||||
}
|
||||
async.eachObject = asyncEachObject;
|
||||
|
||||
var Compiler = function(options) {
|
||||
this.plugins = options.plugins;
|
||||
this.logger = options.logger;
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
var async = require('async');
|
||||
|
||||
function asyncEachObject(object, iterator, callback) {
|
||||
async.each(
|
||||
Object.keys(object || {}),
|
||||
function(key, next){
|
||||
iterator(key, object[key], next);
|
||||
},
|
||||
callback
|
||||
);
|
||||
}
|
||||
async.eachObject = asyncEachObject;
|
||||
|
||||
module.exports = async;
|
|
@ -1,16 +1,4 @@
|
|||
var async = require('async');
|
||||
|
||||
// TODO: repeated, add this to an async extensions file
|
||||
function asyncEachObject(object, iterator, callback) {
|
||||
async.each(
|
||||
Object.keys(object || {}),
|
||||
function(key, next){
|
||||
iterator(key, object[key], next);
|
||||
},
|
||||
callback
|
||||
);
|
||||
}
|
||||
async.eachObject = asyncEachObject;
|
||||
var async = require('./async_extend.js');
|
||||
|
||||
var ServicesMonitor = function(options) {
|
||||
this.events = options.events;
|
||||
|
|
Loading…
Reference in New Issue