@react-pdf/stylesheet 5.0.0 → 5.0.1

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -497,7 +497,7 @@ const transformColor = value => {
497
497
  };
498
498
 
499
499
  const parse = transformString => {
500
- const transforms = transformString.trim().split(/\) |\)/);
500
+ const transforms = transformString.trim().split(/\)[ ,]|\)/);
501
501
 
502
502
  // Handle "initial", "inherit", "unset".
503
503
  if (transforms.length === 1) {
@@ -511,7 +511,7 @@ const parse = transformString => {
511
511
  const splitChar = rawValue.indexOf(',') >= 0 ? ',' : ' ';
512
512
  const value = rawValue.split(splitChar).map(val => val.trim());
513
513
  parsed.push({
514
- operation: name,
514
+ operation: name.trim(),
515
515
  value
516
516
  });
517
517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pdf/stylesheet",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "license": "MIT",
5
5
  "description": "A styles engine for Node and the browser",
6
6
  "author": "Diego Muracciole <diegomuracciole@gmail.com>",