@michijs/dev-server 0.8.1-beta.6 → 0.8.1

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.
@@ -28,7 +28,7 @@ export const start = async (callback) => {
28
28
  if (!proxyRes.statusCode || proxyRes.statusCode === 404) {
29
29
  res.writeHead(200, {
30
30
  "Content-Type": "text/html",
31
- ...config.aditionalHeaders,
31
+ ...config.additionalHeaders,
32
32
  });
33
33
  // TODO: Find a better way to do this
34
34
  res.end(fs.readFileSync(getPath(`${config.esbuildOptions.outdir}/${config.public.indexName}`)));
@@ -37,7 +37,7 @@ export const start = async (callback) => {
37
37
  // Otherwise, forward the response from esbuild to the client
38
38
  res.writeHead(proxyRes.statusCode, {
39
39
  ...proxyRes.headers,
40
- ...config.aditionalHeaders,
40
+ ...config.additionalHeaders,
41
41
  });
42
42
  proxyRes.pipe(res, { end: true });
43
43
  });
@@ -113,6 +113,6 @@ declare const config: {
113
113
  port: number;
114
114
  openBrowser: boolean;
115
115
  showLinkedPackages: boolean;
116
- aditionalHeaders: http.OutgoingHttpHeaders | http.OutgoingHttpHeader[];
116
+ additionalHeaders: http.OutgoingHttpHeaders | http.OutgoingHttpHeader[];
117
117
  };
118
118
  export { config };
@@ -23,7 +23,7 @@ const config = {
23
23
  port: 3000,
24
24
  openBrowser: process.env.NODE_ENV === "DEVELOPMENT",
25
25
  showLinkedPackages: true,
26
- aditionalHeaders: {},
26
+ additionalHeaders: {},
27
27
  watch: process.env.NODE_ENV === "DEVELOPMENT",
28
28
  ...userConfig,
29
29
  // protocol: 'http',
package/bin/types.d.ts CHANGED
@@ -180,7 +180,7 @@ export interface Config {
180
180
  /**
181
181
  * Headers to send from the development server
182
182
  */
183
- aditionalHeaders?: OutgoingHttpHeaders | OutgoingHttpHeader[];
183
+ additionalHeaders?: OutgoingHttpHeaders | OutgoingHttpHeader[];
184
184
  }
185
185
  export type DefaultEnvironment = "PRODUCTION" | "DISTRIBUTION" | "DEVELOPMENT";
186
186
  export interface ServerConfig extends Config {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michijs/dev-server",
3
3
  "license": "MIT",
4
- "version": "0.8.1-beta.6",
4
+ "version": "0.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/michijs/dev-server.git"