+17
-10
lines changedFilter options
+17
-10
lines changed Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@
187
187
same "printed page" as the copyright notice for easier
188
188
identification within third-party archives.
189
189
190
-
Copyright [yyyy] [name of copyright owner]
190
+
Copyright 2019 Coveo Solutions Inc.
191
191
192
192
Licensed under the Apache License, Version 2.0 (the "License");
193
193
you may not use this file except in compliance with the License.
@@ -199,4 +199,4 @@
199
199
distributed under the License is distributed on an "AS IS" BASIS,
200
200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
201
See the License for the specific language governing permissions and
202
-
limitations under the License.
202
+
limitations under the License.
Original file line number Diff line number Diff line change
@@ -38,6 +38,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
Object.defineProperty(exports, "__esModule", { value: true });
39
39
var options_1 = require("./options");
40
40
var delay_factory_1 = require("./delay/delay.factory");
41
+
/**
42
+
* Executes a function with exponential backoff.
43
+
* @param request the function to be executed
44
+
* @param options options to customize the backoff behavior
45
+
* @returns Promise that resolves to the result of the `request` function
46
+
*/
41
47
function backOff(request, options) {
42
48
if (options === void 0) { options = {}; }
43
49
return __awaiter(this, void 0, void 0, function () {
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1
1
{
2
2
"name": "exponential-backoff",
3
-
"version": "3.1.1",
3
+
"version": "3.1.2",
4
4
"description": "A utility that allows retrying a function with an exponential delay between attempts.",
5
5
"files": [
6
-
"dist/"
6
+
"dist/",
7
+
"src/"
7
8
],
8
9
"main": "dist/backoff.js",
9
10
"types": "dist/backoff.d.ts",
@@ -35,7 +36,7 @@
35
36
},
36
37
"repository": {
37
38
"type": "git",
38
-
"url": "git+https://github.com/coveo/exponential-backoff.git"
39
+
"url": "git+https://github.com/coveooss/exponential-backoff.git"
39
40
},
40
41
"keywords": [
41
42
"exponential",
@@ -45,9 +46,9 @@
45
46
"author": "Sami Sayegh",
46
47
"license": "Apache-2.0",
47
48
"bugs": {
48
-
"url": "https://github.com/coveo/exponential-backoff/issues"
49
+
"url": "https://github.com/coveooss/exponential-backoff/issues"
49
50
},
50
-
"homepage": "https://github.com/coveo/exponential-backoff#readme",
51
+
"homepage": "https://github.com/coveooss/exponential-backoff#readme",
51
52
"devDependencies": {
52
53
"@types/jest": "^24.0.18",
53
54
"@types/node": "^10.14.21",
Original file line number Diff line number Diff line change
@@ -8163,9 +8163,9 @@
8163
8163
"license": "ISC"
8164
8164
},
8165
8165
"node_modules/exponential-backoff": {
8166
-
"version": "3.1.1",
8167
-
"resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz",
8168
-
"integrity": "sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==",
8166
+
"version": "3.1.2",
8167
+
"resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.2.tgz",
8168
+
"integrity": "sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==",
8169
8169
"inBundle": true,
8170
8170
"license": "Apache-2.0"
8171
8171
},
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4