New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@codeinkit/http-trigger

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codeinkit/http-trigger - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+1
-1
package.json
{
"name": "@codeinkit/http-trigger",
"version": "1.0.2",
"version": "1.0.3",
"description": "A basic TypeScript project",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -32,3 +32,5 @@ import fs from 'fs';

private flows: Flows;
private routes: { [key: string]: string } = {};
private routes: { [key: string]: string } = {
'not-found': 'not-found'
};
private corsOptions: CorsOptions;

@@ -262,3 +264,3 @@ private staticPath?: string;

if (!match) {
if (!match && req.method === 'GET') {
req.url = '/index.html';

@@ -269,7 +271,7 @@ this.serveStaticFile(req, res);

const { route, params } = match;
const { route, params } = match || { route: 'not-found', params: {} };
const query = Object.fromEntries(url.searchParams);
const result = await this.flows.execute(this.routes[route] || 'not-found', { params, query, headers: req.headers }, {...this.unsafe, req, res}).catch((err: HttpError) => {
const result = await this.flows.execute(this.routes[route], { params, query, headers: req.headers }, {...this.unsafe, req, res}).catch((err: HttpError) => {
log(err);

@@ -276,0 +278,0 @@ return {