@be-link/ecommerce-client-backend-service-node-sdk 0.1.37 → 0.1.38

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/http.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-client-backend-service-node-sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "EcommerceClientBackendService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/utils/http.js CHANGED
@@ -89,7 +89,7 @@ async function callApi(url, request) {
89
89
  const beLinkUserId = ctx?.get('beLinkUserId') || '';
90
90
  const pandoraRoleId = ctx?.get('pandoraRoleId') || '';
91
91
  const realIp = ctx?.get('realIp') || '';
92
- const response = await axios_1.default.post(url, request, {
92
+ const response = await axios_1.default.post(url, request || {}, {
93
93
  headers: {
94
94
  'x-request-id': requestId,
95
95
  'x-belink-pandora-userid': pandoraUserId,