node_js_ipqs_device_tracker
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,3 +8,3 @@ "use strict"; | ||
document.head.appendChild(getScriptTagLoadSrc(secretKey, tracker, domain)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker, domain)); | ||
}; | ||
@@ -16,3 +16,3 @@ exports.addDeviceTrackingTags = addDeviceTrackingTags; | ||
document.head.appendChild(getScriptTagLoadSrcAsync(secretKey, tracker, domain, resolve, reject)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker, domain)); | ||
}); | ||
@@ -55,10 +55,10 @@ }; | ||
}; | ||
const getNoscriptTag = (secretKey, domain) => { | ||
const getNoscriptTag = (secretKey, tracker, domain) => { | ||
const noscriptTag = document.createElement("noscript"); | ||
noscriptTag.appendChild(generateImageTag(secretKey, domain)); | ||
noscriptTag.appendChild(generateImageTag(secretKey, tracker, domain)); | ||
return noscriptTag; | ||
}; | ||
const generateImageTag = (secretKey, domain) => { | ||
const generateImageTag = (secretKey, tracker, domain) => { | ||
const imageTag = document.createElement("img"); | ||
const srcImage = `https://www.ipqscdn.com/api/${domain}/${secretKey}/pixel.png`; | ||
const srcImage = `https://${domain}/api/${tracker}/${secretKey}/pixel.png`; | ||
imageTag.setAttribute("src", srcImage); | ||
@@ -65,0 +65,0 @@ return imageTag; |
@@ -5,3 +5,3 @@ import { DEVICE_FINGERPRINT_SCRIPT_ID, DEVICE_FINGERPRINT_SCRIPT_ID_ASYNC, } from "./const"; | ||
document.head.appendChild(getScriptTagLoadSrc(secretKey, tracker, domain)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker, domain)); | ||
}; | ||
@@ -12,3 +12,3 @@ export const addDeviceTrackingTagsAsync = (secretKey, tracker = "*", domain = "www.ipqualityscore.com") => { | ||
document.head.appendChild(getScriptTagLoadSrcAsync(secretKey, tracker, domain, resolve, reject)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker)); | ||
document.head.appendChild(getNoscriptTag(secretKey, tracker, domain)); | ||
}); | ||
@@ -50,10 +50,10 @@ }; | ||
}; | ||
const getNoscriptTag = (secretKey, domain) => { | ||
const getNoscriptTag = (secretKey, tracker, domain) => { | ||
const noscriptTag = document.createElement("noscript"); | ||
noscriptTag.appendChild(generateImageTag(secretKey, domain)); | ||
noscriptTag.appendChild(generateImageTag(secretKey, tracker, domain)); | ||
return noscriptTag; | ||
}; | ||
const generateImageTag = (secretKey, domain) => { | ||
const generateImageTag = (secretKey, tracker, domain) => { | ||
const imageTag = document.createElement("img"); | ||
const srcImage = `https://www.ipqscdn.com/api/${domain}/${secretKey}/pixel.png`; | ||
const srcImage = `https://${domain}/api/${tracker}/${secretKey}/pixel.png`; | ||
imageTag.setAttribute("src", srcImage); | ||
@@ -60,0 +60,0 @@ return imageTag; |
{ | ||
"name": "node_js_ipqs_device_tracker", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "NodeJS/React package to interface with the IPQS Device Fingerprint API.", | ||
@@ -5,0 +5,0 @@ "types": "./lib/cjs/types/index.d.ts", |
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
32267