New:Socket for Asana Is Now Available.Learn more
Get Started

postcss-ordered-values

Package Overview
Dependencies
Maintainers
7
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-ordered-values - npm Package Compare versions

Comparing version
8.0.2
to
8.0.3
+7
-4
package.json
{
"name": "postcss-ordered-values",
"version": "8.0.2",
"version": "8.0.3",
"description": "Ensure values are ordered consistently in your CSS.",

@@ -42,3 +42,3 @@ "exports": {

"postcss-value-parser": "^4.2.0",
"cssnano-utils": "^6.0.2"
"cssnano-utils": "^6.0.3"
},

@@ -52,7 +52,10 @@ "bugs": {

"devDependencies": {
"postcss": "^8.5.25"
"postcss": "^8.5.26"
},
"peerDependencies": {
"postcss": "^8.5.25"
"postcss": "^8.5.26"
},
"scripts": {
"test": "node --test"
}
}

@@ -97,2 +97,3 @@ 'use strict';

}
return false;
});

@@ -99,0 +100,0 @@

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

for (const [index, arg] of values.entries()) {
arg.forEach((val, idx) => {
for (const [idx, val] of arg.entries()) {
if (

@@ -26,6 +26,6 @@ idx === arg.length - 1 &&

) {
return;
continue;
}
nodes.push(val);
});
}

@@ -32,0 +32,0 @@ if (index !== values.length - 1) {

@@ -133,7 +133,7 @@ 'use strict';

arg.forEach((node) => {
for (const node of arg) {
const type = node.type;
let value = node.value;
if (type === 'space') {
return;
continue;
}

@@ -155,3 +155,3 @@

}
});
}

@@ -158,0 +158,0 @@ list.push([

@@ -57,2 +57,3 @@ 'use strict';

}
return false;
});

@@ -59,0 +60,0 @@

@@ -42,3 +42,3 @@ 'use strict';

arg.forEach((node) => {
for (const node of arg) {
const { type, value } = node;

@@ -51,7 +51,7 @@

abort = true;
return;
continue;
}
if (type === 'space') {
return;
continue;
}

@@ -66,3 +66,3 @@

}
});
}

@@ -69,0 +69,0 @@ if (abort) {

@@ -65,3 +65,3 @@ 'use strict';

gridLine = gridLine.trim(); // '3 span ' -> '3 span'
gridLine.split(' ').forEach((node) => {
for (const node of gridLine.split(' ')) {
// ['3','span']

@@ -73,3 +73,3 @@ if (node === 'span') {

}
});
}
return `${normalizeValue.front.trim()} ${normalizeValue.back.trim()}`; // span 3

@@ -87,3 +87,3 @@ })

gridLine = gridLine.trim();
gridLine.split(' ').forEach((node) => {
for (const node of gridLine.split(' ')) {
if (node === 'span') {

@@ -94,3 +94,3 @@ normalizeValue.front = node;

}
});
}
return `${normalizeValue.front.trim()} ${normalizeValue.back.trim()}`;

@@ -97,0 +97,0 @@ });

@@ -102,2 +102,2 @@ {

]
}
}

@@ -34,7 +34,7 @@ 'use strict';

arg.forEach((node) => {
for (const node of arg) {
const { type, value } = node;
if (type === 'space') {
return;
continue;
}

@@ -58,3 +58,3 @@

}
});
}

@@ -61,0 +61,0 @@ list.push([