Socket
Socket
Sign inDemoInstall

pixrem

Package Overview
Dependencies
17
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 2.0.0

12

lib/pixrem.js

@@ -53,6 +53,6 @@ 'use strict';

// First, check root font-size
css.eachRule(function (rule) {
css.walkRules(function (rule) {
if (rule.parent && rule.parent.type === 'atrule') { return; }
if (/^(html|:root)$/.test(rule.selectors)) {
rule.eachDecl(function (decl) {
rule.walkDecls(function (decl) {
if (decl.prop === 'font-size') {

@@ -69,3 +69,3 @@ _rootvalue = decl.value;

//Then, for each rules
css.eachRule(function (rule) {
css.walkRules(function (rule) {

@@ -105,5 +105,5 @@ // if options.at-rules is false AND it's not IE9-10: skip @rules

var clone = decl.clone({ value: value });
if (decl.before) {
clone.before = decl.before;
decl.before = reduceLineBreaks(decl.before);
if (decl.raws.before) {
clone.raws.before = decl.raws.before;
decl.raws.before = reduceLineBreaks(decl.raws.before);
}

@@ -110,0 +110,0 @@ rule.insertBefore(i, clone);

{
"name": "pixrem",
"description": "A CSS post-processor that generates pixel fallbacks for rem units.",
"version": "1.3.1",
"version": "2.0.0",
"homepage": "https://github.com/robwierzbowski/node-pixrem",

@@ -27,3 +27,3 @@ "author": "Rob Wierzbowski <hello@robwierzbowski.com> (http://robwierzbowski.com)",

"browserslist": "^0.5.0",
"postcss": "^4.0.0",
"postcss": "^5.0.0",
"reduce-css-calc": "^1.2.0"

@@ -30,0 +30,0 @@ },

@@ -98,2 +98,10 @@ # Pixrem

2.0.0, Aug 24, 2015
* Update to PostCSS 5.0
1.3.2, Aug 24, 2015
* Unpublished version
1.3.1, Jul 9, 2015

@@ -100,0 +108,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc