@manyos/smileconnect-api 1.65.1 → 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.
- package/controller/scriptController.js +2 -0
- package/docs/releases.md +4 -1
- package/docs/scripts.md +6 -0
- package/package.json +2 -1
|
@@ -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
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.
|
|
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",
|