@itentialopensource/adapter-utils 4.48.3 → 4.48.5
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/CHANGELOG.md +18 -0
- package/lib/connectorRest.js +4 -2
- package/lib/restHandler.js +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
## 4.48.5 [12-29-2022]
|
|
3
|
+
|
|
4
|
+
* Update file package.json - update jsonwebtoken version
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapter-utils!244
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 4.48.4 [10-25-2022]
|
|
11
|
+
|
|
12
|
+
* Clean xml string sent into the adapter task and troubleshoot openstack_nova adapter
|
|
13
|
+
|
|
14
|
+
Closes ADAPT-2382
|
|
15
|
+
|
|
16
|
+
See merge request itentialopensource/adapter-utils!241
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
2
20
|
## 4.48.3 [10-17-2022]
|
|
3
21
|
|
|
4
22
|
* Changes to have token data passed in url instead of body
|
package/lib/connectorRest.js
CHANGED
|
@@ -2213,10 +2213,12 @@ function getTokenItem(pathForToken, user, reqBody, invalidToken, callProperties,
|
|
|
2213
2213
|
// No valid token found, Need to get a new token and add it to the token list
|
|
2214
2214
|
buildTokenRequest(pathForToken, reqBody, callProperties, (dyntoken, berror) => {
|
|
2215
2215
|
if (berror) {
|
|
2216
|
-
done(null, berror);
|
|
2216
|
+
// done(null, berror);
|
|
2217
|
+
return done(berror);
|
|
2217
2218
|
}
|
|
2218
2219
|
if (!dyntoken) {
|
|
2219
|
-
done(null, 'No Token returned');
|
|
2220
|
+
// done(null, 'No Token returned');
|
|
2221
|
+
return done(new Error('No Token returned'));
|
|
2220
2222
|
}
|
|
2221
2223
|
|
|
2222
2224
|
let timeout = tokenTimeout;
|
package/lib/restHandler.js
CHANGED
|
@@ -906,6 +906,8 @@ function buildPayload(entity, action, entitySchema, payload) {
|
|
|
906
906
|
thisBdata = '';
|
|
907
907
|
}
|
|
908
908
|
if (typeof thisBdata !== 'object') {
|
|
909
|
+
thisBdata = thisBdata.replace(/(\r\n|\n|\r)/gm, '');
|
|
910
|
+
thisBdata = thisBdata.replace(/>\s+?</g, '><');
|
|
909
911
|
return thisBdata;
|
|
910
912
|
}
|
|
911
913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-utils",
|
|
3
|
-
"version": "4.48.
|
|
3
|
+
"version": "4.48.5",
|
|
4
4
|
"description": "Itential Adapter Utility Libraries",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node utils/setup.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"https-proxy-agent": "^2.2.1",
|
|
36
36
|
"json-query": "^2.2.2",
|
|
37
37
|
"jsontoxml": "^1.0.1",
|
|
38
|
-
"jsonwebtoken": "^
|
|
38
|
+
"jsonwebtoken": "^9.0.0",
|
|
39
39
|
"mongodb": "^3.3.3",
|
|
40
40
|
"querystring": "^0.2.0",
|
|
41
41
|
"readline-sync": "^1.4.10",
|