New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metlo

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metlo - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

6

dist/modules/fastify.js

@@ -24,3 +24,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

METLO_DETAILS.pool = pool;
function compileInformation(request, response) {
function compileInformation(request, response, response_body) {
return __awaiter(this, void 0, void 0, function* () {

@@ -42,3 +42,3 @@ const data = JSON.stringify({

headers: Object.entries(response.headers).map(([k, v]) => ({ name: k, value: v })),
body: response.body,
body: response_body,
},

@@ -62,3 +62,3 @@ meta: {

fastifyInst.addHook("onSend", (request, reply, payload) => __awaiter(this, void 0, void 0, function* () {
compileInformation(request, reply);
compileInformation(request, reply, payload);
return payload;

@@ -65,0 +65,0 @@ }));

{
"name": "metlo",
"version": "0.0.8",
"version": "0.0.9",
"license": "MIT",

@@ -11,3 +11,3 @@ "description": "The node agent for Metlo API Security.",

"build": "tsc",
"clean": "rm -rf dist/*",
"clean": "rm -rf dist",
"format": "prettier --write './src/**/*.{ts,tsx}'"

@@ -14,0 +14,0 @@ },

@@ -23,3 +23,3 @@ <p align="center">

```bash
yarn install metlo
yarn add metlo
```

@@ -26,0 +26,0 @@

@@ -20,3 +20,3 @@ const ritm = require("require-in-the-middle")

async function compileInformation(request, response) {
async function compileInformation(request, response, response_body) {
const data = JSON.stringify(

@@ -38,3 +38,3 @@ {

headers: Object.entries(response.headers).map(([k, v]) => ({ name: k, value: v })),
body: response.body,
body: response_body,
},

@@ -61,3 +61,3 @@ meta: {

fastifyInst.addHook("onSend", async (request, reply, payload) => {
compileInformation(request, reply)
compileInformation(request, reply, payload)
return payload

@@ -64,0 +64,0 @@ })

Sorry, the diff of this file is not supported yet

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