webdriver 8.0.0-alpha.507 → 8.0.0-alpha.512

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAWvE;;GAEG;AACH,wBAAsB,qBAAqB,CAAE,MAAM,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAC,mBAAmB,CAAA;CAAE,CAAC,CAmEtJ;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,WA4DlF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,sCA6C3H;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,SAcvE;AAGD,qBAAa,kBAAmB,SAAQ,KAAK;gBAC5B,IAAI,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG;CAyB5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC;;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AgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;EAWlJ;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,QAmBhD;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,kBAAkB,WAAU,QAAQ,iBAAiB,CAAC,WAmD1F,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,UAAW,KAAK,kBAAkB,QAAQ,iBAAiB,KAAG,KASzF,CAAA"}
package/build/utils.js CHANGED
@@ -1,4 +1,3 @@
1
- import merge from 'lodash.merge';
2
1
  import logger from '@wdio/logger';
3
2
  import { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol } from '@wdio/protocols';
4
3
  import { transformCommandLogResult } from '@wdio/utils';
@@ -134,14 +133,14 @@ export function isSuccessfulResponse(statusCode, body) {
134
133
  */
135
134
  export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, isSeleniumStandalone }) {
136
135
  const prototype = {};
137
- const ProtocolCommands = merge(
136
+ const ProtocolCommands = Object.assign({},
138
137
  /**
139
138
  * if mobile apply JSONWire and WebDriver protocol because
140
139
  * some legacy JSONWire commands are still used in Appium
141
140
  * (e.g. set/get geolocation)
142
141
  */
143
142
  isMobile
144
- ? merge({}, JsonWProtocol, WebDriverProtocol)
143
+ ? Object.assign({}, JsonWProtocol, WebDriverProtocol)
145
144
  : isW3C ? WebDriverProtocol : JsonWProtocol,
146
145
  /**
147
146
  * enable Bidi protocol for W3C sessions
@@ -150,7 +149,7 @@ export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, is
150
149
  /**
151
150
  * only apply mobile protocol if session is actually for mobile
152
151
  */
153
- isMobile ? merge({}, MJsonWProtocol, AppiumProtocol) : {},
152
+ isMobile ? Object.assign({}, MJsonWProtocol, AppiumProtocol) : {},
154
153
  /**
155
154
  * only apply special Chrome commands if session is using Chrome
156
155
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "8.0.0-alpha.507+b4c149ded",
3
+ "version": "8.0.0-alpha.512+fca9082b6",
4
4
  "description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -33,21 +33,17 @@
33
33
  "bugs": {
34
34
  "url": "https://github.com/webdriverio/webdriverio/issues"
35
35
  },
36
- "devDependencies": {
37
- "@types/lodash.merge": "^4.6.7"
38
- },
39
36
  "dependencies": {
40
37
  "@types/node": "^18.0.0",
41
38
  "@types/ws": "^8.5.3",
42
- "@wdio/config": "8.0.0-alpha.507+b4c149ded",
43
- "@wdio/logger": "8.0.0-alpha.507+b4c149ded",
44
- "@wdio/protocols": "8.0.0-alpha.507+b4c149ded",
45
- "@wdio/types": "8.0.0-alpha.507+b4c149ded",
46
- "@wdio/utils": "8.0.0-alpha.507+b4c149ded",
39
+ "@wdio/config": "8.0.0-alpha.512+fca9082b6",
40
+ "@wdio/logger": "8.0.0-alpha.512+fca9082b6",
41
+ "@wdio/protocols": "8.0.0-alpha.512+fca9082b6",
42
+ "@wdio/types": "8.0.0-alpha.512+fca9082b6",
43
+ "@wdio/utils": "8.0.0-alpha.512+fca9082b6",
47
44
  "got": "^12.1.0",
48
45
  "ky": "^0.32.1",
49
- "lodash.merge": "^4.6.2",
50
46
  "ws": "^8.8.0"
51
47
  },
52
- "gitHead": "b4c149ded9bb18eb9a3eed97af2663e6d1880cde"
48
+ "gitHead": "fca9082b61da2bbceedf7c68897d07f59f715f0a"
53
49
  }