Comparing version 0.1.5 to 0.1.6
{ | ||
"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); |
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
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
15564
35
317
+ Addedmoment@2.8.1(transitive)
- Removedmoment@2.7.0(transitive)
Updatedmoment@2.8.1