@editframe/vite-plugin 0.8.0-beta.1 → 0.8.0-beta.10

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.
@@ -1,3 +1,2 @@
1
1
  import { IncomingMessage } from 'connect';
2
-
3
2
  export declare const forbidRelativePaths: (req: IncomingMessage) => void;
@@ -2,8 +2,5 @@ interface VitePluginEditframeOptions {
2
2
  root: string;
3
3
  cacheRoot: string;
4
4
  }
5
- export declare const vitePluginEditframe: (options: VitePluginEditframeOptions) => {
6
- name: string;
7
- configureServer(this: void, server: import('vite').ViteDevServer): void;
8
- };
5
+ export declare const vitePluginEditframe: (options: VitePluginEditframeOptions) => Plugin;
9
6
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ServerResponse } from 'node:http';
2
2
  import { IncomingMessage } from 'connect';
3
3
  import { TaskResult } from '../../assets/src';
4
-
5
4
  export declare const sendTaskResult: (req: IncomingMessage, res: ServerResponse<IncomingMessage>, taskResult: TaskResult) => ServerResponse<IncomingMessage> | undefined;
@@ -40,7 +40,7 @@ const sendTaskResult = (req, res, taskResult) => {
40
40
  ...headers,
41
41
  "Content-Type": mime.getType(filePath) || "text/plain",
42
42
  "Cache-Control": "max-age=3600",
43
- "Contetn-Length": stats.size
43
+ "Content-Length": stats.size
44
44
  });
45
45
  log(`Sending ${filePath}`);
46
46
  const readStream = createReadStream(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/vite-plugin",
3
- "version": "0.8.0-beta.1",
3
+ "version": "0.8.0-beta.10",
4
4
  "description": "Editframe vite plugin",
5
5
  "exports": {
6
6
  ".": {
@@ -19,7 +19,7 @@
19
19
  "author": "",
20
20
  "license": "UNLICENSED",
21
21
  "dependencies": {
22
- "@editframe/assets": "0.8.0-beta.1",
22
+ "@editframe/assets": "0.8.0-beta.10",
23
23
  "debug": "^4.3.5",
24
24
  "mime": "^4.0.3",
25
25
  "node-html-parser": "^6.1.13",
@@ -30,7 +30,7 @@
30
30
  "@types/node": "^20.14.13",
31
31
  "connect": "^3.7.0",
32
32
  "typescript": "^5.5.4",
33
- "vite-plugin-dts": "^3.9.1",
33
+ "vite-plugin-dts": "^4.0.3",
34
34
  "vite-tsconfig-paths": "^4.3.2"
35
35
  }
36
36
  }