react-email 4.1.0-canary.10 → 4.1.0-canary.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-email
2
2
 
3
+ ## 4.1.0-canary.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 19d4b45: fix static file serving security issue with logging
8
+
3
9
  ## 4.1.0-canary.10
4
10
 
5
11
  ## 4.1.0-canary.9
package/dist/index.js CHANGED
@@ -106,7 +106,7 @@ import prompts from "prompts";
106
106
  // package.json
107
107
  var package_default = {
108
108
  name: "react-email",
109
- version: "4.1.0-canary.10",
109
+ version: "4.1.0-canary.11",
110
110
  description: "A live preview of your emails right in your browser.",
111
111
  bin: {
112
112
  email: "./dist/index.js"
@@ -514,7 +514,8 @@ var serveStaticFile = async (res, parsedUrl, staticDirRelativePath) => {
514
514
  } else {
515
515
  const sanitizedFilePath = fileAbsolutePath.replace(/\n|\r/g, "");
516
516
  console.error(
517
- `Could not read file at ${sanitizedFilePath} to be served, here's the exception:`,
517
+ `Could not read file at %s to be served, here's the exception:`,
518
+ sanitizedFilePath,
518
519
  exception
519
520
  );
520
521
  res.statusCode = 500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "4.1.0-canary.10",
3
+ "version": "4.1.0-canary.11",
4
4
  "description": "A live preview of your emails right in your browser.",
5
5
  "bin": {
6
6
  "email": "./dist/index.js"
@@ -38,7 +38,8 @@ export const serveStaticFile = async (
38
38
  } else {
39
39
  const sanitizedFilePath = fileAbsolutePath.replace(/\n|\r/g, '');
40
40
  console.error(
41
- `Could not read file at ${sanitizedFilePath} to be served, here's the exception:`,
41
+ `Could not read file at %s to be served, here's the exception:`,
42
+ sanitizedFilePath,
42
43
  exception,
43
44
  );
44
45