Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parameter1/micro

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parameter1/micro - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

4

package.json
{
"name": "@parameter1/micro",
"version": "2.3.2",
"version": "2.3.3",
"type": "module",

@@ -36,3 +36,3 @@ "description": "A wrapper for running JSON-based microservices.",

},
"gitHead": "21805b741fbed33792a6021d263f13860a7aecb2"
"gitHead": "f32ea07aa3ed54b294ad16840ae54e3469738699"
}

@@ -8,2 +8,10 @@ import micro from 'micro';

const parseTextBody = (body, parser) => {
try {
return parser(body);
} catch (e) {
throw createError(400, `Unable to parse body: ${e.message}`);
}
};
export default ({

@@ -32,3 +40,3 @@ name,

const body = await text(req, { limit });
const input = parse(body);
const input = parseTextBody(body, parse);
const { action: path, params = {}, meta = {} } = input;

@@ -35,0 +43,0 @@ if (!path) throw createError(400, 'No action provided.');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc