zudello-integration-sdk 1.0.61 → 1.0.62

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.61",
3
+ "version": "1.0.62",
4
4
  "description": "Zudello Integrations SDK",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -66,7 +66,7 @@ class UniversalModule {
66
66
  * @param {string} url URL of request.
67
67
  * @returns {object} Universal Request Response.
68
68
  */
69
- async attach ({ fileURL, url, apiProvider = null, apiGroup = null }) {
69
+ async attach ({ fileURL, url, body = {}, apiProvider = null, apiGroup = null }) {
70
70
  const validateIsEmpty = this.module.validator.isEmpty({ url, fileURL })
71
71
 
72
72
  if (!validateIsEmpty.valid) {
@@ -79,6 +79,9 @@ class UniversalModule {
79
79
  },
80
80
  fileURL: {
81
81
  value: fileURL
82
+ },
83
+ body: {
84
+ value: JSON.stringify(body)
82
85
  }
83
86
  }
84
87