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

do-functions-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

do-functions-server - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "do-functions-server",
"version": "1.2.0",
"version": "1.2.1",
"author": "Brian Evans",

@@ -5,0 +5,0 @@ "type": "module",

import { invokeFunction } from "./invokeFunction.js";
export const requestHandler = (packagesDir, projectYml) => async (req, res) => {
console.log('in requestHandler.ts', projectYml.packages[0]);
console.log(new Date(), req.method, 'Request on ', req.url);

@@ -5,0 +4,0 @@ if (req.method === 'GET' || req.method === 'HEAD') {

@@ -6,3 +6,2 @@ import type {IncomingMessage, ServerResponse} from 'node:http'

export const requestHandler = (packagesDir, projectYml: ProjectYml) => async (req: IncomingMessage, res: ServerResponse) => {
console.log('in requestHandler.ts', projectYml.packages[0])
console.log(new Date(), req.method, 'Request on ', req.url)

@@ -9,0 +8,0 @@ if (req.method === 'GET' || req.method === 'HEAD') {

@@ -22,3 +22,2 @@ import { createServer } from "node:http";

printProjectYml(projectYml);
console.log('in server.ts', projectYml.packages[0]);
const server = createServer(requestHandler(join(absBuiltDir, 'packages'), projectYml));

@@ -25,0 +24,0 @@ await new Promise(res => server.listen(port, res));

@@ -22,3 +22,2 @@ import {createServer} from "node:http";

printProjectYml(projectYml)
console.log('in server.ts', projectYml.packages[0])
const server = createServer(requestHandler(join(absBuiltDir, 'packages'), projectYml))

@@ -25,0 +24,0 @@ await new Promise<void>(res => server.listen(port, res))

Sorry, the diff of this file is not supported yet

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