Socket
Socket
Sign inDemoInstall

@tinypudding/puddy-lib

Package Overview
Dependencies
5
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.22 to 1.1.23

2

package.json
{
"name": "@tinypudding/puddy-lib",
"version": "1.1.22",
"version": "1.1.23",
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -24,18 +24,5 @@ // Panel

// Create Blacklist
if (!Array.isArray(ioCache.blocklick)) {
ioCache.blocklick = [];
}
// Verify IP
const verifyIP = function () {
// All Events
var onevent = socket.onevent;
socket.onevent = function (packet) {
var args = packet.data || [];
onevent.call(this, packet); // original call
packet.data = ["*"].concat(args);
onevent.call(this, packet); // additional call to catch-all
};
socket.on('*', function () {
// Create Item

@@ -52,3 +39,3 @@ if (!floodPanel[ip]) {

if (indexBan > -1) {
indexBan.splice(indexBan, 1);
ioCache.blocklick.splice(indexBan, 1);
}

@@ -71,4 +58,29 @@

// Complete
return;
};
// Create Blacklist
if (!Array.isArray(ioCache.blocklick)) {
ioCache.blocklick = [];
}
// All Events
var onevent = socket.onevent;
socket.onevent = function (packet) {
var args = packet.data || [];
onevent.call(this, packet); // original call
packet.data = ["*"].concat(args);
onevent.call(this, packet); // additional call to catch-all
};
// Verify Action
socket.on('*', function () {
return verifyIP();
});
// First Verify
return verifyIP();
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc