@sparticuz/chromium
Advanced tools
Comparing version 113.0.0 to 113.0.1
export declare const isValidUrl: (input: string) => boolean; | ||
/** | ||
* Determines if the running instance is inside an AWS Lambda container. | ||
* @returns | ||
* AWS_EXECUTION_ENV is for native Lambda instances | ||
* AWS_LAMBDA_JS_RUNTIME is for netlify instances | ||
* @returns boolean indicating if the running instance is inside a Lambda container | ||
*/ | ||
export declare const isRunningInAwsLambda: () => boolean; | ||
export declare const downloadAndExtract: (url: string) => Promise<string>; |
@@ -20,3 +20,5 @@ "use strict"; | ||
* Determines if the running instance is inside an AWS Lambda container. | ||
* @returns | ||
* AWS_EXECUTION_ENV is for native Lambda instances | ||
* AWS_LAMBDA_JS_RUNTIME is for netlify instances | ||
* @returns boolean indicating if the running instance is inside a Lambda container | ||
*/ | ||
@@ -28,2 +30,6 @@ const isRunningInAwsLambda = () => { | ||
} | ||
else if (process.env["AWS_LAMBDA_JS_RUNTIME"] && | ||
/^nodejs/.test(process.env["AWS_LAMBDA_JS_RUNTIME"]) === true) { | ||
return true; | ||
} | ||
return false; | ||
@@ -30,0 +36,0 @@ }; |
{ | ||
"name": "@sparticuz/chromium", | ||
"version": "113.0.0", | ||
"version": "113.0.1", | ||
"description": "Chromium Binary for Serverless Platforms", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"@types/follow-redirects": "^1.14.1", | ||
"@types/node": "^18.16.3", | ||
"@types/node": "^18.16.4", | ||
"@types/tar-fs": "^2.0.1", | ||
@@ -49,0 +49,0 @@ "clean-modules": "^2.0.6", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
58871742
527
16