calendarize
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -12,3 +12,3 @@ module.exports = function (target, offset) { | ||
while (i < days) { | ||
for (j=0, week=new Array(7); j < 7;) { | ||
for (j=0, week=Array(7); j < 7;) { | ||
while (j < first) week[j++] = 0; | ||
@@ -15,0 +15,0 @@ week[j++] = ++i > days ? 0 : i; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.calendarize=t()}(this,function(){return function(e,t){for(var n,o=0,f=0,r=[],a=new Date(e||new Date),u=a.getFullYear(),i=a.getMonth(),d=new Date(u,i,1-(0|t)).getDay(),c=new Date(u,i+1,0).getDate();o<c;){for(f=0,n=new Array(7);f<7;){for(;f<d;)n[f++]=0;n[f++]=++o>c?0:o,d=0}r.push(n)}return r}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.calendarize=t()}(this,function(){return function(e,t){for(var n,o=0,f=0,r=[],a=new Date(e||new Date),u=a.getFullYear(),i=a.getMonth(),d=new Date(u,i,1-(0|t)).getDay(),c=new Date(u,i+1,0).getDate();o<c;){for(f=0,n=Array(7);f<7;){for(;f<d;)n[f++]=0;n[f++]=++o>c?0:o,d=0}r.push(n)}return r}}); |
{ | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"name": "calendarize", | ||
"repository": "lukeed/calendarize", | ||
"description": "A tiny (204B) utility to generate calendar views", | ||
"description": "A tiny (202B) utility to generate calendar views", | ||
"module": "dist/index.mjs", | ||
@@ -7,0 +7,0 @@ "unpkg": "dist/index.min.js", |
# calendarize [![build status](https://badgen.net/github/status/lukeed/calendarize)](https://github.com/lukeed/calendarize/actions) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/calendarize)](https://codecov.io/gh/lukeed/calendarize) | ||
> A tiny (204B) utility to generate calendar views. | ||
> A tiny (202B) utility to generate calendar views. | ||
@@ -5,0 +5,0 @@ This function (optionally) accepts a date in exchange for a calendar view of that date's month. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7485