@tknf/matchbox 0.2.1 → 0.2.3

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/dist/cgi.js CHANGED
@@ -2,7 +2,7 @@ import { Hono } from "hono";
2
2
  import { basicAuth } from "hono/basic-auth";
3
3
  import { getCookie, setCookie } from "hono/cookie";
4
4
  import packageJson from "../package.json";
5
- import { generateCgiError, generateCgiInfo } from "./html";
5
+ import { generateCgiError, generateCgiInfo } from "./html.js";
6
6
  const isRedirectObject = (obj) => {
7
7
  return obj && obj.__type === "redirect" && typeof obj.url === "string";
8
8
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createCgi } from "./with-defaults";
1
+ import { createCgi } from "./with-defaults.js";
2
2
  export {
3
3
  createCgi
4
4
  };
@@ -1,4 +1,4 @@
1
- import { createCgiWithPages } from "./cgi";
1
+ import { createCgiWithPages } from "./cgi.js";
2
2
  const loadPagesFromPublic = () => {
3
3
  const modules = import.meta.glob("/public/**/*.cgi.{tsx,jsx}", {
4
4
  eager: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tknf/matchbox",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "A Simple Web Server Framework",
5
5
  "keywords": [
6
6
  "cgi",
@@ -18,27 +18,19 @@
18
18
  "dist"
19
19
  ],
20
20
  "type": "module",
21
- "module": "dist/index.mjs",
22
- "types": "dist/index.d.mts",
21
+ "module": "dist/index.js",
22
+ "types": "dist/index.d.ts",
23
23
  "exports": {
24
24
  ".": {
25
- "require": {
26
- "types": "./dist/index.d.cts",
27
- "import": "./dist/index.cjs"
28
- },
29
25
  "import": {
30
- "types": "./dist/index.d.mts",
31
- "import": "./dist/index.mjs"
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
32
28
  }
33
29
  },
34
30
  "./plugin": {
35
- "require": {
36
- "types": "./dist/plugin.d.cts",
37
- "import": "./dist/plugin.cjs"
38
- },
39
31
  "import": {
40
- "types": "./dist/plugin.d.mts",
41
- "import": "./dist/plugin.mjs"
32
+ "types": "./dist/plugin.d.ts",
33
+ "import": "./dist/plugin.js"
42
34
  }
43
35
  }
44
36
  },