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
103
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 3.0.0 to 3.0.1

8

dist/index.js

@@ -1,2 +0,1 @@

import { appendForwardSlash } from "@astrojs/internal-helpers/path";
import react, {} from "@vitejs/plugin-react";

@@ -76,3 +75,3 @@ import { version as ReactVersion } from "react-dom";

hooks: {
"astro:config:setup": ({ config, command, addRenderer, updateConfig, injectScript }) => {
"astro:config:setup": ({ command, addRenderer, updateConfig, injectScript }) => {
addRenderer(getRenderer());

@@ -83,6 +82,3 @@ updateConfig({

if (command === "dev") {
const preamble = FAST_REFRESH_PREAMBLE.replace(
`__BASE__`,
appendForwardSlash(config.base)
);
const preamble = FAST_REFRESH_PREAMBLE.replace(`__BASE__`, "/");
injectScript("before-hydration", preamble);

@@ -89,0 +85,0 @@ }

{
"name": "@astrojs/react",
"description": "Use React components within Astro",
"version": "3.0.0",
"version": "3.0.1",
"type": "module",

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

"dependencies": {
"@astrojs/internal-helpers": "0.2.0",
"@vitejs/plugin-react": "^4.0.4",

@@ -56,3 +55,3 @@ "ultrahtml": "^1.3.0"

"vite": "^4.4.9",
"astro": "3.0.0",
"astro": "3.0.9",
"astro-scripts": "0.0.14"

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