browser-webdriver-downloader 2.0.1 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-webdriver-downloader",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Install and wrap msedgedriver in Node.js",
5
5
  "bin": {
6
6
  "msedgedriver": "bin/msedgedriver.js"
@@ -45,10 +45,10 @@
45
45
  "execa": "^5.0.0",
46
46
  "extract-zip": "^2.0.1",
47
47
  "find-edge-version": "0.1.1",
48
- "fs-extra": "^10.1.0",
48
+ "fs-extra": "^11.0.0",
49
49
  "got": "^11.8.5",
50
50
  "tmp": "0.2.1",
51
- "yn": "^4.0.0"
51
+ "yn": "^5.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@crowdstrike/commitlint": "^7.0.0",
@@ -63,7 +63,7 @@
63
63
  "eslint-plugin-node": "^11.0.0",
64
64
  "mocha": "^10.0.0",
65
65
  "mocha-helpers": "^8.0.0",
66
- "remark-cli": "^11.0.0",
66
+ "remark-cli": "^12.0.0",
67
67
  "remark-preset-lint-crowdstrike": "^3.0.0",
68
68
  "renovate-config-standard": "^2.0.0",
69
69
  "standard-node-template": "4.0.1",
package/src/index.js CHANGED
@@ -9,7 +9,6 @@ const pipeline = promisify(require('stream').pipeline);
9
9
  const os = require('os');
10
10
  const { createTmpDir } = require('../src/tmp');
11
11
  const execa = require('execa');
12
- const yn = require('yn');
13
12
 
14
13
  const platform = os.platform();
15
14
  const arch = os.arch();
@@ -50,6 +49,8 @@ function getDownloadName() {
50
49
  async function getDriverVersion() {
51
50
  let version;
52
51
 
52
+ const { default: yn } = await import('yn');
53
+
53
54
  if (process.env.EDGEDRIVER_VERSION) {
54
55
  version = process.env.EDGEDRIVER_VERSION;
55
56
  } else if (yn(process.env.DETECT_EDGEDRIVER_VERSION)) {