@remix-run/deno
Advanced tools
Comparing version 0.0.0-experimental-2ca98589 to 0.0.0-experimental-52edfc8c
@@ -0,1 +1,10 @@ | ||
declare global { | ||
interface ProcessEnv { | ||
NODE_ENV: "development" | "production" | "test"; | ||
} | ||
interface Process { | ||
env: ProcessEnv; | ||
} | ||
var process: Process; | ||
} | ||
export declare function installGlobals(): void; |
@@ -1,2 +0,2 @@ | ||
export * from "@remix-run/server-runtime"; | ||
export { createRequestHandlerWithStaticFiles } from "./server"; | ||
export { createRequestHandler, createRequestHandlerWithStaticFiles, serveStaticFiles } from "./server"; | ||
export { createFileSessionStorage } from "./sessions/fileStorage"; |
{ | ||
"name": "@remix-run/deno", | ||
"description": "Deno platform abstractions for Remix", | ||
"version": "0.0.0-experimental-2ca98589", | ||
"version": "0.0.0-experimental-52edfc8c", | ||
"license": "MIT", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"repository": { | ||
@@ -15,3 +17,3 @@ "type": "git", | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-experimental-2ca98589", | ||
"@remix-run/server-runtime": "0.0.0-experimental-52edfc8c", | ||
"mime": "^3.0.0" | ||
@@ -18,0 +20,0 @@ }, |
import type { ServerBuild } from "@remix-run/server-runtime"; | ||
export declare function defaultCacheControl(url: URL): "public, max-age=31536000, immutable" | "public, max-age=600"; | ||
export declare function createRequestHandlerWithStaticFiles({ build, mode, staticFiles: { cacheControl, publicDir } }: { | ||
export declare function createRequestHandler<Context = unknown>({ build, mode, getLoadContext }: { | ||
build: ServerBuild; | ||
mode?: string; | ||
getLoadContext?: (request: Request) => Promise<Context> | Context; | ||
}): (request: Request) => Promise<Response>; | ||
export declare function serveStaticFiles(request: Request, { cacheControl, publicDir, assetsPublicPath }: { | ||
cacheControl?: string | ((url: URL) => string); | ||
publicDir?: string; | ||
assetsPublicPath?: string; | ||
}): Promise<Response>; | ||
export declare function createRequestHandlerWithStaticFiles<Context = unknown>({ build, mode, getLoadContext, staticFiles }: { | ||
build: ServerBuild; | ||
mode?: string; | ||
getLoadContext?: (request: Request) => Promise<Context> | Context; | ||
staticFiles?: { | ||
cacheControl?: string | ((url: URL) => string); | ||
publicDir?: string; | ||
assetsPublicPath?: string; | ||
}; | ||
}): (request: Request) => Promise<Response>; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
12524
15
322
3
+ Added@remix-run/server-runtime@0.0.0-experimental-52edfc8c(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-2ca98589(transitive)
Updated@remix-run/server-runtime@0.0.0-experimental-52edfc8c