Socket
Socket
Sign inDemoInstall

@tangible/jitsu-elasticsearch-destination

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangible/jitsu-elasticsearch-destination - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

18

__test__/pageview.test.ts

@@ -25,2 +25,8 @@ import {destination} from "../src";

var posturl = testContext.config.elasticsearch_domain;
if(typeof testContext.config.elasticsearch_port !== "undefined" && testContext.config.elasticsearch_port !== ""){
posturl = posturl + ":" + testContext.config.elasticsearch_port
}
posturl = posturl + "/" + testContext.config.elasticsearch_target + "/_doc/"
testDestination({

@@ -34,5 +40,3 @@ name: "pageview",

domain: testContext.config.elasticsearch_domain,
url: testContext.config.elasticsearch_domain+":"+
testContext.config.elasticsearch_port+"/"+
testContext.config.elasticsearch_target+"/_doc/",
url: posturl,
},

@@ -46,5 +50,3 @@ expectedResult: [

source_ip: "000.000.000.000",
url: testContext.config.elasticsearch_domain+":"+
testContext.config.elasticsearch_port+"/"+
testContext.config.elasticsearch_target+"/_doc/",
url: posturl,
},

@@ -58,5 +60,3 @@ "headers": {

"method": "POST",
"url": testContext.config.elasticsearch_domain+":"+
testContext.config.elasticsearch_port+"/"+
testContext.config.elasticsearch_target+"/_doc/"
"url": posturl
}

@@ -63,0 +63,0 @@ ]

@@ -61,7 +61,10 @@ 'use strict';

};
var posturl = config.elasticsearch_domain;
if (typeof config.elasticsearch_port !== "undefined" && config.elasticsearch_port !== "") {
posturl = posturl + ":" + config.elasticsearch_port;
}
posturl = posturl + "/" + config.elasticsearch_target + "/_doc/";
envelops.push({
method: "POST",
url: config.elasticsearch_domain + ":" +
config.elasticsearch_port + "/" +
config.elasticsearch_target + "/_doc/",
url: posturl,
headers: myHeaders,

@@ -158,2 +161,2 @@ body: context

exports.buildInfo = {sdkVersion: "0.7.5", sdkPackage: "jitsu-cli", buildTimestamp: "2023-02-08T00:42:23.980Z"}
exports.buildInfo = {sdkVersion: "0.7.5", sdkPackage: "jitsu-cli", buildTimestamp: "2023-02-10T16:57:00.865Z"}
{
"name": "@tangible/jitsu-elasticsearch-destination",
"version": "0.0.1",
"version": "0.0.2",
"description": "Elasticsearch destination plugin for Jitsu",

@@ -5,0 +5,0 @@ "main": "dist/elasticsearch-destination.js",

@@ -79,8 +79,12 @@ import {DefaultJitsuEvent} from "@jitsu/types/event";

}
var posturl = config.elasticsearch_domain;
if(typeof config.elasticsearch_port !== "undefined" && config.elasticsearch_port !== ""){
posturl = posturl + ":" + config.elasticsearch_port
}
posturl = posturl + "/" + config.elasticsearch_target + "/_doc/"
envelops.push({
method: "POST",
url: config.elasticsearch_domain+":"+
config.elasticsearch_port+"/"+
config.elasticsearch_target+"/_doc/",
url: posturl,
headers: myHeaders,

@@ -87,0 +91,0 @@ body:context

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