@chromatic-com/playwright 0.14.9 → 0.14.10
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/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3679,6 +3679,10 @@ var _ArchiveFile = class _ArchiveFile {
|
|
|
3679
3679
|
if (!queryString)
|
|
3680
3680
|
return pathname;
|
|
3681
3681
|
const safeQueryString = this.hash(queryString);
|
|
3682
|
+
const extension = path2__default.default.extname(pathname);
|
|
3683
|
+
if (extension) {
|
|
3684
|
+
return `${pathname.substring(0, pathname.length - extension.length)}-${safeQueryString}${extension}`;
|
|
3685
|
+
}
|
|
3682
3686
|
return `${pathname}-${safeQueryString}`;
|
|
3683
3687
|
}
|
|
3684
3688
|
truncateFileName(pathname) {
|
package/dist/index.mjs
CHANGED
|
@@ -3673,6 +3673,10 @@ var _ArchiveFile = class _ArchiveFile {
|
|
|
3673
3673
|
if (!queryString)
|
|
3674
3674
|
return pathname;
|
|
3675
3675
|
const safeQueryString = this.hash(queryString);
|
|
3676
|
+
const extension = path2.extname(pathname);
|
|
3677
|
+
if (extension) {
|
|
3678
|
+
return `${pathname.substring(0, pathname.length - extension.length)}-${safeQueryString}${extension}`;
|
|
3679
|
+
}
|
|
3676
3680
|
return `${pathname}-${safeQueryString}`;
|
|
3677
3681
|
}
|
|
3678
3682
|
truncateFileName(pathname) {
|