Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

micro-body

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micro-body - npm Package Compare versions

Comparing version
0.0.2
to
0.1.0
+2
-1
index.js
const {json} = require('micro')
const {parse} = require('content-type')
const urlencoded = require('urlencoded-body-parser')
module.exports = async (req) => {
switch (req.headers['content-type']){
switch (parse(req).type){
case 'application/json':

@@ -7,0 +8,0 @@ return await json(req)

{
"name": "micro-body",
"version": "0.0.2",
"version": "0.1.0",
"description": "micro body parser",

@@ -26,2 +26,3 @@ "main": "index.js",

"dependencies": {
"content-type": "^1.0.4",
"micro": "^9.1.0",

@@ -28,0 +29,0 @@ "urlencoded-body-parser": "^2.0.1"