Skip to content

Commit

Permalink
update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Mar 23, 2022
1 parent c627803 commit ffc4d2e
Show file tree
Hide file tree
Showing 4 changed files with 764 additions and 514 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.4.1",
"jest-mock-process": "^1.4.1",
"pre-commit": "^1.2.2",
"prettier": "^2.3.1",
"ts-jest": "^27.1.3",
"typescript": "^4.3.2"
"typescript": "^4.4.0"
}
}
8 changes: 4 additions & 4 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const getBrowserBinaryOnWin = async () => {
const path = key.values.location.value;
const version = key.values.pv.value;
return { path: join(path, fileName), version };
} catch (err) {
process.stdout.write(`MS Edge browser is not found in registry: ${err.stderr} \n`);
} catch (err: any) {
process.stdout.write(`MS Edge browser is not found in registry: ${err?.stderr} \n`);
}
};

Expand All @@ -45,8 +45,8 @@ const getBrowserBinaryOnMac = async (edgeBinaryPath?: string | undefined) => {
if (found) {
return { path: binaryPath, version: found[0] };
}
} catch (err) {
process.stdout.write(`MS Edge browser is not found in Applications: ${err.stderr} \n`);
} catch (err: any) {
process.stdout.write(`MS Edge browser is not found in Applications: ${err?.stderr} \n`);
}
};

Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"module": "commonjs",
"declaration": true,
"outDir": "./lib",
"strict": true
"strict": true,
"types": [
"node"
]
},
"include": ["src"],
"exclude": ["node_modules", "**/*.spec.ts"]
Expand Down
Loading

0 comments on commit ffc4d2e

Please sign in to comment.