🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

messageformat

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

messageformat - npm Package Compare versions

Comparing version

to
4.0.0-12

6

lib/data-model/stringify.js

@@ -88,3 +88,3 @@ import { isValidUnquotedLiteral } from "../cst/names.js";

if (typeof el === 'string')
res += stringifyString(el, quoted);
res += el.replace(/[\\{}]/g, '\\$&');
else if (el.type === 'markup')

@@ -97,6 +97,2 @@ res += stringifyMarkup(el);

}
function stringifyString(str, quoted) {
const esc = quoted ? /[\\|]/g : /[\\{}]/g;
return str.replace(esc, '\\$&');
}
function stringifyExpression({ arg, attributes, functionRef }) {

@@ -103,0 +99,0 @@ let res;

2

package.json
{
"name": "messageformat",
"version": "4.0.0-11",
"version": "4.0.0-12",
"description": "Intl.MessageFormat / Unicode MessageFormat 2 parser, runtime and polyfill",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,3 +16,3 @@ This library provides a formatter and other tools for [Unicode MessageFormat 2.0] (MF2),

```sh
npm install --save-exact messageformat@next
npm install --save messageformat
```

@@ -19,0 +19,0 @@