happo 6.5.1 → 6.5.2
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-RTDZ3IL3.js +10 -0
- package/dist/cli/{chunk-7LVB6VSD.js → chunk-DSAGPJIH.js} +4 -4
- package/dist/cli/{chunk-7LVB6VSD.js.map → chunk-DSAGPJIH.js.map} +1 -1
- package/dist/cli/{chunk-4DIEFVB6.js → chunk-I357LIPJ.js} +2 -2
- package/dist/cli/{chunk-SCQIFNJG.js → chunk-IOLNNTKP.js} +2 -2
- package/dist/cli/{chunk-ZFINBURL.js → chunk-JEFG3R6O.js} +2 -2
- package/dist/cli/{chunk-Z3ISMK3L.js → chunk-JZDVA76O.js} +3 -3
- package/dist/cli/{chunk-SVXHNTZV.js → chunk-SB3TDZLE.js} +2 -2
- package/dist/cli/createAsyncComparison-3ZFRRUDB.js +10 -0
- package/dist/cli/{createAsyncReport-YYPR6QMH.js → createAsyncReport-4M7HVIS3.js} +4 -4
- package/dist/cli/{getFlakes-2IDWWM6K.js → getFlakes-QCVM7BHM.js} +4 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/main.js +11 -11
- package/dist/cli/main.js.map +2 -2
- package/dist/cli/package-OPMNMDIG.js +7 -0
- package/dist/cli/{prepareSnapRequests-YRX3FLO3.js → prepareSnapRequests-NQGLK5M6.js} +14 -10
- package/dist/cli/{prepareSnapRequests-YRX3FLO3.js.map → prepareSnapRequests-NQGLK5M6.js.map} +2 -2
- package/dist/cli/startJob-GO6BQDB4.js +10 -0
- package/dist/cli/{wrapper-YSLGURLA.js → wrapper-AGHA5SGK.js} +7 -7
- package/dist/cypress/task.js +13 -9
- package/dist/cypress/task.js.map +2 -2
- package/dist/playwright/index.js +13 -9
- package/dist/playwright/index.js.map +2 -2
- package/dist/utils/deterministicArchive.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/cli/cancelJob-RNJNTEO6.js +0 -10
- package/dist/cli/createAsyncComparison-7TQ6WCAL.js +0 -10
- package/dist/cli/package-XNDR47YX.js +0 -7
- package/dist/cli/startJob-6UNQDHQ6.js +0 -10
- /package/dist/cli/{cancelJob-RNJNTEO6.js.map → cancelJob-RTDZ3IL3.js.map} +0 -0
- /package/dist/cli/{chunk-4DIEFVB6.js.map → chunk-I357LIPJ.js.map} +0 -0
- /package/dist/cli/{chunk-SCQIFNJG.js.map → chunk-IOLNNTKP.js.map} +0 -0
- /package/dist/cli/{chunk-ZFINBURL.js.map → chunk-JEFG3R6O.js.map} +0 -0
- /package/dist/cli/{chunk-Z3ISMK3L.js.map → chunk-JZDVA76O.js.map} +0 -0
- /package/dist/cli/{chunk-SVXHNTZV.js.map → chunk-SB3TDZLE.js.map} +0 -0
- /package/dist/cli/{createAsyncComparison-7TQ6WCAL.js.map → createAsyncComparison-3ZFRRUDB.js.map} +0 -0
- /package/dist/cli/{createAsyncReport-YYPR6QMH.js.map → createAsyncReport-4M7HVIS3.js.map} +0 -0
- /package/dist/cli/{getFlakes-2IDWWM6K.js.map → getFlakes-QCVM7BHM.js.map} +0 -0
- /package/dist/cli/{package-XNDR47YX.js.map → package-OPMNMDIG.js.map} +0 -0
- /package/dist/cli/{startJob-6UNQDHQ6.js.map → startJob-GO6BQDB4.js.map} +0 -0
- /package/dist/cli/{wrapper-YSLGURLA.js.map → wrapper-AGHA5SGK.js.map} +0 -0
package/dist/playwright/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import asyncRetry from "async-retry";
|
|
|
19
19
|
// package.json
|
|
20
20
|
var package_default = {
|
|
21
21
|
name: "happo",
|
|
22
|
-
version: "6.5.
|
|
22
|
+
version: "6.5.2",
|
|
23
23
|
description: "Catch unexpected visual and accessibility changes and UI bugs",
|
|
24
24
|
license: "MIT",
|
|
25
25
|
repository: {
|
|
@@ -80,10 +80,10 @@ var package_default = {
|
|
|
80
80
|
all: "node ./scripts/allchecks.ts",
|
|
81
81
|
build: "pnpm build:types && pnpm build:dist",
|
|
82
82
|
"build:custom": "esbuild src/custom/__happo__/index.ts --bundle --format=iife --global-name=happoCustom --outfile=tmp/happo-custom/bundle.js --platform=browser --target=esnext",
|
|
83
|
-
"build:dist": "./scripts/build.ts",
|
|
83
|
+
"build:dist": "node ./scripts/build.ts",
|
|
84
84
|
"build:types": "pnpm tsc --pretty",
|
|
85
85
|
"build:watch": "tsc --build --watch",
|
|
86
|
-
clean: "
|
|
86
|
+
clean: "node ./scripts/clean.ts",
|
|
87
87
|
lint: "eslint .",
|
|
88
88
|
prepublishOnly: "pnpm clean && pnpm build",
|
|
89
89
|
"storybook:dev": "storybook dev --config-dir src/storybook/__tests__/storybook-app -p ${PORT:-6007}",
|
|
@@ -1003,6 +1003,9 @@ function validateArchive(totalBytes, entries) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
// src/utils/deterministicArchive.ts
|
|
1006
|
+
function normalizeEntryName(name) {
|
|
1007
|
+
return name.replaceAll("\\", "/");
|
|
1008
|
+
}
|
|
1006
1009
|
var FILE_CREATION_DATE = new Date(2019, 1, 8, 13, 31, 55);
|
|
1007
1010
|
async function resolveFilesRecursiveForDir(dirOrFile) {
|
|
1008
1011
|
const resolvedDirOrFile = path2.resolve(dirOrFile);
|
|
@@ -1016,7 +1019,7 @@ async function resolveFilesRecursiveForDir(dirOrFile) {
|
|
|
1016
1019
|
if (fileType.isFile()) {
|
|
1017
1020
|
const fullPath = `${fileType.parentPath}/${fileType.name}`;
|
|
1018
1021
|
fileEntries.push({
|
|
1019
|
-
name: path2.relative(resolvedDirOrFile, fullPath),
|
|
1022
|
+
name: normalizeEntryName(path2.relative(resolvedDirOrFile, fullPath)),
|
|
1020
1023
|
stream: fs3.createReadStream(fullPath)
|
|
1021
1024
|
});
|
|
1022
1025
|
}
|
|
@@ -1025,7 +1028,7 @@ async function resolveFilesRecursiveForDir(dirOrFile) {
|
|
|
1025
1028
|
}
|
|
1026
1029
|
return [
|
|
1027
1030
|
{
|
|
1028
|
-
name: path2.relative(process.cwd(), resolvedDirOrFile),
|
|
1031
|
+
name: normalizeEntryName(path2.relative(process.cwd(), resolvedDirOrFile)),
|
|
1029
1032
|
stream: fs3.createReadStream(resolvedDirOrFile)
|
|
1030
1033
|
}
|
|
1031
1034
|
];
|
|
@@ -1077,11 +1080,12 @@ async function deterministicArchive(dirsAndFiles, contentToArchive = []) {
|
|
|
1077
1080
|
}
|
|
1078
1081
|
}
|
|
1079
1082
|
for (const file of contentToArchiveSorted) {
|
|
1080
|
-
|
|
1083
|
+
const normalizedName = normalizeEntryName(file.name);
|
|
1084
|
+
if (!seenFiles.has(normalizedName)) {
|
|
1081
1085
|
const data = await contentToUint8Array(file.content);
|
|
1082
|
-
entryDataList.push({ name:
|
|
1083
|
-
entries.push({ name:
|
|
1084
|
-
seenFiles.add(
|
|
1086
|
+
entryDataList.push({ name: normalizedName, data });
|
|
1087
|
+
entries.push({ name: normalizedName, size: data.length });
|
|
1088
|
+
seenFiles.add(normalizedName);
|
|
1085
1089
|
}
|
|
1086
1090
|
}
|
|
1087
1091
|
entryDataList.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|