@primate/core 0.1.8 → 0.1.9

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/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Primate core",
5
5
  "homepage": "https://primatejs.com",
6
6
  "bugs": "https://github.com/primatejs/primate/issues",
@@ -21,9 +21,9 @@
21
21
  "@rcompat/build": "^0.5.0",
22
22
  "@rcompat/cli": "^0.5.1",
23
23
  "@rcompat/crypto": "^0.5.0",
24
- "@rcompat/fs": "^0.6.0",
24
+ "@rcompat/fs": "^0.7.0",
25
25
  "@rcompat/function": "^0.4.0",
26
- "@rcompat/http": "^0.6.0",
26
+ "@rcompat/http": "^0.6.1",
27
27
  "@rcompat/invariant": "^0.5.0",
28
28
  "@rcompat/object": "^0.5.0",
29
29
  "@rcompat/package": "^0.8.0",
@@ -41,7 +41,8 @@ const pre = async (app, mode, target) => {
41
41
  await Promise.all(["server", "client", "components"]
42
42
  .map(directory => app.runpath(directory).create()));
43
43
 
44
- const router = await $router(app.path.routes);
44
+ const router = await $router(app.path.routes,
45
+ [".js"].concat(Object.keys(app.bindings)));
45
46
  const layout = { depth: router.depth("layout") };
46
47
  app.set("layout", layout);
47
48
 
@@ -9,10 +9,11 @@ const error_entries = Object.entries({
9
9
  RestRoute: rest_route,
10
10
  });
11
11
 
12
- export default async directory => {
13
-
12
+ export default async (directory, extensions) => {
14
13
  try {
15
14
  return await Router.load({
15
+ import: false,
16
+ extensions,
16
17
  directory,
17
18
  specials: {
18
19
  guard: { recursive: true },
package/src/serve/app.js CHANGED
@@ -193,8 +193,9 @@ export default async (rootfile, build) => {
193
193
  this.handlers[extension] = handle;
194
194
  },
195
195
  hash,
196
- // noop
196
+ // noops
197
197
  target(name, handler) {},
198
+ bind(extension, handler) {},
198
199
  build_target: target,
199
200
  loader,
200
201
  stop() {