@lighthouse/common
Advanced tools
Comparing version 4.22.1-canary.109.1383 to 4.23.0-canary.110.1388
@@ -18,3 +18,3 @@ "use strict"; | ||
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE; | ||
const LIGHTHOUSE_LOGO_URL = 'https://assets-lighthouse-io.s3.amazonaws.com/img/lighthouse-2023.png'; | ||
const LIGHTHOUSE_LOGO_URL = 'https://s3.amazonaws.com/assets-lighthouse-io/img/logo-medium.png'; | ||
exports.LIGHTHOUSE_LOGO_URL = LIGHTHOUSE_LOGO_URL; |
@@ -48,4 +48,6 @@ "use strict"; | ||
const text = (0, _lodash.isArray)(parsed) && parsed.length === 1 && (0, _lodash.isString)(parsed[0]) ? parsed[0] : parsed; | ||
const link = type === 'tag' && name === 'a' ? obj.attribs.href : undefined; | ||
return { ...getStyleAttributes(obj), | ||
[key]: text, | ||
link, | ||
preserveLeadingSpaces: true | ||
@@ -63,2 +65,7 @@ }; | ||
if (name === 'a') { | ||
result.decoration = 'underline'; | ||
result.color = 'blue'; | ||
} | ||
if (!result.bold && !result.decoration && !result.italics) { | ||
@@ -65,0 +72,0 @@ result.style = name; |
@@ -7,3 +7,3 @@ // pdf | ||
export var DEFAULT_PAGE_SIZE = 'A4'; | ||
export var LIGHTHOUSE_LOGO_URL = 'https://assets-lighthouse-io.s3.amazonaws.com/img/lighthouse-2023.png'; | ||
export var LIGHTHOUSE_LOGO_URL = 'https://s3.amazonaws.com/assets-lighthouse-io/img/logo-medium.png'; | ||
//# sourceMappingURL=constants.js.map |
@@ -44,3 +44,4 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
var text = isArray(parsed) && parsed.length === 1 && isString(parsed[0]) ? parsed[0] : parsed; | ||
return _objectSpread(_objectSpread({}, getStyleAttributes(obj)), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, key, text), _defineProperty(_objectSpread2, "preserveLeadingSpaces", true), _objectSpread2)); | ||
var link = type === 'tag' && name === 'a' ? obj.attribs.href : undefined; | ||
return _objectSpread(_objectSpread({}, getStyleAttributes(obj)), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, key, text), _defineProperty(_objectSpread2, "link", link), _defineProperty(_objectSpread2, "preserveLeadingSpaces", true), _objectSpread2)); | ||
} | ||
@@ -55,2 +56,7 @@ export function getStyleAttributes(_ref) { | ||
if (name === 'a') { | ||
result.decoration = 'underline'; | ||
result.color = 'blue'; | ||
} | ||
if (!result.bold && !result.decoration && !result.italics) { | ||
@@ -57,0 +63,0 @@ result.style = name; |
{ | ||
"name": "@lighthouse/common", | ||
"version": "4.22.1-canary.109.1383", | ||
"version": "4.23.0-canary.110.1388", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1230870
11851