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

@astrojs/react

Package Overview
Dependencies
Maintainers
3
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/react - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

4

package.json
{
"name": "@astrojs/react",
"description": "Use React components within Astro",
"version": "4.1.2",
"version": "4.1.3",
"type": "module",

@@ -56,3 +56,3 @@ "types": "./dist/index.d.ts",

"react-dom": "^18.3.1",
"astro": "5.1.1",
"astro": "5.1.5",
"astro-scripts": "0.0.14"

@@ -59,0 +59,0 @@ },

@@ -9,2 +9,3 @@ import opts from 'astro:react:opts';

const reactTypeof = Symbol.for('react.element');
const reactTransitionalTypeof = Symbol.for('react.transitional.element');

@@ -32,3 +33,6 @@ async function check(Component, props, children) {

const vnode = Component(...args);
if (vnode && vnode['$$typeof'] === reactTypeof) {
if (
vnode &&
(vnode['$$typeof'] === reactTypeof || vnode['$$typeof'] === reactTransitionalTypeof)
) {
isReactComponent = true;

@@ -35,0 +39,0 @@ }

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