dark-sky-skeleton
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -57,3 +57,3 @@ 'use strict'; | ||
value: function time(_time) { | ||
!_time ? null : this._time = _time; | ||
this._time = _time; | ||
return this; | ||
@@ -85,3 +85,3 @@ } | ||
value: function extendHourly(param) { | ||
!param ? null : this.query.extend = !!param; | ||
this.query.extend = !!param; | ||
return this; | ||
@@ -102,3 +102,3 @@ } | ||
return new Promise(function (resolve, reject) { | ||
reject("Request not sent. ERROR: Longitute or Latitude is missing."); | ||
reject('Request not sent. ERROR: Longitute or Latitude is missing.'); | ||
}); | ||
@@ -105,0 +105,0 @@ } |
{ | ||
"name": "dark-sky-skeleton", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "barebones dark sky weather api for client side js - supports api key and proxy urls", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "babel ./src/dark-sky-skeleton.js --out-file ./dist/dark-sky-skeleton.js" | ||
"build": "babel ./src/dark-sky-skeleton.js --out-file ./dist/dark-sky-skeleton.js", | ||
"test": "jest", | ||
"test:watch": "yarn run test -- --watch" | ||
}, | ||
@@ -38,2 +40,2 @@ "repository": { | ||
} | ||
} | ||
} |
@@ -29,3 +29,3 @@ import queryString from 'query-string'; | ||
time(time) { | ||
!time ? null : this._time = time; | ||
this._time = time; | ||
return this; | ||
@@ -51,3 +51,3 @@ } | ||
extendHourly(param) { | ||
!param ? null : this.query.extend = !!param; | ||
this.query.extend = !!param; | ||
return this; | ||
@@ -70,3 +70,3 @@ } | ||
return new Promise((resolve, reject) => { | ||
reject("Request not sent. ERROR: Longitute or Latitude is missing."); | ||
reject('Request not sent. ERROR: Longitute or Latitude is missing.'); | ||
}); | ||
@@ -73,0 +73,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10809
9
230