polotno-node 2.6.0 → 2.6.2

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  let puppeteer = require('puppeteer-core');
2
2
  const chrome = require('@sparticuz/chromium');
3
-
4
3
  const os = require('os');
5
4
  const isMacOs = os.platform() === 'darwin';
6
5
  const isWindows = os.platform() === 'win32' || os.platform() === 'win64';
@@ -69,7 +68,11 @@ module.exports.createInstance = async ({
69
68
  ],
70
69
  defaultViewport: chrome.defaultViewport,
71
70
  headless: 'new',
72
- executablePath: isMacOs ? undefined : await chrome.executablePath(),
71
+ // make default protocol timeout bigger
72
+ // because some clients had issues with it
73
+ protocolTimeout: 10 * 60 * 1000,
74
+ executablePath:
75
+ isMacOs || isWindows ? undefined : await chrome.executablePath(),
73
76
  ignoreHTTPSErrors: true,
74
77
  });
75
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polotno-node",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Polotno workflow from NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {