primate 0.31.2 → 0.31.4
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 +1 -1
- package/src/hooks/stage.js +2 -0
- package/src/start.js +1 -2
package/package.json
CHANGED
package/src/hooks/stage.js
CHANGED
|
@@ -53,6 +53,8 @@ const post = async app => {
|
|
|
53
53
|
error instanceof DoubleRoute && errors.DoubleRoute.throw(error.route);
|
|
54
54
|
error instanceof OptionalRoute && errors.OptionalRoute.throw(error.route);
|
|
55
55
|
error instanceof RestRoute && errors.RestRoute.throw(error.route);
|
|
56
|
+
// rethrow original error
|
|
57
|
+
throw error;
|
|
56
58
|
}
|
|
57
59
|
const layout = { depth: router.depth("layout") };
|
|
58
60
|
return { ...app, types, dispatch: dispatch(types), layout, router };
|
package/src/start.js
CHANGED
|
@@ -11,11 +11,10 @@ import { print } from "./Logger.js";
|
|
|
11
11
|
const base_hooks = ["init", "stage", "register", "publish"];
|
|
12
12
|
|
|
13
13
|
const publish = async app => {
|
|
14
|
-
const location = app.get("location");
|
|
15
14
|
const http = app.get("http");
|
|
16
15
|
const client = app.runpath(app.get("location.client"));
|
|
17
16
|
|
|
18
|
-
const re = new RegExp(
|
|
17
|
+
const re = new RegExp("app..*(?:js|css)$", "u");
|
|
19
18
|
for (const path of await client.collect(re, { recursive: false })) {
|
|
20
19
|
const src = path.name;
|
|
21
20
|
const type = path.extension === ".css" ? "style" : "module";
|