polotno-node 2.10.2 → 2.10.3
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/assets/index-DpnZbsrO.js +298 -0
- package/dist/index.html +1 -1
- package/instance.js +2 -16
- package/package.json +6 -6
- package/dist/assets/index-D56TTNQ-.js +0 -298
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-DpnZbsrO.js"></script>
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/instance.js
CHANGED
|
@@ -301,23 +301,9 @@ const closeAllInstances = async () => {
|
|
|
301
301
|
await Promise.all(createdInstances.map((instance) => instance.close()));
|
|
302
302
|
};
|
|
303
303
|
|
|
304
|
-
// Register the function to be called on process exit
|
|
305
|
-
process.on('beforeExit', () => {
|
|
306
|
-
closeAllInstances().catch((error) => {
|
|
307
|
-
console.error('Error closing instances:', error);
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
|
|
311
304
|
// Also handle other termination signals
|
|
312
|
-
['SIGINT', 'SIGTERM', 'SIGQUIT', 'exit', '
|
|
305
|
+
['SIGINT', 'SIGTERM', 'SIGQUIT', 'exit', 'exit'].forEach((signal) => {
|
|
313
306
|
process.on(signal, () => {
|
|
314
|
-
closeAllInstances()
|
|
315
|
-
.then(() => {
|
|
316
|
-
process.exit(0);
|
|
317
|
-
})
|
|
318
|
-
.catch((error) => {
|
|
319
|
-
console.error('Error closing instances:', error);
|
|
320
|
-
process.exit(1);
|
|
321
|
-
});
|
|
307
|
+
closeAllInstances();
|
|
322
308
|
});
|
|
323
309
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polotno-node",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "Polotno workflow from NodeJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"ava": "^6.1.3",
|
|
21
|
-
"axios": "^1.7.
|
|
21
|
+
"axios": "^1.7.7",
|
|
22
22
|
"canvas": "^2.11.2",
|
|
23
23
|
"dotenv": "^16.4.5",
|
|
24
24
|
"fluent-ffmpeg": "^2.1.3",
|
|
25
25
|
"gifencoder": "^2.0.1",
|
|
26
26
|
"pixelmatch": "^6.0.0",
|
|
27
27
|
"pngjs": "^7.0.0",
|
|
28
|
-
"polotno": "^2.
|
|
28
|
+
"polotno": "^2.13.0",
|
|
29
29
|
"react": "^18.3.1",
|
|
30
30
|
"react-dom": "^18.3.1",
|
|
31
|
-
"vite": "^5.4.
|
|
31
|
+
"vite": "^5.4.3"
|
|
32
32
|
},
|
|
33
33
|
"author": "Anton Lavrenov",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@sparticuz/chromium": "127.0.0",
|
|
37
|
-
"puppeteer": "23.
|
|
38
|
-
"puppeteer-core": "23.
|
|
37
|
+
"puppeteer": "23.3.0",
|
|
38
|
+
"puppeteer-core": "23.3.0",
|
|
39
39
|
"tmp": "^0.2.3"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|