Skip to content

Commit c39611b

Browse files
committed
style: fix jsdoc formatings
1 parent c4c13f4 commit c39611b

File tree

4 files changed

+53
-53
lines changed

4 files changed

+53
-53
lines changed

src/finder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ function win32() {
124124
}))
125125

126126
/**
127-
* fallback using edge-path
128-
*/
127+
* fallback using edge-path
128+
*/
129129
if (installations.length === 0) {
130130
const edgePath = getEdgePath()
131131
if (hasAccessSync(edgePath)) {
@@ -165,8 +165,8 @@ function findEdgeExecutables(folder: string) {
165165

166166
export default () => {
167167
/**
168-
* Check for the EDGE_BINARY_PATH env variable
169-
*/
168+
* Check for the EDGE_BINARY_PATH env variable
169+
*/
170170
const binaryPathEnv = process.env.EDGE_BINARY_PATH
171171
if (typeof binaryPathEnv === 'string' && binaryPathEnv) {
172172
return process.env.EDGE_BINARY_PATH

src/install.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface ProductAPIResponse {
2424

2525
// Extend RequestInit to include the agent property that Node.js built-in fetch supports
2626
interface NodeRequestInit extends RequestInit {
27-
agent?: HttpsProxyAgent<string> | HttpProxyAgent<string>
27+
agent?: HttpsProxyAgent<string> | HttpProxyAgent<string>
2828
}
2929

3030
const fetchOpts: NodeRequestInit = {}
@@ -147,8 +147,8 @@ async function getEdgeVersionUnix (edgePath: string) {
147147
return resolve(stdout)
148148
}))
149149
/**
150-
* example output: "Microsoft Edge 124.0.2478.105 unknown"
151-
*/
150+
* example output: "Microsoft Edge 124.0.2478.105 unknown"
151+
*/
152152
return versionOutput
153153
/**
154154
* trim the output
@@ -173,15 +173,15 @@ export async function fetchVersion (edgeVersion: string) {
173173
const platform = p === 'win32' ? 'win' : p === 'darwin' ? 'mac' : 'linux'
174174

175175
/**
176-
* if version has 4 digits it is a valid version, e.g. 109.0.1467.0
177-
*/
176+
* if version has 4 digits it is a valid version, e.g. 109.0.1467.0
177+
*/
178178
if (edgeVersion.split('.').length === 4) {
179179
return edgeVersion
180180
}
181181

182182
/**
183-
* if browser version is a tagged version, e.g. stable, beta, dev, canary
184-
*/
183+
* if browser version is a tagged version, e.g. stable, beta, dev, canary
184+
*/
185185
if (TAGGED_VERSIONS.includes(edgeVersion.toLowerCase())) {
186186
const apiResponse = await fetch(EDGE_PRODUCTS_API, fetchOpts).catch((err) => {
187187
log.error(`Couldn't fetch version from ${EDGE_PRODUCTS_API}: ${err.stack}`)
@@ -191,8 +191,8 @@ export async function fetchVersion (edgeVersion: string) {
191191
const product = products.find((p) => p.Product.toLowerCase() === edgeVersion.toLowerCase())
192192
const productVersion = product?.Releases.find((r) => (
193193
/**
194-
* On Mac we all product versions are universal to its architecture
195-
*/
194+
* On Mac we all product versions are universal to its architecture
195+
*/
196196
(platform === 'mac' && r.Platform === 'MacOS') ||
197197
/**
198198
* On Windows we need to check for the architecture
@@ -213,8 +213,8 @@ export async function fetchVersion (edgeVersion: string) {
213213
}
214214

215215
/**
216-
* check for a number in the version and check for that
217-
*/
216+
* check for a number in the version and check for that
217+
*/
218218
const MATCH_VERSION = /\d+/g
219219
if (edgeVersion.match(MATCH_VERSION)) {
220220
const [major] = edgeVersion.match(MATCH_VERSION)

src/types.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,73 @@ export type LogLevel = 'ALL' | 'DEBUG' | 'INFO' | 'WARNING' | 'SEVERE' | 'OFF'
22

33
export interface EdgedriverParameters {
44
/**
5-
* Version of Edgedriver to start. See https://msedgedriver.azureedge.net/ for all available versions, platforms and architecture.
6-
*/
5+
* Version of Edgedriver to start. See https://msedgedriver.azureedge.net/ for all available versions, platforms and architecture.
6+
*/
77
edgeDriverVersion?: string
88
/**
9-
* Don't download Edgedriver, instead use a custom path to it, e.g. a cached binary.
10-
* @default process.env.EDGEDRIVER_PATH
11-
*/
9+
* Don't download Edgedriver, instead use a custom path to it, e.g. a cached binary.
10+
* @default process.env.EDGEDRIVER_PATH
11+
*/
1212
customEdgeDriverPath?: string
1313
/**
14-
* port to listen on
15-
*/
14+
* port to listen on
15+
*/
1616
port?: number
1717
/**
18-
* adb server port
19-
*/
18+
* adb server port
19+
*/
2020
adbPort?: number
2121
/**
22-
* write server log to file instead of stderr, increases log level to INFO
23-
*/
22+
* write server log to file instead of stderr, increases log level to INFO
23+
*/
2424
logPath?: string
2525
/**
26-
* set log level
27-
*/
26+
* set log level
27+
*/
2828
logLevel?: LogLevel
2929
/**
30-
* log verbosely (equivalent to --log-level=ALL)
31-
*/
30+
* log verbosely (equivalent to --log-level=ALL)
31+
*/
3232
verbose?: boolean
3333
/**
34-
* log nothing (equivalent to --log-level=OFF)
35-
*/
34+
* log nothing (equivalent to --log-level=OFF)
35+
*/
3636
silent?: boolean
3737
/**
38-
* append log file instead of rewriting
39-
*/
38+
* append log file instead of rewriting
39+
*/
4040
appendLog?: boolean
4141
/**
42-
* (experimental) log verbosely and don't truncate long strings so that the log can be replayed.
43-
*/
42+
* (experimental) log verbosely and don't truncate long strings so that the log can be replayed.
43+
*/
4444
replayable?: boolean
4545
/**
46-
* base URL path prefix for commands, e.g. wd/url
47-
*/
46+
* base URL path prefix for commands, e.g. wd/url
47+
*/
4848
baseUrl?: string
4949
/**
50-
* add readable timestamps to log
51-
*/
50+
* add readable timestamps to log
51+
*/
5252
readableTimestamp?: boolean
5353
/**
54-
* show logs from the browser (overrides other logging options)
55-
*/
54+
* show logs from the browser (overrides other logging options)
55+
*/
5656
enableChromeLogs?: boolean
5757
/**
58-
* custom bidi mapper path
59-
*/
58+
* custom bidi mapper path
59+
*/
6060
bidiMapperPath?: string
6161
/**
62-
* comma-separated allowlist of remote IP addresses which are allowed to connect to msedgedriver
63-
*/
62+
* comma-separated allowlist of remote IP addresses which are allowed to connect to msedgedriver
63+
*/
6464
allowedIps?: string[]
6565
/**
66-
* comma-separated allowlist of request origins which are allowed to connect to msedgedriver. Using `*` to allow any host origin is dangerous!
67-
*/
66+
* comma-separated allowlist of request origins which are allowed to connect to msedgedriver. Using `*` to allow any host origin is dangerous!
67+
*/
6868
allowedOrigins?: string[]
6969
/**
70-
* The path to the root of the cache directory.
71-
* @default process.env.GECKODRIVER_CACHE_DIR || os.tmpdir()
72-
*/
70+
* The path to the root of the cache directory.
71+
* @default process.env.GECKODRIVER_CACHE_DIR || os.tmpdir()
72+
*/
7373
cacheDir?: string
7474
}

vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default defineConfig({
55
test: {
66
include: ['tests/**/*.test.ts'],
77
/**
8-
* not to ESM ported packages
9-
*/
8+
* not to ESM ported packages
9+
*/
1010
exclude: [
1111
'dist', '.idea', '.git', '.cache',
1212
'**/node_modules/**',

0 commit comments

Comments
 (0)