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

@ibot/ibot

Package Overview
Dependencies
Maintainers
6
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibot/ibot - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

51

lib/util/index.js

@@ -33,2 +33,49 @@ /**

/**
* Element.fn.matches
*/
if (!Element.prototype.matches) {
Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function (selector) {
var matches = document.querySelectorAll(selector);
var i = matches.length;
while (--i >= 0 && matches.item(i) !== this) {}
return i > -1;
};
}
/**
* Node.fn.remove
*
* from:https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
*/
void [Node.prototype, Element.prototype, CharacterData.prototype, DocumentType.prototype].forEach(function (item) {
if (item.hasOwnProperty('remove')) {
return;
}
item.remove = function () {
if (this.parentNode !== null) {
this.parentNode.removeChild(this);
}
};
});
/**
* Element.fn.closest
*/
if (!Element.prototype.closest) {
Element.prototype.closest = function (s) {
var matches = document.querySelectorAll(s);
var el = this;
var i = void 0;
do {
i = matches.length;
while (--i >= 0 && matches.item(i) !== el) {}
} while (i < 0 && (el = el.parentElement));
return el;
};
}
var INPUT_ARROW = "<svg width=\"6\" height=\"4\" viewBox=\"0 0 6 4\"><path d=\"M3 0l3 4H0\"></path></svg>";

@@ -95,2 +142,4 @@ var DROPDOWN_ARROW = "<svg width=\"8\" height=\"3\" viewBox=\"0 0 8 3\"><path d=\"M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z\" /></svg>";

var EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
function trimList(list) {

@@ -127,2 +176,2 @@ return compact_1(list).join(' ');

export { trimList, getOtherProps, $, $$, svg as SVG };
export { EMAIL_REGEX, trimList, getOtherProps, $, $$, svg as SVG };

2

package.json
{
"name": "@ibot/ibot",
"version": "0.2.4",
"version": "0.2.5",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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