@google-cloud/storage
Advanced tools
Comparing version 6.9.4 to 6.9.5
@@ -203,3 +203,3 @@ "use strict"; | ||
accessMethods.forEach(accessMethod => { | ||
let method = accessMethod + entity[0].toUpperCase() + entity.substr(1); | ||
let method = accessMethod + entity[0].toUpperCase() + entity.substring(1); | ||
if (isPrefix) { | ||
@@ -503,3 +503,3 @@ method = method.replace('-', ''); | ||
* the only argument. | ||
* @param {string} [options.entity] Whose permissions will be fetched. | ||
* @param {string} options.entity Whose permissions will be fetched. | ||
* @param {number} [options.generation] **File Objects Only** Select a specific | ||
@@ -506,0 +506,0 @@ * revision of this file (as opposed to the latest version, the default). |
@@ -360,2 +360,3 @@ "use strict"; | ||
const autoAuthFailed = err && | ||
typeof err.message === 'string' && | ||
err.message.indexOf('Could not load the default credentials') > -1; | ||
@@ -362,0 +363,0 @@ if (autoAuthFailed) { |
@@ -267,3 +267,3 @@ "use strict"; | ||
} | ||
return Math.round(expiresInMSeconds / 1000); // The API expects seconds. | ||
return Math.floor(expiresInMSeconds / 1000); // The API expects seconds. | ||
} | ||
@@ -270,0 +270,0 @@ parseAccessibleAt(accessibleAt) { |
@@ -105,2 +105,5 @@ "use strict"; | ||
if (typeof err.code === 'string') { | ||
if (['408', '429', '500', '502', '503', '504'].indexOf(err.code) !== -1) { | ||
return true; | ||
} | ||
const reason = err.code.toLowerCase(); | ||
@@ -107,0 +110,0 @@ if (isConnectionProblem(reason)) { |
{ | ||
"name": "@google-cloud/storage", | ||
"description": "Cloud Storage Client Library for Node.js", | ||
"version": "6.9.4", | ||
"version": "6.9.5", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
837593
16895