step-node-agent 3.23.3 → 3.24.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.
package/README CHANGED
@@ -1 +1,3 @@
1
- Official documentation available at: https://step.exense.ch/knowledgebase/3.13/plugins/nodeJS/
1
+ Official documentation available at: https://step.exense.ch/knowledgebase/plugins/nodejs/
2
+
3
+ To run locally: npm i; npm start
@@ -46,6 +46,12 @@ module.exports = function Controller (agentContext, fileManager) {
46
46
  console.log('[Controller] No session founds for token: ' + tokenId)
47
47
  }
48
48
  }
49
+
50
+ exports.interruptExecution = function (req, res) {
51
+ const tokenId = req.params.tokenId
52
+ console.warn('[Controller] Interrupting token: ' + tokenId + ' : not implemented')
53
+ }
54
+
49
55
  exports.process = function (req, res) {
50
56
  const tokenId = req.params.tokenId
51
57
  const keywordName = req.body.payload.function
@@ -7,4 +7,5 @@ module.exports = function (app, agentContext) {
7
7
  app.route('/token/:tokenId/reserve').get(controller.reserveToken)
8
8
  app.route('/token/:tokenId/release').get(controller.releaseToken)
9
9
  app.route('/token/:tokenId/process').post(controller.process)
10
+ app.route('/token/:tokenId/interrupt-execution').post(controller.interruptExecution)
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "step-node-agent",
3
- "version": "3.23.3",
3
+ "version": "3.24.1",
4
4
  "description": "The official STEP Agent implementation for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {