@wdio/shared-store-service 7.20.7 → 7.20.8-alpha.504

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/README.md CHANGED
@@ -15,11 +15,33 @@ Instructions on how to install `WebdriverIO` can be found [here.](https://webdri
15
15
 
16
16
  ## Usage
17
17
 
18
- Get/set a value (plain object) to/from the store by key (string).
18
+ Get/set a value (plain object) to/from the store by key (string). The key can be any arbitrary string except `*` which is reserved as it allows you to fetch the whole store.
19
19
 
20
- `browser.sharedStore.set('key', 'value')` set value to store
20
+ ### Set Values
21
21
 
22
- `browser.sharedStore.get('key')` get value from store (returns `'value'`)
22
+ To set values to the store call:
23
+
24
+ ```js
25
+ await browser.sharedStore.set('key', 'foobar123')
26
+ ```
27
+
28
+ ### Get Values
29
+
30
+ To get values from the store call:
31
+
32
+ ```js
33
+ const value = await browser.sharedStore.get('key')
34
+ console.log(value) // returns "foobar123"
35
+ ```
36
+
37
+ You can also fetch all key values by using the `*` key:
38
+
39
+ ```js
40
+ const store = await browser.sharedStore.get('*')
41
+ console.log(value) // returns `{ key: "foobar" }`
42
+ ```
43
+
44
+ ### Access Store in WDIO Hooks
23
45
 
24
46
  You could also directly access to `setValue` and `getValue` async handlers.
25
47
  Make sure you properly call them with the `await` keyword.
package/build/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Response } from 'got';
2
2
  import type { JsonCompatible, JsonPrimitive, JsonObject, JsonArray } from '@wdio/types';
3
- export declare const setPort: (port: string) => void;
3
+ export declare const setPort: (port: number) => void;
4
4
  /**
5
5
  * make a request to the server to get a value from the store
6
6
  * @param {string} key
package/build/client.js CHANGED
@@ -1,41 +1,33 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.setValue = exports.getValue = exports.setPort = void 0;
7
- const got_1 = __importDefault(require("got"));
8
- const logger_1 = __importDefault(require("@wdio/logger"));
9
- const log = (0, logger_1.default)('@wdio/shared-store-service');
1
+ import got from 'got';
2
+ import logger from '@wdio/logger';
3
+ const log = logger('@wdio/shared-store-service');
10
4
  const WAIT_INTERVAL = 100;
11
5
  const pendingValues = new Map();
12
6
  let waitTimeout;
13
7
  let baseUrl;
14
- const setPort = (port) => { baseUrl = `http://localhost:${port}`; };
15
- exports.setPort = setPort;
8
+ export const setPort = (port) => { baseUrl = `http://localhost:${port}`; };
16
9
  /**
17
10
  * make a request to the server to get a value from the store
18
11
  * @param {string} key
19
12
  * @returns {*}
20
13
  */
21
- const getValue = async (key) => {
22
- const res = await got_1.default.post(`${baseUrl}/get`, { json: { key }, responseType: 'json' }).catch(errHandler);
23
- return (res === null || res === void 0 ? void 0 : res.body) ? res.body.value : undefined;
14
+ export const getValue = async (key) => {
15
+ const res = await got.post(`${baseUrl}/get`, { json: { key }, responseType: 'json' }).catch(errHandler);
16
+ return res?.body ? res.body.value : undefined;
24
17
  };
25
- exports.getValue = getValue;
26
18
  /**
27
19
  * make a request to the server to set a value to the store
28
20
  * @param {string} key
29
21
  * @param {*} value `store[key]` value (plain object)
30
22
  */
31
- const setValue = async (key, value) => {
23
+ export const setValue = async (key, value) => {
32
24
  /**
33
25
  * if someone calls `setValue` in `onPrepare` we don't have a base url
34
26
  * set as the launcher is called after user hooks. In this case we need
35
27
  * to wait until it is set and flush all messages.
36
28
  */
37
29
  if (baseUrl) {
38
- return got_1.default.post(`${baseUrl}/set`, { json: { key, value } }).catch(errHandler);
30
+ return got.post(`${baseUrl}/set`, { json: { key, value } }).catch(errHandler);
39
31
  }
40
32
  log.info('Shared store server not yet started, collecting value');
41
33
  pendingValues.set(key, value);
@@ -50,12 +42,11 @@ const setValue = async (key, value) => {
50
42
  log.info(`Shared store server started, flushing ${pendingValues.size} values`);
51
43
  clearInterval(waitTimeout);
52
44
  await Promise.all([...pendingValues.entries()].map(async ([key, value]) => {
53
- await got_1.default.post(`${baseUrl}/set`, { json: { key, value } }).catch(errHandler);
45
+ await got.post(`${baseUrl}/set`, { json: { key, value } }).catch(errHandler);
54
46
  pendingValues.delete(key);
55
47
  })).then(() => log.info('All pending values were successfully stored'), (err) => log.error(`Failed to store all values: ${err.stack}`));
56
48
  }, WAIT_INTERVAL);
57
49
  };
58
- exports.setValue = setValue;
59
50
  const errHandler = (err) => {
60
51
  log.warn(err.statusCode, err.statusMessage, err.url, err.body);
61
52
  };
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { JsonPrimitive, JsonCompatible } from '@wdio/types';
2
- import SharedStoreLauncher from './launcher';
3
- import SharedStoreService from './service';
4
- export { getValue, setValue } from './client';
2
+ import SharedStoreLauncher from './launcher.js';
3
+ import SharedStoreService from './service.js';
4
+ export { getValue, setValue } from './client.js';
5
5
  export default SharedStoreService;
6
6
  export declare const launcher: typeof SharedStoreLauncher;
7
7
  export interface BrowserExtension {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEhE,OAAO,mBAAmB,MAAM,YAAY,CAAA;AAC5C,OAAO,kBAAkB,MAAM,WAAW,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC7C,eAAe,kBAAkB,CAAA;AACjC,eAAO,MAAM,QAAQ,4BAAsB,CAAA;AAE3C,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE;QACT,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,aAAa,GAAG,cAAc,CAAC;QACrD,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,cAAc,KAAK,IAAI,CAAC;KACrE,CAAA;CACJ;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,gBAAgB,CAAC;QACvB,UAAU,OAAQ,SAAQ,gBAAgB;SAAI;QAC9C,UAAU,kBAAmB,SAAQ,gBAAgB;SAAI;KAC5D;IAED,UAAU,eAAe,CAAC;QACtB,UAAU,OAAQ,SAAQ,gBAAgB;SAAI;QAC9C,UAAU,kBAAmB,SAAQ,gBAAgB;SAAI;KAC5D;CACJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEhE,OAAO,mBAAmB,MAAM,eAAe,CAAA;AAC/C,OAAO,kBAAkB,MAAM,cAAc,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAChD,eAAe,kBAAkB,CAAA;AACjC,eAAO,MAAM,QAAQ,4BAAsB,CAAA;AAE3C,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE;QACT,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,aAAa,GAAG,cAAc,CAAC;QACrD,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,cAAc,KAAK,IAAI,CAAC;KACrE,CAAA;CACJ;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,gBAAgB,CAAC;QACvB,UAAU,OAAQ,SAAQ,gBAAgB;SAAI;QAC9C,UAAU,kBAAmB,SAAQ,gBAAgB;SAAI;KAC5D;IAED,UAAU,eAAe,CAAC;QACtB,UAAU,OAAQ,SAAQ,gBAAgB;SAAI;QAC9C,UAAU,kBAAmB,SAAQ,gBAAgB;SAAI;KAC5D;CACJ"}
package/build/index.js CHANGED
@@ -1,13 +1,5 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.launcher = exports.setValue = exports.getValue = void 0;
7
- const launcher_1 = __importDefault(require("./launcher"));
8
- const service_1 = __importDefault(require("./service"));
9
- var client_1 = require("./client");
10
- Object.defineProperty(exports, "getValue", { enumerable: true, get: function () { return client_1.getValue; } });
11
- Object.defineProperty(exports, "setValue", { enumerable: true, get: function () { return client_1.setValue; } });
12
- exports.default = service_1.default;
13
- exports.launcher = launcher_1.default;
1
+ import SharedStoreLauncher from './launcher.js';
2
+ import SharedStoreService from './service.js';
3
+ export { getValue, setValue } from './client.js';
4
+ export default SharedStoreService;
5
+ export const launcher = SharedStoreLauncher;
@@ -1,5 +1,7 @@
1
1
  import type { SharedStoreServiceCapabilities } from './types';
2
2
  export default class SharedStoreLauncher {
3
+ private _app?;
3
4
  onPrepare(_: never, capabilities: SharedStoreServiceCapabilities[]): Promise<void>;
5
+ onComplete(): Promise<void>;
4
6
  }
5
7
  //# sourceMappingURL=launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAM7D,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAC9B,SAAS,CAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,8BAA8B,EAAE;CAQ5E"}
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAM7D,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAe;IAEtB,SAAS,CAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,8BAA8B,EAAE;IAenE,UAAU;CAQnB"}
package/build/launcher.js CHANGED
@@ -1,19 +1,28 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const logger_1 = __importDefault(require("@wdio/logger"));
7
- const client_1 = require("./client");
8
- const log = (0, logger_1.default)('@wdio/shared-store-service');
1
+ import logger from '@wdio/logger';
2
+ import { setPort } from './client.js';
3
+ const log = logger('@wdio/shared-store-service');
9
4
  let server;
10
- class SharedStoreLauncher {
5
+ export default class SharedStoreLauncher {
6
+ _app;
11
7
  async onPrepare(_, capabilities) {
12
- server = require('./server').default;
13
- const result = await server.startServer();
14
- (0, client_1.setPort)(result.port);
15
- capabilities.forEach(capability => { capability['wdio:sharedStoreServicePort'] = result.port; });
16
- log.info(`Started shared server on port ${result.port}`);
8
+ /**
9
+ * import during runtime to avoid unnecessary dependency loading
10
+ */
11
+ server = (await import('./server.js'));
12
+ const { port, app } = await server.startServer();
13
+ this._app = app;
14
+ setPort(port);
15
+ capabilities.forEach((capability) => {
16
+ capability['wdio:sharedStoreServicePort'] = port;
17
+ });
18
+ log.info(`Started shared server on port ${port}`);
19
+ }
20
+ async onComplete() {
21
+ return new Promise((resolve) => {
22
+ if (this._app && this._app.server.close) {
23
+ this._app.server.close(() => resolve());
24
+ }
25
+ return resolve();
26
+ });
17
27
  }
18
28
  }
19
- exports.default = SharedStoreLauncher;
package/build/server.d.ts CHANGED
@@ -1,3 +1,10 @@
1
- declare const _default: SharedStoreServer;
2
- export default _default;
1
+ import type { JsonObject } from '@wdio/types';
2
+ /**
3
+ * @private
4
+ */
5
+ export declare const __store: JsonObject;
6
+ export declare const startServer: () => Promise<{
7
+ port: number;
8
+ app: PolkaInstance;
9
+ }>;
3
10
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AA2DA,wBAA+E"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAA;AAG5E;;GAEG;AACH,eAAO,MAAM,OAAO,YAAQ,CAAA;AAY5B,eAAO,MAAM,WAAW;UAA6B,MAAM;SAAO,aAAa;EAwC7E,CAAA"}
package/build/server.js CHANGED
@@ -1,11 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const polka_1 = __importDefault(require("polka"));
7
- const parse_1 = require("@polka/parse");
1
+ import polka from 'polka';
2
+ import { json } from '@polka/parse';
8
3
  const store = {};
4
+ /**
5
+ * @private
6
+ */
7
+ export const __store = store;
9
8
  const validateBody = (req, res, next) => {
10
9
  if (!req.path.endsWith('/get') && !req.path.endsWith('/set')) {
11
10
  return next();
@@ -15,21 +14,29 @@ const validateBody = (req, res, next) => {
15
14
  }
16
15
  next();
17
16
  };
18
- const app = (0, polka_1.default)()
19
- /**
20
- * middleware
21
- * `json` middleware transforms body to json for every request or returns empty object
22
- */
23
- .use((0, parse_1.json)(), validateBody)
24
- // routes
25
- .post('/get', (req, res) => {
26
- res.end(JSON.stringify({ value: store[req.body.key] }));
27
- })
28
- .post('/set', (req, res) => {
29
- store[req.body.key] = req.body.value;
30
- return res.end();
31
- });
32
- const startServer = () => new Promise((resolve, reject) => {
17
+ export const startServer = () => new Promise((resolve, reject) => {
18
+ const app = polka()
19
+ /**
20
+ * middleware
21
+ * `json` middleware transforms body to json for every request or returns empty object
22
+ */
23
+ .use(json(), validateBody)
24
+ // routes
25
+ .post('/get', (req, res) => {
26
+ const key = req.body.key;
27
+ const value = key === '*'
28
+ ? store
29
+ : store[key];
30
+ res.end(JSON.stringify({ value }));
31
+ })
32
+ .post('/set', (req, res) => {
33
+ const key = req.body.key;
34
+ if (key === '*') {
35
+ throw new Error('You can\'t set a value with key "*" as this is a reserved key');
36
+ }
37
+ store[key] = req.body.value;
38
+ return res.end();
39
+ });
33
40
  /**
34
41
  * run server on a random port, `0` stands for random port
35
42
  * > If port is omitted or is 0, the operating system will assign
@@ -41,15 +48,6 @@ const startServer = () => new Promise((resolve, reject) => {
41
48
  if (err) {
42
49
  return reject(err);
43
50
  }
44
- resolve({
45
- port: app.server.address().port
46
- });
51
+ resolve({ app, port: app.server.address().port });
47
52
  });
48
53
  });
49
- const stopServer = () => new Promise((resolve) => {
50
- if (app.server.close) {
51
- return app.server.close(() => resolve());
52
- }
53
- resolve();
54
- });
55
- exports.default = { startServer, stopServer, __store: store };
@@ -1,6 +1,6 @@
1
- import { Browser } from 'webdriverio';
2
- import { BrowserExtension } from './index';
1
+ import type { Browser } from 'webdriverio';
3
2
  import type { Services } from '@wdio/types';
3
+ import { BrowserExtension } from './index.js';
4
4
  import type { SharedStoreServiceCapabilities } from './types';
5
5
  /**
6
6
  * ToDo(Christian): make this public accessible
@@ -10,7 +10,7 @@ interface ServiceBrowser extends Browser<'async'>, BrowserExtension {
10
10
  export default class SharedStoreService implements Services.ServiceInstance {
11
11
  private _browser?;
12
12
  constructor(_: never, caps: SharedStoreServiceCapabilities);
13
- before(caps: unknown, specs: unknown, browser: ServiceBrowser): void;
13
+ before(caps: never, specs: never, browser: ServiceBrowser): void;
14
14
  }
15
15
  export {};
16
16
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,KAAK,EAAiC,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC1E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAE7D;;GAEG;AACH,UAAU,cAAe,SAAQ,OAAO,CAAC,OAAO,CAAC,EAAE,gBAAgB;CAAI;AAEvE,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,QAAQ,CAAC,eAAe;IACvE,OAAO,CAAC,QAAQ,CAAC,CAAgB;gBAErB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,8BAA8B;IAI1D,MAAM,CACF,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,cAAc;CAiB9B"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAiC,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAE7D;;GAEG;AACH,UAAU,cAAe,SAAQ,OAAO,CAAC,OAAO,CAAC,EAAE,gBAAgB;CAAI;AAEvE,MAAM,CAAC,OAAO,OAAO,kBAAmB,YAAW,QAAQ,CAAC,eAAe;IACvE,OAAO,CAAC,QAAQ,CAAC,CAAgB;gBAErB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,8BAA8B;IAI1D,MAAM,CACF,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,cAAc;CAiB9B"}
package/build/service.js CHANGED
@@ -1,21 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const client_1 = require("./client");
4
- class SharedStoreService {
1
+ import { getValue, setValue, setPort } from './client.js';
2
+ export default class SharedStoreService {
3
+ _browser;
5
4
  constructor(_, caps) {
6
- (0, client_1.setPort)(caps['wdio:sharedStoreServicePort']);
5
+ setPort(caps['wdio:sharedStoreServicePort']);
7
6
  }
8
7
  before(caps, specs, browser) {
9
8
  this._browser = browser;
10
9
  const sharedStore = Object.create({}, {
11
10
  get: {
12
- value: (key) => { var _a; return (_a = this._browser) === null || _a === void 0 ? void 0 : _a.call(() => (0, client_1.getValue)(key)); }
11
+ value: (key) => this._browser?.call(() => getValue(key))
13
12
  },
14
13
  set: {
15
- value: (key, value) => { var _a; return (_a = this._browser) === null || _a === void 0 ? void 0 : _a.call(() => (0, client_1.setValue)(key, value)); }
14
+ value: (key, value) => this._browser?.call(() => setValue(key, value))
16
15
  }
17
16
  });
18
17
  this._browser.sharedStore = sharedStore;
19
18
  }
20
19
  }
21
- exports.default = SharedStoreService;
package/build/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Capabilities } from '@wdio/types';
1
+ import type { Capabilities } from '@wdio/types';
2
2
  export interface SharedStoreServiceCapabilities extends Capabilities.Capabilities {
3
- 'wdio:sharedStoreServicePort': string;
3
+ 'wdio:sharedStoreServicePort': number;
4
4
  }
5
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,8BAA+B,SAAQ,YAAY,CAAC,YAAY;IAC7E,6BAA6B,EAAE,MAAM,CAAA;CACxC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,WAAW,8BAA+B,SAAQ,YAAY,CAAC,YAAY;IAC7E,6BAA6B,EAAE,MAAM,CAAA;CACxC"}
package/build/types.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@wdio/shared-store-service",
3
- "version": "7.20.7",
3
+ "version": "7.20.8-alpha.504+428a9d729",
4
4
  "description": "A WebdriverIO service to exchange data across processes",
5
5
  "author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-shared-store-service",
7
7
  "license": "MIT",
8
- "main": "./build",
9
8
  "engines": {
10
- "node": ">=12.0.0"
9
+ "node": "^16.13 || >=18"
11
10
  },
12
11
  "repository": {
13
12
  "type": "git",
14
- "url": "git://github.com/webdriverio/webdriverio.git"
13
+ "url": "git://github.com/webdriverio/webdriverio.git",
14
+ "directory": "packages/wdio-shared-store-service"
15
15
  },
16
16
  "keywords": [
17
17
  "webdriver",
@@ -22,17 +22,20 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/webdriverio/webdriverio/issues"
24
24
  },
25
+ "type": "module",
26
+ "exports": "./build/index.js",
27
+ "types": "./build/index.d.ts",
28
+ "typeScriptVersion": "3.8.3",
25
29
  "dependencies": {
26
30
  "@polka/parse": "^1.0.0-next.0",
27
- "@wdio/logger": "7.19.0",
28
- "@wdio/types": "7.20.7",
29
- "got": "^11.0.2",
31
+ "@wdio/logger": "7.20.8-alpha.504+428a9d729",
32
+ "@wdio/types": "7.20.8-alpha.504+428a9d729",
33
+ "got": "^12.1.0",
30
34
  "polka": "^0.5.2",
31
- "webdriverio": "7.20.7"
35
+ "webdriverio": "7.20.8-alpha.504+428a9d729"
32
36
  },
33
37
  "publishConfig": {
34
38
  "access": "public"
35
39
  },
36
- "types": "./build/index.d.ts",
37
- "gitHead": "21b8b61453f4749d87eca3e4d7d6e5e2cb60f043"
40
+ "gitHead": "428a9d729ae6231968a60908732fa3f607d195e9"
38
41
  }
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- globals: {
3
- WebdriverIO: true,
4
- NextFn: true,
5
- Polka: true,
6
- SharedStoreServer: true
7
- }
8
- }