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.5 to 0.1.6

7

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

@@ -30,4 +30,7 @@ "keywords": [

"repository": "https://github.com/tidepool-org/sundial.git",
"scripts": {
"test": "grunt test"
},
"dependencies": {
"moment": "2.7.0"
"moment": "2.8.1"
},

@@ -34,0 +37,0 @@ "devDependencies": {

@@ -6,3 +6,2 @@ Sundial datetime wrapper

The tidepool platform stores timestamps as ISO8601 timestamp with a timezone.

@@ -15,1 +14,23 @@

* Provide consistency for date and time formats
## Usage
Install with:
```bash
$ npm install --save sundial
```
Use in Node.js, or client-side with [Webpack](webpack.github.io/) or [Browserify](browserify.org):
```javascript
var sundial = require('sundial');
```
## Test
Run unit tests with:
```bash
$ npm test
```

@@ -18,7 +18,4 @@ // == BSD2 LICENSE ==

// Until we bundle into distribution file properly with UMD
// Workaround to grab dependency from global `window` object if available
// and not call `require`
var moment = (typeof window !== 'undefined' && typeof window.moment !== 'undefined') ? window.moment : require('moment');
var moment = require('moment');
module.exports = require('./lib/datetimeWrapper.js')(moment);
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