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

dark-sky-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dark-sky-skeleton - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

16

dist/dark-sky-skeleton.js

@@ -25,5 +25,5 @@ 'use strict';

var DarkSkyApi = function () {
function DarkSkyApi(apiKey, proxyUrl) {
_classCallCheck(this, DarkSkyApi);
var DarkSkySkeleton = function () {
function DarkSkySkeleton(apiKey, proxyUrl) {
_classCallCheck(this, DarkSkySkeleton);

@@ -38,3 +38,3 @@ this.proxyUrl = proxyUrl || '';

_createClass(DarkSkyApi, [{
_createClass(DarkSkySkeleton, [{
key: 'longitude',

@@ -77,3 +77,3 @@ value: function longitude(long) {

value: function exclude(blocks) {
!blocks ? null : this.query.exclude = blocks;
this.query.exclude = blocks;
return this;

@@ -87,3 +87,3 @@ }

value: function extendHourly(param) {
!param ? null : this.query.extend = 'hourly';
!param ? null : this.query.extend = !!param;
return this;

@@ -131,5 +131,5 @@ }

return DarkSkyApi;
return DarkSkySkeleton;
}();
exports.default = DarkSkyApi;
exports.default = DarkSkySkeleton;

@@ -1,1 +0,1 @@

module.exports = require('./dist/dark-sky-api.js');
module.exports = require('./dist/dark-sky-skeleton.js');
{
"name": "dark-sky-skeleton",
"version": "0.1.1",
"version": "0.1.2",
"description": "barebones dark sky weather api for client side js - supports api key and proxy urls",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,3 @@ # dark-sky-skeleton

```javascript
import darkSkyApi from 'dark-sky-skeleton';
import darkSkySkeleton from 'dark-sky-skeleton';
```

@@ -30,3 +30,3 @@

```javascript
const darkSky = new darkSkyApi('your-dark-sky-api-key', '//base-url-to-proxy/service');
const darkSky = new darkSkySkeleton('your-dark-sky-api-key', '//base-url-to-proxy/service');
```

@@ -33,0 +33,0 @@

@@ -5,3 +5,3 @@ import queryString from 'query-string';

class DarkSkyApi {
class DarkSkySkeleton {
constructor(apiKey, proxyUrl) {

@@ -45,3 +45,3 @@ this.proxyUrl = proxyUrl || '';

exclude(blocks) {
!blocks ? null : this.query.exclude = blocks;
this.query.exclude = blocks;
return this;

@@ -52,3 +52,3 @@ }

extendHourly(param) {
!param ? null : this.query.extend = 'hourly';
!param ? null : this.query.extend = !!param;
return this;

@@ -97,2 +97,2 @@ }

export default DarkSkyApi;
export default DarkSkySkeleton;
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