Comparing version 1.1.3 to 1.1.4
@@ -53,6 +53,8 @@ /** | ||
this._process = null; | ||
this._pickUpOldInstance = true; // @todo: set it false by default? | ||
} | ||
/** | ||
* @returns {Object} | ||
* @returns {Boolean} | ||
*/ | ||
@@ -77,4 +79,10 @@ | ||
this._process = _localDynamo2['default'].launch(this._options, this.port); | ||
try { | ||
this._process = _localDynamo2['default'].launch(this._options, this.port); | ||
} catch (error) { | ||
this._pickUpOldInstance ? cb(null) : cb(new _ExceptionFailedToStartServerException.FailedToStartServerException(this, error)); | ||
return; | ||
} | ||
// This hook fixes DynamoDB startup delay by waiting an empty stdout dataset | ||
@@ -126,2 +134,18 @@ // @todo: remove this hook after fixing issue! | ||
}, { | ||
key: 'pickUpOldInstance', | ||
get: function get() { | ||
return this._pickUpOldInstance; | ||
}, | ||
/** | ||
* @param {Boolean} state | ||
*/ | ||
set: function set(state) { | ||
this._pickUpOldInstance = state; | ||
} | ||
/** | ||
* @returns {Object} | ||
*/ | ||
}, { | ||
key: 'options', | ||
@@ -128,0 +152,0 @@ get: function get() { |
{ | ||
"name": "deep-db", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "DEEP Database Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
79874
1324