New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

icu-loader

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icu-loader - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

package-lock.json

7

__tests__/index.js

@@ -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('یکشنبه ۲۵ مهر ۱۳۹۵ ه‍.ش.')
})
})
})

10

package.json
{
"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"
}
}

12

README.md

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc