zudello-integration-sdk 1.0.40 → 1.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudello-integration-sdk",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Zudello Integrations SDK",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -68,7 +68,8 @@ class NetsuiteSoapSDK extends BaseSDK {
68
68
  transformTo: {
69
69
  value: transformTo
70
70
  }
71
- }
71
+ },
72
+ _debug: true
72
73
  })
73
74
  }
74
75
 
@@ -95,6 +95,10 @@ class ApiInstance {
95
95
  headers
96
96
  })
97
97
 
98
+ if (Object.prototype.hasOwnProperty.call(params, '_debug') && params._debug) {
99
+ return this.responseHandler.success(response?.data?.data || null)
100
+ }
101
+
98
102
  return returnHeaders
99
103
  ? this.responseHandler.success(response.headers || null)
100
104
  : this.responseHandler.success(response.data || null)