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

node_js_ipqs_device_tracker

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node_js_ipqs_device_tracker - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

lib/cjs/util/domManipulation.js

@@ -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",

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