@elastic.io/object-storage-client
Advanced tools
Comparing version 0.0.1-dev.3 to 0.0.1-dev.4
@@ -46,3 +46,5 @@ "use strict"; | ||
await new Promise((resolve) => setTimeout(resolve, delay)); | ||
continue; | ||
} | ||
break; | ||
} | ||
@@ -49,0 +51,0 @@ if (err || res.status >= 400) { |
{ | ||
"name": "@elastic.io/object-storage-client", | ||
"version": "0.0.1-dev.3", | ||
"version": "0.0.1-dev.4", | ||
"description": "Elastic.io Message Store Client", | ||
@@ -11,8 +11,7 @@ "main": "dist/index.js", | ||
"lint": "eslint --ext .ts .", | ||
"pretest": "npm audit && npm run lint", | ||
"test": "NODE_ENV=test mocha -r ts-node/register --recursive ./spec/**/*.ts", | ||
"build": "tsc", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm audit && npm run lint && npm run test && npm run build" | ||
}, | ||
"license": "ISC", | ||
"license": "UNLICENSED", | ||
"dependencies": { | ||
@@ -19,0 +18,0 @@ "@elastic.io/bunyan-logger": "1.0.5", |
@@ -165,3 +165,3 @@ import nock from 'nock'; | ||
it('should retry get request 3 times on errors', async () => { | ||
it('should retry get request on errors', async () => { | ||
const objectStorage = new ObjectStorage(config); | ||
@@ -174,4 +174,2 @@ | ||
.get('/objects/1') | ||
.replyWithError({ code: 'ECONNRESET' }) | ||
.get('/objects/1') | ||
.reply(200, putData); | ||
@@ -178,0 +176,0 @@ |
@@ -48,3 +48,5 @@ import { Readable } from 'stream'; | ||
await new Promise((resolve): NodeJS.Timeout => setTimeout(resolve, delay)); | ||
continue; | ||
} | ||
break; | ||
} | ||
@@ -51,0 +53,0 @@ if (err || res.status >= 400) { |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
568
2
24322
1