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

doofinder

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doofinder - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

bower.json
{
"name": "doofinder",
"description": "Javascript Library for Doofinder Search API",
"version": "3.0.1",
"version": "3.0.2",
"main": "dist/doofinder.js",

@@ -6,0 +6,0 @@ "authors": [

@@ -306,33 +306,2 @@

/*
This method calls to /session
service for accounting the
sessions in a searchengine
@api public
*/
Client.prototype.session = function(callback) {
var headers, options, req;
if (callback == null) {
callback = function() {};
}
headers = {};
if (this.apiKey) {
headers['api token'] = this.apiKey;
}
options = {
host: this.url,
path: "/" + this.version + "/session/" + this.hashid + "/",
headers: headers
};
if (this.url.split(':').length > 1) {
options.host = this.url.split(':')[0];
options.port = this.url.split(':')[1];
}
req = httpLib.request(options, this.__processResponse(callback));
return req.end();
};
/*
This method calls to /hit

@@ -348,4 +317,7 @@ service for accounting the

Client.prototype.hit = function(dfid, query, callback) {
var headers, options, req;
Client.prototype.hit = function(sessionId, eventType, dfid, query, callback) {
var headers, options, path, req;
if (dfid == null) {
dfid = "";
}
if (query == null) {

@@ -361,5 +333,12 @@ query = "";

}
path = "/" + this.version + "/hit/" + sessionId + "/" + eventType + "/" + this.hashid;
if (dfid !== "") {
path += "/" + dfid;
}
if (query !== "") {
path += "/" + (encodeURIComponent(query));
}
options = {
host: this.url,
path: "/" + this.version + "/hit/" + this.hashid + "/" + dfid + "/" + (encodeURIComponent(query)) + "?random=" + (new Date().getTime()),
path: path + "?random=" + (new Date().getTime()),
headers: headers

@@ -366,0 +345,0 @@ };

@@ -357,13 +357,2 @@

/*
session
Sends a session register to session logs.
*/
Controller.prototype.session = function(callback) {
return this.client.session(callback);
};
/*
hit

@@ -377,4 +366,10 @@

Controller.prototype.hit = function(dfid, callback) {
return this.client.hit(dfid, this.status.params.query, callback);
Controller.prototype.hit = function(sessionId, type, dfid, callback) {
if (dfid == null) {
dfid = "";
}
if (callback == null) {
callback = function() {};
}
return this.client.hit(sessionId, type, dfid, this.status.params.query, callback);
};

@@ -381,0 +376,0 @@

(function() {
module.exports = {
version: "3.0.1",
version: "3.0.2",
Client: require("./client"),

@@ -16,5 +16,6 @@ Mustache: require("mustache"),

},
jQuery: require("./util/jquery")
jQuery: require("./util/jquery"),
qs: require("qs")
};
}).call(this);
{
"name": "doofinder",
"version": "3.0.1",
"version": "3.0.2",
"description": "Javascript Library for Doofinder Search API",

@@ -5,0 +5,0 @@ "main": "lib/doofinder.js",

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