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.11 to 2.0.0-beta.12

15

lib/expand.js

@@ -39,11 +39,18 @@ "use strict";

const isNumber = R.is(Number);
const FONT_WEIGHT_REGEX = /^fontWeight/;
const isFontWeightStyle = key => key.match(/^fontWeight/);
const isFontWeightStyle = key => key.match(FONT_WEIGHT_REGEX);
const isBorderStyle = (key, value) => key.match(/^border(Top|Right|Bottom|Left)(Color|Width|Style)/) && typeof value === 'string';
const BORDER_STYLE_REGEX = /^border(Top|Right|Bottom|Left)(Color|Width|Style)/;
const isBoxModelStyle = (key, value) => key.match(/^(margin)|(padding)/) && typeof value === 'string';
const isBorderStyle = (key, value) => key.match(BORDER_STYLE_REGEX) && typeof value === 'string';
const isObjectPositionStyle = (key, value) => key.match(/^objectPosition/) && typeof value === 'string';
const BOX_MODEL_STYLE_REGEX = /^(margin)|(padding)/;
const isBoxModelStyle = (key, value) => key.match(BOX_MODEL_STYLE_REGEX) && typeof value === 'string';
const OBJECT_POSITION_STYLE_REGEX = /^objectPosition/;
const isObjectPositionStyle = (key, value) => key.match(OBJECT_POSITION_STYLE_REGEX) && typeof value === 'string';
const isTransformOriginStyle = (key, value) => key.match(/^transformOrigin/) && typeof value === 'string';

@@ -50,0 +57,0 @@

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

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

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

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

],
"gitHead": "39cea536737e9a863db7f83890d207b667fedd1d"
"gitHead": "81e76f3958da57b65d1f18740c1887a4efa91fce"
}

@@ -0,1 +1,5 @@

<p align="center">
<img src="https://user-images.githubusercontent.com/5600341/27505816-c8bc37aa-587f-11e7-9a86-08a2d081a8b9.png" height="280px">
</p>
# @react-pdf/stylesheet

@@ -2,0 +6,0 @@

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