Socket
Socket
Sign inDemoInstall

intl-messageformat-parser

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat-parser - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

173

dist/parser.js

@@ -113,4 +113,3 @@ (function() {

peg$c29 = { type: "literal", value: "=", description: "\"=\"" },
peg$c30 = function(number) { return number; },
peg$c31 = function(selector, pattern) {
peg$c30 = function(selector, pattern) {
return {

@@ -122,39 +121,39 @@ type : 'optionalFormatPattern',

},
peg$c32 = "offset:",
peg$c33 = { type: "literal", value: "offset:", description: "\"offset:\"" },
peg$c34 = function(number) {
peg$c31 = "offset:",
peg$c32 = { type: "literal", value: "offset:", description: "\"offset:\"" },
peg$c33 = function(number) {
return number;
},
peg$c35 = { type: "other", description: "whitespace" },
peg$c36 = /^[ \t\n\r]/,
peg$c37 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" },
peg$c38 = { type: "other", description: "optionalWhitespace" },
peg$c39 = /^[0-9]/,
peg$c40 = { type: "class", value: "[0-9]", description: "[0-9]" },
peg$c41 = /^[0-9a-f]/i,
peg$c42 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" },
peg$c43 = "0",
peg$c44 = { type: "literal", value: "0", description: "\"0\"" },
peg$c45 = /^[1-9]/,
peg$c46 = { type: "class", value: "[1-9]", description: "[1-9]" },
peg$c47 = function(digits) {
peg$c34 = { type: "other", description: "whitespace" },
peg$c35 = /^[ \t\n\r]/,
peg$c36 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" },
peg$c37 = { type: "other", description: "optionalWhitespace" },
peg$c38 = /^[0-9]/,
peg$c39 = { type: "class", value: "[0-9]", description: "[0-9]" },
peg$c40 = /^[0-9a-f]/i,
peg$c41 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" },
peg$c42 = "0",
peg$c43 = { type: "literal", value: "0", description: "\"0\"" },
peg$c44 = /^[1-9]/,
peg$c45 = { type: "class", value: "[1-9]", description: "[1-9]" },
peg$c46 = function(digits) {
return parseInt(digits, 10);
},
peg$c48 = /^[^{}\\\0-\x1F \t\n\r]/,
peg$c49 = { type: "class", value: "[^{}\\\\\\0-\\x1F \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F \\t\\n\\r]" },
peg$c50 = "\\#",
peg$c51 = { type: "literal", value: "\\#", description: "\"\\\\#\"" },
peg$c52 = function() { return '\\#'; },
peg$c53 = "\\{",
peg$c54 = { type: "literal", value: "\\{", description: "\"\\\\{\"" },
peg$c55 = function() { return '\u007B'; },
peg$c56 = "\\}",
peg$c57 = { type: "literal", value: "\\}", description: "\"\\\\}\"" },
peg$c58 = function() { return '\u007D'; },
peg$c59 = "\\u",
peg$c60 = { type: "literal", value: "\\u", description: "\"\\\\u\"" },
peg$c61 = function(digits) {
peg$c47 = /^[^{}\\\0-\x1F \t\n\r]/,
peg$c48 = { type: "class", value: "[^{}\\\\\\0-\\x1F \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F \\t\\n\\r]" },
peg$c49 = "\\#",
peg$c50 = { type: "literal", value: "\\#", description: "\"\\\\#\"" },
peg$c51 = function() { return '\\#'; },
peg$c52 = "\\{",
peg$c53 = { type: "literal", value: "\\{", description: "\"\\\\{\"" },
peg$c54 = function() { return '\u007B'; },
peg$c55 = "\\}",
peg$c56 = { type: "literal", value: "\\}", description: "\"\\\\}\"" },
peg$c57 = function() { return '\u007D'; },
peg$c58 = "\\u",
peg$c59 = { type: "literal", value: "\\u", description: "\"\\\\u\"" },
peg$c60 = function(digits) {
return String.fromCharCode(parseInt(digits, 16));
},
peg$c62 = function(chars) { return chars.join(''); },
peg$c61 = function(chars) { return chars.join(''); },

@@ -821,26 +820,30 @@ peg$currPos = 0,

function peg$parseselector() {
var s0, s1, s2;
var s0, s1, s2, s3;
s0 = peg$currPos;
s1 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 61) {
s1 = peg$c28;
s2 = peg$c28;
peg$currPos++;
} else {
s1 = peg$FAILED;
s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c29); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsenumber();
if (s2 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c30(s2);
s0 = s1;
if (s2 !== peg$FAILED) {
s3 = peg$parsenumber();
if (s3 !== peg$FAILED) {
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s0;
s0 = peg$c1;
peg$currPos = s1;
s1 = peg$c1;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
peg$currPos = s1;
s1 = peg$c1;
}
if (s1 !== peg$FAILED) {
s1 = input.substring(s0, peg$currPos);
}
s0 = s1;
if (s0 === peg$FAILED) {

@@ -886,3 +889,3 @@ s0 = peg$parsechars();

peg$reportedPos = s0;
s1 = peg$c31(s2, s6);
s1 = peg$c30(s2, s6);
s0 = s1;

@@ -929,8 +932,8 @@ } else {

s0 = peg$currPos;
if (input.substr(peg$currPos, 7) === peg$c32) {
s1 = peg$c32;
if (input.substr(peg$currPos, 7) === peg$c31) {
s1 = peg$c31;
peg$currPos += 7;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c33); }
if (peg$silentFails === 0) { peg$fail(peg$c32); }
}

@@ -943,3 +946,3 @@ if (s1 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c34(s3);
s1 = peg$c33(s3);
s0 = s1;

@@ -967,3 +970,3 @@ } else {

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

@@ -973,3 +976,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c37); }
if (peg$silentFails === 0) { peg$fail(peg$c36); }
}

@@ -979,3 +982,3 @@ if (s1 !== peg$FAILED) {

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

@@ -985,3 +988,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c37); }
if (peg$silentFails === 0) { peg$fail(peg$c36); }
}

@@ -995,3 +998,3 @@ }

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c35); }
if (peg$silentFails === 0) { peg$fail(peg$c34); }
}

@@ -1020,3 +1023,3 @@

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c38); }
if (peg$silentFails === 0) { peg$fail(peg$c37); }
}

@@ -1030,3 +1033,3 @@

if (peg$c39.test(input.charAt(peg$currPos))) {
if (peg$c38.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1036,3 +1039,3 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c40); }
if (peg$silentFails === 0) { peg$fail(peg$c39); }
}

@@ -1046,3 +1049,3 @@

if (peg$c41.test(input.charAt(peg$currPos))) {
if (peg$c40.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1052,3 +1055,3 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c42); }
if (peg$silentFails === 0) { peg$fail(peg$c41); }
}

@@ -1064,7 +1067,7 @@

if (input.charCodeAt(peg$currPos) === 48) {
s1 = peg$c43;
s1 = peg$c42;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c44); }
if (peg$silentFails === 0) { peg$fail(peg$c43); }
}

@@ -1074,3 +1077,3 @@ if (s1 === peg$FAILED) {

s2 = peg$currPos;
if (peg$c45.test(input.charAt(peg$currPos))) {
if (peg$c44.test(input.charAt(peg$currPos))) {
s3 = input.charAt(peg$currPos);

@@ -1080,3 +1083,3 @@ peg$currPos++;

s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c46); }
if (peg$silentFails === 0) { peg$fail(peg$c45); }
}

@@ -1108,3 +1111,3 @@ if (s3 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c47(s1);
s1 = peg$c46(s1);
}

@@ -1119,3 +1122,3 @@ s0 = s1;

if (peg$c48.test(input.charAt(peg$currPos))) {
if (peg$c47.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1125,16 +1128,16 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c49); }
if (peg$silentFails === 0) { peg$fail(peg$c48); }
}
if (s0 === peg$FAILED) {
s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c50) {
s1 = peg$c50;
if (input.substr(peg$currPos, 2) === peg$c49) {
s1 = peg$c49;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c51); }
if (peg$silentFails === 0) { peg$fail(peg$c50); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c52();
s1 = peg$c51();
}

@@ -1144,12 +1147,12 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c53) {
s1 = peg$c53;
if (input.substr(peg$currPos, 2) === peg$c52) {
s1 = peg$c52;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c53); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c55();
s1 = peg$c54();
}

@@ -1159,12 +1162,12 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c56) {
s1 = peg$c56;
if (input.substr(peg$currPos, 2) === peg$c55) {
s1 = peg$c55;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c57); }
if (peg$silentFails === 0) { peg$fail(peg$c56); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c58();
s1 = peg$c57();
}

@@ -1174,8 +1177,8 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c59) {
s1 = peg$c59;
if (input.substr(peg$currPos, 2) === peg$c58) {
s1 = peg$c58;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c60); }
if (peg$silentFails === 0) { peg$fail(peg$c59); }
}

@@ -1217,3 +1220,3 @@ if (s1 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c61(s2);
s1 = peg$c60(s2);
s0 = s1;

@@ -1252,3 +1255,3 @@ } else {

peg$reportedPos = s0;
s1 = peg$c62(s1);
s1 = peg$c61(s1);
}

@@ -1255,0 +1258,0 @@ s0 = s1;

{
"name": "intl-messageformat-parser",
"version": "0.2.0",
"version": "0.3.0",
"description": "Parses ICU message strings to an AST that can be used to format the messages for a person's locale.",

@@ -5,0 +5,0 @@ "main": "dist/parser.js",

@@ -110,4 +110,3 @@ export default (function() {

peg$c29 = { type: "literal", value: "=", description: "\"=\"" },
peg$c30 = function(number) { return number; },
peg$c31 = function(selector, pattern) {
peg$c30 = function(selector, pattern) {
return {

@@ -119,39 +118,39 @@ type : 'optionalFormatPattern',

},
peg$c32 = "offset:",
peg$c33 = { type: "literal", value: "offset:", description: "\"offset:\"" },
peg$c34 = function(number) {
peg$c31 = "offset:",
peg$c32 = { type: "literal", value: "offset:", description: "\"offset:\"" },
peg$c33 = function(number) {
return number;
},
peg$c35 = { type: "other", description: "whitespace" },
peg$c36 = /^[ \t\n\r]/,
peg$c37 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" },
peg$c38 = { type: "other", description: "optionalWhitespace" },
peg$c39 = /^[0-9]/,
peg$c40 = { type: "class", value: "[0-9]", description: "[0-9]" },
peg$c41 = /^[0-9a-f]/i,
peg$c42 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" },
peg$c43 = "0",
peg$c44 = { type: "literal", value: "0", description: "\"0\"" },
peg$c45 = /^[1-9]/,
peg$c46 = { type: "class", value: "[1-9]", description: "[1-9]" },
peg$c47 = function(digits) {
peg$c34 = { type: "other", description: "whitespace" },
peg$c35 = /^[ \t\n\r]/,
peg$c36 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" },
peg$c37 = { type: "other", description: "optionalWhitespace" },
peg$c38 = /^[0-9]/,
peg$c39 = { type: "class", value: "[0-9]", description: "[0-9]" },
peg$c40 = /^[0-9a-f]/i,
peg$c41 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" },
peg$c42 = "0",
peg$c43 = { type: "literal", value: "0", description: "\"0\"" },
peg$c44 = /^[1-9]/,
peg$c45 = { type: "class", value: "[1-9]", description: "[1-9]" },
peg$c46 = function(digits) {
return parseInt(digits, 10);
},
peg$c48 = /^[^{}\\\0-\x1F \t\n\r]/,
peg$c49 = { type: "class", value: "[^{}\\\\\\0-\\x1F \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F \\t\\n\\r]" },
peg$c50 = "\\#",
peg$c51 = { type: "literal", value: "\\#", description: "\"\\\\#\"" },
peg$c52 = function() { return '\\#'; },
peg$c53 = "\\{",
peg$c54 = { type: "literal", value: "\\{", description: "\"\\\\{\"" },
peg$c55 = function() { return '\u007B'; },
peg$c56 = "\\}",
peg$c57 = { type: "literal", value: "\\}", description: "\"\\\\}\"" },
peg$c58 = function() { return '\u007D'; },
peg$c59 = "\\u",
peg$c60 = { type: "literal", value: "\\u", description: "\"\\\\u\"" },
peg$c61 = function(digits) {
peg$c47 = /^[^{}\\\0-\x1F \t\n\r]/,
peg$c48 = { type: "class", value: "[^{}\\\\\\0-\\x1F \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F \\t\\n\\r]" },
peg$c49 = "\\#",
peg$c50 = { type: "literal", value: "\\#", description: "\"\\\\#\"" },
peg$c51 = function() { return '\\#'; },
peg$c52 = "\\{",
peg$c53 = { type: "literal", value: "\\{", description: "\"\\\\{\"" },
peg$c54 = function() { return '\u007B'; },
peg$c55 = "\\}",
peg$c56 = { type: "literal", value: "\\}", description: "\"\\\\}\"" },
peg$c57 = function() { return '\u007D'; },
peg$c58 = "\\u",
peg$c59 = { type: "literal", value: "\\u", description: "\"\\\\u\"" },
peg$c60 = function(digits) {
return String.fromCharCode(parseInt(digits, 16));
},
peg$c62 = function(chars) { return chars.join(''); },
peg$c61 = function(chars) { return chars.join(''); },

@@ -818,26 +817,30 @@ peg$currPos = 0,

function peg$parseselector() {
var s0, s1, s2;
var s0, s1, s2, s3;
s0 = peg$currPos;
s1 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 61) {
s1 = peg$c28;
s2 = peg$c28;
peg$currPos++;
} else {
s1 = peg$FAILED;
s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c29); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsenumber();
if (s2 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c30(s2);
s0 = s1;
if (s2 !== peg$FAILED) {
s3 = peg$parsenumber();
if (s3 !== peg$FAILED) {
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s0;
s0 = peg$c1;
peg$currPos = s1;
s1 = peg$c1;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
peg$currPos = s1;
s1 = peg$c1;
}
if (s1 !== peg$FAILED) {
s1 = input.substring(s0, peg$currPos);
}
s0 = s1;
if (s0 === peg$FAILED) {

@@ -883,3 +886,3 @@ s0 = peg$parsechars();

peg$reportedPos = s0;
s1 = peg$c31(s2, s6);
s1 = peg$c30(s2, s6);
s0 = s1;

@@ -926,8 +929,8 @@ } else {

s0 = peg$currPos;
if (input.substr(peg$currPos, 7) === peg$c32) {
s1 = peg$c32;
if (input.substr(peg$currPos, 7) === peg$c31) {
s1 = peg$c31;
peg$currPos += 7;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c33); }
if (peg$silentFails === 0) { peg$fail(peg$c32); }
}

@@ -940,3 +943,3 @@ if (s1 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c34(s3);
s1 = peg$c33(s3);
s0 = s1;

@@ -964,3 +967,3 @@ } else {

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

@@ -970,3 +973,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c37); }
if (peg$silentFails === 0) { peg$fail(peg$c36); }
}

@@ -976,3 +979,3 @@ if (s1 !== peg$FAILED) {

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

@@ -982,3 +985,3 @@ peg$currPos++;

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c37); }
if (peg$silentFails === 0) { peg$fail(peg$c36); }
}

@@ -992,3 +995,3 @@ }

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c35); }
if (peg$silentFails === 0) { peg$fail(peg$c34); }
}

@@ -1017,3 +1020,3 @@

s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c38); }
if (peg$silentFails === 0) { peg$fail(peg$c37); }
}

@@ -1027,3 +1030,3 @@

if (peg$c39.test(input.charAt(peg$currPos))) {
if (peg$c38.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1033,3 +1036,3 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c40); }
if (peg$silentFails === 0) { peg$fail(peg$c39); }
}

@@ -1043,3 +1046,3 @@

if (peg$c41.test(input.charAt(peg$currPos))) {
if (peg$c40.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1049,3 +1052,3 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c42); }
if (peg$silentFails === 0) { peg$fail(peg$c41); }
}

@@ -1061,7 +1064,7 @@

if (input.charCodeAt(peg$currPos) === 48) {
s1 = peg$c43;
s1 = peg$c42;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c44); }
if (peg$silentFails === 0) { peg$fail(peg$c43); }
}

@@ -1071,3 +1074,3 @@ if (s1 === peg$FAILED) {

s2 = peg$currPos;
if (peg$c45.test(input.charAt(peg$currPos))) {
if (peg$c44.test(input.charAt(peg$currPos))) {
s3 = input.charAt(peg$currPos);

@@ -1077,3 +1080,3 @@ peg$currPos++;

s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c46); }
if (peg$silentFails === 0) { peg$fail(peg$c45); }
}

@@ -1105,3 +1108,3 @@ if (s3 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c47(s1);
s1 = peg$c46(s1);
}

@@ -1116,3 +1119,3 @@ s0 = s1;

if (peg$c48.test(input.charAt(peg$currPos))) {
if (peg$c47.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);

@@ -1122,16 +1125,16 @@ peg$currPos++;

s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c49); }
if (peg$silentFails === 0) { peg$fail(peg$c48); }
}
if (s0 === peg$FAILED) {
s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c50) {
s1 = peg$c50;
if (input.substr(peg$currPos, 2) === peg$c49) {
s1 = peg$c49;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c51); }
if (peg$silentFails === 0) { peg$fail(peg$c50); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c52();
s1 = peg$c51();
}

@@ -1141,12 +1144,12 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c53) {
s1 = peg$c53;
if (input.substr(peg$currPos, 2) === peg$c52) {
s1 = peg$c52;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
if (peg$silentFails === 0) { peg$fail(peg$c53); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c55();
s1 = peg$c54();
}

@@ -1156,12 +1159,12 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c56) {
s1 = peg$c56;
if (input.substr(peg$currPos, 2) === peg$c55) {
s1 = peg$c55;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c57); }
if (peg$silentFails === 0) { peg$fail(peg$c56); }
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c58();
s1 = peg$c57();
}

@@ -1171,8 +1174,8 @@ s0 = s1;

s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c59) {
s1 = peg$c59;
if (input.substr(peg$currPos, 2) === peg$c58) {
s1 = peg$c58;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c60); }
if (peg$silentFails === 0) { peg$fail(peg$c59); }
}

@@ -1214,3 +1217,3 @@ if (s1 !== peg$FAILED) {

peg$reportedPos = s0;
s1 = peg$c61(s2);
s1 = peg$c60(s2);
s0 = s1;

@@ -1249,3 +1252,3 @@ } else {

peg$reportedPos = s0;
s1 = peg$c62(s1);
s1 = peg$c61(s1);
}

@@ -1252,0 +1255,0 @@ s0 = s1;

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