@badisi/wdio-harness 1.0.1 → 1.0.4

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
@@ -9,7 +9,7 @@
9
9
  [![build status](https://github.com/badisi/wdio-harness/workflows/CI%20tests/badge.svg)][ci-tests]
10
10
  [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)][pullrequest]
11
11
 
12
- <hr>
12
+ <hr/>
13
13
 
14
14
  #### Component test harnesses
15
15
 
@@ -96,10 +96,10 @@ Please read and follow the [Code of Conduct][codeofconduct] and help me keep thi
96
96
  [npm]: https://www.npmjs.com/package/@badisi/wdio-harness
97
97
  [npm-dl]: https://npmcharts.com/compare/@badisi/wdio-harness?minimal=true
98
98
  [ci-tests]: https://github.com/badisi/wdio-harness/actions?query=workflow:CI%20tests
99
- [pullrequest]: https://github.com/badisi/wdio-harness/blob/master/CONTRIBUTING.md#-submitting-a-pull-request-pr
100
- [license]: https://github.com/badisi/wdio-harness/blob/master/LICENSE
101
- [developer]: https://github.com/badisi/wdio-harness/blob/master/DEVELOPER.md
102
- [contributing]: https://github.com/badisi/wdio-harness/blob/master/CONTRIBUTING.md
103
- [codeofconduct]: https://github.com/badisi/wdio-harness/blob/master/CODE_OF_CONDUCT.md
99
+ [pullrequest]: https://github.com/badisi/wdio-harness/blob/main/CONTRIBUTING.md#-submitting-a-pull-request-pr
100
+ [license]: https://github.com/badisi/wdio-harness/blob/main/LICENSE
101
+ [developer]: https://github.com/badisi/wdio-harness/blob/main/DEVELOPER.md
102
+ [contributing]: https://github.com/badisi/wdio-harness/blob/main/CONTRIBUTING.md
103
+ [codeofconduct]: https://github.com/badisi/wdio-harness/blob/main/CODE_OF_CONDUCT.md
104
104
  [wdio]: https://webdriver.io/
105
- [examples]: https://github.com/badisi/wdio-harness/blob/master/projects/tests/harness.e2e.ts
105
+ [examples]: https://github.com/badisi/wdio-harness/blob/main/projects/tests/harness.e2e.ts
@@ -4,7 +4,7 @@ exports.WebdriverIOHarnessEnvironment = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const testing_1 = require("@angular/cdk/testing");
6
6
  const logger_1 = tslib_1.__importDefault(require("@wdio/logger"));
7
- const safe_1 = require("colors/safe");
7
+ const safe_1 = require("@colors/colors/safe");
8
8
  const WebdriverIOTestElement_1 = require("./WebdriverIOTestElement");
9
9
  /** Registers the environment logger. */
10
10
  const log = logger_1.default('wdio-harness');
@@ -4,7 +4,7 @@ exports.WebdriverIOTestElement = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const testing_1 = require("@angular/cdk/testing");
6
6
  const logger_1 = tslib_1.__importDefault(require("@wdio/logger"));
7
- const safe_1 = require("colors/safe");
7
+ const safe_1 = require("@colors/colors/safe");
8
8
  var Button;
9
9
  (function (Button) {
10
10
  Button["LEFT"] = "left";
@@ -138,7 +138,7 @@ class WebdriverIOTestElement {
138
138
  }
139
139
  /** Gets the text from the element. */
140
140
  text(options) {
141
- this.logAction('TEXT', `{ exclude: ${options === null || options === void 0 ? void 0 : options.exclude} }`);
141
+ this.logAction('TEXT', `{ exclude: ${options === null || options === void 0 ? void 0 : options.exclude} }`);
142
142
  if (options === null || options === void 0 ? void 0 : options.exclude) {
143
143
  return browser.executeScript(`
144
144
  const clone = arguments[0].cloneNode(true) as Element;
@@ -1,6 +1,6 @@
1
1
  import { HarnessEnvironment } from '@angular/cdk/testing';
2
2
  import logger from '@wdio/logger';
3
- import { magenta, green } from 'colors/safe';
3
+ import { magenta, green } from '@colors/colors/safe';
4
4
  import { WebdriverIOTestElement } from './WebdriverIOTestElement';
5
5
  /** Registers the environment logger. */
6
6
  const log = logger('wdio-harness');
@@ -1,6 +1,6 @@
1
1
  import { TestKey } from '@angular/cdk/testing';
2
2
  import logger from '@wdio/logger';
3
- import { magenta, green } from 'colors/safe';
3
+ import { magenta, green } from '@colors/colors/safe';
4
4
  var Button;
5
5
  (function (Button) {
6
6
  Button["LEFT"] = "left";
@@ -132,7 +132,7 @@ export class WebdriverIOTestElement {
132
132
  }
133
133
  /** Gets the text from the element. */
134
134
  text(options) {
135
- this.logAction('TEXT', `{ exclude: ${options?.exclude} }`);
135
+ this.logAction('TEXT', `{ exclude: ${options?.exclude} }`);
136
136
  if (options?.exclude) {
137
137
  return browser.executeScript(`
138
138
  const clone = arguments[0].cloneNode(true) as Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@badisi/wdio-harness",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "WebdriverIO support for Angular component test harnesses.",
5
5
  "homepage": "https://github.com/badisi/wdio-harness",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "@angular/cdk": ">= 10 < 13",
38
38
  "@wdio/logger": ">= 7 < 8",
39
- "colors": "^1.4.0",
39
+ "@colors/colors": "^1.5.0",
40
40
  "webdriverio": ">= 7 < 8"
41
41
  }
42
42
  }