@itentialopensource/adapter-utils 5.5.0 → 5.5.1
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 +8 -0
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/lib/propertyUtil.js +6 -2
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---------------------------------------------------------------------------------------------
|
|
2
|
+
**** Project Compliance Summary ****
|
|
3
|
+
0 project(s) are not valid
|
|
4
|
+
0 project(s) are valid
|
|
5
|
+
---------------------------------------------------------------------------------------------
|
package/lib/propertyUtil.js
CHANGED
|
@@ -527,11 +527,15 @@ class AdapterPropertyUtil {
|
|
|
527
527
|
// need to make sure we have supported datatypes - PLAIN is best if not supported - no translation or encoding
|
|
528
528
|
if (entitySchema.requestDatatype.toUpperCase() !== 'JSON' && entitySchema.requestDatatype.toUpperCase() !== 'XML'
|
|
529
529
|
&& entitySchema.requestDatatype.toUpperCase() !== 'URLENCODE' && entitySchema.requestDatatype.toUpperCase() !== 'URLQUERY'
|
|
530
|
-
&& entitySchema.requestDatatype.toUpperCase() !== 'FORM' && entitySchema.requestDatatype.toUpperCase() !== 'JSON2XML'
|
|
530
|
+
&& entitySchema.requestDatatype.toUpperCase() !== 'FORM' && entitySchema.requestDatatype.toUpperCase() !== 'JSON2XML'
|
|
531
|
+
&& entitySchema.requestDatatype.toUpperCase() !== 'GZIP2XML2JSON' && entitySchema.requestDatatype.toUpperCase() !== 'GZIP2XML'
|
|
532
|
+
&& entitySchema.requestDatatype.toUpperCase() !== 'GZIP2JSON') {
|
|
531
533
|
entitySchema.requestDatatype = 'PLAIN';
|
|
532
534
|
}
|
|
533
535
|
if (entitySchema.responseDatatype.toUpperCase() !== 'JSON' && entitySchema.responseDatatype.toUpperCase() !== 'XML'
|
|
534
|
-
&& entitySchema.responseDatatype.toUpperCase() !== 'URLENCODE' && entitySchema.responseDatatype.toUpperCase() !== 'XML2JSON'
|
|
536
|
+
&& entitySchema.responseDatatype.toUpperCase() !== 'URLENCODE' && entitySchema.responseDatatype.toUpperCase() !== 'XML2JSON'
|
|
537
|
+
&& entitySchema.requestDatatype.toUpperCase() !== 'GZIP2XML2JSON' && entitySchema.requestDatatype.toUpperCase() !== 'GZIP2XML'
|
|
538
|
+
&& entitySchema.requestDatatype.toUpperCase() !== 'GZIP2JSON') {
|
|
535
539
|
entitySchema.responseDatatype = 'PLAIN';
|
|
536
540
|
}
|
|
537
541
|
|
package/package.json
CHANGED
|
Binary file
|