@manyos/smileconnect-api 1.65.2 → 1.67.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,8 @@ 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');
11
+ const crypto = require('node:crypto');
10
12
 
11
13
  const fetch = require('node-fetch');
12
14
  const xmlParser = require('fast-xml-parser')
@@ -86,6 +88,8 @@ async function executeCode(code, requestData, params, logStream, executedByScrip
86
88
  requestData,
87
89
  params,
88
90
  adapter,
91
+ crypto,
92
+ jsonwebtoken,
89
93
  log: log.child({script: scriptId}, true),
90
94
  clientId,
91
95
  xmlParser,
package/docs/releases.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.67.0 - 09.04.24
5
+ Add crypto 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,18 @@ 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
+
256
+ ## crypto
257
+
258
+ Node Crypto Library
259
+
260
+ See https://nodejs.org/api/crypto.html for details.
261
+
250
262
  ## HttpsProxyAgent
251
263
 
252
264
  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.67.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",