A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/3274d68b13595415586b41445838cc258543173a below:

@npmcli/query@4.0.1 · npm/cli@3274d68 · GitHub

File tree Expand file treeCollapse file tree 5 files changed

+48

-19

lines changed

Filter options

Expand file treeCollapse file tree 5 files changed

+48

-19

lines changed Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

{

2 2

"name": "@npmcli/query",

3 -

"version": "4.0.0",

3 +

"version": "4.0.1",

4 4

"description": "npm query parser and tools",

5 5

"main": "lib/index.js",

6 6

"scripts": {

@@ -49,7 +49,7 @@

49 49

"tap": "^16.2.0"

50 50

},

51 51

"dependencies": {

52 -

"postcss-selector-parser": "^6.1.2"

52 +

"postcss-selector-parser": "^7.0.0"

53 53

},

54 54

"repository": {

55 55

"type": "git",

Original file line number Diff line number Diff line change

@@ -254,7 +254,7 @@ if (next && next.type !== 'combinator') {

254 254

}

255 255

```

256 256 257 -

### `node.replaceWith(node)`

257 +

### `node.replaceWith(node[,...nodeN])`

258 258 259 259

Replace a node with another.

260 260

@@ -267,6 +267,8 @@ attr.replaceWith(className);

267 267

Arguments:

268 268 269 269

* `node`: The node to substitute the original with.

270 +

...

271 +

* `nodeN`: The node to substitute the original with.

270 272 271 273

### `node.remove()`

272 274

@@ -531,7 +533,7 @@ Arguments:

531 533 532 534

* `node`: The node to add.

533 535 534 -

### `container.insertBefore(old, new)` & `container.insertAfter(old, new)`

536 +

### `container.insertBefore(old, new[, ...newNodes])` & `container.insertAfter(old, new[, ...newNodes])`

535 537 536 538

Add a node before or after an existing node in a container:

537 539 Original file line number Diff line number Diff line change

@@ -33,6 +33,9 @@ var Container = /*#__PURE__*/function (_Node) {

33 33

_proto.prepend = function prepend(selector) {

34 34

selector.parent = this;

35 35

this.nodes.unshift(selector);

36 +

for (var id in this.indexes) {

37 +

this.indexes[id]++;

38 +

}

36 39

return this;

37 40

};

38 41

_proto.at = function at(index) {

@@ -69,29 +72,39 @@ var Container = /*#__PURE__*/function (_Node) {

69 72

return this.removeAll();

70 73

};

71 74

_proto.insertAfter = function insertAfter(oldNode, newNode) {

75 +

var _this$nodes;

72 76

newNode.parent = this;

73 77

var oldIndex = this.index(oldNode);

74 -

this.nodes.splice(oldIndex + 1, 0, newNode);

78 +

var resetNode = [];

79 +

for (var i = 2; i < arguments.length; i++) {

80 +

resetNode.push(arguments[i]);

81 +

}

82 +

(_this$nodes = this.nodes).splice.apply(_this$nodes, [oldIndex + 1, 0, newNode].concat(resetNode));

75 83

newNode.parent = this;

76 84

var index;

77 85

for (var id in this.indexes) {

78 86

index = this.indexes[id];

79 -

if (oldIndex <= index) {

80 -

this.indexes[id] = index + 1;

87 +

if (oldIndex < index) {

88 +

this.indexes[id] = index + arguments.length - 1;

81 89

}

82 90

}

83 91

return this;

84 92

};

85 93

_proto.insertBefore = function insertBefore(oldNode, newNode) {

94 +

var _this$nodes2;

86 95

newNode.parent = this;

87 96

var oldIndex = this.index(oldNode);

88 -

this.nodes.splice(oldIndex, 0, newNode);

97 +

var resetNode = [];

98 +

for (var i = 2; i < arguments.length; i++) {

99 +

resetNode.push(arguments[i]);

100 +

}

101 +

(_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [oldIndex, 0, newNode].concat(resetNode));

89 102

newNode.parent = this;

90 103

var index;

91 104

for (var id in this.indexes) {

92 105

index = this.indexes[id];

93 -

if (index <= oldIndex) {

94 -

this.indexes[id] = index + 1;

106 +

if (index >= oldIndex) {

107 +

this.indexes[id] = index + arguments.length - 1;

95 108

}

96 109

}

97 110

return this;

@@ -117,7 +130,7 @@ var Container = /*#__PURE__*/function (_Node) {

117 130

* Return the most specific node at the line and column number given.

118 131

* The source location is based on the original parsed location, locations aren't

119 132

* updated as selector nodes are mutated.

120 -

*

133 +

*

121 134

* Note that this location is relative to the location of the first character

122 135

* of the selector, and not the location of the selector in the overall document

123 136

* when used in conjunction with postcss.

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

{

2 2

"name": "postcss-selector-parser",

3 -

"version": "6.1.2",

3 +

"version": "7.1.0",

4 4

"devDependencies": {

5 5

"@babel/cli": "^7.11.6",

6 6

"@babel/core": "^7.11.6",

Original file line number Diff line number Diff line change

@@ -3704,12 +3704,12 @@

3704 3704

}

3705 3705

},

3706 3706

"node_modules/@npmcli/query": {

3707 -

"version": "4.0.0",

3708 -

"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-4.0.0.tgz",

3709 -

"integrity": "sha512-3pPbese0fbCiFJ/7/X1GBgxAKYFE8sxBddA7GtuRmOgNseH4YbGsXJ807Ig3AEwNITjDUISHglvy89cyDJnAwA==",

3707 +

"version": "4.0.1",

3708 +

"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-4.0.1.tgz",

3709 +

"integrity": "sha512-4OIPFb4weUUwkDXJf4Hh1inAn8neBGq3xsH4ZsAaN6FK3ldrFkH7jSpCc7N9xesi0Sp+EBXJ9eGMDrEww2Ztqw==",

3710 3710

"license": "ISC",

3711 3711

"dependencies": {

3712 -

"postcss-selector-parser": "^6.1.2"

3712 +

"postcss-selector-parser": "^7.0.0"

3713 3713

},

3714 3714

"engines": {

3715 3715

"node": "^18.17.0 || >=20.5.0"

@@ -4512,6 +4512,20 @@

4512 4512

"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

4513 4513

}

4514 4514

},

4515 +

"node_modules/@npmcli/template-oss/node_modules/postcss-selector-parser": {

4516 +

"version": "6.1.2",

4517 +

"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",

4518 +

"integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",

4519 +

"dev": true,

4520 +

"license": "MIT",

4521 +

"dependencies": {

4522 +

"cssesc": "^3.0.0",

4523 +

"util-deprecate": "^1.0.2"

4524 +

},

4525 +

"engines": {

4526 +

"node": ">=4"

4527 +

}

4528 +

},

4515 4529

"node_modules/@npmcli/template-oss/node_modules/proc-log": {

4516 4530

"version": "4.2.0",

4517 4531

"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-4.2.0.tgz",

@@ -13369,9 +13383,9 @@

13369 13383

}

13370 13384

},

13371 13385

"node_modules/postcss-selector-parser": {

13372 -

"version": "6.1.2",

13373 -

"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",

13374 -

"integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",

13386 +

"version": "7.1.0",

13387 +

"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz",

13388 +

"integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==",

13375 13389

"license": "MIT",

13376 13390

"dependencies": {

13377 13391

"cssesc": "^3.0.0",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4