@primate/core 0.1.8 → 0.1.10
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.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Primate core",
|
|
5
5
|
"homepage": "https://primatejs.com",
|
|
6
6
|
"bugs": "https://github.com/primatejs/primate/issues",
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
"directory": "packages/core"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
+
"@rcompat/args": "^0.3.0",
|
|
19
20
|
"@rcompat/array": "^0.3.0",
|
|
20
21
|
"@rcompat/async": "^0.3.0",
|
|
21
|
-
"@rcompat/build": "^0.
|
|
22
|
+
"@rcompat/build": "^0.6.0",
|
|
22
23
|
"@rcompat/cli": "^0.5.1",
|
|
23
24
|
"@rcompat/crypto": "^0.5.0",
|
|
24
|
-
"@rcompat/fs": "^0.
|
|
25
|
+
"@rcompat/fs": "^0.7.0",
|
|
25
26
|
"@rcompat/function": "^0.4.0",
|
|
26
|
-
"@rcompat/http": "^0.6.
|
|
27
|
+
"@rcompat/http": "^0.6.1",
|
|
27
28
|
"@rcompat/invariant": "^0.5.0",
|
|
28
29
|
"@rcompat/object": "^0.5.0",
|
|
29
30
|
"@rcompat/package": "^0.8.0",
|
package/src/build/hook/build.js
CHANGED
|
@@ -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
|
|
package/src/build/hook/router.js
CHANGED
|
@@ -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