| Server IP : 159.203.156.69 / Your IP : 216.73.216.37 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/server/ |
Upload File : |
//#region src/server/navigation-trace.ts
const NAVIGATION_TRACE_SCHEMA_VERSION = 0;
const NavigationTraceReasonCodes = {
commitCurrent: "NC_COMMIT",
prefetchOnly: "NC_PREFETCH_ONLY",
requestWork: "NC_REQUEST",
rootBoundaryChanged: "NC_ROOT",
rootBoundaryUnknown: "NC_ROOT_UNKNOWN",
staleOperation: "NC_STALE"
};
const NavigationTraceTransactionCodes = {
hardNavigate: "NT_HARD_NAVIGATE",
noCommit: "NT_NO_COMMIT",
visibleCommit: "NT_VISIBLE_COMMIT"
};
function createNavigationLifecycleTraceFields(options) {
return {
...options.activeNavigationId !== void 0 ? { activeNavigationId: options.activeNavigationId } : {},
currentRootLayoutTreePath: options.currentRootLayoutTreePath,
currentVisibleCommitVersion: options.currentVisibleCommitVersion,
nextRootLayoutTreePath: options.nextRootLayoutTreePath,
...options.startedNavigationId !== void 0 ? { startedNavigationId: options.startedNavigationId } : {},
startedVisibleCommitVersion: options.startedVisibleCommitVersion
};
}
function createNavigationTraceEntry(code, fields = {}) {
return {
code,
fields: { ...fields }
};
}
function createNavigationTrace(code, fields = {}) {
return {
schemaVersion: 0,
entries: [createNavigationTraceEntry(code, fields)]
};
}
function prependNavigationTraceEntry(trace, code, fields = {}) {
return {
schemaVersion: trace.schemaVersion,
entries: [createNavigationTraceEntry(code, fields), ...trace.entries]
};
}
//#endregion
export { NAVIGATION_TRACE_SCHEMA_VERSION, NavigationTraceReasonCodes, NavigationTraceTransactionCodes, createNavigationLifecycleTraceFields, createNavigationTrace, prependNavigationTraceEntry };
//# sourceMappingURL=navigation-trace.js.map