hacker-news-api
Advanced tools
Comparing version 1.1.5 to 1.1.6
16
index.js
@@ -1,3 +0,5 @@ | ||
request = require('request'); | ||
'use strict'; | ||
var request = require('request'); | ||
var objectToParams = function(obj) { | ||
@@ -7,8 +9,10 @@ var first = true; | ||
for (var key in obj) { | ||
if (first) { | ||
first = false; | ||
} else { | ||
params += '&'; | ||
if (obj.hasOwnProperty(key)) { | ||
if (first) { | ||
first = false; | ||
} else { | ||
params += '&'; | ||
} | ||
params += key + '=' + obj[key]; | ||
} | ||
params += key + '=' + obj[key]; | ||
} | ||
@@ -15,0 +19,0 @@ }; |
{ | ||
"name": "hacker-news-api", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "Node.js library for Algolia's Hacker News API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
11367
271