fast-azure-storage
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -13,3 +13,3 @@ var querystring = require('querystring'); | ||
// Check if we should refresh SAS | ||
if (Date.now() > this._nextSASRefresh && this._nextSASRefresh !== 0) { | ||
if (!this._sas || (Date.now() > this._nextSASRefresh && this._nextSASRefresh !== 0)) { | ||
debug("Refreshing shared-access-signature"); | ||
@@ -37,2 +37,7 @@ // Avoid refreshing more than once | ||
return sasString; | ||
}).catch(err => { | ||
debug("shared-access-signature refresh failed:", err); | ||
// sas failed, so don't cache it, but throw the error for this request | ||
this._sas = null; | ||
throw err; | ||
}); | ||
@@ -39,0 +44,0 @@ } |
{ | ||
"name": "fast-azure-storage", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>, Elena Solomon <elenasolomon28@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Fast client library for azure storage services", |
Sorry, the diff of this file is not supported yet
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
244926
5217