Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yarnpkg/parsers

Package Overview
Dependencies
Maintainers
5
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/parsers - npm Package Compare versions

Comparing version 2.0.0-rc.10 to 2.0.0-rc.11

380

lib/grammars/shell.js

@@ -196,36 +196,41 @@ /*

peg$c51 = function(variable) { return { type: `variable`, ...variable, quoted: false } },
peg$c52 = "\\",
peg$c53 = peg$literalExpectation("\\", false),
peg$c54 = peg$anyExpectation(),
peg$c55 = function(c) { return c },
peg$c56 = /^[^']/,
peg$c57 = peg$classExpectation(["'"], true, false),
peg$c58 = function(chars) { return chars.join(``) },
peg$c59 = /^[^$"]/,
peg$c60 = peg$classExpectation(["$", "\""], true, false),
peg$c61 = "$(",
peg$c62 = peg$literalExpectation("$(", false),
peg$c63 = function(command) { return command },
peg$c64 = "${",
peg$c65 = peg$literalExpectation("${", false),
peg$c66 = ":-",
peg$c67 = peg$literalExpectation(":-", false),
peg$c68 = "}",
peg$c69 = peg$literalExpectation("}", false),
peg$c70 = function(name, arg) { return { name, defaultValue: arg } },
peg$c71 = ":-}",
peg$c72 = peg$literalExpectation(":-}", false),
peg$c73 = function(name) { return { name, defaultValue: [] } },
peg$c74 = function(name) { return { name } },
peg$c75 = "$",
peg$c76 = peg$literalExpectation("$", false),
peg$c77 = /^[a-zA-Z0-9_]/,
peg$c78 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false),
peg$c79 = function() { return text() },
peg$c80 = /^[@*?#a-zA-Z0-9_\-]/,
peg$c81 = peg$classExpectation(["@", "*", "?", "#", ["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false),
peg$c82 = /^[(){}<>$|&; \t"']/,
peg$c83 = peg$classExpectation(["(", ")", "{", "}", "<", ">", "$", "|", "&", ";", " ", "\t", "\"", "'"], false, false),
peg$c84 = /^[ \t]/,
peg$c85 = peg$classExpectation([" ", "\t"], false, false),
peg$c52 = function(pattern) { return { type: `glob`, pattern } },
peg$c53 = "\\",
peg$c54 = peg$literalExpectation("\\", false),
peg$c55 = peg$anyExpectation(),
peg$c56 = function(c) { return c },
peg$c57 = /^[^']/,
peg$c58 = peg$classExpectation(["'"], true, false),
peg$c59 = function(chars) { return chars.join(``) },
peg$c60 = /^[^$"]/,
peg$c61 = peg$classExpectation(["$", "\""], true, false),
peg$c62 = "$(",
peg$c63 = peg$literalExpectation("$(", false),
peg$c64 = function(command) { return command },
peg$c65 = "${",
peg$c66 = peg$literalExpectation("${", false),
peg$c67 = ":-",
peg$c68 = peg$literalExpectation(":-", false),
peg$c69 = "}",
peg$c70 = peg$literalExpectation("}", false),
peg$c71 = function(name, arg) { return { name, defaultValue: arg } },
peg$c72 = ":-}",
peg$c73 = peg$literalExpectation(":-}", false),
peg$c74 = function(name) { return { name, defaultValue: [] } },
peg$c75 = function(name) { return { name } },
peg$c76 = "$",
peg$c77 = peg$literalExpectation("$", false),
peg$c78 = function(pattern) { return options.isGlobPattern(pattern) },
peg$c79 = function(pattern) { return pattern },
peg$c80 = /^[a-zA-Z0-9_]/,
peg$c81 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false),
peg$c82 = function() { return text() },
peg$c83 = /^[@*?#a-zA-Z0-9_\-]/,
peg$c84 = peg$classExpectation(["@", "*", "?", "#", ["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false),
peg$c85 = /^[(){}<>$|&; \t"']/,
peg$c86 = peg$classExpectation(["(", ")", "{", "}", "<", ">", "$", "|", "&", ";", " ", "\t", "\"", "'"], false, false),
peg$c87 = /^[<>&; \t"']/,
peg$c88 = peg$classExpectation(["<", ">", "&", ";", " ", "\t", "\"", "'"], false, false),
peg$c89 = /^[ \t]/,
peg$c90 = peg$classExpectation([" ", "\t"], false, false),

@@ -1390,8 +1395,17 @@ peg$currPos = 0,

s0 = peg$currPos;
s1 = peg$parsePlainStringText();
s1 = peg$parseGlob();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c49(s1);
s1 = peg$c52(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parsePlainStringText();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c49(s1);
}
s0 = s1;
}
}

@@ -1410,7 +1424,7 @@ }

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1423,7 +1437,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1439,3 +1453,3 @@ } else {

if (s2 === peg$FAILED) {
if (peg$c56.test(input.charAt(peg$currPos))) {
if (peg$c57.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1445,3 +1459,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c57); }
if (peg$silentFails === 0) { peg$fail(peg$c58); }
}

@@ -1453,7 +1467,7 @@ }

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1466,7 +1480,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1482,3 +1496,3 @@ } else {

if (s2 === peg$FAILED) {
if (peg$c56.test(input.charAt(peg$currPos))) {
if (peg$c57.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1488,3 +1502,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c57); }
if (peg$silentFails === 0) { peg$fail(peg$c58); }
}

@@ -1495,3 +1509,3 @@ }

peg$savedPos = s0;
s1 = peg$c58(s1);
s1 = peg$c59(s1);
}

@@ -1510,7 +1524,7 @@ s0 = s1;

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1523,7 +1537,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1539,3 +1553,3 @@ } else {

if (s2 === peg$FAILED) {
if (peg$c59.test(input.charAt(peg$currPos))) {
if (peg$c60.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1545,3 +1559,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c60); }
if (peg$silentFails === 0) { peg$fail(peg$c61); }
}

@@ -1554,7 +1568,7 @@ }

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1567,7 +1581,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1583,3 +1597,3 @@ } else {

if (s2 === peg$FAILED) {
if (peg$c59.test(input.charAt(peg$currPos))) {
if (peg$c60.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1589,3 +1603,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c60); }
if (peg$silentFails === 0) { peg$fail(peg$c61); }
}

@@ -1599,3 +1613,3 @@ }

peg$savedPos = s0;
s1 = peg$c58(s1);
s1 = peg$c59(s1);
}

@@ -1614,7 +1628,7 @@ s0 = s1;

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1627,7 +1641,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1660,7 +1674,7 @@ } else {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1681,7 +1695,7 @@ } else {

if (input.charCodeAt(peg$currPos) === 92) {
s3 = peg$c52;
s3 = peg$c53;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c53); }
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}

@@ -1694,7 +1708,7 @@ if (s3 !== peg$FAILED) {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1727,7 +1741,7 @@ } else {

s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c55(s4);
s3 = peg$c56(s4);
s2 = s3;

@@ -1749,3 +1763,3 @@ } else {

peg$savedPos = s0;
s1 = peg$c58(s1);
s1 = peg$c59(s1);
}

@@ -1761,8 +1775,8 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c61) {
s1 = peg$c61;
if (input.substr(peg$currPos, 2) === peg$c62) {
s1 = peg$c62;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c62); }
if (peg$silentFails === 0) { peg$fail(peg$c63); }
}

@@ -1781,3 +1795,3 @@ if (s1 !== peg$FAILED) {

peg$savedPos = s0;
s1 = peg$c63(s2);
s1 = peg$c64(s2);
s0 = s1;

@@ -1804,8 +1818,8 @@ } else {

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c64) {
s1 = peg$c64;
if (input.substr(peg$currPos, 2) === peg$c65) {
s1 = peg$c65;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c65); }
if (peg$silentFails === 0) { peg$fail(peg$c66); }
}

@@ -1815,8 +1829,8 @@ if (s1 !== peg$FAILED) {

if (s2 !== peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c66) {
s3 = peg$c66;
if (input.substr(peg$currPos, 2) === peg$c67) {
s3 = peg$c67;
peg$currPos += 2;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c67); }
if (peg$silentFails === 0) { peg$fail(peg$c68); }
}

@@ -1827,11 +1841,11 @@ if (s3 !== peg$FAILED) {

if (input.charCodeAt(peg$currPos) === 125) {
s5 = peg$c68;
s5 = peg$c69;
peg$currPos++;
} else {
s5 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c69); }
if (peg$silentFails === 0) { peg$fail(peg$c70); }
}
if (s5 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c70(s2, s4);
s1 = peg$c71(s2, s4);
s0 = s1;

@@ -1860,8 +1874,8 @@ } else {

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c64) {
s1 = peg$c64;
if (input.substr(peg$currPos, 2) === peg$c65) {
s1 = peg$c65;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c65); }
if (peg$silentFails === 0) { peg$fail(peg$c66); }
}

@@ -1871,12 +1885,12 @@ if (s1 !== peg$FAILED) {

if (s2 !== peg$FAILED) {
if (input.substr(peg$currPos, 3) === peg$c71) {
s3 = peg$c71;
if (input.substr(peg$currPos, 3) === peg$c72) {
s3 = peg$c72;
peg$currPos += 3;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c72); }
if (peg$silentFails === 0) { peg$fail(peg$c73); }
}
if (s3 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c73(s2);
s1 = peg$c74(s2);
s0 = s1;

@@ -1897,8 +1911,8 @@ } else {

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c64) {
s1 = peg$c64;
if (input.substr(peg$currPos, 2) === peg$c65) {
s1 = peg$c65;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c65); }
if (peg$silentFails === 0) { peg$fail(peg$c66); }
}

@@ -1909,11 +1923,11 @@ if (s1 !== peg$FAILED) {

if (input.charCodeAt(peg$currPos) === 125) {
s3 = peg$c68;
s3 = peg$c69;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c69); }
if (peg$silentFails === 0) { peg$fail(peg$c70); }
}
if (s3 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c74(s2);
s1 = peg$c75(s2);
s0 = s1;

@@ -1935,7 +1949,7 @@ } else {

if (input.charCodeAt(peg$currPos) === 36) {
s1 = peg$c75;
s1 = peg$c76;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c76); }
if (peg$silentFails === 0) { peg$fail(peg$c77); }
}

@@ -1946,3 +1960,3 @@ if (s1 !== peg$FAILED) {

peg$savedPos = s0;
s1 = peg$c74(s2);
s1 = peg$c75(s2);
s0 = s1;

@@ -1964,2 +1978,114 @@ } else {

function peg$parseGlob() {
var s0, s1, s2;
s0 = peg$currPos;
s1 = peg$parseGlobText();
if (s1 !== peg$FAILED) {
peg$savedPos = peg$currPos;
s2 = peg$c78(s1);
if (s2) {
s2 = void 0;
} else {
s2 = peg$FAILED;
}
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c79(s1);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
return s0;
}
function peg$parseGlobText() {
var s0, s1, s2, s3, s4;
s0 = peg$currPos;
s1 = [];
s2 = peg$currPos;
s3 = peg$currPos;
peg$silentFails++;
s4 = peg$parseGlobSpecialShellChars();
peg$silentFails--;
if (s4 === peg$FAILED) {
s3 = void 0;
} else {
peg$currPos = s3;
s3 = peg$FAILED;
}
if (s3 !== peg$FAILED) {
if (input.length > peg$currPos) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c56(s4);
s2 = s3;
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
if (s2 !== peg$FAILED) {
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$currPos;
s3 = peg$currPos;
peg$silentFails++;
s4 = peg$parseGlobSpecialShellChars();
peg$silentFails--;
if (s4 === peg$FAILED) {
s3 = void 0;
} else {
peg$currPos = s3;
s3 = peg$FAILED;
}
if (s3 !== peg$FAILED) {
if (input.length > peg$currPos) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c55); }
}
if (s4 !== peg$FAILED) {
peg$savedPos = s2;
s3 = peg$c56(s4);
s2 = s3;
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
}
} else {
s1 = peg$FAILED;
}
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c59(s1);
}
s0 = s1;
return s0;
}
function peg$parseEnvVariable() {

@@ -1970,3 +2096,3 @@ var s0, s1, s2;

s1 = [];
if (peg$c77.test(input.charAt(peg$currPos))) {
if (peg$c80.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1976,3 +2102,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c78); }
if (peg$silentFails === 0) { peg$fail(peg$c81); }
}

@@ -1982,3 +2108,3 @@ if (s2 !== peg$FAILED) {

s1.push(s2);
if (peg$c77.test(input.charAt(peg$currPos))) {
if (peg$c80.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -1988,3 +2114,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c78); }
if (peg$silentFails === 0) { peg$fail(peg$c81); }
}

@@ -1997,3 +2123,3 @@ }

peg$savedPos = s0;
s1 = peg$c79();
s1 = peg$c82();
}

@@ -2010,3 +2136,3 @@ s0 = s1;

s1 = [];
if (peg$c80.test(input.charAt(peg$currPos))) {
if (peg$c83.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -2016,3 +2142,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c81); }
if (peg$silentFails === 0) { peg$fail(peg$c84); }
}

@@ -2022,3 +2148,3 @@ if (s2 !== peg$FAILED) {

s1.push(s2);
if (peg$c80.test(input.charAt(peg$currPos))) {
if (peg$c83.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);

@@ -2028,3 +2154,3 @@ peg$currPos++;

s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c81); }
if (peg$silentFails === 0) { peg$fail(peg$c84); }
}

@@ -2037,3 +2163,3 @@ }

peg$savedPos = s0;
s1 = peg$c79();
s1 = peg$c82();
}

@@ -2048,3 +2174,3 @@ s0 = s1;

if (peg$c82.test(input.charAt(peg$currPos))) {
if (peg$c85.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -2054,3 +2180,3 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c83); }
if (peg$silentFails === 0) { peg$fail(peg$c86); }
}

@@ -2061,2 +2187,16 @@

function peg$parseGlobSpecialShellChars() {
var s0;
if (peg$c87.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c88); }
}
return s0;
}
function peg$parseS() {

@@ -2066,3 +2206,3 @@ var s0, s1;

s0 = [];
if (peg$c84.test(input.charAt(peg$currPos))) {
if (peg$c89.test(input.charAt(peg$currPos))) {
s1 = input.charAt(peg$currPos);

@@ -2072,3 +2212,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c85); }
if (peg$silentFails === 0) { peg$fail(peg$c90); }
}

@@ -2078,3 +2218,3 @@ if (s1 !== peg$FAILED) {

s0.push(s1);
if (peg$c84.test(input.charAt(peg$currPos))) {
if (peg$c89.test(input.charAt(peg$currPos))) {
s1 = input.charAt(peg$currPos);

@@ -2084,3 +2224,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c85); }
if (peg$silentFails === 0) { peg$fail(peg$c90); }
}

@@ -2087,0 +2227,0 @@ }

@@ -1,1 +0,3 @@

export declare function parseShell(source: string): import("./grammars/shell").ShellLine;
export declare function parseShell(source: string, options?: {
isGlobPattern: (arg: string) => boolean;
}): import("./grammars/shell").ShellLine;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const shell_1 = require("./grammars/shell");
function parseShell(source) {
function parseShell(source, options = { isGlobPattern: () => false }) {
try {
return shell_1.parse(source);
return shell_1.parse(source, options);
}

@@ -8,0 +8,0 @@ catch (error) {

{
"name": "@yarnpkg/parsers",
"version": "2.0.0-rc.10",
"version": "2.0.0-rc.11",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc