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

calendarize

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendarize - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/index.js

@@ -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

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