@lad-tech/nsc-toolkit 1.17.5 → 1.17.6
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 +2 -2
- package/dist/Root.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.17.
|
|
1
|
+
## [1.17.6](https://github.com/lad-tech/nsc-toolkit/compare/v1.17.5...v1.17.6) (2024-01-25)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* external timeouts ([#96](https://github.com/lad-tech/nsc-toolkit/issues/96)) ([95a71ef](https://github.com/lad-tech/nsc-toolkit/commit/95a71ef1403beb89b6c775fe9f24eb0eba65f8aa))
|
package/dist/Root.js
CHANGED
|
@@ -43,7 +43,11 @@ class Root {
|
|
|
43
43
|
try {
|
|
44
44
|
if (!expired) {
|
|
45
45
|
const timeout = ownTimeout || this.castToNumber(this.getSettingFromEnv('DEFAULT_REPONSE_TIMEOUT'));
|
|
46
|
-
return Date.now() + timeout
|
|
46
|
+
return Date.now() + timeout;
|
|
47
|
+
}
|
|
48
|
+
if (ownTimeout) {
|
|
49
|
+
const customExpired = Date.now() + ownTimeout;
|
|
50
|
+
return Math.min(customExpired, expired);
|
|
47
51
|
}
|
|
48
52
|
return expired;
|
|
49
53
|
}
|