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

@builder.io/sdk

Package Overview
Dependencies
Maintainers
1
Versions
699
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version 0.0.97 to 0.0.98

.rpt2_cache/eaa34fbf38c3ae06d85cea86f9ec35bdd59cf756/code/cache/e1e3021ddfa5d88c11d95fec53668663e7606e70

2

dist/clients/js/src/classes/event-capturer.class.d.ts

@@ -20,3 +20,3 @@ export declare class EventCapturer {

private findParent(target, callback, checkElement?);
private getCssForElement(el);
private getCssForElement(el, seekProperty?);
private findPageBlockParent(target);

@@ -23,0 +23,0 @@ private findBuilderParent(target);

@@ -458,3 +458,4 @@ 'use strict';

};
EventCapturer.prototype.getCssForElement = function (el) {
EventCapturer.prototype.getCssForElement = function (el, seekProperty) {
if (seekProperty === void 0) { seekProperty = null; }
var sheets = document.styleSheets;

@@ -468,2 +469,5 @@ var ret = [];

var rule = rules[ruleIndex];
if (seekProperty && !rule.style[seekProperty]) {
continue;
}
if (rule.selectorText && el.matches(rule.selectorText)) {

@@ -481,4 +485,5 @@ ret.push(rule);

var rect = el.getBoundingClientRect();
// CHeck if parent has fixed height
var rules = _this.getCssForElement(el);
// Check if parent has fixed height
// FIXME: too slow - element.matches is expensive to run over and over
var rules = _this.getCssForElement(el, 'height');
for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {

@@ -497,3 +502,3 @@ var rule = rules_1[_i];

// (i.e. get topmost parent that shares the same bottom point)
!_this.findParent(el, function (parent) { return Math.abs(parent.getBoundingClientRect().bottom - rect.bottom) < 10; }));
!_this.findParent(el, function (parent) { return Math.abs(parent.getBoundingClientRect().bottom - rect.bottom) < 10; }, false));
});

@@ -500,0 +505,0 @@ };

@@ -452,3 +452,4 @@ import uniqueSelector from 'unique-selector';

};
EventCapturer.prototype.getCssForElement = function (el) {
EventCapturer.prototype.getCssForElement = function (el, seekProperty) {
if (seekProperty === void 0) { seekProperty = null; }
var sheets = document.styleSheets;

@@ -462,2 +463,5 @@ var ret = [];

var rule = rules[ruleIndex];
if (seekProperty && !rule.style[seekProperty]) {
continue;
}
if (rule.selectorText && el.matches(rule.selectorText)) {

@@ -475,4 +479,5 @@ ret.push(rule);

var rect = el.getBoundingClientRect();
// CHeck if parent has fixed height
var rules = _this.getCssForElement(el);
// Check if parent has fixed height
// FIXME: too slow - element.matches is expensive to run over and over
var rules = _this.getCssForElement(el, 'height');
for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {

@@ -491,3 +496,3 @@ var rule = rules_1[_i];

// (i.e. get topmost parent that shares the same bottom point)
!_this.findParent(el, function (parent) { return Math.abs(parent.getBoundingClientRect().bottom - rect.bottom) < 10; }));
!_this.findParent(el, function (parent) { return Math.abs(parent.getBoundingClientRect().bottom - rect.bottom) < 10; }, false));
});

@@ -494,0 +499,0 @@ };

{
"name": "@builder.io/sdk",
"version": "0.0.97",
"version": "0.0.98",
"browser": "./dist/index.umd.min.js",

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

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

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

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