@taujs/server 0.3.0 → 0.3.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.
|
@@ -27,7 +27,7 @@ declare const TEMPLATE: {
|
|
|
27
27
|
*
|
|
28
28
|
* Licensed under the MIT License — attribution appreciated.
|
|
29
29
|
* Part of the taujs [ τjs ] system for declarative, build-time orchestration of microfrontend applications,
|
|
30
|
-
* including SSR, streaming, and middleware composition.
|
|
30
|
+
* including CSR, SSR, streaming, and middleware composition.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
declare const createMaps: () => {
|
package/dist/build.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppConfig } from './config.js';
|
|
2
2
|
import 'vite';
|
|
3
|
-
import './SSRServer-
|
|
3
|
+
import './SSRServer-C7MMCfVq.js';
|
|
4
4
|
import 'node:http';
|
|
5
5
|
import 'fastify';
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import 'fastify';
|
|
|
11
11
|
*
|
|
12
12
|
* Licensed under the MIT License — attribution appreciated.
|
|
13
13
|
* Part of the taujs [ τjs ] system for declarative, build-time orchestration of microfrontend applications,
|
|
14
|
-
* including SSR, streaming, and middleware composition.
|
|
14
|
+
* including CSR, SSR, streaming, and middleware composition.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
declare function taujsBuild({ configs, projectRoot, clientBaseDir, isSSRBuild, }: {
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginOption } from 'vite';
|
|
2
|
-
import { R as Route, a as RouteParams, b as RouteAttributes } from './SSRServer-
|
|
2
|
+
import { R as Route, a as RouteParams, b as RouteAttributes } from './SSRServer-C7MMCfVq.js';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'fastify';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import 'fastify';
|
|
|
10
10
|
*
|
|
11
11
|
* Licensed under the MIT License — attribution appreciated.
|
|
12
12
|
* Part of the taujs [ τjs ] system for declarative, build-time orchestration of microfrontend applications,
|
|
13
|
-
* including SSR, streaming, and middleware composition.
|
|
13
|
+
* including CSR, SSR, streaming, and middleware composition.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
type AppRoute = Omit<Route<RouteParams>, 'appId'> & {
|
|
@@ -32,6 +32,6 @@ declare const extractBuildConfigs: (config: {
|
|
|
32
32
|
plugins?: PluginOption[];
|
|
33
33
|
}[];
|
|
34
34
|
}) => AppConfig[];
|
|
35
|
-
declare
|
|
35
|
+
declare const extractRoutes: (taujsConfig: TaujsConfig) => Route<RouteParams>[];
|
|
36
36
|
|
|
37
37
|
export { type AppConfig, type AppRoute, type TaujsConfig, extractBuildConfigs, extractRoutes };
|
package/dist/config.js
CHANGED
|
@@ -107,7 +107,7 @@ var extractBuildConfigs = (config) => {
|
|
|
107
107
|
plugins
|
|
108
108
|
}));
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
var extractRoutes = (taujsConfig) => {
|
|
111
111
|
console.log(import_picocolors.default.bold("Preparing taujs [ \u03C4js ]"));
|
|
112
112
|
const t0 = performance.now();
|
|
113
113
|
try {
|
|
@@ -136,10 +136,10 @@ function extractRoutes(taujsConfig) {
|
|
|
136
136
|
console.log(import_picocolors.default.red("Failed to prepare routes"));
|
|
137
137
|
throw err;
|
|
138
138
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return path.split("/").filter(Boolean).
|
|
142
|
-
}
|
|
139
|
+
};
|
|
140
|
+
var computeScore = (path) => {
|
|
141
|
+
return path.split("/").filter(Boolean).reduce((score, segment) => score + (segment.startsWith(":") ? 1 : 10), 0);
|
|
142
|
+
};
|
|
143
143
|
export {
|
|
144
144
|
extractBuildConfigs,
|
|
145
145
|
extractRoutes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FastifyReply } from 'fastify';
|
|
2
|
-
export { B as BaseMiddleware, C as Config, F as FetchConfig, I as InitialRouteParams, i as Manifest, M as ManifestEntry, N as NamedService, P as ProcessedConfig, g as RenderCallbacks, l as RenderModule, j as RenderSSR, k as RenderStream, R as Route, b as RouteAttributes, a as RouteParams, m as RoutePathsAndAttributes, h as SSRManifest, S as SSRServer, d as SSRServerOptions, e as ServiceMethod, f as ServiceRegistry, T as TEMPLATE, c as createMaps, p as processConfigs } from './SSRServer-
|
|
2
|
+
export { B as BaseMiddleware, C as Config, F as FetchConfig, I as InitialRouteParams, i as Manifest, M as ManifestEntry, N as NamedService, P as ProcessedConfig, g as RenderCallbacks, l as RenderModule, j as RenderSSR, k as RenderStream, R as Route, b as RouteAttributes, a as RouteParams, m as RoutePathsAndAttributes, h as SSRManifest, S as SSRServer, d as SSRServerOptions, e as ServiceMethod, f as ServiceRegistry, T as TEMPLATE, c as createMaps, p as processConfigs } from './SSRServer-C7MMCfVq.js';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'vite';
|
|
5
5
|
|
package/dist/security/csp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'fastify';
|
|
2
|
-
export { n as CSPDirectives, o as CSPOptions, u as applyCSP, s as createCSPHook, q as defaultGenerateCSP, r as generateNonce, t as getRequestNonce } from '../SSRServer-
|
|
2
|
+
export { n as CSPDirectives, o as CSPOptions, u as applyCSP, s as createCSPHook, q as defaultGenerateCSP, r as generateNonce, t as getRequestNonce } from '../SSRServer-C7MMCfVq.js';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'vite';
|