Socket
Socket
Sign inDemoInstall

rework

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rework - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

component.json
{
"name": "rework",
"version": "0.9.0",
"version": "0.9.2",
"description": "CSS manipulations built on CSSOM",

@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"],

0.9.2 / 2012-12-05
==================
* revert broken @2x media query implementation
0.9.1 / 2012-12-04

@@ -3,0 +8,0 @@ ==================

@@ -33,11 +33,6 @@

module.exports = function(vendors) {
function prefix(value) {
return '(' + vendors.map(function(vendor) {
return vendor + value;
}).join(' or ') + ')';
}
return function(style, rework){
vendors = vendors || rework.prefixes;
function visit(rules, style, media) {
rules.forEach(function(rule){
if (rule.media) return visit(rule.rules, style, rule.media);
style.rules.forEach(function(rule){
if (!rule.declarations) return;

@@ -56,3 +51,3 @@

style.rules.push({
media: [media || 'all', prefix('min-device-pixel-ratio: 1.5')].join(' and '),
media: 'all and (-webkit-min-device-pixel-ratio: 1.5)',
rules: [

@@ -92,2 +87,2 @@ {

&& ~decl.value.indexOf('url(');
}
}
{
"name": "rework",
"version": "0.9.1",
"version": "0.9.2",
"description": "CSS manipulations built on CSSOM",

@@ -5,0 +5,0 @@ "keywords": ["css", "manipulation", "preprocess", "transform"],

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