@bigbinary/neeto-playwright-commons 1.13.8 → 1.13.9
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/index.cjs.js +18 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +23 -1
- package/index.js +18 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -157855,6 +157855,23 @@ const isGithubIssueOpen = async (issueLinks) => {
|
|
|
157855
157855
|
return issueStatuses.some(issueStatus => { var _a; return ((_a = issueStatus === null || issueStatus === void 0 ? void 0 : issueStatus.data) === null || _a === void 0 ? void 0 : _a.state) === "open"; });
|
|
157856
157856
|
};
|
|
157857
157857
|
|
|
157858
|
+
const hexToRGBA = (hex) => {
|
|
157859
|
+
let r = 0, g = 0, b = 0, a = 1;
|
|
157860
|
+
if (hex.length === 5) {
|
|
157861
|
+
r = parseInt(`${hex[1]}${hex[1]}`, 16);
|
|
157862
|
+
g = parseInt(`${hex[2]}${hex[2]}`, 16);
|
|
157863
|
+
b = parseInt(`${hex[3]}${hex[3]}`, 16);
|
|
157864
|
+
a = parseInt(`${hex[4]}${hex[4]}`, 16) / 255;
|
|
157865
|
+
}
|
|
157866
|
+
else if (hex.length === 9) {
|
|
157867
|
+
r = parseInt(`${hex[1]}${hex[2]}`, 16);
|
|
157868
|
+
g = parseInt(`${hex[3]}${hex[4]}`, 16);
|
|
157869
|
+
b = parseInt(`${hex[5]}${hex[6]}`, 16);
|
|
157870
|
+
a = parseInt(`${hex[7]}${hex[8]}`, 16) / 255;
|
|
157871
|
+
}
|
|
157872
|
+
return `rgba(${r}, ${g}, ${b}, ${a.toFixed(2)})`;
|
|
157873
|
+
};
|
|
157874
|
+
|
|
157858
157875
|
var main$2 = {exports: {}};
|
|
157859
157876
|
|
|
157860
157877
|
var name = "dotenv";
|
|
@@ -158578,6 +158595,7 @@ exports.getImagePathAndName = getImagePathAndName;
|
|
|
158578
158595
|
exports.getListCount = getListCount;
|
|
158579
158596
|
exports.headerUtils = headerUtils;
|
|
158580
158597
|
exports.hexToRGB = hexToRGB;
|
|
158598
|
+
exports.hexToRGBA = hexToRGBA;
|
|
158581
158599
|
exports.hyphenize = hyphenize;
|
|
158582
158600
|
exports.i18nFixture = i18nFixture;
|
|
158583
158601
|
exports.initializeCredentials = initializeCredentials;
|