minitel-cloudflare-worker
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,2 +0,4 @@ | ||
declare const _default: Promise<void>; | ||
declare const _default: { | ||
fetch(request: Request): Promise<Response | undefined>; | ||
}; | ||
export default _default; |
@@ -10,2 +10,2 @@ "use strict"; | ||
setTimeout(() => stream.end(), 10_000); | ||
}).then(() => console.log('MiniPavi handler ready!')); | ||
}); |
@@ -7,5 +7,5 @@ import { Duplex } from 'node:stream'; | ||
} | ||
export declare function createMinipaviHandler(minitelFactory: (ws: Duplex, req: Request) => any, options?: MinipaviHandlerOptions): Promise<{ | ||
export declare function createMinipaviHandler(minitelFactory: (ws: Duplex, req: Request) => any, options?: MinipaviHandlerOptions): { | ||
fetch(request: Request): Promise<Response | undefined>; | ||
}>; | ||
}; | ||
export {}; |
@@ -36,3 +36,3 @@ "use strict"; | ||
}); | ||
async function createMinipaviHandler(minitelFactory, options = {}) { | ||
function createMinipaviHandler(minitelFactory, options = {}) { | ||
const fullOptions = { | ||
@@ -39,0 +39,0 @@ version: '1.0', |
{ | ||
"name": "minitel-cloudflare-worker", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A cloudflare worker for access through MiniPAVI", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -13,2 +13,2 @@ import { Minitel, TextNode } from 'minitel-standalone'; | ||
}, | ||
).then(() => console.log('MiniPavi handler ready!')); | ||
); |
@@ -41,3 +41,3 @@ import { z } from 'zod'; | ||
export async function createMinipaviHandler( | ||
export function createMinipaviHandler( | ||
minitelFactory: (ws: Duplex, req: Request) => any, | ||
@@ -44,0 +44,0 @@ options: MinipaviHandlerOptions = {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
383
26389