Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 1.8.2

remove left over console debug

# 1.8.1

no code change
Expand Down
32 changes: 26 additions & 6 deletions dist/index-umd-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CSS parser, minifier and validator for node and the browser

Author(s): Thierry Bela
Version: 1.7.0
Version: 1.8.2
License: MIT
*/
(function (global, factory) {
Expand Down Expand Up @@ -21029,12 +21029,27 @@
* Represents a list of property declarations, compute shorthand and remove duplicate declarations.
*/
class PropertyList {
/**
* options
*/
options = { removeDuplicateDeclarations: true, computeShorthand: true };
/**
* declarations
*/
declarations;
/**
*
* @param options
*/
constructor(options = {}) {
this.options = options;
this.declarations = new Map();
}
/**
* add declarations
* @param declarations
* @returns
*/
add(declarations) {
let name;
let syntaxRules = null;
Expand Down Expand Up @@ -21174,6 +21189,11 @@
}
return this;
}
/**
*
* @param declaration
* @param mapping
*/
mapValues(declaration, mapping) {
let name;
let values = declaration.val;
Expand Down Expand Up @@ -21233,6 +21253,10 @@
}
}
}
/**
*
* @returns
*/
[Symbol.iterator]() {
let iterator = this.declarations.values();
const iterators = [];
Expand Down Expand Up @@ -33300,10 +33324,6 @@
}
// @ts-ignore
if (replacement != null && node != replacement) {
console.error({
node,
replacement,
});
// @ts-ignore
replaceNodeOrValue(node[PARENT], node, replacement);
}
Expand Down Expand Up @@ -35363,7 +35383,7 @@
}
}

var version = "1.7.0";
var version = "1.8.2";

/**
* Load file or url
Expand Down
30 changes: 25 additions & 5 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21025,12 +21025,27 @@ const config = getConfig();
* Represents a list of property declarations, compute shorthand and remove duplicate declarations.
*/
class PropertyList {
/**
* options
*/
options = { removeDuplicateDeclarations: true, computeShorthand: true };
/**
* declarations
*/
declarations;
/**
*
* @param options
*/
constructor(options = {}) {
this.options = options;
this.declarations = new Map();
}
/**
* add declarations
* @param declarations
* @returns
*/
add(declarations) {
let name;
let syntaxRules = null;
Expand Down Expand Up @@ -21170,6 +21185,11 @@ class PropertyList {
}
return this;
}
/**
*
* @param declaration
* @param mapping
*/
mapValues(declaration, mapping) {
let name;
let values = declaration.val;
Expand Down Expand Up @@ -21229,6 +21249,10 @@ class PropertyList {
}
}
}
/**
*
* @returns
*/
[Symbol.iterator]() {
let iterator = this.declarations.values();
const iterators = [];
Expand Down Expand Up @@ -33296,10 +33320,6 @@ async function doParse(iter, options = {}) {
}
// @ts-ignore
if (replacement != null && node != replacement) {
console.error({
node,
replacement,
});
// @ts-ignore
replaceNodeOrValue(node[PARENT], node, replacement);
}
Expand Down Expand Up @@ -35359,7 +35379,7 @@ function setNodeProperty(node, key, value) {
}
}

var version = "1.7.0";
var version = "1.8.2";

/**
* Load file or url
Expand Down
Loading
Loading