@jsenv/core 39.5.21 → 39.5.22

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.
@@ -4851,7 +4851,7 @@ const writeHead = (
4851
4851
  if (statusText === undefined) {
4852
4852
  statusText = statusTextFromStatus(status);
4853
4853
  } else {
4854
- statusText = statusText.replace(/\\n/g, "\n");
4854
+ statusText = statusText.replace(/\n/g, "");
4855
4855
  }
4856
4856
  if (responseIsServerHttp2Stream) {
4857
4857
  nodeHeaders = {
@@ -19908,13 +19908,13 @@ const injectImportMetaHot = (urlInfo, importMetaHotClientFileUrl) => {
19908
19908
  expectedType: "js_module",
19909
19909
  specifier: importMetaHotClientFileUrl,
19910
19910
  });
19911
- const magicSource = createMagicSource(urlInfo.content);
19912
- magicSource.prepend(
19913
- `import { createImportMetaHot } from ${importMetaHotClientFileReference.generatedSpecifier};
19911
+ let content = urlInfo.content;
19912
+ let prelude = `import { createImportMetaHot } from ${importMetaHotClientFileReference.generatedSpecifier};
19914
19913
  import.meta.hot = createImportMetaHot(import.meta.url);
19915
- `,
19916
- );
19917
- return magicSource.toContentAndSourcemap();
19914
+ `;
19915
+ return {
19916
+ content: `${prelude.replace(/\n/g, "")}${content}`,
19917
+ };
19918
19918
  };
19919
19919
 
19920
19920
  const jsenvPluginAutoreloadClient = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.5.21",
3
+ "version": "39.5.22",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -78,10 +78,10 @@
78
78
  "@jsenv/node-esm-resolution": "1.0.6",
79
79
  "@jsenv/plugin-bundling": "2.7.16",
80
80
  "@jsenv/plugin-minification": "1.5.10",
81
- "@jsenv/plugin-supervisor": "1.5.26",
81
+ "@jsenv/plugin-supervisor": "1.5.27",
82
82
  "@jsenv/plugin-transpilation": "1.4.84",
83
83
  "@jsenv/runtime-compat": "1.3.1",
84
- "@jsenv/server": "15.3.2",
84
+ "@jsenv/server": "15.3.3",
85
85
  "@jsenv/sourcemap": "1.2.25",
86
86
  "@jsenv/url-meta": "8.5.2",
87
87
  "@jsenv/urls": "2.5.2",
@@ -109,11 +109,11 @@ const injectImportMetaHot = (urlInfo, importMetaHotClientFileUrl) => {
109
109
  expectedType: "js_module",
110
110
  specifier: importMetaHotClientFileUrl,
111
111
  });
112
- const magicSource = createMagicSource(urlInfo.content);
113
- magicSource.prepend(
114
- `import { createImportMetaHot } from ${importMetaHotClientFileReference.generatedSpecifier};
112
+ let content = urlInfo.content;
113
+ let prelude = `import { createImportMetaHot } from ${importMetaHotClientFileReference.generatedSpecifier};
115
114
  import.meta.hot = createImportMetaHot(import.meta.url);
116
- `,
117
- );
118
- return magicSource.toContentAndSourcemap();
115
+ `;
116
+ return {
117
+ content: `${prelude.replace(/\n/g, "")}${content}`,
118
+ };
119
119
  };