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
4
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.9 to 0.1.10

8

dist/initBridge.js

@@ -391,6 +391,6 @@ "use strict";

var _a, _b;
return (element.type === fiberNode.type &&
element.key === fiberNode.key &&
((_a = element.props) === null || _a === void 0 ? void 0 : _a['data-path']) ===
((_b = fiberNode.memoizedProps) === null || _b === void 0 ? void 0 : _b['data-path']));
if (typeof element === 'string') {
return (fiberNode === null || fiberNode === void 0 ? void 0 : fiberNode.memoizedProps) === element;
}
return (((_a = element === null || element === void 0 ? void 0 : element.props) === null || _a === void 0 ? void 0 : _a['data-path']) === ((_b = fiberNode === null || fiberNode === void 0 ? void 0 : fiberNode.memoizedProps) === null || _b === void 0 ? void 0 : _b['data-path']));
};

@@ -397,0 +397,0 @@ // Check if propsChildren is an array or a single child

{
"name": "@builderx/bridge",
"version": "0.1.9",
"version": "0.1.10",
"main": "dist/index.js",

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

@@ -500,7 +500,8 @@ declare global {

const compareElementToFiber = (element: any, fiberNode: any) => {
if (typeof element === 'string') {
return fiberNode?.memoizedProps === element;
}
return (
element.type === fiberNode.type &&
element.key === fiberNode.key &&
element.props?.['data-path'] ===
fiberNode.memoizedProps?.['data-path']
element?.props?.['data-path'] === fiberNode?.memoizedProps?.['data-path']
);

@@ -507,0 +508,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