intl-messageformat
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -5,10 +5,8 @@ /* jshint node:true */ | ||
var IntlMessageFormat = require('./lib/core').default; | ||
var IntlMessageFormat = require('./lib/main').default; | ||
// Add all locale data to `IntlMessageFormat`; | ||
// Add all locale data to `IntlMessageFormat`. This module will be ignored when | ||
// bundling for the browser with Browserify/Webpack. | ||
require('./lib/locales'); | ||
// Set the default locale to English. | ||
IntlMessageFormat.defaultLocale = 'en'; | ||
// Re-export `IntlMessageFormat` as the CommonJS default exports with all the | ||
@@ -15,0 +13,0 @@ // locale data registered, and with English set as the default locale. Define |
"use strict"; | ||
exports["default"] = Compiler; | ||
Object.seal(Object.defineProperties(exports, { | ||
default: { | ||
get: function() { | ||
return src$compiler$$default; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var src$compiler$$default = Compiler; | ||
function Compiler(locales, formats, pluralFn) { | ||
@@ -16,0 +5,0 @@ this.locales = locales; |
"use strict"; | ||
Object.seal(Object.defineProperties(exports, { | ||
default: { | ||
get: function() { | ||
return src$core$$default; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var src$utils$$ = require("./utils"), src$es5$$ = require("./es5"), src$compiler$$ = require("./compiler"), intl$messageformat$parser$$ = require("intl-messageformat-parser"); | ||
var src$core$$default = MessageFormat; | ||
exports["default"] = MessageFormat; | ||
@@ -16,0 +5,0 @@ // -- MessageFormat -------------------------------------------------------- |
"use strict"; | ||
exports["default"] = {"locale":"en","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";return"other";}}; | ||
Object.seal(Object.defineProperties(exports, { | ||
default: { | ||
get: function() { | ||
return src$en$$default; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var src$en$$default = {"locale":"en","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";return"other";}}; | ||
//# sourceMappingURL=en.js.map |
"use strict"; | ||
Object.seal(Object.defineProperties(exports, { | ||
defineProperty: { | ||
get: function() { | ||
return defineProperty; | ||
}, | ||
enumerable: true | ||
}, | ||
objCreate: { | ||
get: function() { | ||
return objCreate; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var src$utils$$ = require("./utils"); | ||
@@ -58,3 +39,4 @@ | ||
}; | ||
exports.defineProperty = defineProperty, exports.objCreate = objCreate; | ||
//# sourceMappingURL=es5.js.map |
"use strict"; | ||
Object.seal(Object.defineProperties(exports, { | ||
default: { | ||
get: function() { | ||
return src$main$$default; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var src$core$$ = require("./core"), src$en$$ = require("./en"); | ||
@@ -18,4 +7,4 @@ | ||
var src$main$$default = src$core$$.default; | ||
exports["default"] = src$core$$.default; | ||
//# sourceMappingURL=main.js.map |
"use strict"; | ||
Object.seal(Object.defineProperties(exports, { | ||
hop: { | ||
get: function() { | ||
return hop; | ||
}, | ||
enumerable: true | ||
}, | ||
extend: { | ||
get: function() { | ||
return extend; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
exports.extend = extend; | ||
var hop = Object.prototype.hasOwnProperty; | ||
@@ -40,3 +22,4 @@ | ||
} | ||
exports.hop = hop; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "intl-messageformat", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -31,2 +31,6 @@ "keywords": [ | ||
"jsnext:main": "src/main.js", | ||
"browser": { | ||
"./lib/locales": false, | ||
"./lib/locales.js": false | ||
}, | ||
"dependencies": { | ||
@@ -40,8 +44,8 @@ "intl-messageformat-parser": "1.0.0" | ||
"grunt-benchmark": "^0.3.0", | ||
"grunt-bundle-jsnext-lib": "^0.2.1", | ||
"grunt-bundle-jsnext-lib": "^0.4.1", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-contrib-concat": "^0.5.0", | ||
"grunt-contrib-connect": "~0.8.0", | ||
"grunt-contrib-copy": "^0.6.0", | ||
"grunt-contrib-connect": "^0.9.0", | ||
"grunt-contrib-copy": "^0.7.0", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
@@ -53,3 +57,3 @@ "grunt-contrib-uglify": "^0.6.0", | ||
"istanbul": "^0.3.0", | ||
"mocha": "^1.21.4", | ||
"mocha": "^2.0.1", | ||
"xunit-file": "0.0.5" | ||
@@ -56,0 +60,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
518238
4496