@manyos/smileconnect-api 1.65.2 → 1.66.0

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.
@@ -7,6 +7,7 @@ const { v4 } = require('uuid');
7
7
  const basePath = 'conf';
8
8
  const basePathGlobalScripts = basePath + '/scripts';
9
9
  const HttpsProxyAgent = require('https-proxy-agent');
10
+ const jsonwebtoken= require('jsonwebtoken');
10
11
 
11
12
  const fetch = require('node-fetch');
12
13
  const xmlParser = require('fast-xml-parser')
@@ -86,6 +87,7 @@ async function executeCode(code, requestData, params, logStream, executedByScrip
86
87
  requestData,
87
88
  params,
88
89
  adapter,
90
+ jsonwebtoken,
89
91
  log: log.child({script: scriptId}, true),
90
92
  clientId,
91
93
  xmlParser,
package/docs/releases.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.66.0 - 09.04.24
5
+ Add jsonwebtoken to scripts
6
+
4
7
  ### 1.65.2 - 01.03.24
5
8
  Add foundation data to dynamic api spec
6
9
 
package/docs/scripts.md CHANGED
@@ -247,6 +247,12 @@ Allows access to external webservices via the package *node-fetch*
247
247
 
248
248
  See https://www.npmjs.com/package/node-fetch for details.
249
249
 
250
+ ## jsonwebtoken
251
+
252
+ Manage JSON Web Token via the package *jsonwebtoken*
253
+
254
+ See https://www.npmjs.com/package/jsonwebtoken for details.
255
+
250
256
  ## HttpsProxyAgent
251
257
 
252
258
  Provides Proxy Access for fetch.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.65.2",
3
+ "version": "1.66.0",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -28,6 +28,7 @@
28
28
  "express-validator": "^6.10.1",
29
29
  "fast-xml-parser": "^3.20.3",
30
30
  "https-proxy-agent": "^5.0.1",
31
+ "jsonwebtoken": "^9.0.2",
31
32
  "moment": "^2.29.1",
32
33
  "mongoose": "^5.12.5",
33
34
  "node-cache": "^4.2.1",