@widergy/polling-handling 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [2.1.2](https://github.com/widergy/polling-handling/compare/v2.1.1...v2.1.2) (2026-04-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix lock versions ([937c911](https://github.com/widergy/polling-handling/commit/937c9115cfbf92a98097b3b7c45a62297d3e542d))
|
|
7
|
+
* new ci npm token ([bd2fed9](https://github.com/widergy/polling-handling/commit/bd2fed99b8cafbcff9f5a029f21703ddf28262bb))
|
|
8
|
+
* remove lock from ignore ([093c6ee](https://github.com/widergy/polling-handling/commit/093c6ee9ca7bdff1367cb47af7bac7911b5a5d71))
|
|
9
|
+
* revert ci upgrade ([2c75b36](https://github.com/widergy/polling-handling/commit/2c75b364179688ccf7ad6bb4ba4d050b7c6fe4f1))
|
|
10
|
+
* test org deploy ([c0521bf](https://github.com/widergy/polling-handling/commit/c0521bfec1e2268d0a3363ba26ab3e12f33b12c5))
|
|
11
|
+
* update node ci version ([9831705](https://github.com/widergy/polling-handling/commit/9831705ff4aa77ffad744b50a4276e37a899f1e7))
|
|
12
|
+
* upgrades node image ([bf4752a](https://github.com/widergy/polling-handling/commit/bf4752aadc650b6b6efe8d428943842967c78cd7))
|
|
13
|
+
|
|
14
|
+
## [2.1.1](https://github.com/widergy/polling-handling/compare/v2.1.0...v2.1.1) (2025-03-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* [DEV-555] options interface fix ([#19](https://github.com/widergy/polling-handling/issues/19)) ([558da18](https://github.com/widergy/polling-handling/commit/558da18800d91b7421e17fae17a768bb288e1751))
|
|
20
|
+
|
|
1
21
|
# [2.1.0](https://github.com/widergy/polling-handling/compare/v2.0.1...v2.1.0) (2024-04-19)
|
|
2
22
|
|
|
3
23
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Polling Handling 
|
|
1
|
+
# Polling Handling 
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApisauceInstance } from 'apisauce';
|
|
2
2
|
interface Options {
|
|
3
3
|
retries: number;
|
|
4
|
-
interval
|
|
4
|
+
interval?: number;
|
|
5
5
|
}
|
|
6
6
|
declare class Polling {
|
|
7
7
|
baseUrl: string;
|
|
@@ -9,7 +9,7 @@ declare class Polling {
|
|
|
9
9
|
apiInstance: ApisauceInstance;
|
|
10
10
|
constructor(baseUrl?: string, failureCallback?: (response: any, data: any) => void);
|
|
11
11
|
init(baseUrl: string, monitors: any, failureCallback: (response: any, data: any) => void): void;
|
|
12
|
-
handle(originalRequest: any, timeout
|
|
12
|
+
handle(originalRequest: any, timeout?: number, options?: Options): Promise<any>;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: Polling;
|
|
15
15
|
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -88,7 +88,7 @@ class Polling {
|
|
|
88
88
|
async handle(originalRequest, timeout = DEFAULT_TIMEOUT, options) {
|
|
89
89
|
const request = await originalRequest;
|
|
90
90
|
const originalUrl = request.config.url;
|
|
91
|
-
const { retries = 0, interval = DEFAULT_INTERVAL } = options
|
|
91
|
+
const { retries = 0, interval = DEFAULT_INTERVAL } = options !== null && options !== void 0 ? options : {};
|
|
92
92
|
const response = {};
|
|
93
93
|
if (!request.ok) {
|
|
94
94
|
response.error = (0, errorHandling_1.getResponseError)(request);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widergy/polling-handling",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Utility GO! Polling Handling",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"apisauce": "^3.0.1"
|
|
52
52
|
},
|
|
53
53
|
"resolutions": {
|
|
54
|
-
"@types/node": "^12.0.0"
|
|
54
|
+
"@types/node": "^12.0.0",
|
|
55
|
+
"@types/css-font-loading-module": "0.0.14"
|
|
55
56
|
},
|
|
56
57
|
"release": {
|
|
57
58
|
"extends": "@widergy/semantic-release-package-config"
|