ofsc-utility 1.0.46 → 1.0.47
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 +3 -0
- package/dist/utilities/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
### Maintenance
|
|
10
|
+
- version 1.0.46
|
|
11
|
+
|
|
9
12
|
### Added
|
|
10
13
|
- release v1.0.44 with getResource function and updated keywords
|
|
11
14
|
- version 1.0.43 with built-in resilience and exponential backoff
|
package/dist/utilities/index.js
CHANGED
|
@@ -84,7 +84,8 @@ const fetchWithRetry = async (url, clientId, clientSecret, instanceUrl, token, r
|
|
|
84
84
|
const responseText = await res.text();
|
|
85
85
|
const isNoRouteToHost = res.status === 400 &&
|
|
86
86
|
responseText.includes("NoRouteToHostException");
|
|
87
|
-
const isRetryableStatus = res.status ===
|
|
87
|
+
const isRetryableStatus = res.status === 400 ||
|
|
88
|
+
res.status === 429 ||
|
|
88
89
|
res.status === 502 ||
|
|
89
90
|
res.status === 503 ||
|
|
90
91
|
res.status === 504;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ofsc-utility",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "TypeScript helpers for Oracle Field Service Cloud (OFSC): events, resources, inventories, metadata and CSV/Excel utilities.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|