@sparticuz/chromium
Advanced tools
Comparing version 110.0.0 to 110.0.1
@@ -5,5 +5,6 @@ "use strict"; | ||
const node_fs_1 = require("node:fs"); | ||
const node_https_1 = require("node:https"); | ||
const follow_redirects_1 = require("follow-redirects"); | ||
const node_os_1 = require("node:os"); | ||
const tar_fs_1 = require("tar-fs"); | ||
const node_url_1 = require("node:url"); | ||
const isValidUrl = (input) => { | ||
@@ -19,5 +20,7 @@ try { | ||
const downloadAndExtract = async (url) => new Promise((resolve, reject) => { | ||
const getOptions = (0, node_url_1.parse)(url); | ||
getOptions.maxBodyLength = 60 * 1024 * 1024; // 60mb | ||
const destDir = `${(0, node_os_1.tmpdir)()}/chromium-pack`; | ||
const extractObj = (0, tar_fs_1.extract)(destDir); | ||
(0, node_https_1.get)(url, (response) => { | ||
follow_redirects_1.https.get(url, (response) => { | ||
response.pipe(extractObj); | ||
@@ -24,0 +27,0 @@ extractObj.on('finish', () => { |
{ | ||
"name": "@sparticuz/chromium", | ||
"version": "110.0.0", | ||
"version": "110.0.1", | ||
"description": "Chromium Binary for Serverless Platforms", | ||
"keywords": [ | ||
"aws", | ||
"browser", | ||
"chrome", | ||
"chromium", | ||
"lambda", | ||
"puppeteer", | ||
"playwright", | ||
"serverless" | ||
], | ||
"homepage": "https://github.com/Sparticuz/chromium", | ||
"bugs": { | ||
"url": "https://github.com/Sparticuz/chromium/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/Sparticuz/chromium.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Kyle McNally" | ||
}, | ||
"license": "MIT", | ||
"description": "Chromium Binary for Serverless Platforms", | ||
"type": "commonjs", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"type": "commonjs", | ||
"files": [ | ||
@@ -16,11 +34,13 @@ "bin", | ||
], | ||
"engines": { | ||
"node": ">= 14.18.0" | ||
}, | ||
"scripts": { | ||
"test": "make clean && make && make pretest && make test", | ||
"build": "rm -rf build && tsc -p tsconfig.json" | ||
"build": "rm -rf build && tsc -p tsconfig.json", | ||
"test": "make clean && make && make pretest && make test" | ||
}, | ||
"dependencies": { | ||
"follow-redirects": "^1.15.2", | ||
"tar-fs": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node14": "^1.0.3", | ||
"@types/follow-redirects": "^1.14.1", | ||
"@types/node": "^18.11.18", | ||
@@ -31,34 +51,5 @@ "@types/tar-fs": "^2.0.1", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/Sparticuz/chromium/issues" | ||
}, | ||
"homepage": "https://github.com/Sparticuz/chromium", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/Sparticuz/chromium.git" | ||
}, | ||
"keywords": [ | ||
"aws", | ||
"browser", | ||
"chrome", | ||
"chromium", | ||
"lambda", | ||
"puppeteer", | ||
"playwright", | ||
"serverless" | ||
], | ||
"prettier": { | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"printWidth": 140, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"useTabs": false | ||
}, | ||
"dependencies": { | ||
"tar-fs": "^2.1.1" | ||
"engines": { | ||
"node": ">= 14.18.0" | ||
} | ||
} |
353
58566967
2
6
+ Addedfollow-redirects@^1.15.2
+ Addedfollow-redirects@1.15.9(transitive)