Socket
Socket
Sign inDemoInstall

stylecow-plugin-fixes

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylecow-plugin-fixes - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

src/import.js

1

index.js
module.exports = function (tasks) {
tasks.use(require('./src/import'));
tasks.use(require('./src/clip'));

@@ -3,0 +4,0 @@ tasks.use(require('./src/column-break'));

6

package.json
{
"name": "stylecow-plugin-fixes",
"description": "Stylecow plugin to fix automatically some css issues.",
"version": "5.0.0",
"version": "5.1.0",
"engines": {

@@ -19,4 +19,4 @@ "node": ">=4.0"

"devDependencies": {
"mocha": "^2.3.2",
"stylecow-core": "^2.0.0"
"mocha": "^2.3.4",
"stylecow-core": "^2.2.2"
},

@@ -23,0 +23,0 @@ "main": "index.js",

@@ -20,2 +20,3 @@ stylecow plugin fixer

* Fix multiple @charset at-rules
* Fix @import position that must be on top of the css (only preceded by @charset)
* etc...

@@ -22,0 +23,0 @@

@@ -8,3 +8,3 @@ "use strict";

fn: function (root) {
var charsets = root.getAll({
let charsets = root.getAll({
type: 'AtRule',

@@ -11,0 +11,0 @@ name: 'charset'

@@ -162,3 +162,3 @@ "use strict";

fn: function (keyword) {
var declaration = keyword.getAncestor('Declaration');
let declaration = keyword.getAncestor('Declaration');

@@ -165,0 +165,0 @@ if (declaration && initials[declaration.name]) {

@@ -15,3 +15,3 @@ "use strict";

fn: function (declaration) {
var block = declaration.getParent('Block');
let block = declaration.getParent('Block');

@@ -25,3 +25,3 @@ if (block) {

function addMsFilter (block, filter) {
var declaration = block.getChild({
let declaration = block.getChild({
type: 'Declaration',

@@ -45,3 +45,3 @@ name: 'filter',

var string = declaration.get('String');
let string = declaration.get('String');

@@ -48,0 +48,0 @@ if (string.name) {

@@ -19,3 +19,3 @@ "use strict";

fn: function (conditionalFeature) {
var query = conditionalFeature.getAncestor('MediaQuery');
let query = conditionalFeature.getAncestor('MediaQuery');

@@ -47,3 +47,3 @@ if (query) {

//change unit
var unit = feature.get('Unit');
let unit = feature.get('Unit');

@@ -73,3 +73,3 @@ if (unit) {

fn: function (unit) {
var number = unit.get('Number');
let number = unit.get('Number');

@@ -76,0 +76,0 @@ if (unit.name === 'dppx') {

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