happo 6.3.5 → 6.3.6
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/dist/cli/cancelJob-LQPQPD5I.js +10 -0
- package/dist/cli/{chunk-JQRP37NK.js → chunk-2F4ONKOX.js} +3 -3
- package/dist/cli/{chunk-WYDYZN3N.js → chunk-4FHG27V2.js} +2 -2
- package/dist/cli/{chunk-KBSCVKHT.js → chunk-B4NWDBAN.js} +2 -2
- package/dist/cli/{chunk-EIXHFGQL.js → chunk-GBORF5SP.js} +2 -2
- package/dist/cli/{chunk-H6OKM3G2.js → chunk-QIVIGY3K.js} +2 -2
- package/dist/cli/{chunk-D6LAGJC3.js → chunk-VOPCZYUD.js} +3 -3
- package/dist/cli/{chunk-D6LAGJC3.js.map → chunk-VOPCZYUD.js.map} +1 -1
- package/dist/cli/createAsyncComparison-5ZQY53AW.js +10 -0
- package/dist/cli/{createAsyncReport-PWLSEU4U.js → createAsyncReport-MZGC4WYR.js} +4 -4
- package/dist/cli/{getFlakes-ISMCYQYN.js → getFlakes-OZICV3BM.js} +4 -4
- package/dist/cli/main.js +11 -11
- package/dist/cli/package-FRXI4E4G.js +7 -0
- package/dist/cli/{prepareSnapRequests-LKEGFH3U.js → prepareSnapRequests-6BOXFGHI.js} +4 -4
- package/dist/cli/startJob-GASMCYIM.js +10 -0
- package/dist/cli/{wrapper-AA77AANX.js → wrapper-UNP6YKH6.js} +7 -7
- package/dist/cypress/task.d.ts.map +1 -1
- package/dist/cypress/task.js +16 -15
- package/dist/cypress/task.js.map +2 -2
- package/dist/e2e/controller.d.ts +1 -1
- package/dist/e2e/controller.d.ts.map +1 -1
- package/dist/playwright/index.d.ts.map +1 -1
- package/dist/playwright/index.js +12 -14
- package/dist/playwright/index.js.map +2 -2
- package/package.json +2 -2
- package/dist/cli/cancelJob-QSJ4H5RQ.js +0 -10
- package/dist/cli/createAsyncComparison-2X5JW753.js +0 -10
- package/dist/cli/package-QA5NMKSG.js +0 -7
- package/dist/cli/startJob-3G7ZMTJL.js +0 -10
- /package/dist/cli/{cancelJob-QSJ4H5RQ.js.map → cancelJob-LQPQPD5I.js.map} +0 -0
- /package/dist/cli/{chunk-JQRP37NK.js.map → chunk-2F4ONKOX.js.map} +0 -0
- /package/dist/cli/{chunk-WYDYZN3N.js.map → chunk-4FHG27V2.js.map} +0 -0
- /package/dist/cli/{chunk-KBSCVKHT.js.map → chunk-B4NWDBAN.js.map} +0 -0
- /package/dist/cli/{chunk-EIXHFGQL.js.map → chunk-GBORF5SP.js.map} +0 -0
- /package/dist/cli/{chunk-H6OKM3G2.js.map → chunk-QIVIGY3K.js.map} +0 -0
- /package/dist/cli/{createAsyncComparison-2X5JW753.js.map → createAsyncComparison-5ZQY53AW.js.map} +0 -0
- /package/dist/cli/{createAsyncReport-PWLSEU4U.js.map → createAsyncReport-MZGC4WYR.js.map} +0 -0
- /package/dist/cli/{getFlakes-ISMCYQYN.js.map → getFlakes-OZICV3BM.js.map} +0 -0
- /package/dist/cli/{package-QA5NMKSG.js.map → package-FRXI4E4G.js.map} +0 -0
- /package/dist/cli/{prepareSnapRequests-LKEGFH3U.js.map → prepareSnapRequests-6BOXFGHI.js.map} +0 -0
- /package/dist/cli/{startJob-3G7ZMTJL.js.map → startJob-GASMCYIM.js.map} +0 -0
- /package/dist/cli/{wrapper-AA77AANX.js.map → wrapper-UNP6YKH6.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
4
|
import {
|
|
5
5
|
ErrorWithStatusCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4FHG27V2.js";
|
|
7
7
|
|
|
8
8
|
// src/network/cancelJob.ts
|
|
9
9
|
async function cancelJob(status, message, config, { beforeSha, afterSha, link }, logger) {
|
|
@@ -43,4 +43,4 @@ async function cancelJob(status, message, config, { beforeSha, afterSha, link },
|
|
|
43
43
|
export {
|
|
44
44
|
cancelJob
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-2F4ONKOX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VOPCZYUD.js";
|
|
4
4
|
|
|
5
5
|
// src/network/fetchWithRetry.ts
|
|
6
6
|
import asyncRetry from "async-retry";
|
|
@@ -95,4 +95,4 @@ export {
|
|
|
95
95
|
ErrorWithStatusCode,
|
|
96
96
|
fetchWithRetry
|
|
97
97
|
};
|
|
98
|
-
//# sourceMappingURL=chunk-
|
|
98
|
+
//# sourceMappingURL=chunk-4FHG27V2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchWithRetry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4FHG27V2.js";
|
|
4
4
|
|
|
5
5
|
// src/network/makeHappoAPIRequest.ts
|
|
6
6
|
import { SignJWT } from "jose";
|
|
@@ -51,4 +51,4 @@ async function makeHappoAPIRequest({ url, path, method = "GET", formData, body }
|
|
|
51
51
|
export {
|
|
52
52
|
makeHappoAPIRequest
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-B4NWDBAN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
4
|
|
|
5
5
|
// src/network/createAsyncComparison.ts
|
|
6
6
|
function assertResultIsCreateAsyncComparisonResult(result) {
|
|
@@ -60,4 +60,4 @@ async function createAsyncComparison(config, {
|
|
|
60
60
|
export {
|
|
61
61
|
createAsyncComparison
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-GBORF5SP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
4
|
|
|
5
5
|
// src/network/startJob.ts
|
|
6
6
|
function assertResultIsStartJobResult(result) {
|
|
@@ -36,4 +36,4 @@ async function startJob(config, { beforeSha, afterSha, link, message }, logger)
|
|
|
36
36
|
export {
|
|
37
37
|
startJob
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-QIVIGY3K.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "happo",
|
|
4
|
-
version: "6.3.
|
|
4
|
+
version: "6.3.6",
|
|
5
5
|
description: "Catch unexpected visual and accessibility changes and UI bugs",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
repository: {
|
|
@@ -120,7 +120,7 @@ var package_default = {
|
|
|
120
120
|
esbuild: "^0.27.0",
|
|
121
121
|
eslint: "^10.0.2",
|
|
122
122
|
"eslint-config-prettier": "^10.1.8",
|
|
123
|
-
"eslint-plugin-compat": "^
|
|
123
|
+
"eslint-plugin-compat": "^7.0.1",
|
|
124
124
|
"eslint-plugin-depend": "^1.4.0",
|
|
125
125
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
126
126
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
@@ -183,4 +183,4 @@ var package_default = {
|
|
|
183
183
|
export {
|
|
184
184
|
package_default
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-VOPCZYUD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../package.json"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"happo\",\n \"version\": \"6.3.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"happo\",\n \"version\": \"6.3.6\",\n \"description\": \"Catch unexpected visual and accessibility changes and UI bugs\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/happo/happo.git\"\n },\n \"bugs\": \"https://github.com/happo/happo/issues\",\n \"homepage\": \"https://happo.io\",\n \"bin\": {\n \"happo\": \"dist/cli/main.js\"\n },\n \"type\": \"module\",\n \"main\": \"./dist/config/index.js\",\n \"types\": \"./dist/config/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/config/index.d.ts\",\n \"default\": \"./dist/config/index.js\"\n },\n \"./cypress\": {\n \"types\": \"./dist/cypress/index.d.ts\",\n \"default\": \"./dist/cypress/index.js\"\n },\n \"./cypress/task\": {\n \"types\": \"./dist/cypress/task.d.ts\",\n \"default\": \"./dist/cypress/task.js\"\n },\n \"./playwright\": {\n \"types\": \"./dist/playwright/index.d.ts\",\n \"default\": \"./dist/playwright/index.js\"\n },\n \"./custom\": {\n \"types\": \"./dist/custom/index.d.ts\",\n \"default\": \"./dist/custom/index.js\"\n },\n \"./storybook/addon\": {\n \"types\": \"./dist/storybook/browser/addon.d.ts\",\n \"default\": \"./dist/storybook/browser/addon.js\"\n },\n \"./storybook/decorator\": {\n \"types\": \"./dist/storybook/browser/decorator.d.ts\",\n \"default\": \"./dist/storybook/browser/decorator.js\"\n },\n \"./storybook/preset\": {\n \"types\": \"./dist/storybook/preset.d.ts\",\n \"default\": \"./dist/storybook/preset.js\"\n },\n \"./storybook/register\": {\n \"types\": \"./dist/storybook/browser/register.d.ts\",\n \"default\": \"./dist/storybook/browser/register.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"preset.js\"\n ],\n \"scripts\": {\n \"all\": \"node ./scripts/allchecks.ts\",\n \"build\": \"pnpm build:types && pnpm build:dist\",\n \"build:custom\": \"esbuild src/custom/__happo__/index.ts --bundle --format=iife --global-name=happoCustom --outfile=tmp/happo-custom/bundle.js --platform=browser --target=esnext\",\n \"build:dist\": \"./scripts/build.ts\",\n \"build:types\": \"pnpm tsc --pretty\",\n \"build:watch\": \"tsc --build --watch\",\n \"clean\": \"rm -rf dist tmp/tsc tmp/happo-custom\",\n \"lint\": \"eslint .\",\n \"prepublishOnly\": \"pnpm clean && pnpm build\",\n \"storybook:dev\": \"storybook dev --config-dir src/storybook/__tests__/storybook-app -p ${PORT:-6007}\",\n \"test\": \"node --env-file-if-exists=.env.local ./scripts/test.ts\",\n \"test:custom\": \"pnpm build:dist && pnpm build:custom && node --env-file-if-exists=.env.local dist/cli/main.js -c ./happoconfigs/happo.custom.config.ts\",\n \"test:cypress\": \"pnpm build:dist && node --env-file-if-exists=.env.local dist/cli/main.js -c ./happoconfigs/happo.cypress.config.ts e2e -- cypress run -C src/cypress/__cypress__/cypress.config.ts\",\n \"test:cypress:open\": \"cypress open -C src/cypress/__cypress__/cypress.config.ts\",\n \"test:playwright\": \"pnpm build:dist && node --env-file-if-exists=.env.local dist/cli/main.js -c ./happoconfigs/happo.playwright.config.ts e2e -- playwright test\",\n \"test:storybook\": \"pnpm build:dist && node --env-file-if-exists=.env.local dist/cli/main.js -c ./happoconfigs/happo.storybook.config.ts\",\n \"test:pages\": \"pnpm build:dist && node --env-file-if-exists=.env.local dist/cli/main.js -c ./happoconfigs/happo.pages.config.ts\",\n \"tsc\": \"tsc --build tsconfig.json\"\n },\n \"browserslist\": {\n \"node\": [\n \"node 22\"\n ],\n \"browser\": [\n \"last 2 Chrome major versions\",\n \"last 2 Firefox major versions\",\n \"last 2 Safari major versions\",\n \"last 2 Edge major versions\"\n ],\n \"isomorphic\": [\n \"node 22\",\n \"last 2 Chrome major versions\",\n \"last 2 Firefox major versions\",\n \"last 2 Safari major versions\",\n \"last 2 Edge major versions\"\n ]\n },\n \"prettier\": {\n \"printWidth\": 85,\n \"singleQuote\": true,\n \"trailingComma\": \"all\",\n \"arrowParens\": \"always\"\n },\n \"devDependencies\": {\n \"@eslint/js\": \"^10.0.1\",\n \"@playwright/test\": \"^1.55.1\",\n \"@reporters/github\": \"^1.11.0\",\n \"@storybook/builder-vite\": \"^10.0.1\",\n \"@storybook/react-vite\": \"^10.0.1\",\n \"@types/async-retry\": \"^1.4.9\",\n \"@types/base64-stream\": \"^1.0.5\",\n \"@types/jsdom\": \"^28.0.0\",\n \"@types/mime-types\": \"^3.0.1\",\n \"@types/multiparty\": \"^4.2.1\",\n \"@types/node\": \"^24.9.1\",\n \"@types/react\": \"^19.2.0\",\n \"@types/react-dom\": \"^19.2.0\",\n \"cypress\": \"^15.5.0\",\n \"esbuild\": \"^0.27.0\",\n \"eslint\": \"^10.0.2\",\n \"eslint-config-prettier\": \"^10.1.8\",\n \"eslint-plugin-compat\": \"^7.0.1\",\n \"eslint-plugin-depend\": \"^1.4.0\",\n \"eslint-plugin-simple-import-sort\": \"^12.1.1\",\n \"eslint-plugin-unicorn\": \"^63.0.0\",\n \"jiti\": \"^2.6.1\",\n \"jsdom\": \"^28.0.0\",\n \"multiparty\": \"^4.2.3\",\n \"prettier\": \"^3.6.2\",\n \"react\": \"^19.2.0\",\n \"react-dom\": \"^19.2.0\",\n \"react-error-boundary\": \"^6.0.0\",\n \"storybook\": \"^10.0.1\",\n \"typescript\": \"^5.9.2\",\n \"typescript-eslint\": \"^8.56.1\"\n },\n \"dependencies\": {\n \"async-retry\": \"^1.3.3\",\n \"base64-stream\": \"^1.0.0\",\n \"empathic\": \"^2.0.0\",\n \"fflate\": \"^0.8.2\",\n \"jose\": \"^6.1.0\",\n \"limit-concur\": \"^4.0.0\",\n \"mime-types\": \"^3.0.1\",\n \"srcset\": \"^5.0.2\"\n },\n \"storybook\": {\n \"displayName\": \"Happo\",\n \"icon\": \"https://happo.io/static/happo-hippo.png\",\n \"supportedFrameworks\": [\n \"angular\",\n \"ember\",\n \"html\",\n \"preact\",\n \"react\",\n \"react-native\",\n \"svelte\",\n \"vue\",\n \"web-components\"\n ],\n \"unsupportedFrameworks\": []\n },\n \"keywords\": [\n \"storybook-addon\",\n \"accessibility\",\n \"cypress\",\n \"playwright\",\n \"regression\",\n \"storybook\",\n \"test\",\n \"testing\",\n \"ui\",\n \"visual-regression\",\n \"visual\",\n \"vrt\"\n ],\n \"engines\": {\n \"node\": \"^22.18.0 || ^23.6.0 || >=24.0.0\"\n }\n}\n"],
|
|
5
5
|
"mappings": ";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,SAAW;AAAA,EACX,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,MAAQ;AAAA,EACR,UAAY;AAAA,EACZ,KAAO;AAAA,IACL,OAAS;AAAA,EACX;AAAA,EACA,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,OAAS;AAAA,EACT,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,aAAa;AAAA,MACX,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,kBAAkB;AAAA,MAChB,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,gBAAgB;AAAA,MACd,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,YAAY;AAAA,MACV,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,qBAAqB;AAAA,MACnB,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,yBAAyB;AAAA,MACvB,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,sBAAsB;AAAA,MACpB,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,IACA,wBAAwB;AAAA,MACtB,OAAS;AAAA,MACT,SAAW;AAAA,IACb;AAAA,EACF;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,KAAO;AAAA,IACP,OAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,eAAe;AAAA,IACf,eAAe;AAAA,IACf,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,gBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,MAAQ;AAAA,IACR,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,qBAAqB;AAAA,IACrB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,cAAc;AAAA,IACd,KAAO;AAAA,EACT;AAAA,EACA,cAAgB;AAAA,IACd,MAAQ;AAAA,MACN;AAAA,IACF;AAAA,IACA,SAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,YAAc;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAY;AAAA,IACV,YAAc;AAAA,IACd,aAAe;AAAA,IACf,eAAiB;AAAA,IACjB,aAAe;AAAA,EACjB;AAAA,EACA,iBAAmB;AAAA,IACjB,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,qBAAqB;AAAA,IACrB,2BAA2B;AAAA,IAC3B,yBAAyB;AAAA,IACzB,sBAAsB;AAAA,IACtB,wBAAwB;AAAA,IACxB,gBAAgB;AAAA,IAChB,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,IACrB,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,oBAAoB;AAAA,IACpB,SAAW;AAAA,IACX,SAAW;AAAA,IACX,QAAU;AAAA,IACV,0BAA0B;AAAA,IAC1B,wBAAwB;AAAA,IACxB,wBAAwB;AAAA,IACxB,oCAAoC;AAAA,IACpC,yBAAyB;AAAA,IACzB,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,YAAc;AAAA,IACd,UAAY;AAAA,IACZ,OAAS;AAAA,IACT,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,WAAa;AAAA,IACb,YAAc;AAAA,IACd,qBAAqB;AAAA,EACvB;AAAA,EACA,cAAgB;AAAA,IACd,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,UAAY;AAAA,IACZ,QAAU;AAAA,IACV,MAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,QAAU;AAAA,EACZ;AAAA,EACA,WAAa;AAAA,IACX,aAAe;AAAA,IACf,MAAQ;AAAA,IACR,qBAAuB;AAAA,MACrB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,uBAAyB,CAAC;AAAA,EAC5B;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAsyncComparison
|
|
3
|
+
} from "./chunk-GBORF5SP.js";
|
|
4
|
+
import "./chunk-B4NWDBAN.js";
|
|
5
|
+
import "./chunk-4FHG27V2.js";
|
|
6
|
+
import "./chunk-VOPCZYUD.js";
|
|
7
|
+
export {
|
|
8
|
+
createAsyncComparison as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=createAsyncComparison-5ZQY53AW.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
|
+
import "./chunk-4FHG27V2.js";
|
|
5
|
+
import "./chunk-VOPCZYUD.js";
|
|
6
6
|
|
|
7
7
|
// src/network/createAsyncReport.ts
|
|
8
8
|
function assertResultIsCreateAsyncReportResult(result) {
|
|
@@ -38,4 +38,4 @@ async function createAsyncReport(snapRequestIds, config, { afterSha, link, messa
|
|
|
38
38
|
export {
|
|
39
39
|
createAsyncReport as default
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=createAsyncReport-
|
|
41
|
+
//# sourceMappingURL=createAsyncReport-MZGC4WYR.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
|
+
import "./chunk-4FHG27V2.js";
|
|
5
|
+
import "./chunk-VOPCZYUD.js";
|
|
6
6
|
|
|
7
7
|
// src/network/getFlakes.ts
|
|
8
8
|
function formatFlakeOutput(flakes) {
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
getFlakes as default,
|
|
71
71
|
formatFlakeOutput
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=getFlakes-
|
|
73
|
+
//# sourceMappingURL=getFlakes-OZICV3BM.js.map
|
package/dist/cli/main.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-JTRP4JVC.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchWithRetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4FHG27V2.js";
|
|
8
8
|
import {
|
|
9
9
|
package_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VOPCZYUD.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/index.ts
|
|
13
13
|
import path3 from "node:path";
|
|
@@ -1108,7 +1108,7 @@ function createReporter(opts = {}) {
|
|
|
1108
1108
|
|
|
1109
1109
|
// src/cli/index.ts
|
|
1110
1110
|
async function getVersion() {
|
|
1111
|
-
const packageJson = await import("./package-
|
|
1111
|
+
const packageJson = await import("./package-FRXI4E4G.js");
|
|
1112
1112
|
return packageJson.default.version;
|
|
1113
1113
|
}
|
|
1114
1114
|
function parseDashdashCommandParts(rawArgs) {
|
|
@@ -1379,10 +1379,10 @@ async function main(rawArgs = process.argv, logger = console) {
|
|
|
1379
1379
|
async function handleDefaultCommand(config, environment, logger) {
|
|
1380
1380
|
logger.log("Running happo tests...");
|
|
1381
1381
|
const [startJob, createAsyncComparison, createAsyncReport, prepareSnapRequests] = await Promise.all([
|
|
1382
|
-
(await import("./startJob-
|
|
1383
|
-
(await import("./createAsyncComparison-
|
|
1384
|
-
(await import("./createAsyncReport-
|
|
1385
|
-
(await import("./prepareSnapRequests-
|
|
1382
|
+
(await import("./startJob-GASMCYIM.js")).default,
|
|
1383
|
+
(await import("./createAsyncComparison-5ZQY53AW.js")).default,
|
|
1384
|
+
(await import("./createAsyncReport-MZGC4WYR.js")).default,
|
|
1385
|
+
(await import("./prepareSnapRequests-6BOXFGHI.js")).default
|
|
1386
1386
|
]);
|
|
1387
1387
|
await startJob(config, environment, logger);
|
|
1388
1388
|
try {
|
|
@@ -1415,7 +1415,7 @@ async function handleDefaultCommand(config, environment, logger) {
|
|
|
1415
1415
|
} catch (e) {
|
|
1416
1416
|
const message = e instanceof Error ? e.message : String(e);
|
|
1417
1417
|
logger.error(`${config.integration.type} run failed: ${message}`, e);
|
|
1418
|
-
const cancelJob = (await import("./cancelJob-
|
|
1418
|
+
const cancelJob = (await import("./cancelJob-LQPQPD5I.js")).default;
|
|
1419
1419
|
await cancelJob("failure", message, config, environment, logger);
|
|
1420
1420
|
process.exitCode = 1;
|
|
1421
1421
|
return;
|
|
@@ -1426,7 +1426,7 @@ async function handleFinalizeCommand(config, environment, logger) {
|
|
|
1426
1426
|
logger.log("Config:", config);
|
|
1427
1427
|
logger.log("Environment:", environment);
|
|
1428
1428
|
try {
|
|
1429
|
-
const finalizeAll = (await import("./wrapper-
|
|
1429
|
+
const finalizeAll = (await import("./wrapper-UNP6YKH6.js")).finalizeAll;
|
|
1430
1430
|
await finalizeAll({ happoConfig: config, environment, logger });
|
|
1431
1431
|
} catch (e) {
|
|
1432
1432
|
logger.error(e instanceof Error ? e.message : String(e), e);
|
|
@@ -1454,7 +1454,7 @@ async function handleFlakeCommand(config, {
|
|
|
1454
1454
|
process.exitCode = 1;
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
|
-
const { default: getFlakes, formatFlakeOutput } = await import("./getFlakes-
|
|
1457
|
+
const { default: getFlakes, formatFlakeOutput } = await import("./getFlakes-OZICV3BM.js");
|
|
1458
1458
|
const project = allProjects ? void 0 : projectOverride ?? config.project;
|
|
1459
1459
|
const flakes = await getFlakes(
|
|
1460
1460
|
{
|
|
@@ -1496,7 +1496,7 @@ async function handleE2ECommand(config, environment, dashdashCommandParts, confi
|
|
|
1496
1496
|
logger.log("Config:", config);
|
|
1497
1497
|
logger.log("Environment:", environment);
|
|
1498
1498
|
logger.log("Dashdash command parts:", dashdashCommandParts);
|
|
1499
|
-
const runWithWrapper = (await import("./wrapper-
|
|
1499
|
+
const runWithWrapper = (await import("./wrapper-UNP6YKH6.js")).default;
|
|
1500
1500
|
const exitCode = await runWithWrapper(
|
|
1501
1501
|
dashdashCommandParts,
|
|
1502
1502
|
config,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeHappoAPIRequest
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B4NWDBAN.js";
|
|
4
|
+
import "./chunk-4FHG27V2.js";
|
|
5
|
+
import "./chunk-VOPCZYUD.js";
|
|
6
6
|
|
|
7
7
|
// src/network/prepareSnapRequests.ts
|
|
8
8
|
import fs5 from "node:fs";
|
|
@@ -737,4 +737,4 @@ async function prepareSnapRequests(config) {
|
|
|
737
737
|
export {
|
|
738
738
|
prepareSnapRequests as default
|
|
739
739
|
};
|
|
740
|
-
//# sourceMappingURL=prepareSnapRequests-
|
|
740
|
+
//# sourceMappingURL=prepareSnapRequests-6BOXFGHI.js.map
|
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./chunk-JTRP4JVC.js";
|
|
4
4
|
import {
|
|
5
5
|
startJob
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QIVIGY3K.js";
|
|
7
7
|
import {
|
|
8
8
|
createAsyncComparison
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GBORF5SP.js";
|
|
10
10
|
import {
|
|
11
11
|
postGitHubComment
|
|
12
12
|
} from "./chunk-X4TE2VNY.js";
|
|
13
13
|
import {
|
|
14
14
|
cancelJob
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2F4ONKOX.js";
|
|
16
16
|
import {
|
|
17
17
|
makeHappoAPIRequest
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-B4NWDBAN.js";
|
|
19
|
+
import "./chunk-4FHG27V2.js";
|
|
20
|
+
import "./chunk-VOPCZYUD.js";
|
|
21
21
|
|
|
22
22
|
// src/e2e/wrapper.ts
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
runWithWrapper as default,
|
|
220
220
|
finalizeAll
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=wrapper-
|
|
222
|
+
//# sourceMappingURL=wrapper-UNP6YKH6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/cypress/task.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/cypress/task.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,KAAK,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAyCnF,UAAU,SAAS;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IACzC,eAAe,CACb,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,OAAO,EAAE,kBAAkB,CAAC,SAAS,GACpC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,qBAAqB,CAAC,QAAQ,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,wBAAwB,CAAC,MAAM,EAAE;QAC/B,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,IAAI,EAAE,SAqGX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/dist/cypress/task.js
CHANGED
|
@@ -18,7 +18,7 @@ import asyncRetry from "async-retry";
|
|
|
18
18
|
// package.json
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "happo",
|
|
21
|
-
version: "6.3.
|
|
21
|
+
version: "6.3.6",
|
|
22
22
|
description: "Catch unexpected visual and accessibility changes and UI bugs",
|
|
23
23
|
license: "MIT",
|
|
24
24
|
repository: {
|
|
@@ -137,7 +137,7 @@ var package_default = {
|
|
|
137
137
|
esbuild: "^0.27.0",
|
|
138
138
|
eslint: "^10.0.2",
|
|
139
139
|
"eslint-config-prettier": "^10.1.8",
|
|
140
|
-
"eslint-plugin-compat": "^
|
|
140
|
+
"eslint-plugin-compat": "^7.0.1",
|
|
141
141
|
"eslint-plugin-depend": "^1.4.0",
|
|
142
142
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
143
143
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
@@ -1307,23 +1307,14 @@ var Controller = class {
|
|
|
1307
1307
|
this.happoDebug = true;
|
|
1308
1308
|
}
|
|
1309
1309
|
if (!HAPPO_E2E_PORT) {
|
|
1310
|
-
|
|
1311
|
-
`
|
|
1312
|
-
[HAPPO] Happo is disabled. Enable it by using the \`happo\` command.
|
|
1313
|
-
|
|
1314
|
-
Documentation:
|
|
1315
|
-
Playwright: https://docs.happo.io/docs/playwright#usage
|
|
1316
|
-
Cypress (run): https://docs.happo.io/docs/cypress#usage-with-cypress-run
|
|
1317
|
-
Cypress (open): https://docs.happo.io/docs/cypress#usage-with-cypress-open
|
|
1318
|
-
`.trim()
|
|
1319
|
-
);
|
|
1320
|
-
return;
|
|
1310
|
+
return false;
|
|
1321
1311
|
}
|
|
1322
1312
|
if (this.happoDebug) {
|
|
1323
1313
|
console.log("[HAPPO] Running Controller.init");
|
|
1324
1314
|
}
|
|
1325
1315
|
const configFilePath = findConfigFile();
|
|
1326
1316
|
this.happoConfig = await loadConfigFile(configFilePath);
|
|
1317
|
+
return true;
|
|
1327
1318
|
}
|
|
1328
1319
|
isActive() {
|
|
1329
1320
|
const result = !!this.happoConfig;
|
|
@@ -1657,6 +1648,7 @@ var controller_default = Controller;
|
|
|
1657
1648
|
|
|
1658
1649
|
// src/cypress/task.ts
|
|
1659
1650
|
var controller = new controller_default();
|
|
1651
|
+
var disabledLogged = false;
|
|
1660
1652
|
var { HAPPO_DEBUG } = process.env;
|
|
1661
1653
|
function getCleanupTimeframe({
|
|
1662
1654
|
attempt,
|
|
@@ -1740,8 +1732,17 @@ var task = {
|
|
|
1740
1732
|
return null;
|
|
1741
1733
|
},
|
|
1742
1734
|
async handleBeforeSpec() {
|
|
1743
|
-
await controller.init();
|
|
1744
|
-
if (
|
|
1735
|
+
const isRunning = await controller.init();
|
|
1736
|
+
if (!isRunning) {
|
|
1737
|
+
if (!disabledLogged) {
|
|
1738
|
+
console.log(
|
|
1739
|
+
"[HAPPO] Happo is disabled. See https://docs.happo.io/docs/cypress for how to enable it."
|
|
1740
|
+
);
|
|
1741
|
+
disabledLogged = true;
|
|
1742
|
+
}
|
|
1743
|
+
return;
|
|
1744
|
+
}
|
|
1745
|
+
if (!task.isRegisteredCorrectly) {
|
|
1745
1746
|
throw new Error(`Happo hasn't been registered correctly. Make sure you call \`happoTask.register\` when you register the plugin:
|
|
1746
1747
|
|
|
1747
1748
|
const happoTask = require('happo/cypress/task');
|