dark-sky-api
Advanced tools
Comparing version 0.5.27 to 0.5.28
@@ -233,6 +233,12 @@ 'use strict'; | ||
return this.darkSkyApi.units(this._units).language(this._language).exclude(excludesBlock).extendHourly(this._extendHourly).get().then(function (data) { | ||
// process current block | ||
!data.currently ? null : data.currently = _this4.processWeatherItem(data.currently); | ||
!data.daily.data ? null : data.daily.data = data.daily.data.map(function (item) { | ||
return _this4.processWeatherItem(item); | ||
}); | ||
// process daily block | ||
if (data.daily) { | ||
!data.daily.data ? null : data.daily.data = data.daily.data.map(function (item) { | ||
return _this4.processWeatherItem(item); | ||
}); | ||
} | ||
data.updatedDateTime = (0, _moment2.default)(); | ||
@@ -239,0 +245,0 @@ return data; |
{ | ||
"name": "dark-sky-api", | ||
"version": "0.5.27", | ||
"version": "0.5.28", | ||
"description": "a simple and robust dark sky api service for client-side js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -179,4 +179,10 @@ import darkSkySkeleton from 'dark-sky-skeleton'; | ||
.then((data) => { | ||
// process current block | ||
!data.currently ? null : data.currently = this.processWeatherItem(data.currently); | ||
!data.daily.data ? null : data.daily.data = data.daily.data.map(item => this.processWeatherItem(item)); | ||
// process daily block | ||
if (data.daily) { | ||
!data.daily.data ? null : data.daily.data = data.daily.data.map(item => this.processWeatherItem(item)); | ||
} | ||
data.updatedDateTime = moment(); | ||
@@ -183,0 +189,0 @@ return data; |
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
46589
10
1087