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

@automata-network/debug-js-server

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automata-network/debug-js-server - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

6

CHANGELOG.md
# @automata-network/debug-js-server
## 1.2.0
### Minor Changes
- add log handler
## 1.1.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@automata-network/debug-js-server",
"version": "1.1.0",
"version": "1.2.0",
"description": "a front-end logs collection tool",

@@ -5,0 +5,0 @@ "private": false,

module.exports = {
handler: async (ctx) => {
const { body } = ctx.request;
generateHandler: (logReceiver) => {
return async (ctx) => {
const { body } = ctx.request;
const logParsed = formateLog(body);
const logParsed = formateLog(body);
console.log(logParsed);
logReceiver(logParsed);
ctx.type = "json";
ctx.status = 200;
ctx.type = "json";
ctx.status = 200;
};
},

@@ -12,0 +14,0 @@ };

@@ -17,2 +17,3 @@ const Koa = require("koa");

corsOptions,
onReceiveLogs,
} = options || {};

@@ -22,3 +23,3 @@ const app = new Koa();

router.post(path, koaBody(), collect.handler);
router.post(path, koaBody(), collect.generateHandler(onReceiveLogs));

@@ -25,0 +26,0 @@ app.use(

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