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

@honeypot-run/core

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honeypot-run/core - npm Package Compare versions

Comparing version 0.2.64 to 0.2.65

14

dist/cjs/src/public/Honeypot.js

@@ -11,9 +11,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.honeypot = void 0;
const AmplitudePlugin_1 = require("./plugins/AmplitudePlugin");
const SessionManager_1 = __importDefault(require("../internal/SessionManager"));
class Honeypot {

@@ -188,11 +184,9 @@ constructor() {

if (id) {
if (Array.isArray(id)) {
id.forEach((i) => {
SessionManager_1.default.setIdentity(i === null || i === void 0 ? void 0 : i.id, i === null || i === void 0 ? void 0 : i.properties, i === null || i === void 0 ? void 0 : i.type);
});
let _id = null;
if (Array.isArray(id) && id.length > 0) {
_id = (_c = id[0]) === null || _c === void 0 ? void 0 : _c.id;
}
else {
SessionManager_1.default.setIdentity(id === null || id === void 0 ? void 0 : id.id, id === null || id === void 0 ? void 0 : id.properties, id === null || id === void 0 ? void 0 : id.type);
_id = id === null || id === void 0 ? void 0 : id.id;
}
const _id = (_c = SessionManager_1.default.getIdentity()) === null || _c === void 0 ? void 0 : _c.id;
if (_id) {

@@ -199,0 +193,0 @@ scriptUrl.searchParams.append('identity', _id);

@@ -11,3 +11,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { createAmplitudePlugin } from './plugins/AmplitudePlugin';
import SessionManager from "../internal/SessionManager";
class Honeypot {

@@ -182,11 +181,9 @@ constructor() {

if (id) {
if (Array.isArray(id)) {
id.forEach((i) => {
SessionManager.setIdentity(i === null || i === void 0 ? void 0 : i.id, i === null || i === void 0 ? void 0 : i.properties, i === null || i === void 0 ? void 0 : i.type);
});
let _id = null;
if (Array.isArray(id) && id.length > 0) {
_id = (_c = id[0]) === null || _c === void 0 ? void 0 : _c.id;
}
else {
SessionManager.setIdentity(id === null || id === void 0 ? void 0 : id.id, id === null || id === void 0 ? void 0 : id.properties, id === null || id === void 0 ? void 0 : id.type);
_id = id === null || id === void 0 ? void 0 : id.id;
}
const _id = (_c = SessionManager.getIdentity()) === null || _c === void 0 ? void 0 : _c.id;
if (_id) {

@@ -193,0 +190,0 @@ scriptUrl.searchParams.append('identity', _id);

@@ -5,3 +5,3 @@ {

"author": "https://honeypot.run",
"version": "0.2.64",
"version": "0.2.65",
"license": "BUSL-1.1",

@@ -8,0 +8,0 @@ "keywords": [

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