Skip to content

Commit

Permalink
add missing @types/node dependencies (#9489)
Browse files Browse the repository at this point in the history
  • Loading branch information
SCG82 committed Dec 30, 2022
1 parent c7d0b68 commit 88effb3
Show file tree
Hide file tree
Showing 27 changed files with 93 additions and 65 deletions.
4 changes: 2 additions & 2 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/ua-parser-js": "^0.7.33",
"@types/node": "^18.0.0",
"@wdio/config": "8.0.14",
"@wdio/logger": "8.0.14",
"@wdio/protocols": "8.0.15",
Expand All @@ -50,7 +50,7 @@
"which": "^3.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/ua-parser-js": "^0.7.33",
"@types/uuid": "^9.0.0"
}
}
4 changes: 1 addition & 3 deletions packages/wdio-allure-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@
"node": "^16.13 || >=18"
},
"dependencies": {
"@types/node": "^18.0.0",
"@wdio/reporter": "8.0.14",
"@wdio/types": "8.0.14",
"allure-js-commons": "^1.3.2",
"csv-stringify": "^6.0.4",
"strip-ansi": "^6.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/wdio-browser-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@wdio/globals": "8.0.15",
"@wdio/local-runner": "8.0.15",
"@wdio/logger": "8.0.14",
"@wdio/mocha-framework": "8.0.14",
"@wdio/protocols": "8.0.15",
"@wdio/runner": "8.0.15",
"@wdio/types": "8.0.14",
"@wdio/utils": "8.0.14",
"deepmerge-ts": "^4.2.2",
Expand All @@ -58,6 +57,7 @@
"access": "public"
},
"devDependencies": {
"@types/ws": "^8.5.3"
"@types/ws": "^8.5.3",
"@wdio/runner": "8.0.15"
}
}
4 changes: 3 additions & 1 deletion packages/wdio-browserstack-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"browserstack-local": "^1.5.1",
Expand All @@ -38,6 +37,9 @@
"peerDependencies": {
"@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
17 changes: 8 additions & 9 deletions packages/wdio-browserstack-service/tests/util.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference path="../../webdriverio/src/@types/async.d.ts" />

import { describe, expect, it } from 'vitest'
import type { Browser, MultiRemoteBrowser } from 'webdriverio'
import {
getBrowserDescription,
getBrowserCapabilities,
Expand All @@ -14,7 +13,7 @@ describe('getBrowserCapabilities', () => {
capabilities: {
browser: 'browser'
}
} as WebdriverIO.Browser
} as Browser<'async'>
expect(getBrowserCapabilities(browser))
.toEqual(browser.capabilities as any)
})
Expand All @@ -27,7 +26,7 @@ describe('getBrowserCapabilities', () => {
browser: 'browser'
}
}
} as any as WebdriverIO.MultiRemoteBrowser
} as any as MultiRemoteBrowser<'async'>
expect(getBrowserCapabilities(browser, {}, 'browserA'))
.toEqual(browser.browserA.capabilities as any)
})
Expand All @@ -36,7 +35,7 @@ describe('getBrowserCapabilities', () => {
const browser = {
isMultiremote: true,
browserA: {}
} as any as WebdriverIO.MultiRemoteBrowser
} as any as MultiRemoteBrowser<'async'>
expect(getBrowserCapabilities(browser, {}, 'browserB')).toEqual({})
})

Expand All @@ -46,7 +45,7 @@ describe('getBrowserCapabilities', () => {
browser: 'browser',
os: 'OS X',
}
} as any as WebdriverIO.Browser
} as any as Browser<'async'>
expect(getBrowserCapabilities(browser, { os: 'Windows' }))
.toEqual({ os:'Windows', browser: 'browser' } as any)
})
Expand All @@ -60,7 +59,7 @@ describe('getBrowserCapabilities', () => {
os: 'OS X',
}
}
} as any as WebdriverIO.MultiRemoteBrowser
} as any as MultiRemoteBrowser<'async'>
expect(getBrowserCapabilities(browser, { browserA: { capabilities: { os: 'Windows' } } }, 'browserA'))
.toEqual({ os:'Windows', browser: 'browser' } as any)
})
Expand All @@ -69,7 +68,7 @@ describe('getBrowserCapabilities', () => {
const browser = {
isMultiremote: true,
browserA: {}
} as any as WebdriverIO.MultiRemoteBrowser
} as any as MultiRemoteBrowser<'async'>
expect(getBrowserCapabilities(browser, {}, 'browserB'))
.toEqual({})
})
Expand All @@ -78,7 +77,7 @@ describe('getBrowserCapabilities', () => {
const browser = {
isMultiremote: true,
browserA: {}
} as any as WebdriverIO.MultiRemoteBrowser
} as any as MultiRemoteBrowser<'async'>
expect(getBrowserCapabilities(browser, { browserB: {} } as any, 'browserB'))
.toEqual({})
})
Expand Down
2 changes: 1 addition & 1 deletion packages/wdio-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/node": "^18.0.0",
"@wdio/config": "8.0.14",
"@wdio/globals": "8.0.15",
"@wdio/logger": "8.0.14",
Expand Down Expand Up @@ -64,7 +65,6 @@
"@types/lodash.flattendeep": "^4.4.7",
"@types/lodash.pickby": "^4.6.7",
"@types/lodash.union": "^4.6.7",
"@types/node": "^18.0.0",
"@types/recursive-readdir": "^2.2.1",
"@types/yargs": "^17.0.10"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/wdio-crossbrowsertesting-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"cbt_tunnels": "^1.2.2",
"got": "^12.1.0",
"webdriverio": "8.0.2"
},
"devDependencies": {
"@types/node": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
9 changes: 6 additions & 3 deletions packages/wdio-cucumber-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"exports": {
".": [
{
"types": "./build/index.d.ts",
"import": "./build/index.js",
"require": "./build/cjs/index.js"
},
Expand All @@ -40,16 +41,18 @@
"@cucumber/gherkin": "26.0.1",
"@cucumber/gherkin-streams": "^5.0.0",
"@cucumber/messages": "21.0.1",
"@types/is-glob": "^4.0.1",
"@types/mockery": "^1.4.29",
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"@wdio/utils": "8.0.14",
"glob": "^8.0.3",
"is-glob": "^4.0.0",
"long": "^5.2.1",
"mockery": "^2.1.0"
},
"devDependencies": {
"@types/is-glob": "^4.0.1",
"@types/mockery": "^1.4.29"
},
"publishConfig": {
"access": "public"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/wdio-devtools-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
"dependencies": {
"@babel/core": "^7.18.0",
"@tracerbench/trace-event": "^8.0.0",
"@types/babel__core": "^7.1.19",
"@types/istanbul-lib-report": "^3.0.0",
"@types/istanbul-reports": "^3.0.1",
"@types/ws": "^8.5.3",
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"babel-plugin-istanbul": "^6.1.1",
Expand All @@ -54,6 +51,9 @@
"access": "public"
},
"devDependencies": {
"@types/node": "^18.0.0"
"@types/babel__core": "^7.1.19",
"@types/istanbul-lib-report": "^3.0.0",
"@types/istanbul-reports": "^3.0.1",
"@types/ws": "^8.5.3"
}
}
4 changes: 3 additions & 1 deletion packages/wdio-jasmine-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"url": "https://github.com/webdriverio/webdriverio/issues"
},
"dependencies": {
"@types/jasmine": "4.3.1",
"@types/node": "^18.0.0",
"@wdio/globals": "8.0.11",
"@wdio/logger": "8.0.14",
Expand All @@ -38,6 +37,9 @@
"expect-webdriverio": "^4.0.1",
"jasmine": "^4.2.1"
},
"devDependencies": {
"@types/jasmine": "4.3.1"
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/wdio-junit-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/json-stringify-safe": "^5.0.0",
"@types/validator": "^13.7.2",
"@wdio/reporter": "8.0.14",
"@wdio/types": "8.0.14",
"json-stringify-safe": "^5.0.1",
"junit-report-builder": "^3.0.0",
"validator": "^13.7.0"
},
"devDependencies": {
"@types/json-stringify-safe": "^5.0.0",
"@types/validator": "^13.7.2"
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 5 additions & 1 deletion packages/wdio-local-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/stream-buffers": "^3.0.4",
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/repl": "8.0.14",
"@wdio/runner": "8.0.15",
Expand All @@ -36,6 +36,10 @@
"split2": "^4.1.0",
"stream-buffers": "^3.0.2"
},
"devDependencies": {
"@types/async-exit-hook": "^2.0.0",
"@types/stream-buffers": "^3.0.4"
},
"publishConfig": {
"access": "public"
}
Expand Down
5 changes: 0 additions & 5 deletions packages/wdio-local-runner/src/@types/async-exit-hook.d.ts

This file was deleted.

11 changes: 7 additions & 4 deletions packages/wdio-mocha-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,26 @@
},
"type": "module",
"exports": {
".": {
"import": "./build/index.js",
"types": "./build/index.d.ts"
},
"./common": {
"import": "./build/common.js",
"types": "./build/common.d.ts"
},
".": "./build/index.js"
}
},
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"@wdio/utils": "8.0.14",
"mocha": "^10.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0"
"@types/mocha": "^10.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 3 additions & 0 deletions packages/wdio-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"exports": "./build/index.js",
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/node": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/wdio-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/diff": "^5.0.2",
"@types/object-inspect": "^1.8.1",
"@types/supports-color": "^8.1.1",
"@types/tmp": "^0.2.3",
"@types/node": "^18.0.0",
"@wdio/logger": "8.0.14",
"@wdio/types": "8.0.14",
"diff": "^5.0.0",
"object-inspect": "^1.12.0",
"supports-color": "9.3.1"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/diff": "^5.0.2",
"@types/object-inspect": "^1.8.1",
"@types/supports-color": "^8.1.1",
"@types/tmp": "^0.2.3",
"tmp": "^0.2.1"
}
}
1 change: 1 addition & 0 deletions packages/wdio-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./build/index.d.ts",
"typeScriptVersion": "3.8.3",
"dependencies": {
"@types/node": "^18.0.0",
"@wdio/config": "8.0.14",
"@wdio/globals": "8.0.15",
"@wdio/logger": "8.0.14",
Expand Down

0 comments on commit 88effb3

Please sign in to comment.