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

geomoment

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geomoment - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

17

lib/augment_moment.js

@@ -6,9 +6,15 @@ // Generated by CoffeeScript 1.6.3

var tzid, zone, zones, _fn;
moment.formats = {
day: 'YYYY-MM-DD',
numberedDay: 'YYYYMMDD',
abbrv: 'ddd, MMM Do',
long: 'dddd, MMMM Do',
short: 'MMM D',
weekday: 'dddd'
};
moment.day = function(day, tzid) {
return moment.tz(day, [moment.day.DASHED_DAY, moment.day.NUMBER_DAY], tzid);
return moment.tz(day, [moment.formats.day, moment.formats.numberedDay], tzid);
};
moment.day.DASHED_DAY = 'YYYY-MM-DD';
moment.day.NUMBER_DAY = 'YYYYMMDD';
moment.fn.toDay = function() {
return this.format(moment.day.DASHED_DAY);
moment.fn.dayString = function() {
return this.format(moment.formats.day);
};

@@ -18,2 +24,3 @@ zones = {

central: 'America/Chicago',
mountain: 'America/Denver',
pacific: 'America/Los_Angeles'

@@ -20,0 +27,0 @@ };

@@ -8,3 +8,3 @@ // Generated by CoffeeScript 1.6.3

usa = require('../data/usa.json');
usa = require('../data/usa');

@@ -11,0 +11,0 @@ moment.tz.add(usa);

{
"name": "geomoment",
"version": "0.2.1",
"version": "0.3.0",
"description": "moment-timezone, if moment-timezone forced you to choose a particular moment in time. also, some extra sugar.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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