@liascript/exporter 2.0.0--preview1 → 2.0.0--preview2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/export/pdf.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -12301,7 +12301,7 @@ async function $c4fe6e5c8950c8b3$export$372e2d09604f52f0(argument, json) {
|
|
|
12301
12301
|
async function $fe4c9e5866fc6c52$export$372e2d09604f52f0(argument, json) {
|
|
12302
12302
|
let url = `file://${__dirname}/assets/pdf/index.html?`;
|
|
12303
12303
|
if ($320134ce32dd9048$export$bab98af026af71ac(argument.input)) url += argument.input;
|
|
12304
|
-
else url += 'file
|
|
12304
|
+
else url += 'file://' + $9Afec$path.resolve(argument.input);
|
|
12305
12305
|
const browser = await $9Afec$puppeteer.launch({
|
|
12306
12306
|
args: [
|
|
12307
12307
|
'--disable-web-security',
|
package/package.json
CHANGED
package/src/export/pdf.ts
CHANGED
|
@@ -41,7 +41,7 @@ export async function exporter(
|
|
|
41
41
|
if (helper.isURL(argument.input)) {
|
|
42
42
|
url += argument.input
|
|
43
43
|
} else {
|
|
44
|
-
url += 'file
|
|
44
|
+
url += 'file://' + path.resolve(argument.input)
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const browser = await puppeteer.launch({
|