Socket
Socket
Sign inDemoInstall

edge-runtime

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-runtime - npm Package Compare versions

Comparing version 1.1.0-beta.11 to 1.1.0-beta.12

6

dist/edge-runtime.d.ts
import type { DispatchFetch } from './types';
import type { Primitives, EdgeVMOptions } from '@edge-runtime/vm';
import type { EdgeVMOptions, EdgeContext } from '@edge-runtime/vm';
import { EdgeVM } from '@edge-runtime/vm';
interface Options<T extends Primitives> extends EdgeVMOptions<T> {
interface Options<T extends EdgeContext> extends EdgeVMOptions<T> {
/**

@@ -17,3 +17,3 @@ * Code to be evaluated as the VM for the Runtime is created. This is handy

*/
export declare class EdgeRuntime<T extends Primitives = any> extends EdgeVM<T> {
export declare class EdgeRuntime<T extends EdgeContext = EdgeContext> extends EdgeVM<T> {
readonly dispatchFetch: DispatchFetch;

@@ -20,0 +20,0 @@ constructor(options?: Options<T>);

@@ -1,3 +0,2 @@

export type { Primitives } from '@edge-runtime/vm';
export { createHandler, runServer } from './server';
export { EdgeRuntime } from './edge-runtime';
import type { EdgeRuntime } from '../edge-runtime';
import type { IncomingMessage, ServerResponse } from 'http';
import type { Logger } from '../types';
import type { Primitives } from '@edge-runtime/vm';
export interface Options<T extends Primitives> {
import type { EdgeContext } from '@edge-runtime/vm';
export interface Options<T extends EdgeContext> {
/**

@@ -22,5 +22,5 @@ * A logger interface. If none is provided there will be no logs.

*/
export declare function createHandler<T extends Primitives>(options: Options<T>): {
export declare function createHandler<T extends EdgeContext>(options: Options<T>): {
handler: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
waitUntil: () => Promise<unknown[]>;
};

@@ -1,4 +0,4 @@

import type { Primitives } from '@edge-runtime/vm';
import type { EdgeContext } from '@edge-runtime/vm';
import { Options } from './create-handler';
interface ServerOptions<T extends Primitives> extends Options<T> {
interface ServerOptions<T extends EdgeContext> extends Options<T> {
/**

@@ -29,3 +29,3 @@ * The port to start the server. If none is provided it will use a random

*/
export declare function runServer<T extends Primitives>(options: ServerOptions<T>): Promise<EdgeRuntimeServer>;
export declare function runServer<T extends EdgeContext>(options: ServerOptions<T>): Promise<EdgeRuntimeServer>;
export {};

@@ -5,3 +5,3 @@ {

"homepage": "https://edge-runtime.vercel.app/packages/runtime",
"version": "1.1.0-beta.11",
"version": "1.1.0-beta.12",
"main": "dist/index.js",

@@ -25,4 +25,4 @@ "bin": {

"dependencies": {
"@edge-runtime/format": "^1.1.0-beta.11",
"@edge-runtime/vm": "^1.1.0-beta.11",
"@edge-runtime/format": "^1.1.0-beta.12",
"@edge-runtime/vm": "^1.1.0-beta.12",
"exit-hook": "2.2.1",

@@ -45,2 +45,5 @@ "http-status": "~1.5.0",

"build": "tsc --project tsconfig.prod.json",
"clean:build": "rm -rf dist",
"clean:node": "rm -rf node_modules",
"clean": "pnpm run clean:node && pnpm run clean:build",
"postversion": "pnpm run build",

@@ -65,3 +68,3 @@ "test": "jest"

"types": "dist/index.d.ts",
"gitHead": "5381871804e3d5c58a61154a82296e0a7096afb9"
"gitHead": "0e0c9d189a83b070551b04c094631f9e0b2cc8d1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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