Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jalali-moment

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jalali-moment - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

jalali-moment.js

@@ -12,3 +12,3 @@

, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g
, persianMap ="۱۲۳۴۵۶۷۸۹۰".split("")
, parseTokenOneOrTwoDigits = /\d\d?/

@@ -614,8 +614,5 @@ , parseTokenOneToThreeDigits = /\d{1,3}/

};
function convertToPerianNumber(s) {
var map =[
"&\#1776;","&\#1777;","&\#1778;","&\#1779;","&\#1780;",
"&\#1781;","&\#1782;","&\#1783;","&\#1784;","&\#1785;"
];
return map[parseInt(s)];
return persianMap[parseInt(s)];
}

@@ -622,0 +619,0 @@

{
"name": "jalali-moment",
"version": "1.2.1",
"version": "1.2.2",
"description": "Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.",

@@ -5,0 +5,0 @@ "author": {

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