Comparing version 0.8.5 to 0.8.6
@@ -6,2 +6,3 @@ var Communication = require('../lib/Communication'); | ||
var ES6Fixer = require('./ES6Fixer'); | ||
@@ -30,37 +31,2 @@ var VERSION = exports.VERSION = '0.7.5'; | ||
if( !Array.prototype.contains ) | ||
Array.prototype.contains = function( object ){ | ||
for( var i = 0; i<this.length; i+=1){ | ||
if( object === this[i] ) return true; | ||
} | ||
return false; | ||
}; | ||
if( !Array.prototype.find ) | ||
Array.prototype.find = function( fn ){ | ||
for( var i = 0; i<this.length; i+=1){ | ||
if( fn(this[i], i, this) ) return this[i]; | ||
} | ||
return null; | ||
}; | ||
if( !Array.prototype.findIndex ) | ||
Array.prototype.findIndex = function( fn ){ | ||
for( var i = 0; i<this.length; i+=1){ | ||
if( fn(this[i], i, this) ) return i; | ||
} | ||
return -1; | ||
}; | ||
if (!String.prototype.endsWith) { | ||
Object.defineProperty(String.prototype, 'endsWith', { | ||
value: function (searchString, position) { | ||
var subjectString = this.toString(); | ||
if (position === undefined || position > subjectString.length) { | ||
position = subjectString.length; | ||
} | ||
position -= searchString.length; | ||
var lastIndex = subjectString.indexOf(searchString, position); | ||
return lastIndex !== -1 && lastIndex === position; | ||
} | ||
}); | ||
} | ||
var self = this; | ||
@@ -115,2 +81,10 @@ this.systemFirestarter = this.addicts( { | ||
var fss = new Firestormstarter( this.barrel, object, this.logger ); | ||
if( object.init ){ | ||
try{ | ||
object.init( this.options[fss.name] || {} ); | ||
} catch( err ){ | ||
this.logger.error( err, 'Unable to initialize', fss.name ); | ||
} | ||
} | ||
@@ -117,0 +91,0 @@ return this.barrel.affiliate( fss ); |
{ | ||
"name": "harcon", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon@0.8.5" | ||
"_id": "harcon@0.8.6" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
415227
31
1601