Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sparticuz/chromium

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sparticuz/chromium - npm Package Compare versions

Comparing version 119.0.1-next.1 to 119.0.1-next.2

bin/al2.tar.br

10

build/helper.js

@@ -26,7 +26,9 @@ "use strict";

if (process.env["AWS_EXECUTION_ENV"] &&
process.env["AWS_EXECUTION_ENV"].includes("AWS_Lambda_nodejs")) {
process.env["AWS_EXECUTION_ENV"].includes("AWS_Lambda_nodejs") &&
!process.env["AWS_EXECUTION_ENV"].includes("20.x")) {
return true;
}
else if (process.env["AWS_LAMBDA_JS_RUNTIME"] &&
process.env["AWS_LAMBDA_JS_RUNTIME"].includes("nodejs")) {
process.env["AWS_LAMBDA_JS_RUNTIME"].includes("nodejs") &&
!process.env["AWS_LAMBDA_JS_RUNTIME"].includes("20.x")) {
return true;

@@ -42,2 +44,6 @@ }

}
else if (process.env["AWS_LAMBDA_JS_RUNTIME"] &&
process.env["AWS_LAMBDA_JS_RUNTIME"].includes("20.x")) {
return true;
}
return false;

@@ -44,0 +50,0 @@ };

38

build/index.js

@@ -13,12 +13,11 @@ "use strict";

if (process.env["FONTCONFIG_PATH"] === undefined) {
process.env["FONTCONFIG_PATH"] = "/tmp/aws";
process.env["FONTCONFIG_PATH"] = "/tmp/fonts";
}
if (process.env["LD_LIBRARY_PATH"] === undefined) {
process.env["LD_LIBRARY_PATH"] = "/tmp/aws/lib";
process.env["LD_LIBRARY_PATH"] = "/tmp/al2/lib";
}
else if (process.env["LD_LIBRARY_PATH"].startsWith("/tmp/aws/lib") !== true) {
else if (process.env["LD_LIBRARY_PATH"].startsWith("/tmp/al2/lib") !== true) {
process.env["LD_LIBRARY_PATH"] = [
...new Set([
"/tmp/aws/lib",
(0, helper_1.isRunningInAwsLambdaNode20)() ? "/tmp/al2023/lib" : undefined,
"/tmp/al2/lib",
...process.env["LD_LIBRARY_PATH"].split(":"),

@@ -29,2 +28,18 @@ ]),

}
if ((0, helper_1.isRunningInAwsLambdaNode20)()) {
if (process.env["FONTCONFIG_PATH"] === undefined) {
process.env["FONTCONFIG_PATH"] = "/tmp/fonts";
}
if (process.env["LD_LIBRARY_PATH"] === undefined) {
process.env["LD_LIBRARY_PATH"] = "/tmp/al2023/lib";
}
else if (process.env["LD_LIBRARY_PATH"].startsWith("/tmp/al2023/lib") !== true) {
process.env["LD_LIBRARY_PATH"] = [
...new Set([
"/tmp/al2023/lib",
...process.env["LD_LIBRARY_PATH"].split(":"),
]),
].join(":");
}
}
class Chromium {

@@ -231,3 +246,6 @@ /**

// Extract the required files
const promises = [lambdafs_1.default.inflate(`${input}/chromium.br`)];
const promises = [
lambdafs_1.default.inflate(`${input}/chromium.br`),
lambdafs_1.default.inflate(`${input}/fonts.tar.br`),
];
if (this.graphics) {

@@ -239,7 +257,7 @@ // Only inflate graphics stack if needed

// If running in AWS Lambda, extract more required files
promises.push(lambdafs_1.default.inflate(`${input}/aws.tar.br`));
if ((0, helper_1.isRunningInAwsLambdaNode20)()) {
promises.push(lambdafs_1.default.inflate(`${input}/al2023.tar.br`));
}
promises.push(lambdafs_1.default.inflate(`${input}/al2.tar.br`));
}
if ((0, helper_1.isRunningInAwsLambdaNode20)()) {
promises.push(lambdafs_1.default.inflate(`${input}/al2023.tar.br`));
}
// Await all extractions

@@ -246,0 +264,0 @@ const result = await Promise.all(promises);

{
"name": "@sparticuz/chromium",
"version": "119.0.1-next.1",
"version": "119.0.1-next.2",
"description": "Chromium Binary for Serverless Platforms",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc