@_tc/template-core 0.4.0 → 0.4.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/.skills/tc-component-usage-skills/reference/component-api.md +27 -0
- package/.skills/tc-generator/SKILL.md +1 -1
- package/.skills/tc-generator/reference/project-template/ssr/apps/hello/hello.entry.tsx +6 -1
- package/.skills/tc-generator/reference/runtime-extensions.md +10 -0
- package/AGENT_README.md +8 -2
- package/CHANGE.md +27 -0
- package/README.md +157 -8
- package/cjs/app/ai/agent/agent-scanner.service.js +1 -1
- package/cjs/app/ai/agent/agent.module.js +1 -1
- package/cjs/app/ai/ai-config.module.js +1 -1
- package/cjs/app/ai/ai-config.service.js +1 -1
- package/cjs/app/ai/ai.controller.js +1 -1
- package/cjs/app/ai/ai.module.js +1 -1
- package/cjs/app/ai/guardrail/guardrail.module.js +1 -1
- package/cjs/app/ai/guardrail/guardrail.service.js +1 -1
- package/cjs/app/ai/index.js +1 -0
- package/cjs/app/ai/mcp/internal/read-sse-response.js +2 -0
- package/cjs/app/ai/mcp/internal/stdio-process.js +1 -0
- package/cjs/app/ai/mcp/mcp-registry.service.js +2 -2
- package/cjs/app/ai/mcp/mcp.client.js +2 -3
- package/cjs/app/ai/mcp/mcp.loader.js +1 -1
- package/cjs/app/ai/mcp/mcp.module.js +1 -1
- package/cjs/app/ai/memory/checkpoint.service.js +1 -1
- package/cjs/app/ai/memory/memory.module.js +1 -1
- package/cjs/app/ai/memory/thread.service.js +1 -1
- package/cjs/app/ai/models/chat-sse.js +4 -0
- package/cjs/app/ai/models/chat.js +1 -0
- package/cjs/app/ai/models/http.js +1 -0
- package/cjs/app/ai/models/image.js +1 -0
- package/cjs/app/ai/models/video.js +1 -0
- package/cjs/app/ai/nest-service-provider.js +1 -0
- package/cjs/app/ai/rag/rag.module.js +1 -1
- package/cjs/app/ai/rag/retriever.service.js +1 -1
- package/cjs/app/ai/retention/conversation-retention.service.js +1 -1
- package/cjs/app/ai/runtime/ai-runtime-startup.validator.js +1 -1
- package/cjs/app/ai/runtime/ai-runtime.js +1 -0
- package/cjs/app/ai/runtime/internal/context-compaction.service.js +3 -3
- package/cjs/app/ai/runtime/internal/declaration-snapshot.js +1 -0
- package/cjs/app/ai/runtime/internal/owned-runtime-resources.js +1 -0
- package/cjs/app/ai/runtime/langchain/langchain-planner.service.js +1 -1
- package/cjs/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +1 -1
- package/cjs/app/ai/runtime/runtime.module.js +1 -1
- package/cjs/app/ai/skill/skill-scanner.service.js +1 -1
- package/cjs/app/ai/skill/skill.module.js +1 -1
- package/cjs/app/ai/snapshot-data.js +1 -0
- package/cjs/app/ai/store/internal/create-vector-store.js +1 -0
- package/cjs/app/ai/store/store.module.js +1 -1
- package/cjs/app/ai/tool/builtin/index.js +1 -1
- package/cjs/app/ai/tool/builtin/invoke-agent.tool.js +1 -1
- package/cjs/app/ai/tool/builtin/retrieve.tool.js +1 -1
- package/cjs/app/ai/tool/executor.service.js +1 -1
- package/cjs/app/ai/tool/tool-registry.service.js +1 -1
- package/cjs/app/ai/tool/tool.module.js +1 -1
- package/cjs/app/ai/trace/trace.service.js +1 -1
- package/cjs/app/csr/controller.js +1 -1
- package/cjs/app/csr/types.js +0 -0
- package/cjs/app/html/browser-options.js +1 -1
- package/cjs/app/html/shell.js +31 -16
- package/cjs/app/http/api-signing.js +1 -0
- package/cjs/app/http/body-parser.middleware.js +1 -1
- package/cjs/app/http/csp-nonce.js +1 -0
- package/cjs/app/http/error-response.js +1 -1
- package/cjs/app/http/exception-filter.js +1 -1
- package/cjs/app/http/request-body-parser-policy.js +1 -0
- package/cjs/app/http/security.guard.js +1 -1
- package/cjs/app/project/controller.js +1 -1
- package/cjs/app/project/service.js +1 -1
- package/cjs/app/providers/foundation.js +1 -1
- package/cjs/app/ssr/artifacts.js +1 -1
- package/cjs/app/ssr/controller.js +1 -1
- package/cjs/app/ssr/html.js +17 -17
- package/cjs/app/ssr/stream.js +1 -1
- package/cjs/app/static-assets.middleware.js +1 -1
- package/cjs/app/template-core.module.js +1 -1
- package/cjs/app/view/entry.tpl +2 -2
- package/cjs/bundler/buildSSR.js +1 -1
- package/cjs/bundler/entryCollect.js +1 -1
- package/cjs/bundler/feSharedConfig.js +1 -1
- package/cjs/bundler/utils.js +3 -3
- package/cjs/config/config.default.js +1 -1
- package/cjs/packages/common/index.js +1 -1
- package/cjs/packages/core/bootstrap.js +1 -1
- package/cjs/packages/core/startup.js +1 -1
- package/esm/app/ai/agent/agent-scanner.service.js +33 -36
- package/esm/app/ai/agent/agent.module.js +9 -7
- package/esm/app/ai/ai-config.module.js +14 -7
- package/esm/app/ai/ai-config.service.js +24 -20
- package/esm/app/ai/ai.controller.js +41 -41
- package/esm/app/ai/ai.module.js +15 -15
- package/esm/app/ai/guardrail/guardrail.module.js +11 -9
- package/esm/app/ai/guardrail/guardrail.service.js +5 -10
- package/esm/app/ai/index.js +2 -0
- package/esm/app/ai/mcp/internal/read-sse-response.js +35 -0
- package/esm/app/ai/mcp/internal/stdio-process.js +59 -0
- package/esm/app/ai/mcp/mcp-registry.service.js +10 -15
- package/esm/app/ai/mcp/mcp.client.js +77 -78
- package/esm/app/ai/mcp/mcp.loader.js +64 -42
- package/esm/app/ai/mcp/mcp.module.js +62 -22
- package/esm/app/ai/memory/checkpoint.service.js +18 -28
- package/esm/app/ai/memory/memory.module.js +15 -12
- package/esm/app/ai/memory/thread.service.js +21 -26
- package/esm/app/ai/models/chat-sse.js +44 -0
- package/esm/app/ai/models/chat.js +60 -0
- package/esm/app/ai/models/http.js +52 -0
- package/esm/app/ai/models/image.js +37 -0
- package/esm/app/ai/models/video.js +32 -0
- package/esm/app/ai/nest-service-provider.js +10 -0
- package/esm/app/ai/rag/rag.module.js +24 -15
- package/esm/app/ai/rag/retriever.service.js +37 -54
- package/esm/app/ai/retention/conversation-retention.service.js +16 -34
- package/esm/app/ai/runtime/ai-runtime-startup.validator.js +2 -19
- package/esm/app/ai/runtime/ai-runtime.js +104 -0
- package/esm/app/ai/runtime/internal/context-compaction.service.js +139 -145
- package/esm/app/ai/runtime/internal/declaration-snapshot.js +32 -0
- package/esm/app/ai/runtime/internal/owned-runtime-resources.js +21 -0
- package/esm/app/ai/runtime/langchain/langchain-planner.service.js +43 -49
- package/esm/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +273 -225
- package/esm/app/ai/runtime/runtime.module.js +56 -35
- package/esm/app/ai/skill/skill-scanner.service.js +11 -16
- package/esm/app/ai/skill/skill.module.js +11 -9
- package/esm/app/ai/snapshot-data.js +24 -0
- package/esm/app/ai/store/internal/create-vector-store.js +10 -0
- package/esm/app/ai/store/store.module.js +9 -13
- package/esm/app/ai/tool/builtin/index.js +16 -4
- package/esm/app/ai/tool/builtin/invoke-agent.tool.js +30 -34
- package/esm/app/ai/tool/builtin/retrieve.tool.js +9 -13
- package/esm/app/ai/tool/executor.service.js +22 -29
- package/esm/app/ai/tool/tool-registry.service.js +6 -16
- package/esm/app/ai/tool/tool.module.js +26 -12
- package/esm/app/ai/trace/trace.service.js +15 -28
- package/esm/app/csr/controller.js +114 -63
- package/esm/app/csr/types.js +0 -0
- package/esm/app/html/browser-options.js +2 -2
- package/esm/app/html/shell.js +173 -32
- package/esm/app/http/api-signing.js +13 -0
- package/esm/app/http/body-parser.middleware.js +47 -27
- package/esm/app/http/csp-nonce.js +13 -0
- package/esm/app/http/error-response.js +8 -5
- package/esm/app/http/exception-filter.js +4 -4
- package/esm/app/http/request-body-parser-policy.js +46 -0
- package/esm/app/http/security.guard.js +23 -21
- package/esm/app/project/controller.js +15 -15
- package/esm/app/project/service.js +3 -3
- package/esm/app/providers/foundation.js +5 -5
- package/esm/app/ssr/artifacts.js +25 -21
- package/esm/app/ssr/controller.js +148 -75
- package/esm/app/ssr/html.js +49 -44
- package/esm/app/ssr/stream.js +25 -24
- package/esm/app/static-assets.middleware.js +4 -4
- package/esm/app/template-core.module.js +57 -52
- package/esm/app/view/entry.tpl +2 -2
- package/esm/bundler/buildSSR.js +1 -1
- package/esm/bundler/entryCollect.js +9 -9
- package/esm/bundler/feSharedConfig.js +42 -42
- package/esm/bundler/utils.js +78 -90
- package/esm/config/config.default.js +4 -3
- package/esm/packages/common/index.js +6 -6
- package/esm/packages/core/bootstrap.js +5 -5
- package/esm/packages/core/startup.js +69 -46
- package/fe/frontend/src/common/request.js +5 -2
- package/fe/frontend/src/hooks/useRouterParams.d.ts +4 -2
- package/fe/packages/common/ssr/hydration.d.ts +9 -0
- package/fe/packages/react/core/Label/Label.d.ts +1 -0
- package/fe/packages/react/core/Label/Label.js +3 -1
- package/fe/packages/react/core/internal/i18n/default.d.ts +13 -0
- package/fe/packages/react/core/internal/i18n/default.js +16 -1
- package/fe/packages/react/core/internal/i18n/en-US.d.ts +13 -0
- package/fe/packages/react/core/internal/i18n/en-US.js +16 -1
- package/fe/packages/react/forms/DataTable/index.d.ts +2 -0
- package/fe/packages/react/forms/DataTable/index.js +43 -29
- package/fe/packages/react/forms/Form/FormItem.js +39 -12
- package/fe/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
- package/fe/packages/react/forms/MultiSelect/MultiSelect.js +218 -0
- package/fe/packages/react/forms/MultiSelect/index.d.ts +1 -0
- package/fe/packages/react/forms/MultiSelect/index.js +2 -0
- package/fe/packages/react/forms/Pagination/Pagination.d.ts +6 -1
- package/fe/packages/react/forms/Pagination/Pagination.js +13 -4
- package/fe/packages/react/forms/Select/Select.d.ts +11 -0
- package/fe/packages/react/forms/Select/Select.js +20 -7
- package/fe/packages/react/forms/index.d.ts +1 -0
- package/fe/packages/react/forms/index.js +3 -1
- package/fe/packages/react/i18n/getUiReactLocale.d.ts +26 -0
- package/fe/packages/react/index.js +2 -1
- package/fe/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
- package/fe/packages/react/overlays/Drawer/Drawer.js +16 -2
- package/fe/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
- package/fe/packages/react/overlays/Dropdown/Dropdown.js +27 -14
- package/fe/packages/react/overlays/Modal/Modal.d.ts +11 -3
- package/fe/packages/react/overlays/Modal/Modal.js +26 -2
- package/fe/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
- package/fe/packages/react/overlays/Modal/ModalManager.js +15 -5
- package/fe/packages/react/overlays/Modal/index.d.ts +1 -0
- package/fe/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
- package/fe/packages/react/overlays/Overlay/Overlay.js +31 -14
- package/fe/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
- package/fe/packages/react/overlays/Overlay/focusTypes.js +0 -0
- package/fe/packages/react/overlays/Overlay/index.d.ts +1 -0
- package/fe/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
- package/fe/packages/react/overlays/Overlay/overlayStack.js +290 -0
- package/fe/packages/react/overlays/Popup/Popup.d.ts +5 -4
- package/fe/packages/react/overlays/Popup/Popup.js +28 -11
- package/fe/packages/react/ui/components/index.js +2 -1
- package/fe/packages/react/ui/index.js +2 -1
- package/fe/ssr/components/StreamingRender/StreamingCache.d.ts +1 -0
- package/fe/ssr/components/StreamingRender/StreamingCache.js +5 -1
- package/fe/ssr/components/StreamingRender/StreamingRender.js +1 -1
- package/fe/ssr/components/StreamingRender/StreamingScript.d.ts +1 -0
- package/fe/ssr/components/StreamingRender/StreamingScript.js +9 -1
- package/fe/ssr/createSSREntry.d.ts +9 -3
- package/fe/ssr/createSSREntry.js +43 -19
- package/fe/ssr/index.d.ts +4 -1
- package/fe/ssr/index.js +2 -1
- package/fe/ssr/router.d.ts +76 -0
- package/fe/ssr/router.js +349 -0
- package/fe/ssr/types.d.ts +1 -1
- package/models/packages/common/ssr/hydration.d.ts +9 -0
- package/models/packages/react/core/Label/Label.d.ts +1 -0
- package/models/packages/react/core/internal/i18n/default.d.ts +13 -0
- package/models/packages/react/core/internal/i18n/en-US.d.ts +13 -0
- package/models/packages/react/forms/DataTable/index.d.ts +2 -0
- package/models/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
- package/models/packages/react/forms/MultiSelect/index.d.ts +1 -0
- package/models/packages/react/forms/Pagination/Pagination.d.ts +6 -1
- package/models/packages/react/forms/Select/Select.d.ts +11 -0
- package/models/packages/react/forms/index.d.ts +1 -0
- package/models/packages/react/i18n/getUiReactLocale.d.ts +26 -0
- package/models/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
- package/models/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
- package/models/packages/react/overlays/Modal/Modal.d.ts +11 -3
- package/models/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
- package/models/packages/react/overlays/Modal/index.d.ts +1 -0
- package/models/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
- package/models/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
- package/models/packages/react/overlays/Overlay/index.d.ts +1 -0
- package/models/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
- package/models/packages/react/overlays/Popup/Popup.d.ts +5 -4
- package/package.json +26 -1
- package/types/app/ai/agent/agent-scanner.service.d.ts +4 -4
- package/types/app/ai/ai-config.service.d.ts +7 -3
- package/types/app/ai/guardrail/guardrail.service.d.ts +2 -2
- package/types/app/ai/index.d.ts +9 -0
- package/types/app/ai/mcp/internal/load-mcp-config.d.ts +2 -2
- package/types/app/ai/mcp/internal/read-sse-response.d.ts +2 -0
- package/types/app/ai/mcp/internal/stdio-process.d.ts +5 -0
- package/types/app/ai/mcp/mcp-registry.service.d.ts +5 -3
- package/types/app/ai/mcp/mcp.client.d.ts +7 -4
- package/types/app/ai/mcp/mcp.loader.d.ts +11 -11
- package/types/app/ai/mcp/mcp.module.d.ts +5 -5
- package/types/app/ai/memory/thread.service.d.ts +3 -3
- package/types/app/ai/models/chat-sse.d.ts +5 -0
- package/types/app/ai/models/chat.d.ts +22 -0
- package/types/app/ai/models/http.d.ts +20 -0
- package/types/app/ai/models/image.d.ts +69 -0
- package/types/app/ai/models/video.d.ts +99 -0
- package/types/app/ai/nest-service-provider.d.ts +6 -0
- package/types/app/ai/retention/conversation-retention.service.d.ts +3 -4
- package/types/app/ai/runtime/ai-runtime-startup.validator.d.ts +2 -3
- package/types/app/ai/runtime/ai-runtime.d.ts +46 -0
- package/types/app/ai/runtime/internal/agent-run-context.d.ts +4 -0
- package/types/app/ai/runtime/internal/context-compaction.service.d.ts +2 -2
- package/types/app/ai/runtime/internal/declaration-snapshot.d.ts +8 -0
- package/types/app/ai/runtime/internal/owned-runtime-resources.d.ts +5 -0
- package/types/app/ai/runtime/langchain/langchain-planner.service.d.ts +1 -1
- package/types/app/ai/runtime/langgraph/langgraph-orchestrator.service.d.ts +33 -16
- package/types/app/ai/skill/skill-scanner.service.d.ts +3 -4
- package/types/app/ai/snapshot-data.d.ts +1 -0
- package/types/app/ai/store/internal/create-vector-store.d.ts +4 -0
- package/types/app/ai/tool/builtin/index.d.ts +1 -1
- package/types/app/ai/tool/builtin/invoke-agent.tool.d.ts +10 -3
- package/types/app/ai/tool/builtin/retrieve.tool.d.ts +4 -3
- package/types/app/ai/tool/executor.service.d.ts +3 -3
- package/types/app/ai/tool/tool-registry.service.d.ts +2 -7
- package/types/app/ai/tool/tool.interface.d.ts +1 -1
- package/types/app/ai/tool/tool.module.d.ts +8 -1
- package/types/app/ai/trace/trace.service.d.ts +4 -5
- package/types/app/csr/types.d.ts +10 -0
- package/types/app/html/browser-options.d.ts +1 -1
- package/types/app/html/shell.d.ts +37 -10
- package/types/app/http/api-signing.d.ts +16 -0
- package/types/app/http/body-parser.middleware.d.ts +6 -2
- package/types/app/http/csp-nonce.d.ts +3 -0
- package/types/app/http/error-response.d.ts +1 -0
- package/types/app/http/request-body-parser-policy.d.ts +8 -0
- package/types/app/http/security.guard.d.ts +1 -0
- package/types/app/ssr/artifacts.d.ts +6 -3
- package/types/app/ssr/html.d.ts +7 -0
- package/types/app/ssr/stream.d.ts +1 -1
- package/types/app/ssr/types.d.ts +56 -0
- package/types/bundler/buildSSR.d.ts +2 -1
- package/types/bundler/index.d.ts +1 -1
- package/types/bundler/state.d.ts +13 -0
- package/types/bundler/utils.d.ts +3 -14
- package/types/config/config.default.d.ts +9 -3
- package/types/index.d.ts +4 -1
- package/types/packages/common/ssr/hydration.d.ts +13 -0
- package/types/packages/core/index.d.ts +1 -1
- package/types/packages/core/startup.d.ts +41 -0
package/esm/bundler/utils.js
CHANGED
|
@@ -8,68 +8,68 @@ import { createBundlerPaths as d, createCSRResolveAlias as f, createFEBasePlugin
|
|
|
8
8
|
import { moveClientManifestToSSRPrivate as m } from "./ssrClientManifest.js";
|
|
9
9
|
import { collectBundlerSSREntries as te } from "./ssrEntries.js";
|
|
10
10
|
import { normalizeBuildFEOptions as ne } from "./state.js";
|
|
11
|
-
import h from "
|
|
12
|
-
import
|
|
13
|
-
import { existsSync as _, mkdirSync as v, readFileSync as y, readdirSync as re, realpathSync as b, rmSync as
|
|
14
|
-
import { build as
|
|
11
|
+
import * as h from "glob";
|
|
12
|
+
import g from "path";
|
|
13
|
+
import { existsSync as _, mkdirSync as v, readFileSync as y, readdirSync as re, realpathSync as b, rmSync as x, rmdirSync as S, unlinkSync as ie, writeFileSync as C } from "fs";
|
|
14
|
+
import { build as ae } from "vite";
|
|
15
15
|
//#region bundler/utils.ts
|
|
16
|
-
var
|
|
16
|
+
var w = d(), T = w.frameNodePath, E = w.frameFEPath, oe = "<!-- {{InsertScript}} -->", D = {
|
|
17
17
|
head: "<!-- TC_HEAD_SLOT -->",
|
|
18
18
|
bodyBeforeRoot: "<!-- TC_BODY_BEFORE_ROOT_SLOT -->",
|
|
19
19
|
bodyAfterRoot: "<!-- TC_BODY_AFTER_ROOT_SLOT -->"
|
|
20
|
-
},
|
|
20
|
+
}, O = [
|
|
21
21
|
"head",
|
|
22
22
|
"body-before-root",
|
|
23
23
|
"body-after-root"
|
|
24
24
|
];
|
|
25
|
-
function
|
|
25
|
+
function k(e) {
|
|
26
26
|
return n({
|
|
27
27
|
...e,
|
|
28
|
-
frameNodePath:
|
|
28
|
+
frameNodePath: T
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function se(e) {
|
|
32
32
|
return n({
|
|
33
33
|
...e,
|
|
34
|
-
frameNodePath:
|
|
34
|
+
frameNodePath: T
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function A(e) {
|
|
38
38
|
return i({
|
|
39
39
|
...e,
|
|
40
|
-
frameNodePath:
|
|
40
|
+
frameNodePath: T
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function A(e = {}) {
|
|
44
|
-
return h.resolve(r(e), "./frontend");
|
|
45
|
-
}
|
|
46
43
|
function j(e = {}) {
|
|
44
|
+
return g.resolve(r(e), "./frontend");
|
|
45
|
+
}
|
|
46
|
+
function M(e = {}) {
|
|
47
47
|
let t = r(e);
|
|
48
48
|
return _(t) ? b(t) : t;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function ce(e = {}) {
|
|
51
|
+
return g.join(M(e), ".tc-entry-html");
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var N = () => ({
|
|
54
54
|
head: "",
|
|
55
55
|
"body-before-root": "",
|
|
56
56
|
"body-after-root": ""
|
|
57
|
-
}),
|
|
57
|
+
}), P = (e) => e.trim().replace(/<!--(?!\s*(?:tc-slot:|\/tc-slot:))[\s\S]*?-->/g, "").replace(/>\s+</g, "><"), le = (e) => {
|
|
58
58
|
let t = [], n = e.replace(/<(script|style|textarea|pre)\b[\s\S]*?<\/\1>/gi, (e) => {
|
|
59
59
|
let n = `__TC_HTML_PRESERVED_${t.length}__`;
|
|
60
60
|
return t.push(e), n;
|
|
61
61
|
}).replace(/<!--(?!\s*(?:tc-slot:|\/tc-slot:|\{\{InsertScript\}\}|TC_))[\s\S]*?-->/g, "").replace(/>\s+</g, "><").trim();
|
|
62
62
|
return t.reduce((e, t, n) => e.replace(`__TC_HTML_PRESERVED_${n}__`, t), n);
|
|
63
|
-
},
|
|
64
|
-
let t =
|
|
63
|
+
}, F = (e) => e.replace(/\\/g, "/"), ue = (e) => {
|
|
64
|
+
let t = F(e);
|
|
65
65
|
return t.startsWith(".") || t.startsWith("/") ? t : `./${t}`;
|
|
66
66
|
}, I = (e) => /<html[\s>]/i.test(e) && e.includes("window['_basePath']") && /<div\s+id=["']root["']\s*><\/div>/i.test(e), L = (e) => {
|
|
67
|
-
let t =
|
|
67
|
+
let t = N(), n = y(e, "utf-8"), r = /<!--\s*tc-slot:([\w-]+)\s*-->([\s\S]*?)<!--\s*\/tc-slot:\1\s*-->/g, i = !1, a = n;
|
|
68
68
|
if (n.replace(r, (n, r, o) => {
|
|
69
|
-
if (i = !0, !
|
|
69
|
+
if (i = !0, !O.includes(r)) throw Error(`Invalid html slot "${r}" in ${e}. Allowed slots: ${O.join(", ")}.`);
|
|
70
70
|
return t[r] += o.trim() ? `${o}\n` : "", a = a.replace(n, ""), n;
|
|
71
71
|
}), a.trim()) {
|
|
72
|
-
if (I(n)) return l(`ignored legacy generated entry html: ${e}`),
|
|
72
|
+
if (I(n)) return l(`ignored legacy generated entry html: ${e}`), N();
|
|
73
73
|
throw Error([
|
|
74
74
|
`Invalid custom entry html: ${e}.`,
|
|
75
75
|
"Custom entry html can only contain tc-slot blocks, for example:",
|
|
@@ -80,10 +80,10 @@ var M = () => ({
|
|
|
80
80
|
}
|
|
81
81
|
return i && l(`using custom entry html slots: ${e}`), t;
|
|
82
82
|
}, R = (t, n) => {
|
|
83
|
-
let r =
|
|
83
|
+
let r = g.basename(t), i = [g.join(t, `${n}.html`), g.join(t, `${r}.html`)].find((e) => _(e));
|
|
84
84
|
if (i) return i;
|
|
85
|
-
if (
|
|
86
|
-
}, z = (e, t) => e.replace(
|
|
85
|
+
if (h.sync(e(t, "*.html")).length) throw Error([`Entry html filename is not supported in ${t}.`, `Use ${n}.html or ${r}.html as a tc-slot file.`].join("\n"));
|
|
86
|
+
}, z = (e, t) => e.replace(D.head, P(t.head)).replace(D.bodyBeforeRoot, P(t["body-before-root"])).replace(D.bodyAfterRoot, P(t["body-after-root"])), B = (e = /* @__PURE__ */ new Date()) => {
|
|
87
87
|
let t = (e, t = 2) => e.toString().padStart(t, "0");
|
|
88
88
|
return [
|
|
89
89
|
e.getFullYear(),
|
|
@@ -92,41 +92,41 @@ var M = () => ({
|
|
|
92
92
|
t(e.getHours())
|
|
93
93
|
].join("/") + `:${t(e.getMinutes())}:${t(e.getSeconds())}:${t(e.getMilliseconds(), 3)}`;
|
|
94
94
|
}, V = (e, t, n, r, i) => {
|
|
95
|
-
let a =
|
|
96
|
-
return
|
|
95
|
+
let a = g.join(e, `${r}.html`), o = ue(g.relative(b(g.dirname(a)), b(n)));
|
|
96
|
+
return C(a, z(t, i).replace(oe, `<script type="module" src="${o}"><\/script>`)), a;
|
|
97
97
|
};
|
|
98
98
|
function H(e = {}) {
|
|
99
|
-
let n = t(y(
|
|
100
|
-
for (let t of u([
|
|
101
|
-
let e =
|
|
99
|
+
let n = t(y(g.resolve(T, "app/view/entry.tpl"), "utf8")), r = {};
|
|
100
|
+
for (let t of u([E, j(e)])) {
|
|
101
|
+
let e = g.dirname(t), i = R(e, g.basename(t).replace(/\.entry\.[^.]+$/, "")), a = i ? g.basename(i, ".html") : g.basename(e);
|
|
102
102
|
r[a] = {
|
|
103
103
|
file: t,
|
|
104
|
-
html: z(n, i ? L(i) :
|
|
104
|
+
html: z(n, i ? L(i) : N())
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
return r;
|
|
108
108
|
}
|
|
109
109
|
function de(e = {}) {
|
|
110
|
-
let n =
|
|
111
|
-
c("frameFEPath: " +
|
|
112
|
-
let i = u([
|
|
110
|
+
let n = j(e), r = ce(e);
|
|
111
|
+
c("frameFEPath: " + E), c("runFEPath: " + n);
|
|
112
|
+
let i = u([E, n]), a = {};
|
|
113
113
|
if (!i.length) return a;
|
|
114
|
-
|
|
114
|
+
x(r, {
|
|
115
115
|
recursive: !0,
|
|
116
116
|
force: !0
|
|
117
117
|
}), v(r, { recursive: !0 });
|
|
118
|
-
let o = t(y(
|
|
118
|
+
let o = t(y(g.resolve(T, "./app/view/entry.tpl"), "utf-8"));
|
|
119
119
|
for (let e = 0; e < i.length; e++) {
|
|
120
|
-
let t = i[e], n =
|
|
121
|
-
a[c] = V(r, o, t, c, s ? L(s) :
|
|
120
|
+
let t = i[e], n = g.resolve(t, "../"), s = R(n, g.basename(t).replace(/\.entry\.[^.]+$/, "")), c = s ? g.basename(s, ".html") : n.split(g.sep).at(-1);
|
|
121
|
+
a[c] = V(r, o, t, c, s ? L(s) : N());
|
|
122
122
|
}
|
|
123
123
|
return a;
|
|
124
124
|
}
|
|
125
125
|
function U(e = {}) {
|
|
126
|
-
return (e.output ?? "frame") !== "frame" && s("Please pay attention to the build output."),
|
|
126
|
+
return (e.output ?? "frame") !== "frame" && s("Please pay attention to the build output."), se(e);
|
|
127
127
|
}
|
|
128
128
|
var fe = async (e, t = {}) => {
|
|
129
|
-
let { watch: n } = await import("chokidar"), r =
|
|
129
|
+
let { watch: n } = await import("chokidar"), r = j(t), i = n(r, {
|
|
130
130
|
ignored: /(^|[\/\\])\../,
|
|
131
131
|
persistent: !0,
|
|
132
132
|
ignoreInitial: !0
|
|
@@ -165,7 +165,7 @@ function W(t = {}) {
|
|
|
165
165
|
apply: "build",
|
|
166
166
|
closeBundle() {
|
|
167
167
|
let n = U(t), r = B();
|
|
168
|
-
v(n, { recursive: !0 }),
|
|
168
|
+
v(n, { recursive: !0 }), C(e(n, "./FEBuildKey"), r);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -177,28 +177,28 @@ function pe(e = ".html", t = {}) {
|
|
|
177
177
|
closeBundle() {
|
|
178
178
|
let e = U(t);
|
|
179
179
|
if (!_(e)) return;
|
|
180
|
-
let r = t.minifyHtml ?? !1, i =
|
|
180
|
+
let r = t.minifyHtml ?? !1, i = h.sync("**/*.html", {
|
|
181
181
|
cwd: e,
|
|
182
182
|
dot: !0
|
|
183
183
|
});
|
|
184
184
|
for (let t of i) {
|
|
185
|
-
let i =
|
|
185
|
+
let i = g.join(e, t), a = y(i, "utf-8"), o = r ? le(a) : a, s = g.basename(t, ".html"), c = ".entry";
|
|
186
186
|
s.indexOf(c) === -1 && (s += c);
|
|
187
187
|
for (let t of n) {
|
|
188
|
-
let n = s + t, a =
|
|
189
|
-
i === a ? r &&
|
|
188
|
+
let n = s + t, a = g.join(e, n);
|
|
189
|
+
i === a ? r && C(a, o) : C(a, o);
|
|
190
190
|
}
|
|
191
|
-
n.some((t) => i ===
|
|
191
|
+
n.some((t) => i === g.join(e, s + t)) || ie(i);
|
|
192
192
|
}
|
|
193
|
-
let a = [...new Set(i.map((e) =>
|
|
193
|
+
let a = [...new Set(i.map((e) => g.dirname(e)))].sort().reverse(), o = (e) => {
|
|
194
194
|
if (!(_(e) ? re(e) : [1]).length) {
|
|
195
|
-
|
|
196
|
-
let t = e.split(
|
|
197
|
-
t.length && o(t.join(
|
|
195
|
+
S(e);
|
|
196
|
+
let t = e.split(g.sep).slice(0, -1);
|
|
197
|
+
t.length && o(t.join(g.sep));
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
for (let t of a) t && t !== "." && o(
|
|
201
|
-
let s = n.flatMap((t) =>
|
|
200
|
+
for (let t of a) t && t !== "." && o(g.join(e, t));
|
|
201
|
+
let s = n.flatMap((t) => h.sync("**/*" + t, {
|
|
202
202
|
cwd: e,
|
|
203
203
|
dot: !0
|
|
204
204
|
}));
|
|
@@ -206,68 +206,61 @@ function pe(e = ".html", t = {}) {
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
var G = (e) => `_${e}_tcC`, K = (e) =>
|
|
209
|
+
var G = (e) => `_${e}_tcC`, K = (e) => F(e), q = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), me = (e) => K(e).includes("/node_modules/"), J = (e, t) => {
|
|
210
210
|
let n = K(e), r = t.split("/").map(q).join("/");
|
|
211
211
|
return RegExp(`/node_modules/(?:\\.pnpm/[^/]+/node_modules/)?${r}(?:/|$)`).test(n);
|
|
212
|
-
},
|
|
212
|
+
}, Y = (e, t) => t.some((t) => J(e, t)), X = (e, ...t) => {
|
|
213
213
|
let n = K(e), r = t.map(q).join("/");
|
|
214
214
|
return RegExp(`(?:^|/)${r}(?:/|$)`).test(n);
|
|
215
|
-
},
|
|
215
|
+
}, Z = (e, t) => t.some((t) => X(e, ...t)), Q = () => [
|
|
216
216
|
{
|
|
217
217
|
name: G("react-dom"),
|
|
218
|
-
test: (e) =>
|
|
219
|
-
maxSize: 25e4,
|
|
218
|
+
test: (e) => J(e, "react-dom"),
|
|
220
219
|
priority: 100
|
|
221
220
|
},
|
|
222
221
|
{
|
|
223
222
|
name: G("react-router"),
|
|
224
|
-
test: (e) =>
|
|
225
|
-
maxSize: 25e4,
|
|
223
|
+
test: (e) => Y(e, ["react-router", "react-router-dom"]),
|
|
226
224
|
priority: 95
|
|
227
225
|
},
|
|
228
226
|
{
|
|
229
227
|
name: G("react"),
|
|
230
|
-
test: (e) =>
|
|
231
|
-
maxSize: 2e5,
|
|
228
|
+
test: (e) => J(e, "react"),
|
|
232
229
|
priority: 90
|
|
233
230
|
},
|
|
234
231
|
{
|
|
235
232
|
name: G("form-validator"),
|
|
236
|
-
test: (e) =>
|
|
237
|
-
maxSize: 25e4,
|
|
233
|
+
test: (e) => Y(e, ["ajv", "rc-field-form"]),
|
|
238
234
|
priority: 80
|
|
239
235
|
},
|
|
240
236
|
{
|
|
241
237
|
name: G("ui-vendor"),
|
|
242
|
-
test: (e) =>
|
|
238
|
+
test: (e) => Y(e, [
|
|
243
239
|
"date-fns",
|
|
244
240
|
"lucide-react",
|
|
245
241
|
"xlsx"
|
|
246
242
|
]),
|
|
247
|
-
maxSize: 35e4,
|
|
248
243
|
priority: 70
|
|
249
244
|
},
|
|
250
245
|
{
|
|
251
246
|
name: G("state-utils"),
|
|
252
|
-
test: (e) =>
|
|
247
|
+
test: (e) => Y(e, [
|
|
253
248
|
"clsx",
|
|
254
249
|
"immer",
|
|
255
250
|
"tailwind-merge",
|
|
256
251
|
"zustand"
|
|
257
252
|
]),
|
|
258
|
-
maxSize: 18e4,
|
|
259
253
|
priority: 60
|
|
260
254
|
},
|
|
261
255
|
{
|
|
262
256
|
name: G("tc-ui"),
|
|
263
|
-
test: (e) =>
|
|
264
|
-
maxSize: 25e4,
|
|
257
|
+
test: (e) => X(e, "packages", "react"),
|
|
265
258
|
minShareCount: 2,
|
|
266
259
|
priority: 50
|
|
267
260
|
},
|
|
268
261
|
{
|
|
269
262
|
name: G("tc-hooks"),
|
|
270
|
-
test: (e) =>
|
|
263
|
+
test: (e) => Z(e, [[
|
|
271
264
|
"packages",
|
|
272
265
|
"react",
|
|
273
266
|
"hooks"
|
|
@@ -277,24 +270,22 @@ var G = (e) => `_${e}_tcC`, K = (e) => P(e), q = (e) => e.replace(/[.*+?^${}()|[
|
|
|
277
270
|
"core",
|
|
278
271
|
"hooks"
|
|
279
272
|
]]),
|
|
280
|
-
maxSize: 12e4,
|
|
281
273
|
minShareCount: 2,
|
|
282
274
|
priority: 55
|
|
283
275
|
},
|
|
284
276
|
{
|
|
285
277
|
name: G("tc-common"),
|
|
286
|
-
test: (e) =>
|
|
278
|
+
test: (e) => Z(e, [["packages", "common"], [
|
|
287
279
|
"fe",
|
|
288
280
|
"packages",
|
|
289
281
|
"common"
|
|
290
282
|
]]),
|
|
291
|
-
maxSize: 16e4,
|
|
292
283
|
minShareCount: 2,
|
|
293
284
|
priority: 40
|
|
294
285
|
},
|
|
295
286
|
{
|
|
296
287
|
name: G("tc-schema-page"),
|
|
297
|
-
test: (e) =>
|
|
288
|
+
test: (e) => Z(e, [[
|
|
298
289
|
"frontend",
|
|
299
290
|
"src",
|
|
300
291
|
"defaultPages",
|
|
@@ -306,13 +297,12 @@ var G = (e) => `_${e}_tcC`, K = (e) => P(e), q = (e) => e.replace(/[.*+?^${}()|[
|
|
|
306
297
|
"defaultPages",
|
|
307
298
|
"SchemaPage"
|
|
308
299
|
]]),
|
|
309
|
-
maxSize: 2e5,
|
|
310
300
|
minShareCount: 2,
|
|
311
301
|
priority: 35
|
|
312
302
|
},
|
|
313
303
|
{
|
|
314
304
|
name: G("tc-pages"),
|
|
315
|
-
test: (e) =>
|
|
305
|
+
test: (e) => Z(e, [[
|
|
316
306
|
"frontend",
|
|
317
307
|
"src",
|
|
318
308
|
"defaultPages"
|
|
@@ -322,28 +312,26 @@ var G = (e) => `_${e}_tcC`, K = (e) => P(e), q = (e) => e.replace(/[.*+?^${}()|[
|
|
|
322
312
|
"src",
|
|
323
313
|
"defaultPages"
|
|
324
314
|
]]),
|
|
325
|
-
maxSize: 18e4,
|
|
326
315
|
minShareCount: 2,
|
|
327
316
|
priority: 30
|
|
328
317
|
},
|
|
329
318
|
{
|
|
330
319
|
name: G("vendor"),
|
|
331
|
-
test:
|
|
332
|
-
maxSize: 5e5,
|
|
320
|
+
test: me,
|
|
333
321
|
minShareCount: 2,
|
|
334
322
|
priority: 1
|
|
335
323
|
}
|
|
336
|
-
],
|
|
324
|
+
], $ = (e) => e?.codeSplitting?.groups ?? Q(), he = (e) => Object.entries(e).reduce((e, [t, n]) => (e[`ssr-${t}`] = n, e), {}), ge = (e) => te(w, e, { enabled: !1 }), _e = async (e, t, n = {}) => {
|
|
337
325
|
let r = ne(n);
|
|
338
326
|
try {
|
|
339
|
-
let n = r.ssrInput ??
|
|
327
|
+
let n = r.ssrInput ?? ge(r), i = {
|
|
340
328
|
...e,
|
|
341
|
-
...
|
|
329
|
+
...he(n)
|
|
342
330
|
}, s = Object.keys(n).length > 0, c = t === "dev" ? {} : ee("client");
|
|
343
|
-
await
|
|
331
|
+
await ae({
|
|
344
332
|
...c,
|
|
345
333
|
configFile: !1,
|
|
346
|
-
root:
|
|
334
|
+
root: M(r),
|
|
347
335
|
base: "/dist",
|
|
348
336
|
plugins: [
|
|
349
337
|
(await import("@vitejs/plugin-react")).default(),
|
|
@@ -358,17 +346,17 @@ var G = (e) => `_${e}_tcC`, K = (e) => P(e), q = (e) => e.replace(/[.*+?^${}()|[
|
|
|
358
346
|
sourcemap: t === "dev" ? "inline" : "hidden",
|
|
359
347
|
rolldownOptions: {
|
|
360
348
|
input: i,
|
|
361
|
-
output: { codeSplitting: { groups: $() } }
|
|
349
|
+
output: { codeSplitting: { groups: $(r) } }
|
|
362
350
|
}
|
|
363
351
|
},
|
|
364
352
|
resolve: {
|
|
365
353
|
...c.resolve,
|
|
366
|
-
alias: f(
|
|
354
|
+
alias: f(w, r)
|
|
367
355
|
}
|
|
368
|
-
}), s && m(U(r), r.ssrManifestOutDir ??
|
|
356
|
+
}), s && m(U(r), r.ssrManifestOutDir ?? A(r)), o(a("builded", "green"), a(" -> ", "white"), a("time: ", "cyan"), a(/* @__PURE__ */ new Date(), "pink"));
|
|
369
357
|
} catch (e) {
|
|
370
358
|
throw s(e), e;
|
|
371
359
|
}
|
|
372
360
|
};
|
|
373
361
|
//#endregion
|
|
374
|
-
export {
|
|
362
|
+
export { _e as VBuildFE, H as collectCSRPages, Q as createFECodeSplittingGroups, de as entries, W as generateBuildKeyPlugin, U as outDir, $ as resolveFECodeSplittingGroups, k as resolveFEOutDir, r as resolveRunPath, M as resolveViteRoot, fe as watchFiles };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { DEFAULT_API_SIGN_KEY as e } from "../app/http/api-signing.js";
|
|
1
2
|
//#region config/config.default.ts
|
|
2
|
-
var
|
|
3
|
+
var t = {
|
|
3
4
|
frameName: "TemplateCore",
|
|
4
|
-
signKey:
|
|
5
|
+
signKey: e,
|
|
5
6
|
apiSignVerify: { whiteList: [] },
|
|
6
7
|
auth: {
|
|
7
8
|
ATKey: "Authorization",
|
|
@@ -11,4 +12,4 @@ var e = {
|
|
|
11
12
|
resourceCacheTimeMs: 300 * 1e3
|
|
12
13
|
};
|
|
13
14
|
//#endregion
|
|
14
|
-
export {
|
|
15
|
+
export { t as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defaultLanguageResources as e } from "./i18n/default.js";
|
|
2
|
+
import { defaultEnglishResources as t } from "./i18n/en-US.js";
|
|
3
|
+
import { defaultLanguage as n, languageLocalKey as r, translations as i } from "./i18n/locales.js";
|
|
4
|
+
import { getI18nPathValue as a, getLanguage as o, i18n as s, i18nStore as c, interpolateI18nMessage as l, isPlainI18nDictionary as u, mergeI18nDictionary as d, mergeI18nResources as f, t as p, translate as m } from "./i18n/index.js";
|
|
5
|
+
import { FetchAxios as h, axios as g, createInstance as _ } from "./http/index.js";
|
|
6
6
|
import { isBoolean as v, isFunction as y, isNil as b, isNonNullable as x, isNumber as S, isPlainObject as C, isString as w } from "./guards/index.js";
|
|
7
7
|
import { chunk as T, compact as E, groupBy as D, toArray as O, uniqueBy as k } from "./array/index.js";
|
|
8
8
|
import { LRUCache as A } from "./cache/LRUCache.js";
|
|
@@ -14,4 +14,4 @@ import { clearRafTimer as Z, rafClearInterval as Q, rafClearTimeout as $, rafSet
|
|
|
14
14
|
import { SSR_DATA_KEY as ne, clearHydrationData as re, createHydrationData as ie, decodeBase64ToUtf8 as ae, encodeUtf8ToBase64 as oe, peekHydrationData as se, readHydrationData as ce, serializeHydrationData as le, serializeHydrationDataScriptContent as ue } from "./ssr/hydration.js";
|
|
15
15
|
import { clientOnly as de, isBrowser as fe, isServer as pe, safeDocument as me, safeLocalStorage as he, safeSetLocalStorage as ge, safeWindow as _e } from "./ssr/index.js";
|
|
16
16
|
import { capitalize as ve, isBlank as ye, joinStr as be, kebabCase as xe } from "./string/index.js";
|
|
17
|
-
export { j as ANSI_RESET,
|
|
17
|
+
export { j as ANSI_RESET, h as FetchAxios, A as LRUCache, ne as SSR_DATA_KEY, M as ansiColors, g as axios, ve as capitalize, T as chunk, W as clamp, re as clearHydrationData, Z as clearRafTimer, de as clientOnly, N as colorLog, P as colorize, E as compact, ie as createHydrationData, _ as createInstance, ae as decodeBase64ToUtf8, t as defaultEnglishResources, n as defaultLanguage, e as defaultLanguageResources, oe as encodeUtf8ToBase64, K as filterEmpty, q as filtereEmpty, a as getI18nPathValue, o as getLanguage, D as groupBy, s as i18n, c as i18nStore, l as interpolateI18nMessage, ye as isBlank, v as isBoolean, fe as isBrowser, y as isFunction, b as isNil, x as isNonNullable, S as isNumber, u as isPlainI18nDictionary, C as isPlainObject, pe as isServer, w as isString, F as joinColorized, be as joinStr, xe as kebabCase, r as languageLocalKey, I as logColor, L as logColorized, R as logGreen, z as logJoinColorized, B as logPink, V as logRed, H as logWhite, U as logYellow, J as mapValues, d as mergeI18nDictionary, f as mergeI18nResources, Y as omit, se as peekHydrationData, X as pick, Q as rafClearInterval, $ as rafClearTimeout, ee as rafSetInterval, te as rafSetTimeout, ce as readHydrationData, me as safeDocument, he as safeLocalStorage, ge as safeSetLocalStorage, _e as safeWindow, le as serializeHydrationData, ue as serializeHydrationDataScriptContent, p as t, O as toArray, G as toFiniteNumber, m as translate, i as translations, k as uniqueBy };
|
|
@@ -3,9 +3,9 @@ import { ConfigService as t } from "./config-service.js";
|
|
|
3
3
|
import { TC_CONFIG as n } from "./tokens.js";
|
|
4
4
|
import { RuntimePaths as r, StartupConfiguration as i, TemplateCoreRuntime as a, closeStartupResources as o } from "./startup.js";
|
|
5
5
|
import { Module as s } from "@nestjs/common";
|
|
6
|
+
import c from "@oxc-project/runtime/helpers/decorate";
|
|
6
7
|
import "reflect-metadata";
|
|
7
|
-
import { NestFactory as
|
|
8
|
-
import l from "@oxc-project/runtime/helpers/decorate";
|
|
8
|
+
import { NestFactory as l } from "@nestjs/core";
|
|
9
9
|
//#region packages/core/bootstrap.ts
|
|
10
10
|
var u, d = u = class {
|
|
11
11
|
static register(e) {
|
|
@@ -32,17 +32,17 @@ var u, d = u = class {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
d = u =
|
|
35
|
+
d = u = c([s({})], d);
|
|
36
36
|
async function f(t, n) {
|
|
37
37
|
let r = class {};
|
|
38
|
-
r =
|
|
38
|
+
r = c([s({ imports: [
|
|
39
39
|
d.register(t),
|
|
40
40
|
...t.options.businessModules,
|
|
41
41
|
n
|
|
42
42
|
] })], r);
|
|
43
43
|
let i = new e(), u;
|
|
44
44
|
try {
|
|
45
|
-
u = await
|
|
45
|
+
u = await l.create(r, i, {
|
|
46
46
|
abortOnError: !1,
|
|
47
47
|
bodyParser: !1,
|
|
48
48
|
forceCloseConnections: !0,
|