polotno-node 2.9.29 → 2.9.31
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/README.md +11 -1
- package/dist/assets/index-BnTpuNs2.js +298 -0
- package/dist/index.html +1 -1
- package/instance.js +5 -1
- package/package.json +6 -6
- package/dist/assets/index-z65AljXl.js +0 -289
package/dist/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
</style>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-BnTpuNs2.js"></script>
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/instance.js
CHANGED
|
@@ -179,7 +179,11 @@ module.exports.createInstance = async ({
|
|
|
179
179
|
const message = error.toString();
|
|
180
180
|
const isFontError = message.indexOf('Timeout for loading font') >= 0;
|
|
181
181
|
const skipError = isFontError && args[1]?.skipFontError;
|
|
182
|
-
|
|
182
|
+
|
|
183
|
+
const isImageError = message.indexOf('image ') >= 0;
|
|
184
|
+
const skipImageError = isImageError && args[1]?.skipImageError;
|
|
185
|
+
|
|
186
|
+
if (!skipError && !skipImageError) {
|
|
183
187
|
throw new Error(error);
|
|
184
188
|
}
|
|
185
189
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polotno-node",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.31",
|
|
4
4
|
"description": "Polotno workflow from NodeJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"gifencoder": "^2.0.1",
|
|
27
27
|
"pixelmatch": "^6.0.0",
|
|
28
28
|
"pngjs": "^7.0.0",
|
|
29
|
-
"polotno": "^2.
|
|
29
|
+
"polotno": "^2.10.11",
|
|
30
30
|
"react": "^18.3.1",
|
|
31
31
|
"react-dom": "^18.3.1",
|
|
32
|
-
"vite": "^5.3.
|
|
32
|
+
"vite": "^5.3.4"
|
|
33
33
|
},
|
|
34
34
|
"author": "Anton Lavrenov",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sparticuz/chromium": "
|
|
38
|
-
"puppeteer": "22.
|
|
39
|
-
"puppeteer-core": "22.
|
|
37
|
+
"@sparticuz/chromium": "126.0.0",
|
|
38
|
+
"puppeteer": "22.13.0",
|
|
39
|
+
"puppeteer-core": "22.13.0",
|
|
40
40
|
"tmp": "^0.2.3"
|
|
41
41
|
},
|
|
42
42
|
"bugs": {
|