Comparing version 0.1.3 to 0.1.4
// == 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; | ||
} | ||
} |
{ | ||
"name": "sundial", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Tidepool's datetime wrapper", | ||
@@ -40,2 +40,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
16264
6
332
6