dark-sky-skeleton
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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; |
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
9533
194