@wmfs/tymly-rest-client-plugin 1.37.0 → 1.38.1

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.
@@ -1,6 +1,6 @@
1
- version: 2
1
+ version: 2.1
2
2
  jobs:
3
- unit test:
3
+ unit-test:
4
4
  docker:
5
5
  - image: cimg/node:lts
6
6
  auth:
@@ -73,10 +73,9 @@ jobs:
73
73
  chmod +x version_plugin
74
74
  npx semantic-release
75
75
  workflows:
76
- version: 2
77
76
  test_and_release:
78
77
  jobs:
79
- - unit test:
78
+ - unit-test:
80
79
  context:
81
80
  - docker-hub-creds
82
81
  - build-env-vars
@@ -89,7 +88,7 @@ workflows:
89
88
  - docker-hub-creds
90
89
  - build-env-vars
91
90
  requires:
92
- - unit test
91
+ - unit-test
93
92
  - lint
94
93
  filters:
95
94
  branches:
package/.version CHANGED
@@ -1 +1 @@
1
- VERSION=1.37.0
1
+ VERSION=1.38.1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.38.1](https://github.com/wmfs/tymly-rest-client-plugin/compare/v1.38.0...v1.38.1) (2026-08-13)
2
+
3
+ ## [1.38.0](https://github.com/wmfs/tymly-rest-client-plugin/compare/v1.37.0...v1.38.0) (2026-05-20)
4
+
5
+ ### New Feature(s) :rocket:
6
+
7
+ * [sc-32975] added connection timout to post-data-to-rest-api ([#387](https://github.com/wmfs/tymly-rest-client-plugin/issues/387)) ([baa9fab](https://github.com/wmfs/tymly-rest-client-plugin/commit/baa9fabe18c1b50d2865fd966a2171294a5df7a0))
8
+
9
+ ### Build system dependencies :hammer:
10
+
11
+ * **deps-dev:** update dependency @semantic-release/release-notes-generator to v14.1.1 ([#389](https://github.com/wmfs/tymly-rest-client-plugin/issues/389)) ([a837c53](https://github.com/wmfs/tymly-rest-client-plugin/commit/a837c53770a1ee0d940815dc1d3311857af29e3c))
12
+
1
13
  ## [1.37.0](https://github.com/wmfs/tymly-rest-client-plugin/compare/v1.36.0...v1.37.0) (2026-04-10)
2
14
 
3
15
  ### Build system dependencies :hammer:
@@ -14,7 +14,7 @@ class PostDataToRestApi {
14
14
  if (resourceConfig.authTokenRegistryKey) this.authToken = this.registry.get(resourceConfig.namespace + '_' + resourceConfig.authTokenRegistryKey)
15
15
  if (resourceConfig.resultPath) this.resultPath = resourceConfig.resultPath
16
16
  if (resourceConfig.paramPath) this.paramPath = resourceConfig.paramPath
17
- this.webAPITimeoutInMilliseconds = (process.env.WEB_API_TIMEOUT_IN_MS || 3000)
17
+ this.webAPITimeoutInMilliseconds = (process.env.WEB_API_TIMEOUT_IN_MS || 5000)
18
18
  }
19
19
 
20
20
  async run (event, context) {
@@ -40,7 +40,8 @@ class PostDataToRestApi {
40
40
  const options = {
41
41
  headers: {},
42
42
  method: 'post',
43
- timeout: 5000,
43
+ timeout: this.webAPITimeoutInMilliseconds, // configure a response timeout
44
+ signal: AbortSignal.timeout(this.webAPITimeoutInMilliseconds), // configure a connection timeout (https://axios-http.com/docs/cancellation)
44
45
  url: this.templateUrl,
45
46
  data: event[this.payloadPath]
46
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmfs/tymly-rest-client-plugin",
3
- "version": "1.37.0",
3
+ "version": "1.38.1",
4
4
  "description": "A REST API client for Tymly",
5
5
  "homepage": "https://github.com/wmfs/tymly-rest-client-plugin#readme",
6
6
  "author": "West Midlands Fire Service",
@@ -25,19 +25,19 @@
25
25
  "axios": "1.15.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@semantic-release/changelog": "6.0.3",
29
- "@semantic-release/release-notes-generator": "14.1.0",
30
- "@semantic-release/git": "10.0.1",
28
+ "@semantic-release/changelog": "7.0.0",
29
+ "@semantic-release/release-notes-generator": "14.1.1",
30
+ "@semantic-release/git": "11.0.1",
31
31
  "@semantic-release/exec": "7.1.0",
32
32
  "chai": "4.5.0",
33
33
  "codecov": "3.8.3",
34
- "conventional-changelog-conventionalcommits": "9.3.1",
34
+ "conventional-changelog-conventionalcommits": "10.3.0",
35
35
  "cz-conventional-changelog": "3.3.0",
36
36
  "express": "5.2.1",
37
- "body-parser": "2.2.2",
38
- "mocha": "11.7.5",
37
+ "body-parser": "2.3.0",
38
+ "mocha": "11.8.0",
39
39
  "nyc": "18.0.0",
40
- "semantic-release": "25.0.3",
40
+ "semantic-release": "25.0.9",
41
41
  "standard": "17.1.2"
42
42
  },
43
43
  "scripts": {
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rest-client",
3
- "version": "1.37.0",
3
+ "version": "1.38.1",
4
4
  "label": "Rest client",
5
5
  "author": "Jez Higgins",
6
6
  "organisation": "West Midlands Fire Service",