@f5devcentral/atg-storage
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Changelog | ||
## [Unreleased] | ||
## 1.0.2 | ||
### Fixed | ||
- AUTOTOOL-2138: Data store initialization can fail from race condition | ||
## 1.0.1 | ||
### Changed | ||
- AUTOTOOL-638: ([GitHub Issue 122](https://github.com/F5Networks/f5-appsvcs-extension/issues/122)) Data store interactions cause errors in mcpd log | ||
### Removed |
{ | ||
"name": "@f5devcentral/atg-storage", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "F5 Networks", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -181,3 +181,2 @@ 'use strict'; | ||
_lazyInit() { | ||
@@ -188,8 +187,21 @@ if (this._ready) { | ||
return Promise.resolve() | ||
if (this._initRunning) { | ||
return this._initPromise; | ||
} | ||
this._initRunning = true; | ||
this._initPromise = Promise.resolve() | ||
.then(() => this.ensureFolder()) | ||
.then(() => this.ensureDataGroup()) | ||
.then(() => { | ||
this._initRunning = false; | ||
this._ready = true; | ||
}) | ||
.catch((err) => { | ||
this._initRunning = false; | ||
throw err; | ||
}); | ||
return this._initPromise; | ||
} | ||
@@ -196,0 +208,0 @@ |
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
14411
385