Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dark-sky-api

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dark-sky-api - npm Package Compare versions

Comparing version 0.5.27 to 0.5.28

src/dark-sky-api.spec.js

12

dist/dark-sky-api.js

@@ -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;

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