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

sundial

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sundial - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

lib/timezoneDetect.js

27

lib/datetimeWrapper.js
// == BDS2 LICENSE ==
// Copyright (C) 2014 Tidepool Project
//
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the associated License, which is identical to the BSD 2-Clause
// License as published by the Open Source Initiative at opensource.org.
//
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the License for more details.
//
//
// You should have received a copy of the License along with this program; if

@@ -18,2 +18,5 @@ // not, you can obtain one at http://tidepool.org/licenses/

var timezones = require('./timezones');
var detectTimezone = require('./timezoneDetect');
var datetimeWrapper = function(givenMoment) {

@@ -101,2 +104,18 @@

/*
* Get all timezone objects
*
* @ return {Array} a list of available timezone objects
*/
getTimezones: function() {
return timezones;
},
/*
* Try to detect current device's timezone
*
* @ return {Object} a timezone object
*/
getDeviceTimezone: function() {
return detectTimezone();
},
/*
* Get an instance of moment that is used

@@ -115,2 +134,2 @@ *

module.exports = datetimeWrapper;
}
}

4

package.json
{
"name": "sundial",
"version": "0.1.3",
"version": "0.1.4",
"description": "Tidepool's datetime wrapper",

@@ -40,2 +40,2 @@ "keywords": [

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