@tangible/jitsu-elasticsearch-destination
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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 |
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
24171649
386