Comparing version 3.0.0 to 3.0.1
3.0.1 / 2017-01-12 | ||
================== | ||
* fix: initMethod should be lazy executed (#6) | ||
3.0.0 / 2017-01-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -17,6 +17,9 @@ 'use strict'; | ||
co(this[options.initMethod].bind(this)) | ||
.then(() => this.ready(true)) | ||
.catch(err => this.ready(err)); | ||
process.nextTick(() => { | ||
co(this[options.initMethod].bind(this)) | ||
.then(() => this.ready(true)) | ||
.catch(err => this.ready(err)); | ||
}); | ||
} | ||
this.options = options || {}; | ||
this._ready = false; | ||
@@ -23,0 +26,0 @@ this._readyError = null; |
{ | ||
"name": "sdk-base", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "a base class for sdk with default error handler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11396
133