primate 0.16.0 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primate",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Expressive, minimal and extensible web framework",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
@@ -0,0 +1 @@
1
+ export {serve as default} from "./serve.js";
@@ -1,9 +1,10 @@
1
1
  import {default as dev} from "./dev.js";
2
2
  import {default as serve} from "./serve.js";
3
+ import {default as build} from "./build.js";
3
4
  import {default as create} from "./create.js";
4
5
  import {default as help} from "./help.js";
5
6
 
6
- const commands = {dev, serve, create, help};
7
+ const commands = {dev, serve, build, create, help};
7
8
 
8
9
  const run = name => commands[name] ?? help;
9
10
 
@@ -63,8 +63,8 @@ export default async app => {
63
63
  });
64
64
 
65
65
  const publishedResource = request => {
66
- const published = app.resources.find(({src}) =>
67
- src === request.url.pathname);
66
+ const published = app.resources.find(({src, inline}) =>
67
+ !inline && src === request.url.pathname);
68
68
  if (published !== undefined) {
69
69
  return new Response(published.code, {
70
70
  status: statuses.OK,