@resoc/create-img
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -243,3 +243,5 @@ import { renderTemplateToHtml } from '@resoc/core'; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, puppeteer.launch()]; | ||
case 0: return [4 /*yield*/, puppeteer.launch({ | ||
args: ['--no-sandbox', '--disable-setuid-sandbox'], | ||
})]; | ||
case 1: | ||
@@ -246,0 +248,0 @@ browser = _a.sent(); |
@@ -257,3 +257,5 @@ 'use strict'; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, puppeteer__default['default'].launch()]; | ||
case 0: return [4 /*yield*/, puppeteer__default['default'].launch({ | ||
args: ['--no-sandbox', '--disable-setuid-sandbox'], | ||
})]; | ||
case 1: | ||
@@ -260,0 +262,0 @@ browser = _a.sent(); |
{ | ||
"name": "@resoc/create-img", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Create an image based on a Resoc image template", | ||
@@ -58,3 +58,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "f53e448ace457d0b37debc70f2daf2f755224dcb" | ||
"gitHead": "c21fa1a2518b589393455237df3081534758f624" | ||
} |
@@ -87,3 +87,5 @@ import { ImageTemplate, ImageResolution, loadRemoteTemplate, ParamValues, renderTemplateToHtml } from '@resoc/core' | ||
export const urlToImage = async (url: string, outputPath: string): Promise<void> => { | ||
const browser = await puppeteer.launch(); | ||
const browser = await puppeteer.launch({ | ||
args: ['--no-sandbox', '--disable-setuid-sandbox'], | ||
}); | ||
const page = await browser.newPage(); | ||
@@ -90,0 +92,0 @@ // Wait until there are no network connexion for 500ms |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
145485
1263