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

@react-pdf/stylesheet

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-pdf/stylesheet - npm Package Compare versions

Comparing version 2.0.0-beta.17 to 2.0.0-beta.18

10

lib/expand.js

@@ -14,5 +14,5 @@ "use strict";

var BOX_MODEL_REGEX = /\d+(px|in|mm|cm|pt|%|vw|vh|px)?/g;
var OBJECT_POSITION_REGEX = /\d+(px|in|mm|cm|pt|%|vw|vh|px)?/g;
var BORDER_SHORTHAND_REGEX = /(\d+(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/;
var BOX_MODEL_REGEX = /\d+(\.\d+)?(px|in|mm|cm|pt|%|vw|vh|px)?/g;
var OBJECT_POSITION_REGEX = /\d+(\.\d+)?(px|in|mm|cm|pt|%|vw|vh|px)?/g;
var BORDER_SHORTHAND_REGEX = /(\d+(\.\d+)?(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/;
var TRANSFORM_ORIGIN_REGEX = /(-?\d+(px|in|mm|cm|pt|%|vw|vh|px)?)|top|right|bottom|left|center/g;

@@ -85,7 +85,7 @@ var FONT_WEIGHTS = {

if (key.match(/Color$/)) {
return match[4] || value;
return match[5] || value;
}
if (key.match(/Style$/)) {
return match[3] || value;
return match[4] || value;
}

@@ -92,0 +92,0 @@

@@ -38,3 +38,4 @@ "use strict";

var resolveStyles = function resolveStyles(container, style) {
return R.compose((0, _units.default)(container), _colors.default, _expand.default, (0, _mediaQueries.default)(container), filterNoneValues, _flatten.default)(style);
return R.compose((0, _units.default)(container), _colors.default, // R.tap(console.log),
_expand.default, (0, _mediaQueries.default)(container), filterNoneValues, _flatten.default)(style);
};

@@ -41,0 +42,0 @@

{
"name": "@react-pdf/stylesheet",
"version": "2.0.0-beta.17",
"version": "2.0.0-beta.18",
"license": "MIT",

@@ -15,3 +15,3 @@ "author": "Diego Muracciole <diegomuracciole@gmail.com>",

"dependencies": {
"@react-pdf/types": "^2.0.0-beta.17",
"@react-pdf/types": "^2.0.0-beta.18",
"color-string": "^1.5.3",

@@ -25,3 +25,3 @@ "hsl-to-hex": "^1.0.0",

],
"gitHead": "db65b560de8295a41a5117e2b97ce68198e334c6"
"gitHead": "001b9f0769b75b6abc49cade7237a39b22a1d481"
}
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