@netlify/functions
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -5,2 +5,2 @@ export { HandlerContext } from './handler_context.js'; | ||
export { BuilderResponse, HandlerResponse, StreamingResponse } from './handler_response.js'; | ||
export { Context } from './v2.js'; | ||
export { Context, Config } from './v2.js'; |
export type { Context } from '@netlify/serverless-functions-api'; | ||
type Path = `/${string}`; | ||
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'; | ||
type CronSchedule = string; | ||
export interface Config { | ||
path?: Path | Path[]; | ||
method?: HTTPMethod | HTTPMethod[]; | ||
schedule?: CronSchedule; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/main.d.ts", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -67,3 +67,3 @@ "files": [ | ||
"nyc": "^15.0.0", | ||
"tsd": "^0.28.0", | ||
"tsd": "^0.29.0", | ||
"typescript": "^4.4.4" | ||
@@ -70,0 +70,0 @@ }, |
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
18316
339