@wdio/smoke-test-service 7.18.0 → 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/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import fs from 'fs';
2
+ import fs from 'node:fs';
3
3
  export default class SmokeService {
4
4
  logFile: fs.WriteStream;
5
5
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,CAAA;AAGnB,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,aAAa;IACb,MAAM;IACN,WAAW;IACX,UAAU;IACV,SAAS;IACT,UAAU;IACV,aAAa;IACb,YAAY;IACZ,SAAS;IACT,UAAU;IACV,KAAK;IACL,YAAY;CACf;AAED,cAAM,oBAAoB;IACtB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,SAAS;IACT,aAAa;IACb,WAAW;IACX,UAAU;CACb;AAED,eAAO,MAAM,QAAQ,6BAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AAGxB,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,aAAa;IACb,MAAM;IACN,WAAW;IACX,UAAU;IACV,SAAS;IACT,UAAU;IACV,aAAa;IACb,YAAY;IACZ,SAAS;IACT,UAAU;IACV,KAAK;IACL,YAAY;CACf;AAED,cAAM,oBAAoB;IACtB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;;IAIvB,SAAS;IACT,aAAa;IACb,WAAW;IACX,UAAU;CACb;AAED,eAAO,MAAM,QAAQ,6BAAuB,CAAA"}
package/build/index.js CHANGED
@@ -1,14 +1,9 @@
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 = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const path_1 = __importDefault(require("path"));
9
- class SmokeService {
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ export default class SmokeService {
4
+ logFile;
10
5
  constructor() {
11
- this.logFile = fs_1.default.createWriteStream(path_1.default.join(process.cwd(), 'tests', 'helpers', 'service.log'));
6
+ this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'service.log'));
12
7
  }
13
8
  beforeSession() { this.logFile.write('beforeSession called\n'); } // eslint-disable-line no-console
14
9
  before() { this.logFile.write('before called\n'); } // eslint-disable-line no-console
@@ -23,14 +18,14 @@ class SmokeService {
23
18
  after() { this.logFile.write('after called\n'); } // eslint-disable-line no-console
24
19
  afterSession() { this.logFile.write('afterSession called\n'); } // eslint-disable-line no-console
25
20
  }
26
- exports.default = SmokeService;
27
21
  class SmokeServiceLauncher {
22
+ logFile;
28
23
  constructor() {
29
- this.logFile = fs_1.default.createWriteStream(path_1.default.join(process.cwd(), 'tests', 'helpers', 'launcher.log'));
24
+ this.logFile = fs.createWriteStream(path.join(process.cwd(), 'tests', 'helpers', 'launcher.log'));
30
25
  }
31
26
  onPrepare() { this.logFile.write('onPrepare called\n'); } // eslint-disable-line no-console
32
27
  onWorkerStart() { this.logFile.write('onWorkerStart called\n'); } // eslint-disable-line no-console
33
28
  onWorkerEnd() { this.logFile.write('onWorkerEnd called\n'); } // eslint-disable-line no-console
34
29
  onComplete() { this.logFile.write('onComplete called\n'); } // eslint-disable-line no-console
35
30
  }
36
- exports.launcher = SmokeServiceLauncher;
31
+ export const launcher = SmokeServiceLauncher;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@wdio/smoke-test-service",
3
- "version": "7.18.0",
3
+ "version": "7.20.8-alpha.504+428a9d729",
4
4
  "description": "A WebdriverIO utility to smoke test services for internal testing purposes.",
5
- "author": "Christian Bromann <christian@saucelabs.com>",
5
+ "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service",
7
7
  "license": "MIT",
8
- "main": "./build/index",
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-smoke-test-service"
15
15
  },
16
16
  "keywords": [],
17
17
  "bugs": {
@@ -20,6 +20,9 @@
20
20
  "publishConfig": {
21
21
  "access": "public"
22
22
  },
23
+ "type": "module",
24
+ "exports": "./build/index.js",
23
25
  "types": "./build/index.d.ts",
24
- "gitHead": "44729cdd585af3ad69f2093f32377f297f5ac344"
26
+ "typeScriptVersion": "3.8.3",
27
+ "gitHead": "428a9d729ae6231968a60908732fa3f607d195e9"
25
28
  }