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

@astrojs/react

Package Overview
Dependencies
Maintainers
3
Versions
116
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 0.0.0-container-20240524151016 to 0.0.0-container-20240524153820

22

dist/index.d.ts

@@ -6,23 +6,3 @@ import { type Options as ViteReactPluginOptions } from '@vitejs/plugin-react';

};
declare const versionsConfig: {
17: {
server: string;
client: string;
externals: string[];
};
18: {
server: string;
client: string;
externals: string[];
};
19: {
server: string;
client: string;
externals: string[];
};
};
type SupportedReactVersion = keyof typeof versionsConfig;
type ReactVersionConfig = (typeof versionsConfig)[SupportedReactVersion];
export declare function getContainerRenderer(reactVersion: ReactVersionConfig): ContainerRenderer;
export declare function getContainerRenderer(): ContainerRenderer;
export default function ({ include, exclude, babel, experimentalReactChildren, }?: ReactIntegrationOptions): AstroIntegration;
export {};

9

dist/index.js

@@ -38,6 +38,11 @@ import react, {} from "@vitejs/plugin-react";

}
function getContainerRenderer(reactVersion) {
function getContainerRenderer() {
const majorVersion = getReactMajorVersion();
if (isUnsupportedVersion(majorVersion)) {
throw new Error(`Unsupported React version: ${majorVersion}.`);
}
const versionConfig = versionsConfig[majorVersion];
return {
name: "@astrojs/react",
serverEntrypoint: reactVersion.server
serverEntrypoint: versionConfig.server
};

@@ -44,0 +49,0 @@ }

{
"name": "@astrojs/react",
"description": "Use React components within Astro",
"version": "0.0.0-container-20240524151016",
"version": "0.0.0-container-20240524153820",
"type": "module",

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

"vite": "^5.2.11",
"astro": "0.0.0-container-20240524151016",
"astro": "0.0.0-container-20240524153820",
"astro-scripts": "0.0.14"

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