
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@lagon/runtime
Advanced tools
JavaScript Serverless Runtime
const deployment: Deployment = {
functionId: 'custom-id',
deploymentId: 'custom-id',
domains: ['localhost:3000'],
memory: 128,
timeout: 50,
env: {
hello: 'world',
},
isCurrent: true,
}
function getDeploymentCode(deployment) {
return `export async function handler(request) {
return new Response("Hello world!")
}`
}
const runIsolate = await getIsolate({
deployment,
getDeploymentCode,
})
const request: HandlerRequest = {
input: '/test',
options: {
method: 'GET',
headers: {},
body: 'request body',
},
}
const { response } = await runIsolate(request)
new Request(input [, options])
input: string
options?: RequestInit
method?: string
headers?: Record<string, string | string[] | undefined>
body?: string
method: string
headers: Record<string, string | string[] | undefined>
body: string
url: string
text(): Promise<string>
json<T>(): Promise<T>
formData(): Promise<Record<string, string>>
new Response(body [, options])
body: string
options?: ResponseInit
status?: string
statusText?: string
headers?: Record<string, string | string[] | undefined>
url?: string
body: string
headers: Record<string, string | string[] | undefined>
ok: boolean
status: number
statusText: string
url: string
text(): Promise<string>
json<T>(): Promise<T>
formData(): Promise<Record<string, string>>
fetch(resource [, init]): Promise<Response>
resource: string
init?: RequestInit
MY_VARIABLE
console.log(...args: any[])
console.error(...args: any[])
console.info(...args: any[])
console.warn(...args: any[])
console.debug(...args: any[])
FAQs
JavaScript Serverless Runtime for Lagon
The npm package @lagon/runtime receives a total of 0 weekly downloads. As such, @lagon/runtime popularity was classified as not popular.
We found that @lagon/runtime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.