icu-loader
Advanced tools
Comparing version 3.0.1 to 4.0.0
@@ -39,2 +39,9 @@ let IDate = require('../src/date') | ||
}) | ||
// Expect "Sunday, October 16, 2016" | ||
it('Farsi locale', () => { | ||
new IDate(date).toLocaleString('fa-IR', dateOptions).then(result => { | ||
expect(result).toBe('یکشنبه ۲۵ مهر ۱۳۹۵ ه.ش.') | ||
}) | ||
}) | ||
}) |
{ | ||
"name": "icu-loader", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "A package to load full ICU data in Node.js environment with JavaScript Intl API", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"full-icu": "^1.0.3", | ||
"full-icu": "^1.2.0", | ||
"lodash.isdate": "^4.0.1", | ||
@@ -40,10 +40,8 @@ "lodash.isnumber": "^3.0.3", | ||
"babel-loader": "^6.2.10", | ||
"jest-cli": "^18.0.0", | ||
"jest": "^22.1.2", | ||
"jest-cli": "^22.1.2", | ||
"sloc": "^0.1.11", | ||
"snazzy": "^5.0.0", | ||
"standard": "^8.6.0" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
} | ||
} |
@@ -44,5 +44,5 @@ # ICU Loader · [![Travis](https://img.shields.io/travis/msudgh/icu-loader.svg?style=flat-square)](https://travis-ci.org/msudgh/icu-loader) [![npm](https://img.shields.io/npm/v/icu-loader.svg?style=flat-square)](https://www.npmjs.com/package/icu-loader) [![npm](https://img.shields.io/npm/l/icu-loader.svg?style=flat-square)](https://www.npmjs.com/package/icu-loader) | ||
// CommonJS | ||
var date = require('icu-loader').date; | ||
var string = require('icu-loader').string; | ||
var number = require('icu-loader').number; | ||
let date = require('icu-loader').IDate; | ||
let string = require('icu-loader').IString; | ||
let number = require('icu-loader').INumber; | ||
``` | ||
@@ -79,3 +79,3 @@ According to JavaScript Intl API, the module has the following objects ([IDate](#date), [IString](#string), [INumber](#number)) and various methods. | ||
let date = new IDate (new Date(2016, 9, 16)) | ||
let date = new IDate(new Date(2016, 9, 16)) | ||
@@ -194,3 +194,3 @@ // US English uses month-day-year order and 12-hour time with AM/PM | ||
Copyright © 2016, Masoud Ghorbani | ||
Copyright © 2018, Masoud Ghorbani | ||
@@ -204,2 +204,2 @@ [1]: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.2.0 | ||
[7]: https://msudgh.mit-license.org/ | ||
[8]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl | ||
[8]: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
158432
13
4533
202
6
2
Updatedfull-icu@^1.2.0