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

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.3.1 to 0.3.2

138

dist/parser.js

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

peg$c0 = [],
peg$c1 = peg$FAILED,
peg$c2 = function(elements) {
peg$c1 = function(elements) {
return {

@@ -47,2 +46,3 @@ type : 'messageFormatPattern',

},
peg$c2 = peg$FAILED,
peg$c3 = function(text) {

@@ -340,13 +340,9 @@ var string = '',

s2 = peg$parsemessageFormatElement();
if (s2 !== peg$FAILED) {
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$parsemessageFormatElement();
}
} else {
s1 = peg$c1;
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$parsemessageFormatElement();
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c2(s1);
s1 = peg$c1(s1);
}

@@ -385,11 +381,11 @@ s0 = s1;

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}

@@ -410,15 +406,15 @@ if (s2 !== peg$FAILED) {

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
}
} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -482,3 +478,3 @@ if (s1 !== peg$FAILED) {

} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -529,11 +525,11 @@ if (s1 !== peg$FAILED) {

peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}
} else {
peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}
} else {
peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}

@@ -559,27 +555,27 @@ if (s5 === peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -653,11 +649,11 @@

peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}

@@ -673,11 +669,11 @@ if (s3 === peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -727,3 +723,3 @@

} else {
s7 = peg$c1;
s7 = peg$c2;
}

@@ -736,27 +732,27 @@ if (s7 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -799,3 +795,3 @@

} else {
s5 = peg$c1;
s5 = peg$c2;
}

@@ -808,19 +804,19 @@ if (s5 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -850,7 +846,7 @@

peg$currPos = s1;
s1 = peg$c1;
s1 = peg$c2;
}
} else {
peg$currPos = s1;
s1 = peg$c1;
s1 = peg$c2;
}

@@ -905,31 +901,31 @@ if (s1 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -961,11 +957,11 @@

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -1000,3 +996,3 @@

} else {
s0 = peg$c1;
s0 = peg$c2;
}

@@ -1097,7 +1093,7 @@ peg$silentFails--;

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}

@@ -1194,15 +1190,15 @@ if (s2 !== peg$FAILED) {

peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}

@@ -1219,7 +1215,7 @@ if (s3 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -1246,3 +1242,3 @@ }

} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -1249,0 +1245,0 @@ if (s1 !== peg$FAILED) {

{
"name": "intl-messageformat-parser",
"version": "0.3.1",
"version": "0.3.2",
"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",

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

peg$c0 = [],
peg$c1 = peg$FAILED,
peg$c2 = function(elements) {
peg$c1 = function(elements) {
return {

@@ -44,2 +43,3 @@ type : 'messageFormatPattern',

},
peg$c2 = peg$FAILED,
peg$c3 = function(text) {

@@ -337,13 +337,9 @@ var string = '',

s2 = peg$parsemessageFormatElement();
if (s2 !== peg$FAILED) {
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$parsemessageFormatElement();
}
} else {
s1 = peg$c1;
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$parsemessageFormatElement();
}
if (s1 !== peg$FAILED) {
peg$reportedPos = s0;
s1 = peg$c2(s1);
s1 = peg$c1(s1);
}

@@ -382,11 +378,11 @@ s0 = s1;

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}

@@ -407,15 +403,15 @@ if (s2 !== peg$FAILED) {

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
}
} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -479,3 +475,3 @@ if (s1 !== peg$FAILED) {

} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -526,11 +522,11 @@ if (s1 !== peg$FAILED) {

peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}
} else {
peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}
} else {
peg$currPos = s5;
s5 = peg$c1;
s5 = peg$c2;
}

@@ -556,27 +552,27 @@ if (s5 === peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -650,11 +646,11 @@

peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}

@@ -670,11 +666,11 @@ if (s3 === peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -724,3 +720,3 @@

} else {
s7 = peg$c1;
s7 = peg$c2;
}

@@ -733,27 +729,27 @@ if (s7 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -796,3 +792,3 @@

} else {
s5 = peg$c1;
s5 = peg$c2;
}

@@ -805,19 +801,19 @@ if (s5 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -847,7 +843,7 @@

peg$currPos = s1;
s1 = peg$c1;
s1 = peg$c2;
}
} else {
peg$currPos = s1;
s1 = peg$c1;
s1 = peg$c2;
}

@@ -902,31 +898,31 @@ if (s1 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -958,11 +954,11 @@

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -997,3 +993,3 @@

} else {
s0 = peg$c1;
s0 = peg$c2;
}

@@ -1094,7 +1090,7 @@ peg$silentFails--;

peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}
} else {
peg$currPos = s2;
s2 = peg$c1;
s2 = peg$c2;
}

@@ -1191,15 +1187,15 @@ if (s2 !== peg$FAILED) {

peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}
} else {
peg$currPos = s3;
s3 = peg$c1;
s3 = peg$c2;
}

@@ -1216,7 +1212,7 @@ if (s3 !== peg$FAILED) {

peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}
} else {
peg$currPos = s0;
s0 = peg$c1;
s0 = peg$c2;
}

@@ -1243,3 +1239,3 @@ }

} else {
s1 = peg$c1;
s1 = peg$c2;
}

@@ -1246,0 +1242,0 @@ if (s1 !== peg$FAILED) {

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