@wopee-io/wopee.wdio 5.2.5 → 6.0.0
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 +14 -0
- package/build/domain/model/config.interface.d.ts +6 -6
- package/build/utils/versionMetadata.d.ts.map +1 -1
- package/build/utils/versionMetadata.js +2 -2
- package/node_modules/debug/README.md +1 -1
- package/node_modules/debug/package.json +8 -4
- package/node_modules/debug/src/browser.js +2 -1
- package/node_modules/debug/src/common.js +57 -39
- package/node_modules/ms/index.js +1 -1
- package/node_modules/ms/license.md +1 -1
- package/node_modules/ms/package.json +5 -4
- package/node_modules/ms/readme.md +1 -2
- package/package.json +18 -14
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/CHANGELOG.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/LICENSE +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/MIGRATION_GUIDE.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/browser/axios.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/node/axios.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.cts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/adapters.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/fetch.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/http.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/xhr.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CancelToken.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CanceledError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/isCancel.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/Axios.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/InterceptorManager.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/buildFullPath.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/dispatchRequest.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/mergeConfig.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/methodList.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/setFormDataHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/settle.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/transformData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/transitional.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/data.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosTransformStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/AxiosURLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/Http2Sessions.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/HttpStatusCode.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/ZlibHeaderTransformStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/bind.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/buildURL.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/callbackify.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/combineURLs.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/composeSignals.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/cookies.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/deprecatedMethod.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/estimateDataURLDecodedBytes.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToJSON.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/formDataToStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/fromDataURI.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAbsoluteURL.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isAxiosError.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/isURLSameOrigin.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/normalizeURLForProtocolCheck.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/null.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseHeaders.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/parseProtocol.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/progressEventReducer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/readBlob.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/resolveConfig.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/sanitizeHeaderValue.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/shouldBypassProxy.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/speedometer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/spread.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/throttle.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toFormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toURLEncodedForm.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/trackStream.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/validator.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/Blob.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/classes/URLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/browser/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/common/utils.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/Buffer.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/FormData.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/classes/URLSearchParams.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/node/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/utils.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/promisify.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/index.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/promisify.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/agent.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/index.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/node_modules/https-proxy-agent/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/CHANGELOG.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/License +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/index.d.ts +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/browser.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/form_data.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/populate.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/package.json +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/README.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/db.json +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/index.js +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/package.json +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/LICENSE +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/README.md +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.cjs +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/index.js +0 -0
- /package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/package.json +0 -0
package/README.md
CHANGED
|
@@ -5,12 +5,26 @@ Catch visual regressions in your [WebdriverIO](https://webdriver.io/) tests with
|
|
|
5
5
|
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
6
6
|
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
7
7
|
|
|
8
|
+
## Requirements
|
|
9
|
+
|
|
10
|
+
- Node.js 20 or newer
|
|
11
|
+
- WebdriverIO 8 or 9, installed in your project
|
|
12
|
+
|
|
13
|
+
`webdriverio` is a peer dependency, so the plugin uses the exact version your test
|
|
14
|
+
suite already runs rather than pulling a second copy of it.
|
|
15
|
+
|
|
8
16
|
## Installation
|
|
9
17
|
|
|
10
18
|
```bash
|
|
11
19
|
npm install @wopee-io/wopee.wdio
|
|
12
20
|
```
|
|
13
21
|
|
|
22
|
+
If your project does not already depend on WebdriverIO directly:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @wopee-io/wopee.wdio webdriverio
|
|
26
|
+
```
|
|
27
|
+
|
|
14
28
|
## Quick Start
|
|
15
29
|
|
|
16
30
|
Add the Wopee service to your WebdriverIO config:
|
|
@@ -18,37 +18,37 @@ export declare const ScreenshotValidationOptionsSchema: z.ZodObject<{
|
|
|
18
18
|
} & {
|
|
19
19
|
screenshotValidationEnabled: z.ZodDefault<z.ZodType<boolean, z.ZodTypeDef, boolean>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
browser?: string;
|
|
22
21
|
comment?: string;
|
|
23
22
|
customTags?: string;
|
|
24
23
|
pixelToPixelDiffTolerance?: number;
|
|
25
24
|
viewport?: string;
|
|
26
25
|
baselineBranchName?: string;
|
|
26
|
+
screenshotValidationEnabled?: boolean;
|
|
27
27
|
apiKey?: string;
|
|
28
28
|
apiUrl?: string;
|
|
29
29
|
branchName?: string;
|
|
30
|
+
browser?: string;
|
|
30
31
|
device?: string;
|
|
31
32
|
enableSoftAssert?: boolean;
|
|
32
33
|
os?: string;
|
|
33
34
|
projectUuid?: string;
|
|
34
35
|
suiteUuid?: string;
|
|
35
|
-
screenshotValidationEnabled?: boolean;
|
|
36
36
|
}, {
|
|
37
|
-
browser?: string;
|
|
38
37
|
comment?: string;
|
|
39
38
|
customTags?: string;
|
|
40
39
|
pixelToPixelDiffTolerance?: number;
|
|
41
40
|
viewport?: string;
|
|
42
41
|
baselineBranchName?: string;
|
|
42
|
+
screenshotValidationEnabled?: boolean;
|
|
43
43
|
apiKey?: string;
|
|
44
44
|
apiUrl?: string;
|
|
45
45
|
branchName?: string;
|
|
46
|
+
browser?: string;
|
|
46
47
|
device?: string;
|
|
47
48
|
enableSoftAssert?: boolean;
|
|
48
49
|
os?: string;
|
|
49
50
|
projectUuid?: string;
|
|
50
51
|
suiteUuid?: string;
|
|
51
|
-
screenshotValidationEnabled?: boolean;
|
|
52
52
|
}>;
|
|
53
53
|
export type ScreenshotValidationOptions = z.infer<typeof ScreenshotValidationOptionsSchema>;
|
|
54
54
|
export declare const GeneralWopeeServiceOptionsSchema: z.ZodObject<{
|
|
@@ -68,14 +68,14 @@ export declare const ImageProcessingOptionsSchema: z.ZodObject<{
|
|
|
68
68
|
yTop: z.ZodDefault<z.ZodNumber>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
maskColor?: string;
|
|
71
|
-
mode?: "
|
|
71
|
+
mode?: "masking" | "cropping" | "none";
|
|
72
72
|
xLeft?: number;
|
|
73
73
|
xRight?: number;
|
|
74
74
|
yBottom?: number;
|
|
75
75
|
yTop?: number;
|
|
76
76
|
}, {
|
|
77
77
|
maskColor?: string;
|
|
78
|
-
mode?: "
|
|
78
|
+
mode?: "masking" | "cropping" | "none";
|
|
79
79
|
xLeft?: number;
|
|
80
80
|
xRight?: number;
|
|
81
81
|
yBottom?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionMetadata.d.ts","sourceRoot":"","sources":["../../lib/utils/versionMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"versionMetadata.d.ts","sourceRoot":"","sources":["../../lib/utils/versionMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,IAmB5C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,8 +6,8 @@ import { execSync } from 'child_process';
|
|
|
6
6
|
* @param logger - WebdriverIO Logger instance for logging.
|
|
7
7
|
*/
|
|
8
8
|
const logVersionMetadata = (logger) => {
|
|
9
|
-
let hash = "
|
|
10
|
-
let version = "
|
|
9
|
+
let hash = "c98fb11b2ba99f9c5dbe7b8190b39a8d7764eda5"
|
|
10
|
+
let version = "6.0.0"
|
|
11
11
|
// If version is not "__LOCAL__," get it from npm package
|
|
12
12
|
if (version === '__LOCAL__') {
|
|
13
13
|
version = process.env['npm_package_version'] || '__LOCAL__';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# debug
|
|
2
|
-
[](#backers)
|
|
3
3
|
[](#sponsors)
|
|
4
4
|
|
|
5
5
|
<img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "debug",
|
|
3
|
-
"version": "4.3
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git://github.com/debug-js/debug.git"
|
|
@@ -26,18 +26,17 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"lint": "xo",
|
|
28
28
|
"test": "npm run test:node && npm run test:browser && npm run lint",
|
|
29
|
-
"test:node": "
|
|
29
|
+
"test:node": "mocha test.js test.node.js",
|
|
30
30
|
"test:browser": "karma start --single-run",
|
|
31
31
|
"test:coverage": "cat ./coverage/lcov.info | coveralls"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ms": "2.1.
|
|
34
|
+
"ms": "^2.1.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"brfs": "^2.0.1",
|
|
38
38
|
"browserify": "^16.2.3",
|
|
39
39
|
"coveralls": "^3.0.2",
|
|
40
|
-
"istanbul": "^0.4.5",
|
|
41
40
|
"karma": "^3.1.4",
|
|
42
41
|
"karma-browserify": "^6.0.0",
|
|
43
42
|
"karma-chrome-launcher": "^2.2.0",
|
|
@@ -56,5 +55,10 @@
|
|
|
56
55
|
"browser": "./src/browser.js",
|
|
57
56
|
"engines": {
|
|
58
57
|
"node": ">=6.0"
|
|
58
|
+
},
|
|
59
|
+
"xo": {
|
|
60
|
+
"rules": {
|
|
61
|
+
"import/extensions": "off"
|
|
62
|
+
}
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -129,6 +129,7 @@ function useColors() {
|
|
|
129
129
|
|
|
130
130
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
131
131
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
132
|
+
// eslint-disable-next-line no-return-assign
|
|
132
133
|
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
133
134
|
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
134
135
|
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
@@ -218,7 +219,7 @@ function save(namespaces) {
|
|
|
218
219
|
function load() {
|
|
219
220
|
let r;
|
|
220
221
|
try {
|
|
221
|
-
r = exports.storage.getItem('debug');
|
|
222
|
+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
222
223
|
} catch (error) {
|
|
223
224
|
// Swallow
|
|
224
225
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -166,24 +166,62 @@ function setup(env) {
|
|
|
166
166
|
createDebug.names = [];
|
|
167
167
|
createDebug.skips = [];
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
170
|
+
.trim()
|
|
171
|
+
.replace(/\s+/g, ',')
|
|
172
|
+
.split(',')
|
|
173
|
+
.filter(Boolean);
|
|
174
|
+
|
|
175
|
+
for (const ns of split) {
|
|
176
|
+
if (ns[0] === '-') {
|
|
177
|
+
createDebug.skips.push(ns.slice(1));
|
|
178
|
+
} else {
|
|
179
|
+
createDebug.names.push(ns);
|
|
177
180
|
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
178
183
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
/**
|
|
185
|
+
* Checks if the given string matches a namespace template, honoring
|
|
186
|
+
* asterisks as wildcards.
|
|
187
|
+
*
|
|
188
|
+
* @param {String} search
|
|
189
|
+
* @param {String} template
|
|
190
|
+
* @return {Boolean}
|
|
191
|
+
*/
|
|
192
|
+
function matchesTemplate(search, template) {
|
|
193
|
+
let searchIndex = 0;
|
|
194
|
+
let templateIndex = 0;
|
|
195
|
+
let starIndex = -1;
|
|
196
|
+
let matchIndex = 0;
|
|
197
|
+
|
|
198
|
+
while (searchIndex < search.length) {
|
|
199
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
200
|
+
// Match character or proceed with wildcard
|
|
201
|
+
if (template[templateIndex] === '*') {
|
|
202
|
+
starIndex = templateIndex;
|
|
203
|
+
matchIndex = searchIndex;
|
|
204
|
+
templateIndex++; // Skip the '*'
|
|
205
|
+
} else {
|
|
206
|
+
searchIndex++;
|
|
207
|
+
templateIndex++;
|
|
208
|
+
}
|
|
209
|
+
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
|
|
210
|
+
// Backtrack to the last '*' and try to match more characters
|
|
211
|
+
templateIndex = starIndex + 1;
|
|
212
|
+
matchIndex++;
|
|
213
|
+
searchIndex = matchIndex;
|
|
183
214
|
} else {
|
|
184
|
-
|
|
215
|
+
return false; // No match
|
|
185
216
|
}
|
|
186
217
|
}
|
|
218
|
+
|
|
219
|
+
// Handle trailing '*' in template
|
|
220
|
+
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
221
|
+
templateIndex++;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return templateIndex === template.length;
|
|
187
225
|
}
|
|
188
226
|
|
|
189
227
|
/**
|
|
@@ -194,8 +232,8 @@ function setup(env) {
|
|
|
194
232
|
*/
|
|
195
233
|
function disable() {
|
|
196
234
|
const namespaces = [
|
|
197
|
-
...createDebug.names
|
|
198
|
-
...createDebug.skips.map(
|
|
235
|
+
...createDebug.names,
|
|
236
|
+
...createDebug.skips.map(namespace => '-' + namespace)
|
|
199
237
|
].join(',');
|
|
200
238
|
createDebug.enable('');
|
|
201
239
|
return namespaces;
|
|
@@ -209,21 +247,14 @@ function setup(env) {
|
|
|
209
247
|
* @api public
|
|
210
248
|
*/
|
|
211
249
|
function enabled(name) {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
let i;
|
|
217
|
-
let len;
|
|
218
|
-
|
|
219
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
220
|
-
if (createDebug.skips[i].test(name)) {
|
|
250
|
+
for (const skip of createDebug.skips) {
|
|
251
|
+
if (matchesTemplate(name, skip)) {
|
|
221
252
|
return false;
|
|
222
253
|
}
|
|
223
254
|
}
|
|
224
255
|
|
|
225
|
-
for (
|
|
226
|
-
if (
|
|
256
|
+
for (const ns of createDebug.names) {
|
|
257
|
+
if (matchesTemplate(name, ns)) {
|
|
227
258
|
return true;
|
|
228
259
|
}
|
|
229
260
|
}
|
|
@@ -231,19 +262,6 @@ function setup(env) {
|
|
|
231
262
|
return false;
|
|
232
263
|
}
|
|
233
264
|
|
|
234
|
-
/**
|
|
235
|
-
* Convert regexp to namespace
|
|
236
|
-
*
|
|
237
|
-
* @param {RegExp} regxep
|
|
238
|
-
* @return {String} namespace
|
|
239
|
-
* @api private
|
|
240
|
-
*/
|
|
241
|
-
function toNamespace(regexp) {
|
|
242
|
-
return regexp.toString()
|
|
243
|
-
.substring(2, regexp.toString().length - 2)
|
|
244
|
-
.replace(/\.\*\?$/, '*');
|
|
245
|
-
}
|
|
246
|
-
|
|
247
265
|
/**
|
|
248
266
|
* Coerce `val`.
|
|
249
267
|
*
|
package/node_modules/ms/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Tiny millisecond conversion utility",
|
|
5
|
-
"repository": "
|
|
5
|
+
"repository": "vercel/ms",
|
|
6
6
|
"main": "./index",
|
|
7
7
|
"files": [
|
|
8
8
|
"index.js"
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"eslint": "4.
|
|
31
|
+
"eslint": "4.18.2",
|
|
32
32
|
"expect.js": "0.3.1",
|
|
33
33
|
"husky": "0.14.3",
|
|
34
34
|
"lint-staged": "5.0.0",
|
|
35
|
-
"mocha": "4.0.1"
|
|
35
|
+
"mocha": "4.0.1",
|
|
36
|
+
"prettier": "2.0.5"
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# ms
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://spectrum.chat/zeit)
|
|
3
|
+

|
|
5
4
|
|
|
6
5
|
Use this package to easily convert various time formats to milliseconds.
|
|
7
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wopee-io/wopee.wdio",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "WebdriverIO visual testing plugin by Wopee.io — catch visual regressions with AI-powered autonomous test maintenance",
|
|
5
5
|
"homepage": "https://docs.wopee.io/webdriverio-visual-testing/",
|
|
6
6
|
"scripts": {
|
|
@@ -43,17 +43,23 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@autonomous-testing/sdk": "3.9.0",
|
|
46
|
-
"@wdio/logger": "^8.38.0",
|
|
47
|
-
"@wdio/types": "^8.41.0",
|
|
46
|
+
"@wdio/logger": "^8.38.0 || ^9.0.0",
|
|
47
|
+
"@wdio/types": "^8.41.0 || ^9.0.0",
|
|
48
48
|
"canvas": "^3.2.3",
|
|
49
49
|
"dotenv": "^16.6.1",
|
|
50
50
|
"fs-extra": "^11.4.0",
|
|
51
51
|
"lodash": "^4.18.1",
|
|
52
|
-
"webdriverio": "^8.27.2",
|
|
53
52
|
"zod": "^3.25.76"
|
|
54
53
|
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"webdriverio": "^8.27.2 || ^9.0.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"webdriverio": {
|
|
59
|
+
"optional": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
55
62
|
"devDependencies": {
|
|
56
|
-
"@appium/execute-driver-plugin": "^3.0.23",
|
|
57
63
|
"@commitlint/cli": "^19.2.1",
|
|
58
64
|
"@commitlint/config-angular": "^19.1.0",
|
|
59
65
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -66,14 +72,11 @@
|
|
|
66
72
|
"@types/mocha": "^10.0.6",
|
|
67
73
|
"@types/node": "^20.12.7",
|
|
68
74
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
69
|
-
"@wdio/cli": "^
|
|
70
|
-
"@wdio/globals": "^
|
|
71
|
-
"@wdio/local-runner": "^
|
|
72
|
-
"@wdio/mocha-framework": "^
|
|
73
|
-
"@wdio/spec-reporter": "^
|
|
74
|
-
"appium-chromedriver": "^5.6.31",
|
|
75
|
-
"appium-installer": "^3.0.0",
|
|
76
|
-
"appium-xcuitest-driver": "^7.15.2",
|
|
75
|
+
"@wdio/cli": "^9.31.0",
|
|
76
|
+
"@wdio/globals": "^9.31.0",
|
|
77
|
+
"@wdio/local-runner": "^9.31.0",
|
|
78
|
+
"@wdio/mocha-framework": "^9.31.0",
|
|
79
|
+
"@wdio/spec-reporter": "^9.31.0",
|
|
77
80
|
"copyfiles": "^2.4.1",
|
|
78
81
|
"eslint": "^8.57.0",
|
|
79
82
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -82,7 +85,8 @@
|
|
|
82
85
|
"rimraf": "^5.0.5",
|
|
83
86
|
"semantic-release": "^24.2.0",
|
|
84
87
|
"ts-node": "^10.9.2",
|
|
85
|
-
"typescript": "^5.4.5"
|
|
88
|
+
"typescript": "^5.4.5",
|
|
89
|
+
"webdriverio": "^9.31.3"
|
|
86
90
|
},
|
|
87
91
|
"bundleDependencies": [
|
|
88
92
|
"@autonomous-testing/sdk"
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/MIGRATION_GUIDE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/axios.min.js.map
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/browser/axios.cjs
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/esm/axios.min.js.map
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/dist/node/axios.cjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/README.md
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/adapters.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/fetch.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/http.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/adapters/xhr.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/CancelToken.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/cancel/isCancel.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/Axios.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosError.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/AxiosHeaders.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/README.md
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/buildFullPath.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/mergeConfig.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/methodList.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/settle.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/core/transformData.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/defaults/index.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/env/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/README.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/bind.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/buildURL.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/cookies.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/null.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/readBlob.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/spread.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/throttle.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/toFormData.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/helpers/validator.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/axios → axios}/lib/platform/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/dist/src/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/package.json
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/index.ts
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk → axios}/node_modules/agent-base/src/promisify.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/CHANGELOG.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/README.md
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/index.d.ts
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/browser.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/form_data.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/lib/populate.js
RENAMED
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/form-data → form-data}/package.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/{@autonomous-testing/sdk/node_modules/proxy-from-env → proxy-from-env}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|