Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lighthouse/common

Package Overview
Dependencies
Maintainers
15
Versions
461
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lighthouse/common - npm Package Compare versions

Comparing version 4.22.1-canary.109.1383 to 4.23.0-canary.110.1388

2

dist/constants.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc