messaging-api-common
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.2
@@ -11,3 +11,8 @@ "use strict"; | ||
debugRequest('Outgoing request body:'); | ||
debugRequest(JSON.stringify(request.body, null, 2)); | ||
if (Buffer.isBuffer(request.body)) { | ||
debugRequest(request.body); | ||
} | ||
else { | ||
debugRequest(JSON.stringify(request.body, null, 2)); | ||
} | ||
} | ||
@@ -14,0 +19,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0-alpha.2", | ||
"main": "dist/index.js", | ||
@@ -24,3 +24,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "67490b1b2e7e842f4d1670d944d58a2bf11eb1e4" | ||
"gitHead": "7581219e17a1b1d9ab2f600e14f75b9714dd6fa0" | ||
} |
@@ -13,3 +13,7 @@ import debug from 'debug'; | ||
debugRequest('Outgoing request body:'); | ||
debugRequest(JSON.stringify(request.body, null, 2)); | ||
if (Buffer.isBuffer(request.body)) { | ||
debugRequest(request.body); | ||
} else { | ||
debugRequest(JSON.stringify(request.body, null, 2)); | ||
} | ||
} | ||
@@ -16,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
63488
53