File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
node_modules/postcss-selector-parser Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -278,16 +278,13 @@ if (node.type === 'id') {
278278}
279279```
280280
281- ### ` node.clone() `
281+ ### ` node.clone([opts] ) `
282282
283283Returns a copy of a node, detached from any parent containers that the
284284original might have had.
285285
286286``` js
287- const cloned = parser .id ({value: ' search' });
288- String (cloned);
289-
290- // => #search
287+ const cloned = node .clone ();
291288```
292289
293290### ` node.isAtPosition(line, column) `
Original file line number Diff line number Diff line change @@ -609,6 +609,9 @@ var Parser = /*#__PURE__*/function () {
609609 _proto . unexpected = function unexpected ( ) {
610610 return this . error ( "Unexpected '" + this . content ( ) + "'. Escaping special characters with \\ may help." , this . currToken [ _tokenize . FIELDS . START_POS ] ) ;
611611 } ;
612+ _proto . unexpectedPipe = function unexpectedPipe ( ) {
613+ return this . error ( "Unexpected '|'." , this . currToken [ _tokenize . FIELDS . START_POS ] ) ;
614+ } ;
612615 _proto . namespace = function namespace ( ) {
613616 var before = this . prevToken && this . content ( this . prevToken ) || true ;
614617 if ( this . nextToken [ _tokenize . FIELDS . TYPE ] === tokens . word ) {
@@ -618,6 +621,7 @@ var Parser = /*#__PURE__*/function () {
618621 this . position ++ ;
619622 return this . universal ( before ) ;
620623 }
624+ this . unexpectedPipe ( ) ;
621625 } ;
622626 _proto . nesting = function nesting ( ) {
623627 if ( this . nextToken ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " postcss-selector-parser" ,
3- "version" : " 6.0.12 " ,
3+ "version" : " 6.0.13 " ,
44 "devDependencies" : {
55 "@babel/cli" : " ^7.11.6" ,
66 "@babel/core" : " ^7.11.6" ,
Original file line number Diff line number Diff line change 1040010400 "dev": true
1040110401 },
1040210402 "node_modules/postcss-selector-parser": {
10403- "version": "6.0.12 ",
10404- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.12 .tgz",
10405- "integrity": "sha512-NdxGCAZdRrwVI1sy59+Wzrh+pMMHxapGnpfenDVlMEXoOcvt4pGE0JLK9YY2F5dLxcFYA/YbVQKhcGU+FtSYQg ==",
10403+ "version": "6.0.13 ",
10404+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13 .tgz",
10405+ "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ ==",
1040610406 "dependencies": {
1040710407 "cssesc": "^3.0.0",
1040810408 "util-deprecate": "^1.0.2"
You can’t perform that action at this time.
0 commit comments