From 2a1189e0d6b2c0910c62973118b25dfa599033c1 Mon Sep 17 00:00:00 2001 From: Ruslan Konev Date: Thu, 6 Oct 2016 13:27:42 +0300 Subject: [PATCH] Uncaught SyntaxError: Unexpected token export Fix bodyParsing.js modular usage. Export default {...} was got **Uncaught SyntaxError: Unexpected token export**. Module.exports will fix that. [screenshot](https://api.monosnap.com/rpc/file/download?id=Ux9svFZcaeO2KEtWVvRvEsFoQuKAHQ) --- src/components/bodyParsing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/bodyParsing.js b/src/components/bodyParsing.js index 9167ab6e..4e5f5275 100644 --- a/src/components/bodyParsing.js +++ b/src/components/bodyParsing.js @@ -182,4 +182,4 @@ function camelizeHeader (header) { }) } -export default { deriveBody, bodyWithIds, filterBody, sortBody, camelizeHeader } +module.exports = { deriveBody, bodyWithIds, filterBody, sortBody, camelizeHeader }