@manyos/smileconnect-api 1.66.0 → 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.
- package/controller/scriptController.js +2 -0
- package/docs/releases.md +2 -2
- package/docs/scripts.md +6 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ const basePath = 'conf';
|
|
|
8
8
|
const basePathGlobalScripts = basePath + '/scripts';
|
|
9
9
|
const HttpsProxyAgent = require('https-proxy-agent');
|
|
10
10
|
const jsonwebtoken= require('jsonwebtoken');
|
|
11
|
+
const crypto = require('node:crypto');
|
|
11
12
|
|
|
12
13
|
const fetch = require('node-fetch');
|
|
13
14
|
const xmlParser = require('fast-xml-parser')
|
|
@@ -87,6 +88,7 @@ async function executeCode(code, requestData, params, logStream, executedByScrip
|
|
|
87
88
|
requestData,
|
|
88
89
|
params,
|
|
89
90
|
adapter,
|
|
91
|
+
crypto,
|
|
90
92
|
jsonwebtoken,
|
|
91
93
|
log: log.child({script: scriptId}, true),
|
|
92
94
|
clientId,
|
package/docs/releases.md
CHANGED
package/docs/scripts.md
CHANGED
|
@@ -253,6 +253,12 @@ Manage JSON Web Token via the package *jsonwebtoken*
|
|
|
253
253
|
|
|
254
254
|
See https://www.npmjs.com/package/jsonwebtoken for details.
|
|
255
255
|
|
|
256
|
+
## crypto
|
|
257
|
+
|
|
258
|
+
Node Crypto Library
|
|
259
|
+
|
|
260
|
+
See https://nodejs.org/api/crypto.html for details.
|
|
261
|
+
|
|
256
262
|
## HttpsProxyAgent
|
|
257
263
|
|
|
258
264
|
Provides Proxy Access for fetch.
|