@editframe/vite-plugin 0.7.0-beta.1 → 0.7.0-beta.4

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.
@@ -10,7 +10,7 @@ const vitePluginEditframe = (options) => {
10
10
  name: "vite-plugin-editframe",
11
11
  configureServer(server) {
12
12
  server.middlewares.use(async (req, res, next) => {
13
- const log = debug("@ef:vite-plugin");
13
+ const log = debug("ef:vite-plugin");
14
14
  if (req.url?.startsWith("/@ef")) {
15
15
  forbidRelativePaths.forbidRelativePaths(req);
16
16
  } else {
@@ -8,7 +8,7 @@ const vitePluginEditframe = (options) => {
8
8
  name: "vite-plugin-editframe",
9
9
  configureServer(server) {
10
10
  server.middlewares.use(async (req, res, next) => {
11
- const log = debug("@ef:vite-plugin");
11
+ const log = debug("ef:vite-plugin");
12
12
  if (req.url?.startsWith("/@ef")) {
13
13
  forbidRelativePaths(req);
14
14
  } else {
@@ -9,7 +9,7 @@ const sendTaskResult = (req, res, taskResult) => {
9
9
  const headers = {
10
10
  etag: md5Sum
11
11
  };
12
- const log = debug("@ef:sendfile");
12
+ const log = debug("ef:sendfile");
13
13
  try {
14
14
  log(`Sending file ${filePath}`);
15
15
  const stats = node_fs.statSync(filePath);
@@ -7,7 +7,7 @@ const sendTaskResult = (req, res, taskResult) => {
7
7
  const headers = {
8
8
  etag: md5Sum
9
9
  };
10
- const log = debug("@ef:sendfile");
10
+ const log = debug("ef:sendfile");
11
11
  try {
12
12
  log(`Sending file ${filePath}`);
13
13
  const stats = statSync(filePath);
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@editframe/vite-plugin",
3
- "version": "0.7.0-beta.1",
3
+ "version": "0.7.0-beta.4",
4
4
  "description": "Editframe vite plugin",
5
5
  "exports": {
6
6
  ".": {
7
- "import": "./dist/packages/vite-plugin/index.js",
8
- "require": "./dist/packages/vite-plugin/index.cjs"
7
+ "import": {
8
+ "default": "./dist/packages/vite-plugin/index.js",
9
+ "types": "./dist/packages/vite-plugin/index.d.ts"
10
+ },
11
+ "require": {
12
+ "default": "./dist/packages/vite-plugin/index.cjs",
13
+ "types": "./dist/packages/vite-plugin/index.d.ts"
14
+ }
9
15
  }
10
16
  },
11
- "types": "./dist/packages/vite-plugin/index.d.ts",
12
17
  "scripts": {
13
18
  "typecheck": "tsc --noEmit --emitDeclarationOnly false",
14
19
  "build": "vite build",
@@ -18,8 +23,8 @@
18
23
  "author": "",
19
24
  "license": "UNLICENSED",
20
25
  "dependencies": {
21
- "@editframe/assets": "0.7.0-beta.1",
22
- "debug": "^4.3.4",
26
+ "@editframe/assets": "0.7.0-beta.4",
27
+ "debug": "^4.3.5",
23
28
  "mime": "^4.0.3",
24
29
  "node-html-parser": "^6.1.13",
25
30
  "vite": "^5.2.11"