@server/next 0.25.0 → 0.25.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
6
  "repository": "https://github.com/franciscop/server-next.git",
@@ -35,6 +35,10 @@
35
35
  "src/",
36
36
  "jsx-dev-runtime.js"
37
37
  ],
38
+ "exports": {
39
+ ".": "./src/index.js",
40
+ "./jsx-runtime": "./src/helpers/jsx.js"
41
+ },
38
42
  "devDependencies": {
39
43
  "argon2": "^0.40.3",
40
44
  "check-dts": "^0.8.2",
@@ -25,7 +25,7 @@ const getConfig = (routes) => {
25
25
  return config;
26
26
  };
27
27
 
28
- const pkg = await fsp
28
+ const pkgProm = fsp
29
29
  .readFile("package.json", "utf-8")
30
30
  .then((data) => JSON.parse(data))
31
31
  .catch(() => ({}));
@@ -113,6 +113,7 @@ const generateOpenApiPaths = (handlers) => {
113
113
  };
114
114
 
115
115
  export default async (ctx) => {
116
+ const pkg = await pkgProm;
116
117
  const domain = pkg.homepage || ctx.url.origin;
117
118
  const openApi = {
118
119
  openapi: "3.0.0",