Huge News!Announcing our $40M Series B led by Abstract Ventures.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.6 to 0.1.7

6

CHANGELOG.md
# @astrojs/node
## 0.1.7
### Patch Changes
- [#3734](https://github.com/withastro/astro/pull/3734) [`4acd245d`](https://github.com/withastro/astro/commit/4acd245d8f59871eb9c0083ae1a0fe7aa70c84f5) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: append shim to top of built file to avoid "can't read process of undefined" issues
## 0.1.6

@@ -4,0 +10,0 @@

9

dist/index.js

@@ -5,2 +5,6 @@ import esbuild from "esbuild";

import { fileURLToPath } from "url";
const SHIM = `globalThis.process = {
argv: [],
env: Deno.env.toObject(),
};`;
function getAdapter(args) {

@@ -56,3 +60,6 @@ return {

bundle: true,
external: ["@astrojs/markdown-remark"]
external: ["@astrojs/markdown-remark"],
banner: {
js: SHIM
}
});

@@ -59,0 +66,0 @@ try {

1

dist/server.d.ts

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

import './shim.js';
import type { SSRManifest } from 'astro';

@@ -3,0 +2,0 @@ interface Options {

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

import "./shim.js";
import { App } from "astro/app";

@@ -3,0 +2,0 @@ import { Server } from "https://deno.land/std@0.132.0/http/server.ts";

{
"name": "@astrojs/deno",
"description": "Deploy your site to a Deno server",
"version": "0.1.6",
"version": "0.1.7",
"type": "module",

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

"dependencies": {
"esbuild": "^0.14.42"
"esbuild": "^0.14.43"
},
"devDependencies": {
"astro": "1.0.0-beta.51",
"astro-scripts": "0.0.4"
"astro": "1.0.0-beta.58",
"astro-scripts": "0.0.5"
},

@@ -29,0 +29,0 @@ "scripts": {

@@ -12,2 +12,7 @@ import type { AstroAdapter, AstroIntegration } from 'astro';

const SHIM = `globalThis.process = {
argv: [],
env: Deno.env.toObject(),
};`;
export function getAdapter(args?: Options): AstroAdapter {

@@ -67,2 +72,5 @@ return {

external: ['@astrojs/markdown-remark'],
banner: {
js: SHIM,
},
});

@@ -69,0 +77,0 @@

@@ -1,6 +0,1 @@

// NOTE(fks): Side-effect -- shim.js must run first. This isn't guaranteed by
// the language, but it is a Node.js behavior that we rely on here. Keep this
// separate from the other imports so that it doesn't get organized & reordered.
import './shim.js';
// Normal Imports

@@ -48,2 +43,3 @@ import type { SSRManifest } from 'astro';

_startPromise = Promise.resolve(_server.listenAndServe());
// eslint-disable-next-line no-console
console.error(`Server running on port ${port}`);

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