@hattip/core
Advanced tools
Comparing version 0.0.34 to 0.0.35-canary
@@ -20,2 +20,11 @@ /** | ||
/** | ||
* Get the value of an environment variable. Check with the platform adapter | ||
* documentation for the specifics of how environment variables are handled. | ||
* | ||
* @param variable The name of the variable to get. | ||
* | ||
* @returns The value of the variable or undefined if it doesn't exist. | ||
*/ | ||
env(variable: string): string | undefined; | ||
/** | ||
* Signal that the request hasn't been handled and the returned response is | ||
@@ -43,4 +52,4 @@ * a placeholder (usually a 404). In this case the adapter should handle the | ||
*/ | ||
export type HattipHandler = ( | ||
context: AdapterRequestContext, | ||
export type HattipHandler<P = unknown> = ( | ||
context: AdapterRequestContext<P>, | ||
) => Response | Promise<Response>; | ||
@@ -47,0 +56,0 @@ |
{ | ||
"name": "@hattip/core", | ||
"version": "0.0.34", | ||
"version": "0.0.35-canary", | ||
"type": "module", | ||
@@ -10,6 +10,6 @@ "files": [ | ||
"devDependencies": { | ||
"@cyco130/eslint-config": "^3.0.2", | ||
"eslint": "^8.36.0", | ||
"publint": "^0.1.11", | ||
"typescript": "^5.0.2" | ||
"@cyco130/eslint-config": "^3.3.0", | ||
"eslint": "^8.45.0", | ||
"publint": "^0.1.16", | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -20,4 +20,4 @@ "scripts": { | ||
"test:lint": "eslint . --max-warnings 0 --ignore-pattern dist", | ||
"test:package": "publint" | ||
"test:package": "publint --strict" | ||
} | ||
} |
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
3746
57