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 3.3.0 to 3.3.1

20

jalali-moment.js

@@ -156,2 +156,3 @@

switch (units) {
case "week" : return "jWeek";
case "year" : return "jYear";

@@ -805,3 +806,4 @@ case "month" : return "jMonth";

function isJalali (momentObj) {
return momentObj.calSystem === 1 || (moment.justUseJalali && momentObj.calSystem !== 2);
var calSystem = momentObj ? momentObj.calSystem : 1;
return calSystem === 1 || (moment.justUseJalali && calSystem !== 2);
}

@@ -855,11 +857,15 @@

jMoment.fn.startOf = function (units) {
units = normalizeUnits(units, this);
if( units === "jweek"){
var nunit = normalizeUnits(units, this);
if( nunit === "jweek"){
return this.startOf("day").subtract(this.jDay() , "day");
}
if (units === "jyear" || units === "jmonth") {
if (units === "jyear") {
this.jMonth(0);
}
if (nunit === "jyear") {
this.jMonth(0);
nunit = "jmonth";
}
if (nunit === "jmonth") {
this.jDate(1);
nunit = "day";
}
if (nunit === "day") {
this.hours(0);

@@ -866,0 +872,0 @@ this.minutes(0);

{
"name": "jalali-moment",
"version": "3.3.0",
"version": "3.3.1",
"description": "Manipulate and convert Jalali and Gregorian date easily",

@@ -47,16 +47,15 @@ "author": {

"devDependencies": {
"chai": "^4.1.2",
"codacy-coverage": "^3.0.0",
"eslint": "^5.6.0",
"chai": "^4.2.0",
"codacy-coverage": "^3.4.0",
"eslint": "^5.13.0",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"mocha-lcov-reporter": "^1.3.0",
"path": "^0.12.7",
"uglifyjs-webpack-plugin": "^2.0.1",
"webpack": "^4.19.1",
"webpack-cli": "^3.1.0"
"uglifyjs-webpack-plugin": "^2.1.1",
"webpack": "^4.29.0",
"webpack-cli": "^3.2.1"
},
"dependencies": {
"commander": "^2.17.1",
"inquirer": "^6.2.0",
"commander": "^2.19.0",
"inquirer": "^6.2.2",
"moment": "^2.23.0"

@@ -63,0 +62,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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