Skip to content

Commit

Permalink
chore: use single export (#1778)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting authored Oct 8, 2023
1 parent 83e92cb commit a46fff1
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/node/parsers/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
exports['application/x-www-form-urlencoded'] = require('./urlencoded');
exports['application/json'] = require('./json');
exports.text = require('./text');
const urlencoded = require('./urlencoded.js');
const json = require('./json.js');
const text = require('./text.js');
const binary = require('./image.js');

exports['application/json-seq'] = exports.text;

const binary = require('./image');

exports['application/octet-stream'] = binary;
exports['application/pdf'] = binary;
exports.image = binary;
module.exports = {
'application/x-www-form-urlencoded': urlencoded,
'application/json': json,
'text': text,
'application/json-seq': text,
'application/octet-stream': binary,
'application/pdf': binary,
'image': binary
}

0 comments on commit a46fff1

Please sign in to comment.