New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@honeypot-run/core

Package Overview
Dependencies
Maintainers
0
Versions
40
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

to
0.2.4

7

dist/cjs/src/public/AmplitudePlugin.d.ts

@@ -1,9 +0,4 @@

import { EnrichmentPlugin, BrowserConfig, Event } from '@amplitude/analytics-types';
declare class AmplitudePlugin implements EnrichmentPlugin {
name: string;
type: any;
setup(config: BrowserConfig): Promise<void>;
execute(event: Event): Promise<Event | null>;
declare class AmplitudePlugin {
}
export { AmplitudePlugin };
export default AmplitudePlugin;
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AmplitudePlugin = void 0;
class AmplitudePlugin {
constructor() {
this.name = 'honeypot-plugin';
this.type = 'enrichment';
}
setup(config) {
return __awaiter(this, void 0, void 0, function* () {
return undefined;
});
}
execute(event) {
return __awaiter(this, void 0, void 0, function* () {
event.event_properties['hello'] = 'world';
return event;
});
}
}
exports.AmplitudePlugin = AmplitudePlugin;
exports.default = AmplitudePlugin;

2

dist/cjs/src/public/Honeypot.d.ts

@@ -8,3 +8,3 @@ import { IFlow, HoneypotConfig, IHoneypot, IHoneypotLite, IdentityType } from ".";

declare class Honeypot implements IHoneypot {
config: HoneypotConfig;
config: HoneypotConfig | null;
honey: any;

@@ -11,0 +11,0 @@ id: Record<string, any>[];

@@ -9,4 +9,24 @@ import { honeypot } from "./Honeypot";

}
export type ClientData = {
org_id: string;
ip_address?: string;
ip_address_connecting?: string;
ip_address_forwarded_for?: string;
asn?: number | unknown;
city_name?: string | unknown;
country_name?: string | unknown;
country_code?: string | unknown;
region_name?: string | unknown;
region_code?: string | unknown;
latitude?: string | unknown;
longitude?: string | unknown;
timezone?: string | unknown;
identity?: string;
client?: any;
device_id?: string;
session_id?: string;
ref?: string;
};
export interface IHoneypotLite {
get(): any;
get(): ClientData;
geofence(): void;

@@ -13,0 +33,0 @@ }

@@ -1,9 +0,4 @@

import { EnrichmentPlugin, BrowserConfig, Event } from '@amplitude/analytics-types';
declare class AmplitudePlugin implements EnrichmentPlugin {
name: string;
type: any;
setup(config: BrowserConfig): Promise<void>;
execute(event: Event): Promise<Event | null>;
declare class AmplitudePlugin {
}
export { AmplitudePlugin };
export default AmplitudePlugin;

@@ -1,28 +0,4 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
class AmplitudePlugin {
constructor() {
this.name = 'honeypot-plugin';
this.type = 'enrichment';
}
setup(config) {
return __awaiter(this, void 0, void 0, function* () {
return undefined;
});
}
execute(event) {
return __awaiter(this, void 0, void 0, function* () {
event.event_properties['hello'] = 'world';
return event;
});
}
}
export { AmplitudePlugin };
export default AmplitudePlugin;

@@ -8,3 +8,3 @@ import { IFlow, HoneypotConfig, IHoneypot, IHoneypotLite, IdentityType } from ".";

declare class Honeypot implements IHoneypot {
config: HoneypotConfig;
config: HoneypotConfig | null;
honey: any;

@@ -11,0 +11,0 @@ id: Record<string, any>[];

@@ -9,4 +9,24 @@ import { honeypot } from "./Honeypot";

}
export type ClientData = {
org_id: string;
ip_address?: string;
ip_address_connecting?: string;
ip_address_forwarded_for?: string;
asn?: number | unknown;
city_name?: string | unknown;
country_name?: string | unknown;
country_code?: string | unknown;
region_name?: string | unknown;
region_code?: string | unknown;
latitude?: string | unknown;
longitude?: string | unknown;
timezone?: string | unknown;
identity?: string;
client?: any;
device_id?: string;
session_id?: string;
ref?: string;
};
export interface IHoneypotLite {
get(): any;
get(): ClientData;
geofence(): void;

@@ -13,0 +33,0 @@ }

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

"author": "https://honeypot.run",
"version": "0.2.3",
"version": "0.2.4",
"license": "BUSL-1.1",

@@ -35,2 +35,3 @@ "keywords": [

"build": "npm run test && npm run build:cjs && npm run build:esm",
"build-hono": "npm run update-version && npm run test && esbuild src/index.js --bundle --minify --outfile=../../../honeypot-edge/src/static/pro.js.txt",
"build-api": "npm run update-version && npm run test && esbuild src/index.js --bundle --minify --outfile=../../../honeypot-fastapi/static/js-template.js",

@@ -40,3 +41,5 @@ "build-worker": "esbuild ./creepjs/src/creep_worker.js --bundle --minify --outfile=../../../honeypot-fastapi/static/js-worker.js",

},
"dependencies": {},
"dependencies": {
"@rrweb/record": "^2.0.0-alpha.15"
},
"devDependencies": {

@@ -46,2 +49,3 @@ "@amplitude/analytics-browser": "^2.3.3",

"@fingerprintjs/fingerprintjs-pro": "^3.8.6",
"@types/jest": "^29.5.11",
"axios": "^1.6.2",

@@ -51,5 +55,2 @@ "creepjs": "file:creepjs",

"detectincognitojs": "^1.1.2",
"ua-parser-js": "^1.0.33",
"uuid": "^9.0.0",
"@types/jest": "^29.5.11",
"esbuild": "0.17.6",

@@ -61,4 +62,6 @@ "jest": "^29.7.0",

"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"ua-parser-js": "^1.0.33",
"uuid": "^9.0.0"
}
}