do-functions-server
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"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
29985
366