New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

greg-cal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greg-cal - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### [1.0.4](https://github.com/traveloka/greg-cal/compare/v1.0.3...v1.0.4) (2022-08-02)
### Bug Fixes
- update standard-version to v7.1.0 and tsdx to v0.12.3 ([831c189](https://github.com/traveloka/greg-cal/commit/831c1890e66b01cb004cf09347de8a5c1f385cf2))
### [1.0.3](https://github.com/traveloka/greg-cal/compare/v1.0.2...v1.0.3) (2020-03-17)

@@ -7,0 +13,0 @@

4

dist/greg-cal.cjs.development.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**

@@ -70,3 +72,3 @@ * Get all calendar dates

var dates = [new Date('1995-03-26'), new Date('1995-03-27'), new Date('1995-03-28'), new Date('1995-03-29'), new Date('1995-03-30'), new Date('1995-03-31'), new Date('1995-04-01'), new Date('1995-04-02')];
var dates = [new Date(1995, 2, 26), new Date(1995, 2, 27), new Date(1995, 2, 28), new Date(1995, 2, 29), new Date(1995, 2, 30), new Date(1995, 2, 31), new Date(1995, 3, 1), new Date(1995, 3, 2)];

@@ -73,0 +75,0 @@ switch (firstDayOfTheWeek) {

@@ -1,2 +0,2 @@

"use strict";exports.getDates=function(e,t,n){void 0===n&&(n="sun");var a="sun"===n?0:1,r=new Date(Number(e),t,1),o=new Date(Number(e),t+1,0),u=r.getDay(),i=Array((u-a+7)%7).fill(null),l=Array(o.getDate()).fill(null).map(function(n,a){return new Date(Number(e),t,a+1)});return i.concat(l)},exports.getDays=function(e,t,n){void 0===e&&(e="en-US"),void 0===t&&(t="short"),void 0===n&&(n="sun");var a=[new Date("1995-03-26"),new Date("1995-03-27"),new Date("1995-03-28"),new Date("1995-03-29"),new Date("1995-03-30"),new Date("1995-03-31"),new Date("1995-04-01"),new Date("1995-04-02")];switch(n){case"mon":a=a.slice(1,8);break;default:a=a.slice(0,7)}return a.map(function(n){return n.toLocaleString(e,{weekday:t})})},exports.getMonths=function(e,t){return void 0===e&&(e="en-US"),void 0===t&&(t="long"),Array(12).fill(null).map(function(n,a){return new Date(1995,a,1).toLocaleString(e,{month:t})})};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDates=function(e,t,n){void 0===n&&(n="sun");var r="sun"===n?0:1,a=new Date(Number(e),t,1),o=new Date(Number(e),t+1,0),u=a.getDay(),i=Array((u-r+7)%7).fill(null),l=Array(o.getDate()).fill(null).map((function(n,r){return new Date(Number(e),t,r+1)}));return i.concat(l)},exports.getDays=function(e,t,n){void 0===e&&(e="en-US"),void 0===t&&(t="short"),void 0===n&&(n="sun");var r=[new Date(1995,2,26),new Date(1995,2,27),new Date(1995,2,28),new Date(1995,2,29),new Date(1995,2,30),new Date(1995,2,31),new Date(1995,3,1),new Date(1995,3,2)];switch(n){case"mon":r=r.slice(1,8);break;default:r=r.slice(0,7)}return r.map((function(n){return n.toLocaleString(e,{weekday:t})}))},exports.getMonths=function(e,t){return void 0===e&&(e="en-US"),void 0===t&&(t="long"),Array(12).fill(null).map((function(n,r){return new Date(1995,r,1).toLocaleString(e,{month:t})}))};
//# sourceMappingURL=greg-cal.cjs.production.min.js.map

@@ -68,3 +68,3 @@ /**

var dates = [new Date('1995-03-26'), new Date('1995-03-27'), new Date('1995-03-28'), new Date('1995-03-29'), new Date('1995-03-30'), new Date('1995-03-31'), new Date('1995-04-01'), new Date('1995-04-02')];
var dates = [new Date(1995, 2, 26), new Date(1995, 2, 27), new Date(1995, 2, 28), new Date(1995, 2, 29), new Date(1995, 2, 30), new Date(1995, 2, 31), new Date(1995, 3, 1), new Date(1995, 3, 2)];

@@ -71,0 +71,0 @@ switch (firstDayOfTheWeek) {

{
"name": "greg-cal",
"version": "1.0.3",
"version": "1.0.4",
"repository": "git@github.com:traveloka/greg-cal.git",

@@ -37,4 +37,4 @@ "main": "dist/index.js",

"pretty-quick": "^1",
"standard-version": "^7",
"tsdx": "^0.7",
"standard-version": "^7.1.0",
"tsdx": "^0.12.3",
"tslib": "^1",

@@ -41,0 +41,0 @@ "typescript": "^3"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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