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

@astrojs/deno

Package Overview
Dependencies
Maintainers
4
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/deno - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

7

CHANGELOG.md
# @astrojs/node
## 0.1.4
### Patch Changes
- [#3503](https://github.com/withastro/astro/pull/3503) [`207f58d1`](https://github.com/withastro/astro/commit/207f58d1715ac024cc7c81b76e26aa49fca5173f) Thanks [@williamtetlow](https://github.com/williamtetlow)! - Alias `from 'astro'` imports to `'@astro/types'`
Update Deno and Netlify integrations to handle vite.resolves.alias as an array
## 0.1.3

@@ -4,0 +11,0 @@

10

dist/index.js

@@ -20,4 +20,10 @@ function getAdapter(args) {

vite.resolve.alias = vite.resolve.alias || {};
const alias = vite.resolve.alias;
alias["react-dom/server"] = "react-dom/server.browser";
const aliases = [{ find: "react-dom/server", replacement: "react-dom/server.browser" }];
if (Array.isArray(vite.resolve.alias)) {
vite.resolve.alias = [...vite.resolve.alias, ...aliases];
} else {
for (const alias of aliases) {
vite.resolve.alias[alias.find] = alias.replacement;
}
}
vite.ssr = {

@@ -24,0 +30,0 @@ noExternal: true

4

package.json
{
"name": "@astrojs/deno",
"description": "Deploy your site to a Deno server",
"version": "0.1.3",
"version": "0.1.4",
"type": "module",

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

"devDependencies": {
"astro": "1.0.0-beta.38",
"astro": "1.0.0-beta.40",
"astro-scripts": "0.0.4"

@@ -25,0 +25,0 @@ },

@@ -28,4 +28,13 @@ import type { AstroAdapter, AstroIntegration } from 'astro';

vite.resolve.alias = vite.resolve.alias || {};
const alias = vite.resolve.alias as Record<string, string>;
alias['react-dom/server'] = 'react-dom/server.browser';
const aliases = [{ find: 'react-dom/server', replacement: 'react-dom/server.browser' }];
if (Array.isArray(vite.resolve.alias)) {
vite.resolve.alias = [...vite.resolve.alias, ...aliases];
} else {
for (const alias of aliases) {
(vite.resolve.alias as Record<string, string>)[alias.find] = alias.replacement;
}
}
vite.ssr = {

@@ -32,0 +41,0 @@ noExternal: true,

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