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

@builderx/bridge

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builderx/bridge - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

3

dist/initBridge.js

@@ -271,3 +271,4 @@ "use strict";

function getRootFiberNode() {
const rootElement = document.querySelector('body div');
const bodyElement = document.querySelector('body');
const rootElement = bodyElement === null || bodyElement === void 0 ? void 0 : bodyElement.querySelector('[data-path]');
if (!rootElement) {

@@ -274,0 +275,0 @@ console.error('No element with data-path attribute found');

{
"name": "@builderx/bridge",
"version": "0.1.5",
"version": "0.1.6",
"main": "dist/index.js",

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

@@ -330,3 +330,6 @@ declare global {

function getRootFiberNode(): any {
const rootElement = document.querySelector('body div');
const bodyElement = document.querySelector('body');
const rootElement = bodyElement?.querySelector('[data-path]');
if (!rootElement) {

@@ -470,2 +473,3 @@ console.error('No element with data-path attribute found');

const propsChildren = fiber?.memoizedProps?.children;
if (!propsChildren && !fiber?.child) {

@@ -652,3 +656,2 @@ return false; // If there are no children in props, we assume it's a component

return element;

@@ -655,0 +658,0 @@ }

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