intl-messageformat-parser
Advanced tools
Comparing version 3.0.8 to 3.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.1.0](https://github.com/formatjs/formatjs/compare/intl-messageformat-parser@3.0.8...intl-messageformat-parser@3.1.0) (2019-09-03) | ||
### Features | ||
* **intl-messageformat-parser:** add UMD dist, fixes [#171](https://github.com/formatjs/formatjs/issues/171) ([94458c3](https://github.com/formatjs/formatjs/commit/94458c3)) | ||
## [3.0.8](https://github.com/formatjs/formatjs/compare/intl-messageformat-parser@3.0.7...intl-messageformat-parser@3.0.8) (2019-08-29) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -37,3 +44,3 @@ var types_1 = require("./types"); | ||
var newEls = parser_1.parse(newValue); | ||
(_a = opt.value).splice.apply(_a, [matchingLiteralElIndex, 1].concat(newEls)); | ||
(_a = opt.value).splice.apply(_a, __spreadArrays([matchingLiteralElIndex, 1], newEls)); | ||
} | ||
@@ -40,0 +47,0 @@ normalizeHashtagInPlural(opt.value); |
@@ -7,2 +7,9 @@ "use strict"; | ||
*/ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -81,5 +88,5 @@ var types_1 = require("./types"); | ||
type, | ||
[ | ||
__spreadArrays([ | ||
el.offset ? "offset:" + el.offset : '' | ||
].concat(Object.keys(el.options).map(function (id) { return id + "{" + printAST(el.options[id].value) + "}"; })).filter(Boolean) | ||
], Object.keys(el.options).map(function (id) { return id + "{" + printAST(el.options[id].value) + "}"; })).filter(Boolean) | ||
.join(' '), | ||
@@ -86,0 +93,0 @@ ].join(','); |
@@ -0,1 +1,8 @@ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import { isPluralElement, isLiteralElement, isSelectElement, } from './types'; | ||
@@ -35,3 +42,3 @@ import { parse } from './parser'; | ||
var newEls = parse(newValue); | ||
(_a = opt.value).splice.apply(_a, [matchingLiteralElIndex, 1].concat(newEls)); | ||
(_a = opt.value).splice.apply(_a, __spreadArrays([matchingLiteralElIndex, 1], newEls)); | ||
} | ||
@@ -38,0 +45,0 @@ normalizeHashtagInPlural(opt.value); |
@@ -6,2 +6,9 @@ /* | ||
*/ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import { isLiteralElement, isSelectElement, isArgumentElement, isDateElement, isTimeElement, isNumberElement, isPluralElement, TYPE, } from './types'; | ||
@@ -77,5 +84,5 @@ export function printAST(ast) { | ||
type, | ||
[ | ||
__spreadArrays([ | ||
el.offset ? "offset:" + el.offset : '' | ||
].concat(Object.keys(el.options).map(function (id) { return id + "{" + printAST(el.options[id].value) + "}"; })).filter(Boolean) | ||
], Object.keys(el.options).map(function (id) { return id + "{" + printAST(el.options[id].value) + "}"; })).filter(Boolean) | ||
.join(' '), | ||
@@ -82,0 +89,0 @@ ].join(','); |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "3.0.8", | ||
"version": "3.1.0", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"clean": "rimraf dist lib", | ||
"build": "node build.js && tsc && tsc -p tsconfig.cjs.json", | ||
"build": "node build.js && tsc && tsc -p tsconfig.cjs.json && rollup -c rollup.config.js", | ||
"benchmark": "node ./test/benchmark.js", | ||
@@ -45,3 +45,3 @@ "prepublish": "npm run build", | ||
"homepage": "https://github.com/formatjs/formatjs", | ||
"gitHead": "f1e7b5df123fc57dc48b0b8859e182c36be49b35" | ||
"gitHead": "d6ef29a67efac8e29e9812c661b9977f17c45e19" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
734638
35
10871