Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@builder.io/sdk

Package Overview
Dependencies
Maintainers
1
Versions
696
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.65 to 0.0.66

2

dist/clients/js/src/classes/event-capturer.class.d.ts
export declare class EventCapturer {
events: string[];
element: EventTarget;
captureEvents: boolean;
usePassive: boolean;
readonly captureEvents: boolean;
observeMutations: boolean;

@@ -7,0 +7,0 @@ private observer?;

@@ -23,5 +23,5 @@ "use strict";

this.element = window;
// TODO: take in message to turn this off and on
// TODO: maybe take in message to turn this off and on
// In edit mode likely want to capture everything
// captureEvents = false;
this.captureEvents = false;
this.usePassive = false;

@@ -45,9 +45,2 @@ // FIXME: this causing infinite loop - why?

}
Object.defineProperty(EventCapturer.prototype, "captureEvents", {
get: function () {
return document.body.classList.contains('builder-editing-page');
},
enumerable: true,
configurable: true
});
EventCapturer.prototype.getElementForEvent = function (eventName) {

@@ -54,0 +47,0 @@ return eventName === 'resize' || eventName === 'scroll' ? window : this.element;

{
"name": "@builder.io/sdk",
"version": "0.0.65",
"version": "0.0.66",
"main": "dist/clients/js/index.js",

@@ -5,0 +5,0 @@ "types": "dist/clients/js/index.d.ts",

@@ -25,12 +25,8 @@ import uniqueSelector from 'unique-selector';

// TODO: take in message to turn this off and on
// TODO: maybe take in message to turn this off and on
// In edit mode likely want to capture everything
// captureEvents = false;
captureEvents = false;
usePassive = false;
get captureEvents() {
return document.body.classList.contains('builder-editing-page');
}
// FIXME: this causing infinite loop - why?

@@ -37,0 +33,0 @@ observeMutations = false;

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