@phensley/messageformat
Advanced tools
Comparing version 1.2.7 to 1.3.0
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=args.js.map |
@@ -0,3 +1,4 @@ | ||
export * from './args'; | ||
export * from './converter'; | ||
export * from './evaluation'; | ||
//# sourceMappingURL=index.js.map |
@@ -131,2 +131,2 @@ /** | ||
*/ | ||
export declare const buildMessageMatcher: (names: string[], sticky?: boolean) => StickyMatcher; | ||
export declare const buildMessageMatcher: (names: string[], sticky?: boolean) => MessageMatcher; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=types.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultMessageArgConverter = void 0; | ||
var decimal_1 = require("@phensley/decimal"); | ||
@@ -4,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MessageEngine = void 0; | ||
var decimal_1 = require("@phensley/decimal"); | ||
@@ -4,0 +5,0 @@ var get = function (key, args) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./args"), exports); | ||
tslib_1.__exportStar(require("./converter"), exports); | ||
tslib_1.__exportStar(require("./evaluation"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MessageFormatter = void 0; | ||
var cldr_utils_1 = require("@phensley/cldr-utils"); | ||
@@ -4,0 +5,0 @@ var plurals_1 = require("@phensley/plurals"); |
@@ -131,2 +131,2 @@ /** | ||
*/ | ||
export declare const buildMessageMatcher: (names: string[], sticky?: boolean) => StickyMatcher; | ||
export declare const buildMessageMatcher: (names: string[], sticky?: boolean) => MessageMatcher; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildMessageMatcher = exports.substringRegexp = exports.stickyRegexp = exports.SubstringMatcher = exports.StickyMatcher = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -170,3 +171,4 @@ var patterns = { | ||
*/ | ||
exports.stickyRegexp = function (pattern) { return new RegExp(pattern, 'y'); }; | ||
var stickyRegexp = function (pattern) { return new RegExp(pattern, 'y'); }; | ||
exports.stickyRegexp = stickyRegexp; | ||
/** | ||
@@ -177,3 +179,4 @@ * Construct a regular expression for use in a SubstringMatcher. | ||
*/ | ||
exports.substringRegexp = function (pattern) { return new RegExp('^' + pattern, 'g'); }; | ||
var substringRegexp = function (pattern) { return new RegExp('^' + pattern, 'g'); }; | ||
exports.substringRegexp = substringRegexp; | ||
/** | ||
@@ -186,6 +189,7 @@ * Constructs the right instance of matcher based on the runtime environment's | ||
*/ | ||
exports.buildMessageMatcher = function (names, sticky) { | ||
var buildMessageMatcher = function (names, sticky) { | ||
if (sticky === void 0) { sticky = hasStickyRegexp; } | ||
return new (sticky ? StickyMatcher : SubstringMatcher)(names, sticky ? exports.stickyRegexp : exports.substringRegexp); | ||
}; | ||
exports.buildMessageMatcher = buildMessageMatcher; | ||
//# sourceMappingURL=matcher.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseMessagePattern = void 0; | ||
/** | ||
@@ -9,5 +10,6 @@ * Parses a string into message code. The result can be used to evaluate the | ||
*/ | ||
exports.parseMessagePattern = function (raw, matcher) { | ||
var parseMessagePattern = function (raw, matcher) { | ||
return new MessagePatternParser(raw, matcher).parse(); | ||
}; | ||
exports.parseMessagePattern = parseMessagePattern; | ||
/** | ||
@@ -14,0 +16,0 @@ * Hand-implemented parser for ICU message format. Designed to be compact and |
{ | ||
"name": "@phensley/messageformat", | ||
"version": "1.2.7", | ||
"version": "1.3.0", | ||
"description": "Extensible ICU message formatter", | ||
@@ -39,24 +39,24 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@phensley/cldr-utils": "^1.2.7", | ||
"@phensley/decimal": "^1.2.7", | ||
"@phensley/plurals": "^1.2.7", | ||
"tslib": "^1.13.0" | ||
"@phensley/cldr-utils": "^1.3.0", | ||
"@phensley/decimal": "^1.3.0", | ||
"@phensley/plurals": "^1.3.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.8.0", | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^14.0.1", | ||
"@typescript-eslint/eslint-plugin": "^2.33.0", | ||
"@typescript-eslint/parser": "^2.33.0", | ||
"@microsoft/api-extractor": "^7.18.5", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.29.1", | ||
"@typescript-eslint/parser": "^4.29.1", | ||
"beautify-benchmark": "^0.2.4", | ||
"benchmark": "^2.1.4", | ||
"chalk": "^4.0.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jest": "^26.0.1", | ||
"prettier": "^2.0.5", | ||
"chalk": "^4.1.2", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^25.5.1", | ||
"typescript": "~3.8.3" | ||
"ts-jest": "^27.0.4", | ||
"typescript": "~4.3.5" | ||
}, | ||
@@ -76,3 +76,3 @@ "jest": { | ||
}, | ||
"gitHead": "b67e55a91ddf420dada2375c27215b515794dbf7" | ||
"gitHead": "a0578557c1a781fecf166395ee0b9d14d68ad2bb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141286
2478
- Removedtslib@1.14.1(transitive)
Updated@phensley/cldr-utils@^1.3.0
Updated@phensley/decimal@^1.3.0
Updated@phensley/plurals@^1.3.0
Updatedtslib@^2.3.1