feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@ -1,3 +1,7 @@
# 7.0.0
- Feat: make insertions during iteration safe (major)
# 6.1.2
- Fixed: erroneous trailing combinators in pseudos

View File

@ -33,6 +33,9 @@ var Container = /*#__PURE__*/function (_Node) {
_proto.prepend = function prepend(selector) {
selector.parent = this;
this.nodes.unshift(selector);
for (var id in this.indexes) {
this.indexes[id]++;
}
return this;
};
_proto.at = function at(index) {
@ -76,7 +79,7 @@ var Container = /*#__PURE__*/function (_Node) {
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (oldIndex <= index) {
if (oldIndex < index) {
this.indexes[id] = index + 1;
}
}
@ -90,7 +93,7 @@ var Container = /*#__PURE__*/function (_Node) {
var index;
for (var id in this.indexes) {
index = this.indexes[id];
if (index <= oldIndex) {
if (index >= oldIndex) {
this.indexes[id] = index + 1;
}
}

View File

@ -1,6 +1,6 @@
{
"name": "postcss-selector-parser",
"version": "6.1.2",
"version": "7.0.0",
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",