doofinder
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "doofinder", | ||
"description": "Javascript Library for Doofinder Search API", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/doofinder.js", | ||
@@ -6,0 +6,0 @@ "authors": [ |
(function() { | ||
module.exports = { | ||
version: "1.0.1", | ||
version: "1.0.2", | ||
Client: require("./client"), | ||
@@ -5,0 +5,0 @@ Handlebars: require("handlebars"), |
@@ -23,18 +23,18 @@ | ||
parameters = { | ||
queryParameter: '', | ||
extraParameters: {} | ||
queryParam: '', | ||
extraParams: {} | ||
}; | ||
} | ||
helpers = { | ||
'url-params': function(options) { | ||
'url-params': function(url, query) { | ||
var i, paramsArray, paramsFinal, params_str; | ||
paramsFinal = options.fn(this); | ||
paramsFinal = url; | ||
if (paramsFinal) { | ||
paramsArray = []; | ||
if (parameters.queryParameter) { | ||
paramsArray.push(parameters.queryParameter + '=' + json.query); | ||
if (parameters.queryParam) { | ||
paramsArray.push(parameters.queryParam + '=' + query); | ||
} | ||
if (parameters.extraParameters) { | ||
for (i in parameters.extraParameters) { | ||
paramsArray.push(i + '=' + parameters.extraParameters[i]); | ||
if (parameters.extraParams) { | ||
for (i in parameters.extraParams) { | ||
paramsArray.push(i + '=' + parameters.extraParams[i]); | ||
} | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "doofinder", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Javascript Library for Doofinder Search API", | ||
@@ -5,0 +5,0 @@ "main": "lib/doofinder.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
88326