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.45 to 0.2.46

20

dist/cjs/src/public/Honeypot.js

@@ -189,8 +189,26 @@ "use strict";

}
else if (this.didLoad && !this.didInit) {
return new Promise((resolve, reject) => {
const startTime = Date.now();
const retryLoad = () => {
if (window.honeypot && window.honeypot.get) {
resolve(window.honeypot.get());
}
else if (Date.now() - startTime >= 2000) {
reject(new Error("Timeout: Honeypot SDK did not initialize in time."));
}
else {
setTimeout(retryLoad, 50);
}
};
retryLoad();
});
}
return new Promise((resolve, reject) => {
const e = () => {
var _a;
if (window.honeypot && window.honeypot.honey) {
resolve(window.honeypot.honey);
}
else if (window.honeypot) {
else if ((_a = window.honeypot) === null || _a === void 0 ? void 0 : _a.get) {
return window.honeypot.get();

@@ -197,0 +215,0 @@ }

@@ -186,8 +186,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
else if (this.didLoad && !this.didInit) {
return new Promise((resolve, reject) => {
const startTime = Date.now();
const retryLoad = () => {
if (window.honeypot && window.honeypot.get) {
resolve(window.honeypot.get());
}
else if (Date.now() - startTime >= 2000) {
reject(new Error("Timeout: Honeypot SDK did not initialize in time."));
}
else {
setTimeout(retryLoad, 50);
}
};
retryLoad();
});
}
return new Promise((resolve, reject) => {
const e = () => {
var _a;
if (window.honeypot && window.honeypot.honey) {
resolve(window.honeypot.honey);
}
else if (window.honeypot) {
else if ((_a = window.honeypot) === null || _a === void 0 ? void 0 : _a.get) {
return window.honeypot.get();

@@ -194,0 +212,0 @@ }

2

package.json

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

"author": "https://honeypot.run",
"version": "0.2.45",
"version": "0.2.46",
"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