mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
It works?
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import {
|
||||
CreateFunctionCommand,
|
||||
GetFunctionCommand,
|
||||
LambdaClient,
|
||||
type Runtime,
|
||||
UpdateFunctionCodeCommand,
|
||||
} from '@aws-sdk/client-lambda'
|
||||
import JSZip from 'jszip'
|
||||
import { GetFunctionCommand, LambdaClient } from '@aws-sdk/client-lambda'
|
||||
import { promises as fs } from 'fs'
|
||||
import type { NextRequest } from 'next/server'
|
||||
import { tmpdir } from 'os'
|
||||
import { join } from 'path'
|
||||
import { z } from 'zod'
|
||||
import { createLogger } from '@/lib/logs/console-logger'
|
||||
import { createErrorResponse, createSuccessResponse } from '@/app/api/workflows/utils'
|
||||
@@ -63,80 +59,188 @@ function getFileExtension(runtime: string): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a ZIP file with the Lambda code and dependencies
|
||||
* Sanitize function name for SAM/CloudFormation resource naming
|
||||
* SAM resource names must be alphanumeric only (letters and numbers)
|
||||
*/
|
||||
async function createLambdaPackage(params: DeployRequest): Promise<Buffer> {
|
||||
const zip = new JSZip()
|
||||
|
||||
// Add all code files from the JSON object
|
||||
for (const [filePath, codeContent] of Object.entries(params.code)) {
|
||||
zip.file(filePath, codeContent)
|
||||
}
|
||||
|
||||
return await zip.generateAsync({ type: 'nodebuffer' })
|
||||
function sanitizeResourceName(functionName: string): string {
|
||||
return functionName
|
||||
.replace(/[^a-zA-Z0-9]/g, '') // Remove all non-alphanumeric characters
|
||||
.replace(/^(\d)/, 'Func$1') // Ensure it starts with a letter if it starts with a number
|
||||
.substring(0, 64) // Ensure reasonable length limit
|
||||
|| 'LambdaFunction' // Fallback if name becomes empty
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a Lambda function already exists
|
||||
* Create SAM template for the Lambda function
|
||||
*/
|
||||
async function checkFunctionExists(
|
||||
lambdaClient: LambdaClient,
|
||||
functionName: string
|
||||
): Promise<boolean> {
|
||||
function createSamTemplate(params: DeployRequest): string {
|
||||
// Sanitize the function name for CloudFormation resource naming
|
||||
const resourceName = sanitizeResourceName(params.functionName)
|
||||
|
||||
const template = {
|
||||
AWSTemplateFormatVersion: '2010-09-09',
|
||||
Transform: 'AWS::Serverless-2016-10-31',
|
||||
Resources: {
|
||||
[resourceName]: {
|
||||
Type: 'AWS::Serverless::Function',
|
||||
Properties: {
|
||||
FunctionName: params.functionName, // Use original function name for actual Lambda function
|
||||
CodeUri: './src',
|
||||
Handler: params.handler,
|
||||
Runtime: params.runtime,
|
||||
Role: params.role,
|
||||
Timeout: params.timeout,
|
||||
MemorySize: params.memorySize,
|
||||
Environment: {
|
||||
Variables: params.environmentVariables,
|
||||
},
|
||||
Tags: params.tags,
|
||||
},
|
||||
},
|
||||
},
|
||||
Outputs: {
|
||||
FunctionArn: {
|
||||
Value: { 'Fn::GetAtt': [resourceName, 'Arn'] },
|
||||
Export: { Name: `${params.functionName}-Arn` },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return JSON.stringify(template, null, 2)
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a shell command and return the result
|
||||
*/
|
||||
async function execCommand(
|
||||
command: string,
|
||||
cwd: string,
|
||||
env?: Record<string, string>
|
||||
): Promise<{ stdout: string; stderr: string }> {
|
||||
const { exec } = await import('child_process')
|
||||
const { promisify } = await import('util')
|
||||
const execAsync = promisify(exec)
|
||||
|
||||
return await execAsync(command, {
|
||||
cwd,
|
||||
env: env ? { ...process.env, ...env } : process.env
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Deploy Lambda function using SAM CLI
|
||||
*/
|
||||
async function deployWithSam(params: DeployRequest, requestId: string): Promise<LambdaFunctionDetails> {
|
||||
const tempDir = join(tmpdir(), `lambda-deploy-${requestId}`)
|
||||
const srcDir = join(tempDir, 'src')
|
||||
|
||||
try {
|
||||
await lambdaClient.send(new GetFunctionCommand({ FunctionName: functionName }))
|
||||
return true
|
||||
} catch (error: any) {
|
||||
if (error.name === 'ResourceNotFoundException') {
|
||||
return false
|
||||
// Create temporary directory structure
|
||||
await fs.mkdir(tempDir, { recursive: true })
|
||||
await fs.mkdir(srcDir, { recursive: true })
|
||||
|
||||
logger.info(`[${requestId}] Created temporary directory: ${tempDir}`)
|
||||
|
||||
// Write SAM template
|
||||
const samTemplate = createSamTemplate(params)
|
||||
await fs.writeFile(join(tempDir, 'template.yaml'), samTemplate)
|
||||
|
||||
logger.info(`[${requestId}] Created SAM template`)
|
||||
|
||||
// Write source code files
|
||||
for (const [filePath, codeContent] of Object.entries(params.code)) {
|
||||
const fullPath = join(srcDir, filePath)
|
||||
const fileDir = join(fullPath, '..')
|
||||
|
||||
// Ensure directory exists
|
||||
await fs.mkdir(fileDir, { recursive: true })
|
||||
await fs.writeFile(fullPath, codeContent)
|
||||
|
||||
logger.info(`[${requestId}] Created source file: ${filePath}`)
|
||||
}
|
||||
|
||||
// Set AWS credentials in environment
|
||||
const env = {
|
||||
AWS_ACCESS_KEY_ID: params.accessKeyId,
|
||||
AWS_SECRET_ACCESS_KEY: params.secretAccessKey,
|
||||
AWS_DEFAULT_REGION: params.region,
|
||||
}
|
||||
|
||||
// Build the SAM application
|
||||
logger.info(`[${requestId}] Building SAM application...`)
|
||||
const buildCommand = 'sam build --no-cached'
|
||||
const buildResult = await execCommand(buildCommand, tempDir, env)
|
||||
|
||||
logger.info(`[${requestId}] SAM build output:`, {
|
||||
stdout: buildResult.stdout,
|
||||
stderr: buildResult.stderr
|
||||
})
|
||||
|
||||
if (buildResult.stderr && !buildResult.stderr.includes('Successfully built')) {
|
||||
logger.warn(`[${requestId}] SAM build warnings:`, { stderr: buildResult.stderr })
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] SAM build completed`)
|
||||
|
||||
// Deploy the SAM application
|
||||
logger.info(`[${requestId}] Deploying SAM application...`)
|
||||
const stackName = `${sanitizeResourceName(params.functionName)}Stack`
|
||||
const deployCommand = [
|
||||
'sam deploy',
|
||||
'--no-confirm-changeset',
|
||||
'--no-fail-on-empty-changeset',
|
||||
`--stack-name ${stackName}`,
|
||||
`--region ${params.region}`,
|
||||
'--resolve-s3',
|
||||
'--capabilities CAPABILITY_IAM',
|
||||
'--no-progressbar'
|
||||
].join(' ')
|
||||
|
||||
const deployResult = await execCommand(deployCommand, tempDir, env)
|
||||
|
||||
logger.info(`[${requestId}] SAM deploy output:`, {
|
||||
stdout: deployResult.stdout,
|
||||
stderr: deployResult.stderr
|
||||
})
|
||||
|
||||
if (deployResult.stderr && !deployResult.stderr.includes('Successfully created/updated stack')) {
|
||||
logger.warn(`[${requestId}] SAM deploy warnings:`, { stderr: deployResult.stderr })
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] SAM deploy completed`)
|
||||
|
||||
// Get function details using AWS SDK
|
||||
const lambdaClient = new LambdaClient({
|
||||
region: params.region,
|
||||
credentials: {
|
||||
accessKeyId: params.accessKeyId,
|
||||
secretAccessKey: params.secretAccessKey,
|
||||
},
|
||||
})
|
||||
|
||||
const functionDetails = await getFunctionDetails(lambdaClient, params.functionName, params.region)
|
||||
|
||||
return functionDetails
|
||||
|
||||
} catch (error) {
|
||||
logger.error(`[${requestId}] Error during SAM deployment`, {
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
stack: error instanceof Error ? error.stack : undefined,
|
||||
})
|
||||
throw error
|
||||
} finally {
|
||||
// Clean up temporary directory
|
||||
try {
|
||||
await fs.rm(tempDir, { recursive: true, force: true })
|
||||
logger.info(`[${requestId}] Cleaned up temporary directory: ${tempDir}`)
|
||||
} catch (cleanupError) {
|
||||
logger.warn(`[${requestId}] Failed to clean up temporary directory`, {
|
||||
error: cleanupError instanceof Error ? cleanupError.message : String(cleanupError),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Lambda function
|
||||
*/
|
||||
async function createLambdaFunction(
|
||||
lambdaClient: LambdaClient,
|
||||
params: DeployRequest,
|
||||
zipBuffer: Buffer
|
||||
): Promise<any> {
|
||||
const createParams = {
|
||||
FunctionName: params.functionName,
|
||||
Runtime: params.runtime as Runtime,
|
||||
Role: params.role,
|
||||
Handler: params.handler,
|
||||
Code: {
|
||||
ZipFile: zipBuffer,
|
||||
},
|
||||
Timeout: params.timeout,
|
||||
MemorySize: params.memorySize,
|
||||
Environment: {
|
||||
Variables: params.environmentVariables,
|
||||
},
|
||||
Tags: params.tags,
|
||||
}
|
||||
|
||||
return await lambdaClient.send(new CreateFunctionCommand(createParams))
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing Lambda function's code
|
||||
*/
|
||||
async function updateLambdaFunction(
|
||||
lambdaClient: LambdaClient,
|
||||
functionName: string,
|
||||
zipBuffer: Buffer
|
||||
): Promise<any> {
|
||||
const updateParams = {
|
||||
FunctionName: functionName,
|
||||
ZipFile: zipBuffer,
|
||||
}
|
||||
|
||||
return await lambdaClient.send(new UpdateFunctionCodeCommand(updateParams))
|
||||
}
|
||||
|
||||
/**
|
||||
* Get detailed information about a Lambda function
|
||||
*/
|
||||
@@ -279,39 +383,10 @@ export async function POST(request: NextRequest) {
|
||||
tagsCount: Object.keys(params.tags || {}).length,
|
||||
})
|
||||
|
||||
logger.info(`[${requestId}] Deploying Lambda function: ${params.functionName}`)
|
||||
logger.info(`[${requestId}] Deploying Lambda function with SAM: ${params.functionName}`)
|
||||
|
||||
// Create Lambda client
|
||||
const lambdaClient = new LambdaClient({
|
||||
region: params.region,
|
||||
credentials: {
|
||||
accessKeyId: params.accessKeyId,
|
||||
secretAccessKey: params.secretAccessKey,
|
||||
},
|
||||
})
|
||||
|
||||
// Create ZIP file with the Lambda code and dependencies
|
||||
const zipBuffer = await createLambdaPackage(params)
|
||||
|
||||
// Check if function already exists
|
||||
const functionExists = await checkFunctionExists(lambdaClient, params.functionName)
|
||||
|
||||
if (functionExists) {
|
||||
logger.info(`[${requestId}] Function ${params.functionName} already exists, updating code`)
|
||||
await updateLambdaFunction(lambdaClient, params.functionName, zipBuffer)
|
||||
} else {
|
||||
logger.info(
|
||||
`[${requestId}] Function ${params.functionName} does not exist, creating new function`
|
||||
)
|
||||
await createLambdaFunction(lambdaClient, params, zipBuffer)
|
||||
}
|
||||
|
||||
// Get function details for response
|
||||
const functionDetails = await getFunctionDetails(
|
||||
lambdaClient,
|
||||
params.functionName,
|
||||
params.region
|
||||
)
|
||||
// Deploy using SAM CLI
|
||||
const functionDetails = await deployWithSam(params, requestId)
|
||||
|
||||
logger.info(`[${requestId}] Lambda function deployment completed successfully`, {
|
||||
functionName: params.functionName,
|
||||
@@ -332,7 +407,10 @@ export async function POST(request: NextRequest) {
|
||||
let errorMessage = 'Failed to deploy Lambda function'
|
||||
let statusCode = 500
|
||||
|
||||
if (error.name === 'AccessDeniedException') {
|
||||
if (error.message?.includes('sam: command not found')) {
|
||||
errorMessage = 'SAM CLI is not installed or not available in PATH'
|
||||
statusCode = 500
|
||||
} else if (error.name === 'AccessDeniedException') {
|
||||
errorMessage = 'Access denied. Please check your AWS credentials and permissions.'
|
||||
statusCode = 403
|
||||
} else if (error.name === 'InvalidParameterValueException') {
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.39.0",
|
||||
"@aws-sdk/client-apigatewayv2": "3.840.0",
|
||||
"@aws-sdk/client-lambda": "3.840.0",
|
||||
"@aws-sdk/client-s3": "3.842.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.842.0",
|
||||
|
||||
22
bun.lock
22
bun.lock
@@ -57,6 +57,7 @@
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.39.0",
|
||||
"@aws-sdk/client-apigatewayv2": "3.840.0",
|
||||
"@aws-sdk/client-lambda": "3.840.0",
|
||||
"@aws-sdk/client-s3": "3.842.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.842.0",
|
||||
@@ -118,6 +119,7 @@
|
||||
"input-otp": "^1.4.2",
|
||||
"ioredis": "^5.6.0",
|
||||
"jose": "6.0.11",
|
||||
"jszip": "^3.10.1",
|
||||
"jwt-decode": "^4.0.0",
|
||||
"lenis": "^1.2.3",
|
||||
"lucide-react": "^0.479.0",
|
||||
@@ -276,6 +278,8 @@
|
||||
|
||||
"@aws-crypto/util": ["@aws-crypto/util@5.2.0", "", { "dependencies": { "@aws-sdk/types": "^3.222.0", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" } }, "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ=="],
|
||||
|
||||
"@aws-sdk/client-apigatewayv2": ["@aws-sdk/client-apigatewayv2@3.840.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.840.0", "@aws-sdk/credential-provider-node": "3.840.0", "@aws-sdk/middleware-host-header": "3.840.0", "@aws-sdk/middleware-logger": "3.840.0", "@aws-sdk/middleware-recursion-detection": "3.840.0", "@aws-sdk/middleware-user-agent": "3.840.0", "@aws-sdk/region-config-resolver": "3.840.0", "@aws-sdk/types": "3.840.0", "@aws-sdk/util-endpoints": "3.840.0", "@aws-sdk/util-user-agent-browser": "3.840.0", "@aws-sdk/util-user-agent-node": "3.840.0", "@smithy/config-resolver": "^4.1.4", "@smithy/core": "^3.6.0", "@smithy/fetch-http-handler": "^5.0.4", "@smithy/hash-node": "^4.0.4", "@smithy/invalid-dependency": "^4.0.4", "@smithy/middleware-content-length": "^4.0.4", "@smithy/middleware-endpoint": "^4.1.13", "@smithy/middleware-retry": "^4.1.14", "@smithy/middleware-serde": "^4.0.8", "@smithy/middleware-stack": "^4.0.4", "@smithy/node-config-provider": "^4.1.3", "@smithy/node-http-handler": "^4.0.6", "@smithy/protocol-http": "^5.1.2", "@smithy/smithy-client": "^4.4.5", "@smithy/types": "^4.3.1", "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", "@smithy/util-defaults-mode-browser": "^4.0.21", "@smithy/util-defaults-mode-node": "^4.0.21", "@smithy/util-endpoints": "^3.0.6", "@smithy/util-middleware": "^4.0.4", "@smithy/util-retry": "^4.0.6", "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" } }, "sha512-r9lIhflnQrhLRX1Z1U5lb2a/fhyG/qs8KZQ7kBVYsXEJAV36pIQTjRlyigDHF0gbV/je9NJpfSA2MdgeRgOyuA=="],
|
||||
|
||||
"@aws-sdk/client-lambda": ["@aws-sdk/client-lambda@3.840.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.840.0", "@aws-sdk/credential-provider-node": "3.840.0", "@aws-sdk/middleware-host-header": "3.840.0", "@aws-sdk/middleware-logger": "3.840.0", "@aws-sdk/middleware-recursion-detection": "3.840.0", "@aws-sdk/middleware-user-agent": "3.840.0", "@aws-sdk/region-config-resolver": "3.840.0", "@aws-sdk/types": "3.840.0", "@aws-sdk/util-endpoints": "3.840.0", "@aws-sdk/util-user-agent-browser": "3.840.0", "@aws-sdk/util-user-agent-node": "3.840.0", "@smithy/config-resolver": "^4.1.4", "@smithy/core": "^3.6.0", "@smithy/eventstream-serde-browser": "^4.0.4", "@smithy/eventstream-serde-config-resolver": "^4.1.2", "@smithy/eventstream-serde-node": "^4.0.4", "@smithy/fetch-http-handler": "^5.0.4", "@smithy/hash-node": "^4.0.4", "@smithy/invalid-dependency": "^4.0.4", "@smithy/middleware-content-length": "^4.0.4", "@smithy/middleware-endpoint": "^4.1.13", "@smithy/middleware-retry": "^4.1.14", "@smithy/middleware-serde": "^4.0.8", "@smithy/middleware-stack": "^4.0.4", "@smithy/node-config-provider": "^4.1.3", "@smithy/node-http-handler": "^4.0.6", "@smithy/protocol-http": "^5.1.2", "@smithy/smithy-client": "^4.4.5", "@smithy/types": "^4.3.1", "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", "@smithy/util-defaults-mode-browser": "^4.0.21", "@smithy/util-defaults-mode-node": "^4.0.21", "@smithy/util-endpoints": "^3.0.6", "@smithy/util-middleware": "^4.0.4", "@smithy/util-retry": "^4.0.6", "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "@smithy/util-waiter": "^4.0.6", "tslib": "^2.6.2" } }, "sha512-aUKHKWW4Z1nxQ0q/shHkSA278oyv+lRJSvpin1GJXQumDdMKcOuXktmufOCZzjbl6UVw/Pqaw6V1Vo2gda6RdQ=="],
|
||||
|
||||
"@aws-sdk/client-s3": ["@aws-sdk/client-s3@3.842.0", "", { "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.840.0", "@aws-sdk/credential-provider-node": "3.840.0", "@aws-sdk/middleware-bucket-endpoint": "3.840.0", "@aws-sdk/middleware-expect-continue": "3.840.0", "@aws-sdk/middleware-flexible-checksums": "3.840.0", "@aws-sdk/middleware-host-header": "3.840.0", "@aws-sdk/middleware-location-constraint": "3.840.0", "@aws-sdk/middleware-logger": "3.840.0", "@aws-sdk/middleware-recursion-detection": "3.840.0", "@aws-sdk/middleware-sdk-s3": "3.840.0", "@aws-sdk/middleware-ssec": "3.840.0", "@aws-sdk/middleware-user-agent": "3.840.0", "@aws-sdk/region-config-resolver": "3.840.0", "@aws-sdk/signature-v4-multi-region": "3.840.0", "@aws-sdk/types": "3.840.0", "@aws-sdk/util-endpoints": "3.840.0", "@aws-sdk/util-user-agent-browser": "3.840.0", "@aws-sdk/util-user-agent-node": "3.840.0", "@aws-sdk/xml-builder": "3.821.0", "@smithy/config-resolver": "^4.1.4", "@smithy/core": "^3.6.0", "@smithy/eventstream-serde-browser": "^4.0.4", "@smithy/eventstream-serde-config-resolver": "^4.1.2", "@smithy/eventstream-serde-node": "^4.0.4", "@smithy/fetch-http-handler": "^5.0.4", "@smithy/hash-blob-browser": "^4.0.4", "@smithy/hash-node": "^4.0.4", "@smithy/hash-stream-node": "^4.0.4", "@smithy/invalid-dependency": "^4.0.4", "@smithy/md5-js": "^4.0.4", "@smithy/middleware-content-length": "^4.0.4", "@smithy/middleware-endpoint": "^4.1.13", "@smithy/middleware-retry": "^4.1.14", "@smithy/middleware-serde": "^4.0.8", "@smithy/middleware-stack": "^4.0.4", "@smithy/node-config-provider": "^4.1.3", "@smithy/node-http-handler": "^4.0.6", "@smithy/protocol-http": "^5.1.2", "@smithy/smithy-client": "^4.4.5", "@smithy/types": "^4.3.1", "@smithy/url-parser": "^4.0.4", "@smithy/util-base64": "^4.0.0", "@smithy/util-body-length-browser": "^4.0.0", "@smithy/util-body-length-node": "^4.0.0", "@smithy/util-defaults-mode-browser": "^4.0.21", "@smithy/util-defaults-mode-node": "^4.0.21", "@smithy/util-endpoints": "^3.0.6", "@smithy/util-middleware": "^4.0.4", "@smithy/util-retry": "^4.0.6", "@smithy/util-stream": "^4.2.2", "@smithy/util-utf8": "^4.0.0", "@smithy/util-waiter": "^4.0.6", "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" } }, "sha512-T5Rh72Rcq1xIaM8KkTr1Wpr7/WPCYO++KrM+/Em0rq2jxpjMMhj77ITpgH7eEmNxWmwIndTwqpgfmbpNfk7Gbw=="],
|
||||
@@ -2750,7 +2754,7 @@
|
||||
|
||||
"rxjs": ["rxjs@7.8.2", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA=="],
|
||||
|
||||
"safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
|
||||
"safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"safe-stable-stringify": ["safe-stable-stringify@2.5.0", "", {}, "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA=="],
|
||||
|
||||
@@ -3472,8 +3476,6 @@
|
||||
|
||||
"dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
|
||||
|
||||
"ecdsa-sig-formatter/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"engine.io/debug": ["debug@4.3.7", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ=="],
|
||||
|
||||
"engine.io/ws": ["ws@8.17.1", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ=="],
|
||||
@@ -3532,10 +3534,6 @@
|
||||
|
||||
"jszip/readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
|
||||
|
||||
"jwa/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"jws/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"lazystream/readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
|
||||
|
||||
"linebreak/base64-js": ["base64-js@0.0.8", "", {}, "sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw=="],
|
||||
@@ -3604,8 +3602,6 @@
|
||||
|
||||
"protobufjs/long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],
|
||||
|
||||
"randombytes/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"react-email/chalk": ["chalk@5.4.1", "", {}, "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w=="],
|
||||
|
||||
"react-email/chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
|
||||
@@ -3648,6 +3644,8 @@
|
||||
|
||||
"string-width-cjs/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
|
||||
|
||||
"string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
|
||||
|
||||
"sucrase/commander": ["commander@4.1.1", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="],
|
||||
|
||||
"sucrase/glob": ["glob@10.4.5", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg=="],
|
||||
@@ -3864,12 +3862,8 @@
|
||||
|
||||
"jest-diff/pretty-format/react-is": ["react-is@17.0.2", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="],
|
||||
|
||||
"jszip/readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"jszip/readable-stream/string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
|
||||
|
||||
"lazystream/readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"lazystream/readable-stream/string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
|
||||
|
||||
"lint-staged/listr2/cli-truncate": ["cli-truncate@4.0.0", "", { "dependencies": { "slice-ansi": "^5.0.0", "string-width": "^7.0.0" } }, "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA=="],
|
||||
@@ -3972,8 +3966,6 @@
|
||||
|
||||
"archiver-utils/glob/path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
|
||||
|
||||
"bl/readable-stream/string_decoder/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
|
||||
|
||||
"cli-truncate/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="],
|
||||
|
||||
"gaxios/node-fetch/whatwg-url/tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="],
|
||||
|
||||
Reference in New Issue
Block a user