polotno-node 2.6.1 → 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 +2 -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';
@@ -72,7 +71,8 @@ module.exports.createInstance = async ({
72
71
  // make default protocol timeout bigger
73
72
  // because some clients had issues with it
74
73
  protocolTimeout: 10 * 60 * 1000,
75
- executablePath: isMacOs ? undefined : await chrome.executablePath(),
74
+ executablePath:
75
+ isMacOs || isWindows ? undefined : await chrome.executablePath(),
76
76
  ignoreHTTPSErrors: true,
77
77
  });
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polotno-node",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Polotno workflow from NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {