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

moon-time

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moon-time - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

17

calculate.js

@@ -148,7 +148,10 @@ (function (global, calculate) {

var getWhetherLeapMonth = (year, leapMonth) =>{
var getWhetherLeapMonth = (year, leapMonth) => {
console.log(year, leapMonth)
return time[year][5] == leapMonth ? true : false;
}
}
var chineseMonth = function (num, leapMonth,leapYear) {
var chineseMonth = function (num, leapYear) {
console.error('num=====', num)
console.error('leapYear=====', leapYear)
var res;

@@ -161,3 +164,3 @@ var dateHash = ['', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'];

}
return (getWhetherLeapMonth(leapYear, leapMonth) ? '闰' : '') + res + '月';
return (getWhetherLeapMonth(leapYear, num) ? '闰' : '') + res + '月';
}

@@ -359,3 +362,3 @@

month: month == getWhetherLeapMonth(leapYear, obj.leapMonth) ? '闰' + obj.leapMonth : month,
month: month,

@@ -370,3 +373,3 @@ day: nowDay,

monthC: chineseMonth(month, obj.leapMonth,leapYear)
monthC: chineseMonth(month, leapYear)

@@ -391,3 +394,3 @@ })

monthC: chineseMonth(month, obj.leapMonth,leapYear)
monthC: chineseMonth(month, leapYear)

@@ -394,0 +397,0 @@ })

@@ -43,3 +43,3 @@ {

},
"version": "2.2.0"
"version": "2.3.0"
}

@@ -26,4 +26,2 @@ # moon-time

```
......
```
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