@astrojs/node
Advanced tools
Comparing version 2.0.1 to 2.0.2
# @astrojs/node | ||
## 2.0.2 | ||
### Patch Changes | ||
- [#5207](https://github.com/withastro/astro/pull/5207) [`c203a5cc2`](https://github.com/withastro/astro/commit/c203a5cc2f12d8c1c3e96d4f08bdd2bb2823e997) Thanks [@BeanWei](https://github.com/BeanWei)! - fix static server path for windows system | ||
## 2.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -9,4 +9,4 @@ import fs from "fs"; | ||
if (req.url) { | ||
const fileURL = new URL("." + req.url, client); | ||
const stream = send(req, fileURLToPath(fileURL), { | ||
const stream = send(req, encodeURI(req.url), { | ||
root: fileURLToPath(client), | ||
dotfiles: "deny" | ||
@@ -13,0 +13,0 @@ }); |
{ | ||
"name": "@astrojs/node", | ||
"description": "Deploy your site to a Node.js server", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"type": "module", | ||
@@ -32,3 +32,3 @@ "types": "./dist/index.d.ts", | ||
"@types/send": "^0.17.1", | ||
"astro": "1.5.1", | ||
"astro": "1.6.0", | ||
"astro-scripts": "0.0.8", | ||
@@ -35,0 +35,0 @@ "chai": "^4.3.6", |
@@ -19,5 +19,4 @@ import fs from 'fs'; | ||
if (req.url) { | ||
const fileURL = new URL('.' + req.url, client); | ||
const stream = send(req, fileURLToPath(fileURL), { | ||
const stream = send(req, encodeURI(req.url), { | ||
root: fileURLToPath(client), | ||
dotfiles: 'deny', | ||
@@ -24,0 +23,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46926