webdriver 8.0.15 → 8.1.2
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.
- package/build/bidi.d.ts +1 -1
- package/build/cjs/index.d.ts +19 -1
- package/build/cjs/index.d.ts.map +1 -1
- package/build/cjs/index.js +6 -5
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/request/factory.d.ts +1 -1
- package/build/request/index.d.ts +3 -3
- package/build/request/index.d.ts.map +1 -1
- package/build/request/index.js +2 -6
- package/build/request/node.d.ts +1 -1
- package/build/request/node.d.ts.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +1 -1
- package/package.json +11 -8
package/build/bidi.d.ts
CHANGED
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Options } from '@wdio/types';
|
|
2
|
+
import type { Client, AttachOptions } from '../types.js';
|
|
3
|
+
declare class WebDriver {
|
|
4
|
+
static newSession(options: Options.WebDriver, modifier?: (...args: any[]) => any, userPrototype?: {}, customCommandWrapper?: (...args: any[]) => any): Promise<Client>;
|
|
5
|
+
/**
|
|
6
|
+
* allows user to attach to existing sessions
|
|
7
|
+
*/
|
|
8
|
+
static attachToSession(options?: AttachOptions, modifier?: (...args: any[]) => any, userPrototype?: {}, commandWrapper?: (...args: any[]) => any): Promise<Client>;
|
|
9
|
+
/**
|
|
10
|
+
* Changes The instance session id and browser capabilities for the new session
|
|
11
|
+
* directly into the passed in browser object
|
|
12
|
+
*
|
|
13
|
+
* @param {object} instance the object we get from a new browser session.
|
|
14
|
+
* @returns {string} the new session id of the browser
|
|
15
|
+
*/
|
|
16
|
+
static reloadSession(instance: Client): Promise<string>;
|
|
17
|
+
static get WebDriver(): typeof WebDriver;
|
|
18
|
+
}
|
|
19
|
+
export = WebDriver;
|
|
2
20
|
//# sourceMappingURL=index.d.ts.map
|
package/build/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAExD,cAAM,SAAS;WACE,UAAU,CACnB,OAAO,EAAE,OAAO,CAAC,SAAS,EAC1B,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAC/C,OAAO,CAAC,MAAM,CAAC;IAKlB;;OAEG;WACU,eAAe,CACxB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACzC,OAAO,CAAC,MAAM,CAAC;IAKlB;;;;;;OAMG;WACU,aAAa,CAAC,QAAQ,EAAE,MAAM;IAK3C,MAAM,KAAK,SAAS,qBAEnB;CACJ;AAED,SAAS,SAAS,CAAA"}
|
package/build/cjs/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
class WebDriver {
|
|
2
3
|
static async newSession(options, modifier, userPrototype = {}, customCommandWrapper) {
|
|
3
4
|
const WebDriver = (await import('../index.js')).default;
|
|
4
5
|
return WebDriver.newSession(options, modifier, userPrototype, customCommandWrapper);
|
|
@@ -14,9 +15,9 @@ module.exports = class WebDriver {
|
|
|
14
15
|
* Changes The instance session id and browser capabilities for the new session
|
|
15
16
|
* directly into the passed in browser object
|
|
16
17
|
*
|
|
17
|
-
* @param {
|
|
18
|
+
* @param {object} instance the object we get from a new browser session.
|
|
18
19
|
* @returns {string} the new session id of the browser
|
|
19
|
-
|
|
20
|
+
*/
|
|
20
21
|
static async reloadSession(instance) {
|
|
21
22
|
const WebDriver = (await import('../index.js')).default;
|
|
22
23
|
return WebDriver.reloadSession(instance);
|
|
@@ -24,5 +25,5 @@ module.exports = class WebDriver {
|
|
|
24
25
|
static get WebDriver() {
|
|
25
26
|
return WebDriver;
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
28
|
+
}
|
|
29
|
+
module.exports = WebDriver;
|
package/build/index.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export default class WebDriver {
|
|
|
13
13
|
* Changes The instance session id and browser capabilities for the new session
|
|
14
14
|
* directly into the passed in browser object
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {object} instance the object we get from a new browser session.
|
|
17
17
|
* @returns {string} the new session id of the browser
|
|
18
|
-
|
|
18
|
+
*/
|
|
19
19
|
static reloadSession(instance: Client): Promise<string>;
|
|
20
20
|
static get WebDriver(): typeof WebDriver;
|
|
21
21
|
}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAA;AAExD,OAAO,OAAO,MAAM,cAAc,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAyB,YAAY,EAAE,kBAAkB,EAAsB,MAAM,YAAY,CAAA;AACxG,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAgB,MAAM,YAAY,CAAA;AAIrE,MAAM,CAAC,OAAO,OAAO,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E,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACzC,MAAM;IA0BT;;;;;;OAMG;WACU,aAAa,CAAC,QAAQ,EAAE,MAAM;IAW3C,MAAM,KAAK,SAAS,qBAEnB;CACJ;AAED;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAC9D,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -76,9 +76,9 @@ export default class WebDriver {
|
|
|
76
76
|
* Changes The instance session id and browser capabilities for the new session
|
|
77
77
|
* directly into the passed in browser object
|
|
78
78
|
*
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {object} instance the object we get from a new browser session.
|
|
80
80
|
* @returns {string} the new session id of the browser
|
|
81
|
-
|
|
81
|
+
*/
|
|
82
82
|
static async reloadSession(instance) {
|
|
83
83
|
const params = {
|
|
84
84
|
...instance.options,
|
package/build/request/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import { EventEmitter } from 'node:events';
|
|
4
4
|
import type { URL } from 'node:url';
|
|
5
5
|
import type { Options } from '@wdio/types';
|
|
@@ -33,7 +33,7 @@ export default abstract class WebDriverRequest extends EventEmitter {
|
|
|
33
33
|
endpoint: string;
|
|
34
34
|
isHubCommand: boolean;
|
|
35
35
|
requiresSessionId: boolean;
|
|
36
|
-
defaultAgents
|
|
36
|
+
defaultAgents?: Agents;
|
|
37
37
|
defaultOptions: RequestLibOptions;
|
|
38
38
|
constructor(method: string, endpoint: string, body?: Record<string, unknown>, isHubCommand?: boolean);
|
|
39
39
|
makeRequest(options: RequestOptions, sessionId?: string): Promise<WebDriverResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAInC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAQ1C,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;AAC5B,KAAK,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAA;AAClD,KAAK,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAA;AACpD,KAAK,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;AAE7D,qBAAa,eAAgB,SAAQ,KAAK;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,GAAG,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAWD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAiB,SAAQ,YAAY;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,aAAa,EAAE,MAAM,
|
|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EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAe;IAStG,WAAW,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM;cAc9C,cAAc,CAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;cAkEpH,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI9F,SAAS,CAAC,kBAAkB,IAAI,MAAM;YAIxB,QAAQ;CAmHzB"}
|
package/build/request/index.js
CHANGED
|
@@ -27,7 +27,6 @@ export default class WebDriverRequest extends EventEmitter {
|
|
|
27
27
|
requiresSessionId;
|
|
28
28
|
defaultAgents;
|
|
29
29
|
defaultOptions = {
|
|
30
|
-
retry: { limit: 0 },
|
|
31
30
|
followRedirect: true,
|
|
32
31
|
responseType: 'json',
|
|
33
32
|
throwHttpErrors: false
|
|
@@ -38,7 +37,6 @@ export default class WebDriverRequest extends EventEmitter {
|
|
|
38
37
|
this.method = method;
|
|
39
38
|
this.endpoint = endpoint;
|
|
40
39
|
this.isHubCommand = isHubCommand;
|
|
41
|
-
this.defaultAgents = null;
|
|
42
40
|
this.requiresSessionId = Boolean(this.endpoint.match(/:sessionId/));
|
|
43
41
|
}
|
|
44
42
|
async makeRequest(options, sessionId) {
|
|
@@ -62,6 +60,7 @@ export default class WebDriverRequest extends EventEmitter {
|
|
|
62
60
|
...(typeof options.headers === 'object' ? options.headers : {})
|
|
63
61
|
},
|
|
64
62
|
searchParams,
|
|
63
|
+
retry: { limit: options.connectionRetryCount },
|
|
65
64
|
timeout: { response: options.connectionRetryTimeout }
|
|
66
65
|
};
|
|
67
66
|
/**
|
|
@@ -117,10 +116,7 @@ export default class WebDriverRequest extends EventEmitter {
|
|
|
117
116
|
const { url, ...requestLibOptions } = fullRequestOptions;
|
|
118
117
|
const startTime = this._libPerformanceNow();
|
|
119
118
|
let response = await this._libRequest(url, requestLibOptions)
|
|
120
|
-
|
|
121
|
-
.catch((err) => {
|
|
122
|
-
return err;
|
|
123
|
-
});
|
|
119
|
+
.catch((err) => err);
|
|
124
120
|
const durationMillisecond = this._libPerformanceNow() - startTime;
|
|
125
121
|
/**
|
|
126
122
|
* handle retries for requests
|
package/build/request/node.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/request/node.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/request/node.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAGnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,gBAAqC,MAAM,YAAY,CAAA;AAO9D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,gBAAgB;gBAC1C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAE,OAAe;cAK5F,WAAW,CAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,iBAAiB;IAWtE,SAAS,CAAC,kBAAkB,IAAI,MAAM;CAGzC"}
|
package/build/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import type { EventEmitter } from 'node:events';
|
|
3
3
|
import type { Options, Capabilities } from '@wdio/types';
|
|
4
4
|
import type { ProtocolCommands, ProtocolCommandsAsync } from '@wdio/protocols';
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAUA,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,YAAY,CAAA;AAY1E;;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,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAUA,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,YAAY,CAAA;AAY1E;;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,sCA8C3H;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;;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -168,7 +168,7 @@ export function getPrototype({ isW3C, isChrome, isFirefox, isMobile, isSauce, is
|
|
|
168
168
|
* only apply special commands when running tests using
|
|
169
169
|
* Selenium Grid or Selenium Standalone server
|
|
170
170
|
*/
|
|
171
|
-
isSeleniumStandalone ? SeleniumProtocol : {});
|
|
171
|
+
isSeleniumStandalone ? SeleniumProtocol : {}, {});
|
|
172
172
|
for (const [endpoint, methods] of Object.entries(ProtocolCommands)) {
|
|
173
173
|
for (const [method, commandData] of Object.entries(methods)) {
|
|
174
174
|
prototype[commandData.command] = { value: command(method, endpoint, commandData, isSeleniumStandalone) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.2",
|
|
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",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": [
|
|
13
13
|
{
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
14
15
|
"import": "./build/index.js",
|
|
15
16
|
"require": "./build/cjs/index.js"
|
|
16
17
|
},
|
|
@@ -35,16 +36,18 @@
|
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@types/node": "^18.0.0",
|
|
38
|
-
"@
|
|
39
|
-
"@wdio/
|
|
40
|
-
"@wdio/
|
|
41
|
-
"@wdio/
|
|
42
|
-
"@wdio/
|
|
43
|
-
"@wdio/utils": "8.0.14",
|
|
39
|
+
"@wdio/config": "8.1.2",
|
|
40
|
+
"@wdio/logger": "8.1.0",
|
|
41
|
+
"@wdio/protocols": "8.1.0",
|
|
42
|
+
"@wdio/types": "8.1.2",
|
|
43
|
+
"@wdio/utils": "8.1.2",
|
|
44
44
|
"deepmerge-ts": "^4.2.2",
|
|
45
45
|
"got": "^12.1.0",
|
|
46
46
|
"ky": "^0.33.0",
|
|
47
47
|
"ws": "^8.8.0"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/ws": "^8.5.3"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "14625257acfd6081b4c9914b214110c0c7bf7218"
|
|
50
53
|
}
|