Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(backend:files): optimize content indexing memory usage with batched metadata, run_id cleanup, and pending scheduler state

johaven3d819cdaa0aa
diff --git a/backend/package.json b/backend/package.json
index 71dac7eb..27e97379 100755
--- a/backend/package.json
+++ b/backend/package.json
@@ -62,7 +62,7 @@
"drizzle-orm": "^0.45.1",
"fast-xml-parser": "^5.0.7",
"fs-extra": "^11.2.0",
- "html-to-text": "^9.0.5",
+ "html-to-text": "^10.0.0",
"js-yaml": "^4.1.0",
"ldapts": "^8.0.36",
"mime-types": "^3.0.1",
diff --git a/backend/src/applications/files/adapters/files-content-store-mysql.service.spec.ts b/backend/src/applications/files/adapters/files-content-store-mysql.service.spec.ts
index d1aee830..9d708d91 100644
--- a/backend/src/applications/files/adapters/files-content-store-mysql.service.spec.ts
+++ b/backend/src/applications/files/adapters/files-content-store-mysql.service.spec.ts
@@ -57,8 +57,18 @@ describe(FilesContentStoreMySQL.name, () => {
describe('createIndex', () => {
it('should return true when creation succeeds', async () => {
db.execute.mockResolvedValueOnce([{}])
+ db.execute.mockResolvedValueOnce([[{ Field: 'seen_run_id' }]])
await expect(filesIndexerMySQL.createIndex('files_content_u_1')).resolves.toBe(true)
- expect(db.execute).toHaveBeenCalledTimes(1)
+ expect(db.execute).toHaveBeenCalledTimes(2)
+ })
+
+ it('should add run id column when it is missing', async () => {
+ db.execute.mockResolvedValueOnce([{}])
+ db.execute.mockResolvedValueOnce([[]])
+ db.execute.mockResolvedValueOnce([{}])
+
+ await expect(filesIndexerMySQL.createIndex('files_content_u_1')).resolves.toBe(true)
+ expect(db.execute).toHaveBeenCalledTimes(3)
})
it('should return false when creation fails', async () => {
@@ -84,56 +94,75 @@ describe(FilesContentStoreMySQL.name, () => {
it('should insert or update a record without throwing', async () => {
db.execute.mockResolvedValueOnce([{}])
await expect(
- filesIndexerMySQL.insertRecord('files_content_u_1', {
- id: 42,
- path: '/docs',
- name: 'file.txt',
- mime: 'text/plain',
- size: 12,
- mtime: 1730000000000,
- content: 'hello world'
- })
- ).resolves.toBeUndefined()
+ filesIndexerMySQL.insertRecord(
+ 'files_content_u_1',
+ {
+ id: 42,
+ path: '/docs',
+ name: 'file.txt',
+ mime: 'text/plain',
+ size: 12,
+ mtime: 1730000000000,
+ content: 'hello world'
+ },
+ 'run-1'
+ )
+ ).resolves.toBe(true)
expect(db.execute).toHaveBeenCalledTimes(1)
})
it('should catch and log errors', async () => {
db.execute.mockRejectedValueOnce(new Error('insert failed'))
await expect(
- filesIndexerMySQL.insertRecord('files_content_u_1', {
- id: 1,
- path: '/',
- name: 'a',
- mime: 'text/plain',
- size: 1,
- mtime: Date.now(),
- content: 'x'
- })
- ).resolves.toBeUndefined()
+ filesIndexerMySQL.insertRecord(
+ 'files_content_u_1',
+ {
+ id: 1,
+ path: '/',
+ name: 'a',
+ mime: 'text/plain',
+ size: 1,
+ mtime: Date.now(),
+ content: 'x'
+ },
+ 'run-1'
+ )
+ ).resolves.toBe(false)
expect(db.execute).toHaveBeenCalledTimes(1)
})
})
- describe('getRecordStats', () => {
- it('should return a map of id to basic stats without path filter', async () => {
- db.execute.mockResolvedValueOnce([
- [
- { id: 1, path: '/a', name: 'a.txt', size: 10 },
- { id: 2, path: '/b', name: 'b.txt', size: 20 }
- ]
- ])
+ describe('getRecordMetadataByIds', () => {
+ it('should return an empty map without querying when there are no ids', async () => {
+ const map = await filesIndexerMySQL.getRecordMetadataByIds('files_content_u_1', [])
+ expect(map.size).toBe(0)
+ expect(db.execute).toHaveBeenCalledTimes(0)
+ })
+
+ it('should return a map of id to basic stats for ids', async () => {
+ db.execute.mockResolvedValueOnce([[{ id: 1, path: '/a', name: 'a.txt', size: 10 }]])
- const map = await filesIndexerMySQL.getRecordStats('files_content_u_1')
+ const map = await filesIndexerMySQL.getRecordMetadataByIds('files_content_u_1', [1])
expect(map.get(1)).toEqual({ path: '/a', name: 'a.txt', size: 10 })
- expect(map.get(2)).toEqual({ path: '/b', name: 'b.txt', size: 20 })
expect(db.execute).toHaveBeenCalledTimes(1)
})
+ })
- it('should append WHERE clause when path filter is provided', async () => {
- db.execute.mockResolvedValueOnce([[{ id: 3, path: '/docs', name: 'c.txt', size: 30 }]])
+ describe('markRecordsSeen', () => {
+ it('should not query when no ids are provided', async () => {
+ await expect(filesIndexerMySQL.markRecordsSeen('files_content_u_1', [], 'run-1')).resolves.toBe(true)
+ expect(db.execute).toHaveBeenCalledTimes(0)
+ })
- const map = await filesIndexerMySQL.getRecordStats('files_content_u_1', '/docs')
- expect(map.get(3)).toEqual({ path: '/docs', name: 'c.txt', size: 30 })
+ it('should update seen_run_id for ids', async () => {
+ db.execute.mockResolvedValueOnce([{}])
+ await expect(filesIndexerMySQL.markRecordsSeen('files_content_u_1', [1, 2], 'run-1')).resolves.toBe(true)
+ expect(db.execute).toHaveBeenCalledTimes(1)
+ })
+
+ it('should return false when update fails', async () => {
+ db.execute.mockRejectedValueOnce(new Error('update failed'))
+ await expect(filesIndexerMySQL.markRecordsSeen('files_content_u_1', [1, 2], 'run-1')).resolves.toBe(false)
expect(db.execute).toHaveBeenCalledTimes(1)
})
})
@@ -163,6 +192,20 @@ describe(FilesContentStoreMySQL.name, () => {
})
})
+ describe('deleteUnseenRecords', () => {
+ it('should delete records not seen in the current run', async () => {
+ db.execute.mockResolvedValueOnce([{ affectedRows: 2 }])
+ await expect(filesIndexerMySQL.deleteUnseenRecords('files_content_u_1', 'run-1')).resolves.toBe(2)
+ expect(db.execute).toHaveBeenCalledTimes(1)
+ })
+
+ it('should catch errors', async () => {
+ db.execute.mockRejectedValueOnce(new Error('delete failed'))
+ await expect(filesIndexerMySQL.deleteUnseenRecords('files_content_u_1', 'run-1')).resolves.toBe(0)
+ expect(db.execute).toHaveBeenCalledTimes(1)
+ })
+ })
+
describe('searchRecords', () => {
it('should return empty array when no terms', async () => {
const res = await filesIndexerMySQL.searchRecords(['files_content_u_1'], ' ', 10)
diff --git a/backend/src/applications/files/adapters/files-content-store-mysql.service.ts b/backend/src/applications/files/adapters/files-content-store-mysql.service.ts
index 097dcc29..f5b06fa9 100644
--- a/backend/src/applications/files/adapters/files-content-store-mysql.service.ts
+++ b/backend/src/applications/files/adapters/files-content-store-mysql.service.ts
@@ -4,7 +4,7 @@ import { MySqlQueryResult } from 'drizzle-orm/mysql2'
import { DB_TOKEN_PROVIDER } from '../../../infrastructure/database/constants'
import { DBSchema } from '../../../infrastructure/database/interfaces/database.interface'
import { FilesContentStore } from '../models/files-content-store'
-import { FileContent } from '../schemas/file-content.interface'
+import { FileContent, FileContentRecordMetadata, FileContentRecordMetadataMap } from '../schemas/file-content.interface'
import { createTableFilesContent, FILES_CONTENT_TABLE_PREFIX } from '../schemas/files-content.schema'
import { analyzeTerms, genTermsPattern, MaxSortedList } from '../utils/files-search'
@@ -34,6 +34,7 @@ export class FilesContentStoreMySQL implements FilesContentStore {
async createIndex(tableName: string): Promise<boolean> {
try {
await this.db.execute(createTableFilesContent(tableName))
+ await this.ensureRunIdColumn(tableName)
return true
} catch (e) {
this.logger.error({ tag: this.createIndex.name, msg: `${tableName} : ${e}` })
@@ -51,38 +52,52 @@ export class FilesContentStoreMySQL implements FilesContentStore {
}
}
- async insertRecord(tableName: string, fc: FileContent): Promise<void> {
+ async insertRecord(tableName: string, fc: FileContent, runId: string): Promise<boolean> {
try {
await this.db.execute(sql`
- INSERT INTO ${sql.raw(tableName)} (id, path, name, mime, size, mtime, content)
- VALUES ${sql`(${fc.id}, ${fc.path}, ${fc.name}, ${fc.mime}, ${fc.size}, ${fc.mtime}, ${fc.content})`}
+ INSERT INTO ${sql.raw(tableName)} (id, path, name, mime, size, mtime, content, seen_run_id)
+ VALUES ${sql`(${fc.id}, ${fc.path}, ${fc.name}, ${fc.mime}, ${fc.size}, ${fc.mtime}, ${fc.content}, ${runId})`}
ON DUPLICATE KEY UPDATE path = VALUES(path),
name = VALUES(name),
mime = VALUES(mime),
size = VALUES(size),
mtime = VALUES(mtime),
- content = VALUES(content)
+ content = VALUES(content),
+ seen_run_id = VALUES(seen_run_id)
`)
+ return true
} catch (e) {
this.logger.error({ tag: this.insertRecord.name, msg: `${tableName} : ${e}` })
}
+ return false
+ }
+
+ async getRecordMetadataByIds(tableName: string, ids: number[]): Promise<FileContentRecordMetadataMap> {
+ if (!ids.length) {
+ return new Map()
+ }
+ const [r]: { id: number; path: string; name: string; size: number }[][] = (await this.db.execute(
+ sql`SELECT id, path, name, size FROM ${sql.raw(tableName)} WHERE id IN (${sql.raw(ids.join(','))})`
+ )) as MySqlQueryResult
+ return new Map(
+ r.map((row) => [row.id, { path: row.path, name: row.name, size: row.size }] satisfies [FileContent['id'], FileContentRecordMetadata])
+ )
}
- async getRecordStats(tableName: string, path?: string): Promise<Map<number, { path: string; name: string; size: number }>> {
- const q: SQL = sql`SELECT id, path, name, size
- FROM ${sql.raw(tableName)}`
- if (path) {
- q.append(sql` WHERE path = ${path}`)
+ async markRecordsSeen(tableName: string, ids: number[], runId: string): Promise<boolean> {
+ if (!ids.length) return true
+ try {
+ await this.db.execute(sql`UPDATE ${sql.raw(tableName)} SET seen_run_id = ${runId} WHERE id IN (${sql.raw(ids.join(','))})`)
+ return true
+ } catch (e) {
+ this.logger.error({ tag: this.markRecordsSeen.name, msg: `${tableName} : ${e}` })
}
- const [r]: { id: number; path: string; name: string; size: number }[][] = (await this.db.execute(q)) as MySqlQueryResult
- return new Map(r.map((row) => [row.id, { path: row.path, name: row.name, size: row.size }]))
+ return false
}
async deleteRecords(tableName: string, ids: number[]): Promise<void> {
try {
- const [r] = await this.db.execute(sql`DELETE
- FROM ${sql.raw(tableName)}
- WHERE id IN (${sql.raw(ids.join(','))})`)
+ const [r] = await this.db.execute(sql`DELETE FROM ${sql.raw(tableName)} WHERE id IN (${sql.raw(ids.join(','))})`)
if (r.affectedRows !== ids.length) {
this.logger.warn({ tag: this.deleteRecords.name, msg: `${tableName} - deleted : ${r.affectedRows}/${ids.length}` })
}
@@ -91,6 +106,16 @@ export class FilesContentStoreMySQL implements FilesContentStore {
}
}
+ async deleteUnseenRecords(tableName: string, runId: string): Promise<number> {
+ try {
+ const [r] = await this.db.execute(sql`DELETE FROM ${sql.raw(tableName)} WHERE seen_run_id IS NULL OR seen_run_id <> ${runId}`)
+ return r.affectedRows ?? 0
+ } catch (e) {
+ this.logger.error({ tag: this.deleteUnseenRecords.name, msg: `${tableName} : ${e}` })
+ }
+ return 0
+ }
+
async searchRecords(tableNames: string[], search: string, limit: number): Promise<FileContent[]> {
const terms: string[] = analyzeTerms(search)
this.logger.verbose({ tag: this.searchRecords.name, msg: `convert ${search} -> ${JSON.stringify(terms)}` })
@@ -155,4 +180,13 @@ export class FilesContentStoreMySQL implements FilesContentStore {
private async getIndexes(): Promise<Record<string, string>[]> {
return (await this.db.execute(sql`SHOW TABLES LIKE '${sql.raw(FILES_CONTENT_TABLE_PREFIX)}%'`))[0] as any
}
+
+ private async ensureRunIdColumn(tableName: string): Promise<void> {
+ // migration for old versions of the application
+ const [columns] = (await this.db.execute(sql`SHOW COLUMNS FROM ${sql.raw(tableName)} LIKE 'seen_run_id'`)) as MySqlQueryResult
+ if ((columns as unknown[]).length) {
+ return
+ }
+ await this.db.execute(sql`ALTER TABLE ${sql.raw(tableName)} ADD COLUMN seen_run_id varchar(64), ADD INDEX seen_run_id (seen_run_id)`)
+ }
}
diff --git a/backend/src/applications/files/constants/indexing.ts b/backend/src/applications/files/constants/indexing.ts
index dfc56d72..64ac66a9 100644
--- a/backend/src/applications/files/constants/indexing.ts
+++ b/backend/src/applications/files/constants/indexing.ts
@@ -3,6 +3,8 @@ export const INDEXABLE_EXTENSIONS = new Set(['docx', 'pptx', 'xlsx', 'odt', 'odp
export const CACHE_INDEXING_EVENT_PREFIX = 'event-update-indexing' as const
export const CACHE_INDEXING_EVENT_LAST_RUN_KEY = 'indexing-update-last-run' as const
export const CACHE_INDEXING_EVENT_TTL = 86400 // 1 day
+export const CACHE_INDEXING_FULL_RUN_REQUEST_KEY = 'indexing-full-run-request' as const
+export const CACHE_INDEXING_FULL_RUN_REQUEST_TTL = 86400 // 1 day
export const CACHE_INDEXING_RUNNING_KEY = 'indexing-running' as const
export const CACHE_INDEXING_RUNNING_TTL = 28800 // 8 hours
export const CACHE_INDEXING_LAST_RUN_KEY = 'indexing-last-run' as const
diff --git a/backend/src/applications/files/interfaces/file-parse-index.ts b/backend/src/applications/files/interfaces/file-parse-index.ts
index 06d7845e..ff765798 100644
--- a/backend/src/applications/files/interfaces/file-parse-index.ts
+++ b/backend/src/applications/files/interfaces/file-parse-index.ts
@@ -1,13 +1,33 @@
+import type { FileTrash } from '../schemas/file-trash.interface'
+import type { FILE_REPOSITORY } from '../constants/operations'
+
export interface FileParseContext {
realPath: string
pathPrefix: string
isDir: boolean
}
-export interface FileIndexContext {
- indexSuffix: string
+export interface FileParseContentPath {
+ id: number
+ type: FILE_REPOSITORY
+ paths: FileParseContext[]
+}
+
+export interface FileContentIndexContext {
+ indexName: string
pathPrefix: string
+ regexBasePath?: RegExp
+}
+
+export interface FileParseTrashRetentionPath {
+ id: number
+ type: FILE_REPOSITORY
+ realPath: string
+}
+
+export interface FileTrashRetentionIndexContext {
+ tableName: string
regexBasePath: RegExp
- db: Map<number, { name: string; path: string; size: number }>
+ db: Map<FileTrash['id'], { name: FileTrash['name']; path: FileTrash['path']; deletedAt: FileTrash['deletedAt'] }>
fs: Set<number>
}
diff --git a/backend/src/applications/files/interfaces/indexing.interface.ts b/backend/src/applications/files/interfaces/indexing.interface.ts
index 9f2552a4..7e025f84 100644
--- a/backend/src/applications/files/interfaces/indexing.interface.ts
+++ b/backend/src/applications/files/interfaces/indexing.interface.ts
@@ -1,4 +1,5 @@
export enum IndexingState {
+ PENDING = 'pending',
RUNNING = 'running',
STOPPING = 'stopping',
IDLE = 'idle',
diff --git a/backend/src/applications/files/models/files-content-store.ts b/backend/src/applications/files/models/files-content-store.ts
index a3b4e806..a9b6d470 100644
--- a/backend/src/applications/files/models/files-content-store.ts
+++ b/backend/src/applications/files/models/files-content-store.ts
@@ -1,4 +1,4 @@
-import { FileContent } from '../schemas/file-content.interface'
+import { FileContent, FileContentRecordMetadataMap } from '../schemas/file-content.interface'
export abstract class FilesContentStore {
abstract indexesCount(): Promise<number>
@@ -13,14 +13,18 @@ export abstract class FilesContentStore {
abstract dropIndex(indexName: string): Promise<boolean>
- abstract insertRecord(indexName: string, fc: FileContent): Promise<void>
+ abstract insertRecord(indexName: string, fc: FileContent, runId: string): Promise<boolean>
abstract searchRecords(indexNames: string[], search: string, limit: number): Promise<FileContent[]>
- abstract getRecordStats(indexName: string, path?: string): Promise<Map<number, { name: string; path: string; size: number }>>
+ abstract getRecordMetadataByIds(indexName: string, ids: number[]): Promise<FileContentRecordMetadataMap>
+
+ abstract markRecordsSeen(indexName: string, ids: number[], runId: string): Promise<boolean>
abstract deleteRecords(indexName: string, ids: number[]): Promise<void>
+ abstract deleteUnseenRecords(indexName: string, runId: string): Promise<number>
+
abstract cleanIndexes(indexSuffixes: string[]): Promise<void>
abstract dropAllIndexes(): Promise<void>
diff --git a/backend/src/applications/files/schemas/file-content.interface.ts b/backend/src/applications/files/schemas/file-content.interface.ts
index 695927d5..12695f93 100644
--- a/backend/src/applications/files/schemas/file-content.interface.ts
+++ b/backend/src/applications/files/schemas/file-content.interface.ts
@@ -12,3 +12,12 @@ export interface FileContent {
// used for search
score?: number
}
+
+export type FileContentRecordMetadata = Pick<FileContent, 'name' | 'path' | 'size'>
+
+export type FileContentRecordMetadataMap = Map<FileContent['id'], FileContentRecordMetadata>
+
+export type FileContentMetadata = Omit<FileContent, 'content' | 'matches' | 'score'> & {
+ realPath: string
+ extension: string
+}
diff --git a/backend/src/applications/files/schemas/files-content.schema.ts b/backend/src/applications/files/schemas/files-content.schema.ts
index 9a0f4ede..7e2253bd 100644
--- a/backend/src/applications/files/schemas/files-content.schema.ts
+++ b/backend/src/applications/files/schemas/files-content.schema.ts
@@ -12,7 +12,9 @@ export function createTableFilesContent(tableName: string): string {
size bigint unsigned NOT NULL,
mtime bigint unsigned NOT NULL,
content LONGTEXT,
+ seen_run_id varchar(64),
PRIMARY KEY (id),
+ INDEX seen_run_id (seen_run_id),
FULLTEXT (content)
) CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;`
diff --git a/backend/src/applications/files/services/files-content-indexer.service.spec.ts b/backend/src/applications/files/services/files-content-indexer.service.spec.ts
index 8b9615da..792a24d5 100644
--- a/backend/src/applications/files/services/files-content-indexer.service.spec.ts
+++ b/backend/src/applications/files/services/files-content-indexer.service.spec.ts
@@ -4,12 +4,14 @@ import path from 'node:path'
import { Cache } from '../../../infrastructure/cache/services/cache.service'
import {
CACHE_INDEXING_EVENT_PREFIX,
+ CACHE_INDEXING_FULL_RUN_REQUEST_KEY,
+ CACHE_INDEXING_FULL_RUN_REQUEST_TTL,
CACHE_INDEXING_LAST_RUN_KEY,
CACHE_INDEXING_RUNNING_KEY,
CACHE_INDEXING_RUNNING_TTL
} from '../constants/indexing'
import { FILE_REPOSITORY } from '../constants/operations'
-import { FileParseContext } from '../interfaces/file-parse-index'
+import { FileContentIndexContext, FileParseContentPath, FileParseContext } from '../interfaces/file-parse-index'
import { IndexingState } from '../interfaces/indexing.interface'
import { FilesContentStore } from '../models/files-content-store'
import * as docTextifyModule from '../utils/doc-textify/doc-textify'
@@ -17,29 +19,48 @@ import { OCRManager } from '../utils/doc-textify/utils/ocr'
import { FilesContentParser } from './files-content-parser.service'
import { FilesContentIndexer } from './files-content-indexer.service'
+interface CacheMock {
+ has: jest.Mock
+ keys: jest.Mock
+ get: jest.Mock
+ set: jest.Mock
+ del: jest.Mock
+}
+
+interface FilesContentStoreMock {
+ indexesCount: jest.Mock
+ getIndexName: jest.Mock
+ createIndex: jest.Mock
+ getRecordMetadataByIds: jest.Mock
+ markRecordsSeen: jest.Mock
+ insertRecord: jest.Mock
+ deleteRecords: jest.Mock
+ deleteUnseenRecords: jest.Mock
+ dropIndex: jest.Mock
+ cleanIndexes: jest.Mock
+ dropAllIndexes: jest.Mock
+}
+
+interface FilesContentParserMock {
+ allPaths: jest.Mock
+}
+
+interface FileMetadataMock {
+ id: number
+ path: string
+ name: string
+ mime: string
+ size: number
+ mtime: number
+ realPath: string
+ extension: string
+}
+
describe(FilesContentIndexer.name, () => {
let service: FilesContentIndexer
- let cache: {
- has: jest.Mock
- keys: jest.Mock
- get: jest.Mock
- set: jest.Mock
- del: jest.Mock
- }
- let filesIndexer: {
- indexesCount: jest.Mock
- getIndexName: jest.Mock
- createIndex: jest.Mock
- getRecordStats: jest.Mock
- insertRecord: jest.Mock
- deleteRecords: jest.Mock
- dropIndex: jest.Mock
- cleanIndexes: jest.Mock
- dropAllIndexes: jest.Mock
- }
- let filesParser: {
- allPaths: jest.Mock
- }
+ let cache: CacheMock
+ let filesIndexer: FilesContentStoreMock
+ let filesParser: FilesContentParserMock
const asyncGen = <T>(items: T[]) =>
(async function* () {
@@ -48,6 +69,49 @@ describe(FilesContentIndexer.name, () => {
}
})()
+ const parsePath = (overrides: Partial<FileParseContext> = {}): FileParseContext => ({
+ realPath: '/root',
+ pathPrefix: 'files/personal',
+ isDir: true,
+ ...overrides
+ })
+
+ const parseContentPath = (overrides: Partial<FileParseContentPath> = {}): FileParseContentPath => ({
+ id: 1,
+ type: FILE_REPOSITORY.USER,
+ paths: [parsePath({ realPath: '/u/john' })],
+ ...overrides
+ })
+
+ const contentContext = (overrides: Partial<FileContentIndexContext> = {}): FileContentIndexContext => ({
+ indexName: 'user_1',
+ pathPrefix: 'files/personal',
+ regexBasePath: /^\/?data\/base\/?/,
+ ...overrides
+ })
+
+ const fileMetadata = (overrides: Partial<FileMetadataMock> = {}): FileMetadataMock => ({
+ id: 3,
+ path: 'files/personal',
+ name: 'new.txt',
+ mime: 'text-plain',
+ size: 30,
+ mtime: 1700000000000,
+ realPath: '/root/new.txt',
+ extension: 'txt',
+ ...overrides
+ })
+
+ const ocrManager = (overrides: Partial<{ worker: any; start: jest.Mock; stop: jest.Mock }> = {}) => ({
+ worker: null,
+ start: jest.fn().mockResolvedValue(null),
+ stop: jest.fn().mockResolvedValue(undefined),
+ ...overrides
+ })
+
+ const indexFiles = (indexSuffix = 'user_1', paths: FileParseContext[] = [parsePath()]) =>
+ (service as any).indexFiles(indexSuffix, paths) as Promise<void>
+
beforeEach(async () => {
cache = {
has: jest.fn().mockResolvedValue(false),
@@ -60,15 +124,17 @@ describe(FilesContentIndexer.name, () => {
indexesCount: jest.fn().mockResolvedValue(0),
getIndexName: jest.fn((suffix: string) => `files_content_${suffix}`),
createIndex: jest.fn().mockResolvedValue(true),
- getRecordStats: jest.fn().mockResolvedValue(new Map()),
- insertRecord: jest.fn().mockResolvedValue(undefined),
+ getRecordMetadataByIds: jest.fn().mockResolvedValue(new Map()),
+ markRecordsSeen: jest.fn().mockResolvedValue(true),
+ insertRecord: jest.fn().mockResolvedValue(true),
deleteRecords: jest.fn().mockResolvedValue(undefined),
+ deleteUnseenRecords: jest.fn().mockResolvedValue(0),
dropIndex: jest.fn().mockResolvedValue(true),
cleanIndexes: jest.fn().mockResolvedValue(undefined),
dropAllIndexes: jest.fn().mockResolvedValue(undefined)
}
filesParser = {
- allPaths: jest.fn().mockReturnValue(asyncGen([]))
+ allPaths: jest.fn().mockResolvedValue([])
}
const module: TestingModule = await Test.createTestingModule({
providers: [
@@ -98,31 +164,41 @@ describe(FilesContentIndexer.name, () => {
expect(cache.has).toHaveBeenCalledWith(CACHE_INDEXING_RUNNING_KEY)
})
- it('should reset running state in cache', async () => {
- await service.resetRunningState()
+ it('should reset indexing runtime state in cache', async () => {
+ await service.resetIndexingRuntimeState()
expect(cache.del).toHaveBeenCalledWith(CACHE_INDEXING_RUNNING_KEY)
+ expect(cache.del).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
})
- it('should start indexing only when no run is active', async () => {
+ it('should request full indexing only when no run is active', async () => {
cache.has.mockResolvedValueOnce(false)
- const parseSpy = jest.spyOn(service, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
+ const parseSpy = jest.spyOn(service as any, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
await expect(service.startIndexing()).resolves.toBe(true)
- expect(parseSpy).toHaveBeenCalledTimes(1)
+ expect(parseSpy).not.toHaveBeenCalled()
+ expect(cache.set).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY, expect.any(Number), CACHE_INDEXING_FULL_RUN_REQUEST_TTL)
})
it('should not start indexing when a run is already active', async () => {
cache.has.mockResolvedValueOnce(true)
- const parseSpy = jest.spyOn(service, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
+ const parseSpy = jest.spyOn(service as any, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
await expect(service.startIndexing()).resolves.toBe(false)
expect(parseSpy).not.toHaveBeenCalled()
+ expect(cache.set).not.toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY, expect.any(Number), CACHE_INDEXING_FULL_RUN_REQUEST_TTL)
+ })
+
+ it('should request full indexing without checking active runs', async () => {
+ await expect(service.requestFullIndexing()).resolves.toBe(true)
+ expect(cache.has).not.toHaveBeenCalled()
+ expect(cache.set).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY, expect.any(Number), CACHE_INDEXING_FULL_RUN_REQUEST_TTL)
})
it('should stop indexing by setting STOPPING state', async () => {
cache.has.mockResolvedValueOnce(true)
await expect(service.stopIndexing()).resolves.toBe(true)
+ expect(cache.del).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
expect(cache.set).toHaveBeenCalledWith(CACHE_INDEXING_RUNNING_KEY, IndexingState.STOPPING, CACHE_INDEXING_RUNNING_TTL)
})
@@ -131,6 +207,15 @@ describe(FilesContentIndexer.name, () => {
await expect(service.stopIndexing()).resolves.toBe(false)
expect(cache.set).not.toHaveBeenCalledWith(CACHE_INDEXING_RUNNING_KEY, IndexingState.STOPPING, CACHE_INDEXING_RUNNING_TTL)
+ expect(cache.del).not.toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ })
+
+ it('should cancel a pending full indexing request when no run is active', async () => {
+ cache.has.mockResolvedValueOnce(false).mockResolvedValueOnce(true)
+
+ await expect(service.stopIndexing()).resolves.toBe(true)
+ expect(cache.del).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ expect(cache.set).not.toHaveBeenCalledWith(CACHE_INDEXING_RUNNING_KEY, IndexingState.STOPPING, CACHE_INDEXING_RUNNING_TTL)
})
it('should return indexing status with index count and full/partial runs', async () => {
@@ -145,6 +230,18 @@ describe(FilesContentIndexer.name, () => {
})
})
+ it('should return pending indexing status when a full run is pending', async () => {
+ cache.get.mockResolvedValueOnce(null).mockResolvedValueOnce(1700000000000).mockResolvedValueOnce(1700000500000)
+ cache.has.mockResolvedValueOnce(true)
+
+ await expect(service.status()).resolves.toEqual({
+ indexesCount: 0,
+ state: IndexingState.PENDING,
+ lastFullRunAt: 1700000000000,
+ lastPartialRunAt: 1700000500000
+ })
+ })
+
it('should keep default index count when count retrieval fails', async () => {
cache.get.mockResolvedValueOnce(null).mockResolvedValueOnce(null).mockResolvedValueOnce(null)
filesIndexer.indexesCount.mockRejectedValueOnce(new Error('db offline'))
@@ -169,9 +266,9 @@ describe(FilesContentIndexer.name, () => {
`${CACHE_INDEXING_EVENT_PREFIX}-share-3`,
`${CACHE_INDEXING_EVENT_PREFIX}-unknown-9`
])
- const parseSpy = jest.spyOn(service, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
+ const parseSpy = jest.spyOn(service as any, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
- await service.updateIndexEntries()
+ await service.processIndexingQueue()
expect(parseSpy).toHaveBeenCalledWith([1], [2], [3])
expect(cache.del).toHaveBeenCalledWith(`${CACHE_INDEXING_EVENT_PREFIX}-user-1`)
@@ -180,198 +277,231 @@ describe(FilesContentIndexer.name, () => {
expect(cache.del).toHaveBeenCalledWith(`${CACHE_INDEXING_EVENT_PREFIX}-unknown-9`)
})
+ it('should consume pending full indexing request before partial indexing events', async () => {
+ cache.has.mockResolvedValueOnce(true)
+ cache.keys.mockResolvedValueOnce([`${CACHE_INDEXING_EVENT_PREFIX}-user-1`])
+ const parseSpy = jest.spyOn(service as any, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
+
+ await service.processIndexingQueue()
+
+ expect(cache.del).toHaveBeenCalledWith(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ expect(parseSpy).toHaveBeenCalledWith()
+ expect(cache.keys).not.toHaveBeenCalled()
+ expect(cache.del).not.toHaveBeenCalledWith(`${CACHE_INDEXING_EVENT_PREFIX}-user-1`)
+ })
+
it('should only clean keys when no valid indexing repository type is found', async () => {
cache.keys.mockResolvedValueOnce([`${CACHE_INDEXING_EVENT_PREFIX}-unknown-10`])
- const parseSpy = jest.spyOn(service, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
+ const parseSpy = jest.spyOn(service as any, 'parseAndIndexAllFiles').mockResolvedValueOnce(undefined)
- await service.updateIndexEntries()
+ await service.processIndexingQueue()
expect(parseSpy).not.toHaveBeenCalled()
expect(cache.del).toHaveBeenCalledWith(`${CACHE_INDEXING_EVENT_PREFIX}-unknown-10`)
})
it('should start and stop OCR manager, index all parser paths and clean stale indexes on full reindex', async () => {
- const ocrManager = {
- worker: null,
- start: jest.fn().mockResolvedValue(null),
- stop: jest.fn().mockResolvedValue(undefined)
- }
- jest.spyOn(OCRManager, 'getInstance').mockReturnValue(ocrManager as any)
- filesParser.allPaths.mockReturnValue(
- asyncGen([
- [1, FILE_REPOSITORY.USER, [{ realPath: '/u/john', pathPrefix: 'files/personal', isDir: true }]],
- [5, FILE_REPOSITORY.SPACE, [{ realPath: '/s/project', pathPrefix: 'files/project', isDir: true }]]
- ] as [number, FILE_REPOSITORY, FileParseContext[]][])
- )
+ const manager = ocrManager()
+ jest.spyOn(OCRManager, 'getInstance').mockReturnValue(manager as any)
+ filesParser.allPaths.mockResolvedValue([
+ parseContentPath(),
+ parseContentPath({ id: 5, type: FILE_REPOSITORY.SPACE, paths: [parsePath({ realPath: '/s/project', pathPrefix: 'files/project' })] })
+ ] as FileParseContentPath[])
const indexSpy = jest.spyOn(service as any, 'indexFiles').mockResolvedValue(undefined)
- await service.parseAndIndexAllFiles()
+ await (service as any).parseAndIndexAllFiles()
- expect(ocrManager.start).toHaveBeenCalledTimes(1)
+ expect(manager.start).toHaveBeenCalledTimes(1)
expect(indexSpy).toHaveBeenNthCalledWith(1, 'user_1', [{ realPath: '/u/john', pathPrefix: 'files/personal', isDir: true }])
expect(indexSpy).toHaveBeenNthCalledWith(2, 'space_5', [{ realPath: '/s/project', pathPrefix: 'files/project', isDir: true }])
expect(filesIndexer.cleanIndexes).toHaveBeenCalledWith(['user_1', 'space_5'])
expect(cache.set).toHaveBeenCalledWith(CACHE_INDEXING_LAST_RUN_KEY, expect.any(Number), 0)
- expect(ocrManager.stop).toHaveBeenCalledTimes(1)
+ expect(manager.stop).toHaveBeenCalledTimes(1)
})
it('should stop parsing early when STOPPING state is detected', async () => {
- const ocrManager = {
- worker: null,
- start: jest.fn().mockResolvedValue(null),
- stop: jest.fn().mockResolvedValue(undefined)
- }
- jest.spyOn(OCRManager, 'getInstance').mockReturnValue(ocrManager as any)
- filesParser.allPaths.mockReturnValue(
- asyncGen([[1, FILE_REPOSITORY.USER, [{ realPath: '/u/john', pathPrefix: 'files/personal', isDir: true }]]] as [
- number,
- FILE_REPOSITORY,
- FileParseContext[]
- ][])
- )
+ const manager = ocrManager()
+ jest.spyOn(OCRManager, 'getInstance').mockReturnValue(manager as any)
+ filesParser.allPaths.mockResolvedValue([parseContentPath()] as FileParseContentPath[])
cache.get
.mockResolvedValueOnce(IndexingState.STOPPING) // setRunning(true) guard
.mockResolvedValueOnce(IndexingState.STOPPING) // loop STOPPING check
const indexSpy = jest.spyOn(service as any, 'indexFiles').mockResolvedValue(undefined)
- await service.parseAndIndexAllFiles()
+ await (service as any).parseAndIndexAllFiles()
expect(indexSpy).not.toHaveBeenCalled()
expect(filesIndexer.cleanIndexes).not.toHaveBeenCalled()
- expect(ocrManager.stop).toHaveBeenCalledTimes(1)
+ expect(manager.stop).toHaveBeenCalledTimes(1)
})
it('should continue parseAndIndexAllFiles when OCR startup fails and skip cleanIndexes for incremental runs', async () => {
- const ocrManager = {
- worker: null,
- start: jest.fn().mockRejectedValue(new Error('ocr init failed')),
- stop: jest.fn().mockResolvedValue(undefined)
- }
- jest.spyOn(OCRManager, 'getInstance').mockReturnValue(ocrManager as any)
- filesParser.allPaths.mockReturnValue(
- asyncGen([[9, FILE_REPOSITORY.USER, [{ realPath: '/u/jane', pathPrefix: 'files/personal', isDir: true }]]] as any)
- )
+ const manager = ocrManager({ start: jest.fn().mockRejectedValue(new Error('ocr init failed')) })
+ jest.spyOn(OCRManager, 'getInstance').mockReturnValue(manager as any)
+ filesParser.allPaths.mockResolvedValue([parseContentPath({ id: 9, paths: [parsePath({ realPath: '/u/jane' })] })] as FileParseContentPath[])
jest.spyOn(service as any, 'indexFiles').mockResolvedValue(undefined)
- await service.parseAndIndexAllFiles([9], [], [])
+ await (service as any).parseAndIndexAllFiles([9], [], [])
expect(filesIndexer.cleanIndexes).not.toHaveBeenCalled()
- expect(ocrManager.stop).toHaveBeenCalledTimes(1)
+ expect(manager.stop).toHaveBeenCalledTimes(1)
})
it('should skip indexFiles when index creation fails', async () => {
filesIndexer.createIndex.mockResolvedValueOnce(false)
- await (service as any).indexFiles('user_7', [{ realPath: '/u/john', pathPrefix: 'files/personal', isDir: true }])
+ await indexFiles('user_7', [parsePath({ realPath: '/u/john' })])
- expect(filesIndexer.getRecordStats).not.toHaveBeenCalled()
+ expect(filesIndexer.getRecordMetadataByIds).not.toHaveBeenCalled()
expect(filesIndexer.insertRecord).not.toHaveBeenCalled()
expect(filesIndexer.deleteRecords).not.toHaveBeenCalled()
+ expect(filesIndexer.deleteUnseenRecords).not.toHaveBeenCalled()
expect(filesIndexer.dropIndex).not.toHaveBeenCalled()
})
it('should drop empty index when there is no db data and no indexed records', async () => {
- filesIndexer.getRecordStats.mockResolvedValueOnce(new Map())
- jest.spyOn(service as any, 'parseFiles').mockReturnValue(asyncGen([]))
+ jest.spyOn(service as any, 'parseFileMetadata').mockReturnValue(asyncGen([]))
- await (service as any).indexFiles('user_8', [{ realPath: '/empty', pathPrefix: 'files/personal', isDir: true }])
+ await indexFiles('user_8', [parsePath({ realPath: '/empty' })])
expect(filesIndexer.dropIndex).toHaveBeenCalledWith('files_content_user_8')
})
- it('should insert parsed records and delete stale entries in indexFiles', async () => {
- filesIndexer.getRecordStats.mockResolvedValueOnce(
- new Map([
- [1, { path: 'files/personal', name: 'old.txt', size: 10 }],
- [2, { path: 'files/personal', name: 'keep.txt', size: 20 }]
- ])
- )
- jest.spyOn(service as any, 'parseFiles').mockImplementation(async function* (_dir: string, context: any) {
- context.fs.add(2)
- context.fs.add(3)
- yield {
- id: 3,
- path: 'files/personal',
- name: 'new.txt',
- mime: 'text-plain',
- size: 30,
- mtime: 1700000000000,
- content: 'indexed'
- }
+ it('should insert parsed records, mark unchanged records and delete unseen entries in indexFiles', async () => {
+ filesIndexer.getRecordMetadataByIds.mockResolvedValueOnce(new Map([[2, { path: 'files/personal', name: 'keep.txt', size: 20 }]]))
+ filesIndexer.deleteUnseenRecords.mockResolvedValueOnce(1)
+ jest.spyOn(service as any, 'parseFileMetadata').mockImplementation(async function* () {
+ yield fileMetadata({
+ id: 2,
+ name: 'keep.txt',
+ size: 20,
+ realPath: '/root/keep.txt'
+ })
+ yield fileMetadata()
})
+ jest.spyOn(service as any, 'parseContent').mockResolvedValueOnce('indexed')
- await (service as any).indexFiles('user_9', [{ realPath: '/root', pathPrefix: 'files/personal', isDir: true }])
+ await indexFiles('user_9')
expect(filesIndexer.insertRecord).toHaveBeenCalledWith(
'files_content_user_9',
- expect.objectContaining({ id: 3, name: 'new.txt', content: 'indexed' })
+ expect.objectContaining({ id: 3, name: 'new.txt', content: 'indexed' }),
+ expect.any(String)
+ )
+ expect(filesIndexer.markRecordsSeen).toHaveBeenCalledWith('files_content_user_9', [2], expect.any(String))
+ expect(filesIndexer.deleteUnseenRecords).toHaveBeenCalledWith('files_content_user_9', expect.any(String))
+ })
+
+ it('should not delete unseen records when marking seen records fails', async () => {
+ filesIndexer.getRecordMetadataByIds.mockResolvedValueOnce(new Map([[2, { path: 'files/personal', name: 'keep.txt', size: 20 }]]))
+ filesIndexer.markRecordsSeen.mockResolvedValueOnce(false)
+ jest.spyOn(service as any, 'parseFileMetadata').mockReturnValue(
+ asyncGen([
+ fileMetadata({
+ id: 2,
+ name: 'keep.txt',
+ size: 20,
+ realPath: '/root/keep.txt'
+ })
+ ])
+ )
+
+ await expect(indexFiles('user_10')).rejects.toThrow('unable to mark records as seen')
+ expect(filesIndexer.deleteUnseenRecords).not.toHaveBeenCalled()
+ })
+
+ it('should not mark new records as seen when insert fails', async () => {
+ filesIndexer.getRecordMetadataByIds.mockResolvedValueOnce(new Map())
+ filesIndexer.insertRecord.mockResolvedValueOnce(false)
+ filesIndexer.deleteUnseenRecords.mockResolvedValueOnce(1)
+ jest.spyOn(service as any, 'parseFileMetadata').mockReturnValue(asyncGen([fileMetadata()]))
+ jest.spyOn(service as any, 'parseContent').mockResolvedValueOnce('indexed')
+
+ await indexFiles('user_11')
+
+ expect(filesIndexer.insertRecord).toHaveBeenCalledWith(
+ 'files_content_user_11',
+ expect.objectContaining({ id: 3, name: 'new.txt', content: 'indexed' }),
+ expect.any(String)
+ )
+ expect(filesIndexer.markRecordsSeen).toHaveBeenCalledWith('files_content_user_11', [], expect.any(String))
+ expect(filesIndexer.deleteUnseenRecords).toHaveBeenCalledWith('files_content_user_11', expect.any(String))
+ })
+
+ it('should keep existing records seen when insert fails', async () => {
+ filesIndexer.getRecordMetadataByIds.mockResolvedValueOnce(new Map([[3, { path: 'files/personal', name: 'old.txt', size: 1 }]]))
+ filesIndexer.insertRecord.mockResolvedValueOnce(false)
+ filesIndexer.deleteUnseenRecords.mockResolvedValueOnce(1)
+ jest.spyOn(service as any, 'parseFileMetadata').mockReturnValue(asyncGen([fileMetadata()]))
+ jest.spyOn(service as any, 'parseContent').mockResolvedValueOnce('indexed')
+
+ await indexFiles('user_12')
+
+ expect(filesIndexer.insertRecord).toHaveBeenCalledWith(
+ 'files_content_user_12',
+ expect.objectContaining({ id: 3, name: 'new.txt', content: 'indexed' }),
+ expect.any(String)
)
- expect(filesIndexer.deleteRecords).toHaveBeenCalledWith('files_content_user_9', [1])
+ expect(filesIndexer.markRecordsSeen).toHaveBeenCalledWith('files_content_user_12', [3], expect.any(String))
+ expect(filesIndexer.deleteUnseenRecords).toHaveBeenCalledWith('files_content_user_12', expect.any(String))
})
- it('should recursively parse directories and yield file contents only', async () => {
+ it('should recursively parse directories and yield file metadata only', async () => {
const readdirSpy = jest.spyOn(fs, 'readdir')
readdirSpy.mockResolvedValueOnce([
{ parentPath: '/root', name: 'sub', isDirectory: () => true },
{ parentPath: '/root', name: 'a.txt', isDirectory: () => false }
] as any)
readdirSpy.mockResolvedValueOnce([{ parentPath: '/root/sub', name: 'b.txt', isDirectory: () => false }] as any)
- jest.spyOn(service as any, 'analyzeFile').mockImplementation(async (realPath: string) => ({
- id: realPath.length,
- path: 'files/personal',
- name: path.basename(realPath),
- mime: 'text-plain',
- size: 1,
- mtime: 1,
- content: 'ok'
- }))
+ jest.spyOn(service as any, 'getFileMetadata').mockImplementation(async (realPath: string) =>
+ fileMetadata({
+ id: realPath.length,
+ name: path.basename(realPath),
+ realPath
+ })
+ )
const yielded: any[] = []
- for await (const fileContent of (service as any).parseFiles('/root', {
- indexSuffix: 'user_1',
- pathPrefix: 'files/personal',
- regexBasePath: /^\/?root\/?/,
- db: new Map(),
- fs: new Set()
- })) {
- yielded.push(fileContent)
+ for await (const metadata of (service as any).parseFileMetadata('/root', contentContext({ regexBasePath: /^\/?root\/?/ }))) {
+ yielded.push(metadata)
}
expect(yielded.map((f) => f.name)).toEqual(['b.txt', 'a.txt'])
})
- it('should skip non-indexable files and unchanged files in analyzeFile', async () => {
+ it('should skip non-indexable files in getFileMetadata', async () => {
const statSpy = jest.spyOn(fs, 'stat')
- const context = {
- indexSuffix: 'user_1',
- pathPrefix: 'files/personal',
- regexBasePath: /^\/?data\/?/,
- db: new Map<number, { name: string; path: string; size: number }>([[123, { path: 'files/personal/sub', name: 'doc.txt', size: 12 }]]),
- fs: new Set<number>()
- }
+ const context = contentContext({ regexBasePath: /^\/?data\/?/ })
- const unsupported = await (service as any).analyzeFile('/data/image.png', context, false)
+ const unsupported = await (service as any).getFileMetadata('/data/image.png', context, false)
expect(unsupported).toBeNull()
expect(statSpy).not.toHaveBeenCalled()
+ })
- statSpy.mockResolvedValueOnce({
- ino: 123,
- size: 12,
- mtime: new Date('2024-01-01T00:00:00.000Z')
+ it('should build file metadata in getFileMetadata for indexable files', async () => {
+ const context = contentContext()
+ jest.spyOn(fs, 'stat').mockResolvedValueOnce({
+ ino: 200,
+ size: 42,
+ mtime: new Date('2024-01-02T03:04:05.000Z')
} as any)
- const unchanged = await (service as any).analyzeFile('/data/sub/doc.txt', context, false)
- expect(unchanged).toBeNull()
- expect(context.fs.has(123)).toBe(true)
- })
-
- it('should build indexed file content in analyzeFile for changed files', async () => {
- const context = {
- indexSuffix: 'user_1',
- pathPrefix: 'files/personal',
- regexBasePath: /^\/?data\/base\/?/,
- db: new Map<number, { name: string; path: string; size: number }>(),
- fs: new Set<number>()
- }
+
+ const fileMetadata = await (service as any).getFileMetadata('/data/base/sub/doc.txt', context, false)
+
+ expect(fileMetadata).toEqual({
+ id: 200,
+ path: 'files/personal/sub',
+ name: 'doc.txt',
+ mime: 'text-plain',
+ size: 42,
+ mtime: new Date('2024-01-02T03:04:05.000Z').getTime(),
+ realPath: '/data/base/sub/doc.txt',
+ extension: 'txt'
+ })
+ })
+
+ it('should build indexed file content from file metadata', async () => {
+ const context = contentContext()
jest.spyOn(fs, 'stat').mockResolvedValueOnce({
ino: 200,
size: 42,
@@ -379,7 +509,8 @@ describe(FilesContentIndexer.name, () => {
} as any)
jest.spyOn(service as any, 'parseContent').mockResolvedValueOnce('indexed content')
- const fileContent = await (service as any).analyzeFile('/data/base/sub/doc.txt', context, false)
+ const fileMetadata = await (service as any).getFileMetadata('/data/base/sub/doc.txt', context, false)
+ const fileContent = await (service as any).buildFileContent(fileMetadata)
expect(fileContent).toEqual({
id: 200,
@@ -390,7 +521,6 @@ describe(FilesContentIndexer.name, () => {
mtime: new Date('2024-01-02T03:04:05.000Z').getTime(),
content: 'indexed content'
})
- expect(context.fs.has(200)).toBe(true)
})
it('should parse content and return null when parser returns empty or throws', async () => {
diff --git a/backend/src/applications/files/services/files-content-indexer.service.ts b/backend/src/applications/files/services/files-content-indexer.service.ts
index 7abf5a44..95faf930 100644
--- a/backend/src/applications/files/services/files-content-indexer.service.ts
+++ b/backend/src/applications/files/services/files-content-indexer.service.ts
@@ -5,19 +5,21 @@ import path from 'node:path'
import {
CACHE_INDEXING_EVENT_LAST_RUN_KEY,
CACHE_INDEXING_EVENT_PREFIX,
+ CACHE_INDEXING_FULL_RUN_REQUEST_KEY,
+ CACHE_INDEXING_FULL_RUN_REQUEST_TTL,
CACHE_INDEXING_LAST_RUN_KEY,
CACHE_INDEXING_RUNNING_KEY,
CACHE_INDEXING_RUNNING_TTL,
INDEXABLE_EXTENSIONS
} from '../constants/indexing'
-import { FileIndexContext, FileParseContext } from '../interfaces/file-parse-index'
+import { FileContentIndexContext, FileParseContext } from '../interfaces/file-parse-index'
import { FilesContentStore } from '../models/files-content-store'
-import { FileContent } from '../schemas/file-content.interface'
+import { FileContent, FileContentMetadata } from '../schemas/file-content.interface'
import { docTextify } from '../utils/doc-textify/doc-textify'
import { OCRManager } from '../utils/doc-textify/utils/ocr'
import { getExtensionWithoutDot, getMimeType } from '../utils/files'
import { FilesContentParser } from './files-content-parser.service'
-import { genIndexingKey } from '../utils/indexing'
+import { genIndexingKey, genRunId } from '../utils/indexing'
import { FILE_REPOSITORY } from '../constants/operations'
import { Cache } from '../../../infrastructure/cache/services/cache.service'
import { IndexingState, IndexingStatus } from '../interfaces/indexing.interface'
@@ -26,10 +28,11 @@ import { configuration } from '../../../configuration/config.environment'
@Injectable()
export class FilesContentIndexer {
+ public isEnabled = configuration.applications.files.contentIndexing.enabled
private readonly logger = new Logger(FilesContentIndexer.name)
private readonly maxDocumentSize = 150 * 1_000_000
+ private readonly metadataBatchSize = 1000
private ocrManager: OCRManager | null = null
- public isEnabled = configuration.applications.files.contentIndexing.enabled
constructor(
private readonly cache: Cache,
@@ -41,26 +44,45 @@ export class FilesContentIndexer {
return this.cache.has(CACHE_INDEXING_RUNNING_KEY)
}
- async resetRunningState(): Promise<void> {
- await this.cache.del(CACHE_INDEXING_RUNNING_KEY)
+ async resetIndexingRuntimeState(): Promise<void> {
+ await this.setRunning(false)
+ await this.cache.del(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
}
async startIndexing(): Promise<boolean> {
if (!this.isEnabled || (await this.isRunning())) return false
- this.parseAndIndexAllFiles().catch((e) => this.logger.error({ tag: this.startIndexing.name, msg: `${e}` }))
+ return this.requestFullIndexing()
+ }
+
+ async requestFullIndexing(): Promise<boolean> {
+ if (!this.isEnabled) return false
+ // defer full indexing to the indexing queue instead of starting it from the caller
+ await this.cache.set(CACHE_INDEXING_FULL_RUN_REQUEST_KEY, Date.now(), CACHE_INDEXING_FULL_RUN_REQUEST_TTL)
return true
}
async stopIndexing(): Promise<boolean> {
- if (!this.isEnabled || !(await this.isRunning())) return false
- await this.cache.set(CACHE_INDEXING_RUNNING_KEY, IndexingState.STOPPING, CACHE_INDEXING_RUNNING_TTL)
- return true
+ if (!this.isEnabled) return false
+ if (await this.isRunning()) {
+ // cancel any pending full run before asking the current run to stop
+ await this.cache.del(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ await this.cache.set(CACHE_INDEXING_RUNNING_KEY, IndexingState.STOPPING, CACHE_INDEXING_RUNNING_TTL)
+ return true
+ }
+ if (await this.cache.has(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)) {
+ // no run started yet, only remove the deferred scheduler request
+ await this.cache.del(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ return true
+ }
+ return false
}
async status(): Promise<IndexingStatus> {
+ const runningState: IndexingState = this.isEnabled ? await this.cache.get(CACHE_INDEXING_RUNNING_KEY) : IndexingState.DISABLED
const status: IndexingStatus = {
indexesCount: 0,
- state: this.isEnabled ? ((await this.cache.get(CACHE_INDEXING_RUNNING_KEY)) ?? IndexingState.IDLE) : IndexingState.DISABLED,
+ // PENDING is derived from the deferred full-run key, not from the running state
+ state: runningState ?? ((await this.cache.has(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)) ? IndexingState.PENDING : IndexingState.IDLE),
lastFullRunAt: (await this.cache.get(CACHE_INDEXING_LAST_RUN_KEY)) ?? null,
lastPartialRunAt: (await this.cache.get(CACHE_INDEXING_EVENT_LAST_RUN_KEY)) ?? null
}
@@ -79,9 +101,20 @@ export class FilesContentIndexer {
}
}
- async updateIndexEntries() {
+ async processIndexingQueue() {
await this.setRunning(true)
try {
+ if (await this.cache.has(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)) {
+ // scheduler consumes full-run requests before processing partial update events
+ await this.cache.del(CACHE_INDEXING_FULL_RUN_REQUEST_KEY)
+ try {
+ await this.parseAndIndexAllFiles()
+ } catch (e) {
+ this.logger.error({ tag: this.processIndexingQueue.name, msg: `${e}` })
+ }
+ return
+ }
+
const cacheKeys: string[] = []
const [userIds, spaceIds, shareIds]: [number[], number[], number[]] = [[], [], []]
for (const k of await this.cache.keys(`${CACHE_INDEXING_EVENT_PREFIX}-*`)) {
@@ -97,7 +130,7 @@ export class FilesContentIndexer {
} else if (repository === FILE_REPOSITORY.SHARE) {
shareIds.push(id)
} else {
- this.logger.warn({ tag: this.updateIndexEntries.name, msg: `Unknown type: ${repository}` })
+ this.logger.warn({ tag: this.processIndexingQueue.name, msg: `Unknown type: ${repository}` })
}
}
@@ -107,7 +140,7 @@ export class FilesContentIndexer {
await this.parseAndIndexAllFiles(userIds, spaceIds, shareIds)
await this.cache.set(CACHE_INDEXING_EVENT_LAST_RUN_KEY, Date.now(), 0)
} catch (e) {
- this.logger.error({ tag: this.updateIndexEntries.name, msg: `${e}` })
+ this.logger.error({ tag: this.processIndexingQueue.name, msg: `${e}` })
}
}
}
@@ -115,14 +148,14 @@ export class FilesContentIndexer {
// Clean up event keys even if incremental indexing fails.
// Ignore cache deletion errors, the full reindex restores consistency.
for (const k of cacheKeys) {
- this.cache.del(k).catch((e) => this.logger.warn({ tag: this.updateIndexEntries.name, msg: `Unable to clean key: ${k} - ${e}` }))
+ this.cache.del(k).catch((e) => this.logger.warn({ tag: this.processIndexingQueue.name, msg: `Unable to clean key: ${k} - ${e}` }))
}
} finally {
await this.setRunning(false)
}
}
- async parseAndIndexAllFiles(userIds?: number[], spaceIds?: number[], shareIds?: number[]): Promise<void> {
+ private async parseAndIndexAllFiles(userIds?: number[], spaceIds?: number[], shareIds?: number[]): Promise<void> {
await this.setRunning(true)
this.ocrManager = OCRManager.getInstance(this.logger)
try {
@@ -133,7 +166,7 @@ export class FilesContentIndexer {
}
const indexSuffixes: string[] = []
let stopped = false
- for await (const [id, type, paths] of this.filesParser.allPaths(userIds, spaceIds, shareIds)) {
+ for (const { id, type, paths } of await this.filesParser.allPaths(userIds, spaceIds, shareIds)) {
if ((await this.cache.get(CACHE_INDEXING_RUNNING_KEY)) === IndexingState.STOPPING) {
stopped = true
break
@@ -160,8 +193,8 @@ export class FilesContentIndexer {
}
}
- private async setRunning(value: boolean): Promise<void> {
- if (value) {
+ private async setRunning(state: boolean): Promise<void> {
+ if (state) {
const current: IndexingState = await this.cache.get(CACHE_INDEXING_RUNNING_KEY)
if (current !== IndexingState.STOPPING) {
await this.cache.set(CACHE_INDEXING_RUNNING_KEY, IndexingState.RUNNING, CACHE_INDEXING_RUNNING_TTL)
@@ -184,84 +217,125 @@ export class FilesContentIndexer {
if (!(await this.filesContentStore.createIndex(indexName))) {
return
}
- const context: FileIndexContext = {
- indexSuffix: indexSuffix,
+ // mark records seen during this pass without loading all metadata in memory
+ const runId = genRunId()
+ const context: FileContentIndexContext = {
+ indexName: indexName,
pathPrefix: '',
- regexBasePath: undefined,
- db: await this.filesContentStore.getRecordStats(indexName),
- fs: new Set()
+ regexBasePath: undefined
}
let indexedRecords = 0
- let errorRecords = 0
+ let indexingErrors = 0
+ let scannedRecords = 0
+
+ const processBatch = async (batch: FileContentMetadata[]): Promise<void> => {
+ const result = await this.indexFileMetadataBatch(indexName, runId, batch)
+ indexedRecords += result.indexedRecords
+ indexingErrors += result.indexingErrors
+ scannedRecords += batch.length
+ }
for (const p of paths) {
context.regexBasePath = new RegExp(`^/?${escapePath(p.realPath)}/?`)
context.pathPrefix = p.pathPrefix || ''
if (!p.isDir) {
// Handles the space root file or shared file case
- const rootFileContent = await this.analyzeFile(p.realPath, context, true)
- if (rootFileContent !== null) {
- this.filesContentStore.insertRecord(indexName, rootFileContent).catch((e: Error) => {
- errorRecords++
- this.logger.error({ tag: this.indexFiles.name, msg: `${indexSuffix} | ${rootFileContent.name} : ${e}` })
- })
- indexedRecords++
+ const rootFileMetadata = await this.getFileMetadata(p.realPath, context, true)
+ if (rootFileMetadata !== null) {
+ await processBatch([rootFileMetadata])
}
continue
}
- for await (const fileContent of this.parseFiles(p.realPath, context)) {
- this.filesContentStore.insertRecord(indexName, fileContent).catch((e: Error) => {
- errorRecords++
- this.logger.error({ tag: this.indexFiles.name, msg: `${indexSuffix} | ${fileContent.name} : ${e}` })
- })
- indexedRecords++
+ let batch: FileContentMetadata[] = []
+ for await (const fileMetadata of this.parseFileMetadata(p.realPath, context)) {
+ batch.push(fileMetadata)
+ if (batch.length >= this.metadataBatchSize) {
+ await processBatch(batch)
+ batch = []
+ }
}
+ await processBatch(batch)
}
- if (context.db.size === 0 && indexedRecords === 0) {
+ // remove records not seen during this indexing pass
+ const deletedRecords = await this.filesContentStore.deleteUnseenRecords(indexName, runId)
+
+ if (scannedRecords === 0 && indexedRecords === 0 && deletedRecords === 0) {
// case when no data
this.filesContentStore
.dropIndex(indexName)
.catch((e: Error) => this.logger.error({ tag: this.indexFiles.name, msg: `${indexSuffix} - unable to drop index : ${e}` }))
this.logger.verbose({ tag: this.indexFiles.name, msg: `${indexSuffix} - no data, index not stored` })
+ } else if (indexedRecords === 0 && indexingErrors === 0 && deletedRecords === 0) {
+ this.logger.verbose({ tag: this.indexFiles.name, msg: `${indexSuffix} - no new data` })
} else {
- // clean up old records
- const recordsToDelete: number[] = [...context.db.keys()].filter((key) => !context.fs.has(key))
- if (recordsToDelete.length > 0) {
- this.filesContentStore
- .deleteRecords(indexName, recordsToDelete)
- .catch((e: Error) => this.logger.error({ tag: this.indexFiles.name, msg: `${indexSuffix} - unable to delete records : ${e}` }))
+ this.logger.log({
+ tag: this.indexFiles.name,
+ msg: `${indexSuffix} - indexed: ${indexedRecords - indexingErrors}, deleted: ${deletedRecords}, errors: ${indexingErrors}`
+ })
+ }
+ }
+
+ private async indexFileMetadataBatch(
+ indexName: string,
+ runId: string,
+ batch: FileContentMetadata[]
+ ): Promise<{ indexedRecords: number; indexingErrors: number }> {
+ if (!batch.length) {
+ return { indexedRecords: 0, indexingErrors: 0 }
+ }
+
+ const dbRecords = await this.filesContentStore.getRecordMetadataByIds(
+ indexName,
+ batch.map((f) => f.id)
+ )
+ const seenRecordIds: number[] = []
+ let indexedRecords = 0
+ let indexingErrors = 0
+
+ for (const fileMetadata of batch) {
+ const dbRecord = dbRecords.get(fileMetadata.id)
+ if (dbRecord && dbRecord.size === fileMetadata.size && dbRecord.path === fileMetadata.path && dbRecord.name === fileMetadata.name) {
+ seenRecordIds.push(fileMetadata.id)
+ continue
}
- if (indexedRecords === 0 && errorRecords === 0 && recordsToDelete.length === 0) {
- this.logger.verbose({ tag: this.indexFiles.name, msg: `${indexSuffix} - no new data` })
- } else {
- this.logger.log({
- tag: this.indexFiles.name,
- msg: `${indexSuffix} - indexed: ${indexedRecords - errorRecords}, deleted: ${recordsToDelete.length}, errors: ${errorRecords}`
- })
+
+ if ((await this.filesContentStore.insertRecord(indexName, await this.buildFileContent(fileMetadata), runId)) === false) {
+ indexingErrors++
+ if (dbRecord) {
+ // keep the previous record if refreshing its content failed
+ seenRecordIds.push(fileMetadata.id)
+ }
}
+ indexedRecords++
+ }
+
+ if (!(await this.filesContentStore.markRecordsSeen(indexName, seenRecordIds, runId))) {
+ throw new Error(`${indexName} - unable to mark records as seen`)
}
+ return { indexedRecords, indexingErrors }
}
- private async *parseFiles(dir: string, context: FileIndexContext): AsyncGenerator<FileContent> {
+ private async *parseFileMetadata(dir: string, context: FileContentIndexContext): AsyncGenerator<FileContentMetadata> {
try {
for (const entry of await fs.readdir(dir, { withFileTypes: true })) {
const realPath = path.join(entry.parentPath, entry.name)
if (entry.isDirectory()) {
- yield* this.parseFiles(realPath, context)
+ yield* this.parseFileMetadata(realPath, context)
continue
}
- const fileContent = await this.analyzeFile(realPath, context, false)
- if (fileContent !== null) {
- yield fileContent
+ const fileMetadata = await this.getFileMetadata(realPath, context, false)
+ if (fileMetadata !== null) {
+ yield fileMetadata
}
}
} catch (e) {
- this.logger.warn({ tag: this.parseFiles.name, msg: `${context.indexSuffix} - unable to parse: ${dir} - ${e}` })
+ // skip unreadable directories, their unseen records will be cleaned later
+ this.logger.warn({ tag: this.parseFileMetadata.name, msg: `${context.indexName} - unable to parse: ${dir} - ${e}` })
}
}
- private async analyzeFile(realPath: string, context: FileIndexContext, isRootFile = false): Promise<FileContent> {
+ private async getFileMetadata(realPath: string, context: FileContentIndexContext, isRootFile = false): Promise<FileContentMetadata | null> {
const extension = getExtensionWithoutDot(realPath)
if (!INDEXABLE_EXTENSIONS.has(extension)) return null
@@ -274,28 +348,17 @@ export class FilesContentIndexer {
try {
stats = await fs.stat(realPath)
} catch (e) {
- this.logger.warn({ tag: this.analyzeFile.name, msg: `unable to stats: ${realPath} - ${e}` })
+ this.logger.warn({ tag: this.getFileMetadata.name, msg: `unable to stats: ${realPath} - ${e}` })
+ // unreadable or missing files are treated as unseen records
return null
}
if (stats.size === 0 || stats.size > this.maxDocumentSize) {
return null
}
- const filePath = isRootFile
- ? path.dirname(context.pathPrefix) || '.'
- : path.join(context.pathPrefix, path.dirname(realPath).replace(context.regexBasePath, '') || '.')
-
- const f = context.db.get(stats.ino)
- if (f && f.size === stats.size && f.path === filePath && f.name === fileName) {
- // no changes, store inode id & skip it
- context.fs.add(stats.ino)
- return null
- }
-
- // store inode id
- context.fs.add(stats.ino)
+ const relativeDir = context.regexBasePath ? path.dirname(realPath).replace(context.regexBasePath, '') : path.dirname(realPath)
+ const filePath = isRootFile ? path.dirname(context.pathPrefix) || '.' : path.join(context.pathPrefix, relativeDir || '.')
- // store the content with null value to not parse it later
return {
id: stats.ino,
path: filePath,
@@ -303,7 +366,20 @@ export class FilesContentIndexer {
mime: getMimeType(realPath, false),
size: stats.size,
mtime: stats.mtime.getTime(),
- content: await this.parseContent(realPath, extension)
+ realPath,
+ extension
+ }
+ }
+
+ private async buildFileContent(fileMetadata: FileContentMetadata): Promise<FileContent> {
+ return {
+ id: fileMetadata.id,
+ path: fileMetadata.path,
+ name: fileMetadata.name,
+ mime: fileMetadata.mime,
+ size: fileMetadata.size,
+ mtime: fileMetadata.mtime,
+ content: await this.parseContent(fileMetadata.realPath, fileMetadata.extension)
}
}
diff --git a/backend/src/applications/files/services/files-content-parser.service.spec.ts b/backend/src/applications/files/services/files-content-parser.service.spec.ts
index 3a2f6589..e559883e 100644
--- a/backend/src/applications/files/services/files-content-parser.service.spec.ts
+++ b/backend/src/applications/files/services/files-content-parser.service.spec.ts
@@ -1,19 +1,204 @@
import { Test, TestingModule } from '@nestjs/testing'
+import path from 'node:path'
import { DB_TOKEN_PROVIDER } from '../../../infrastructure/database/constants'
+import { SPACE_ALIAS, SPACE_REPOSITORY } from '../../spaces/constants/spaces'
+import { SpaceModel } from '../../spaces/models/space.model'
+import { UserModel } from '../../users/models/user.model'
+import { FILE_REPOSITORY } from '../constants/operations'
+import * as filesUtils from '../utils/files'
import { FilesContentParser } from './files-content-parser.service'
+interface QueryMock {
+ from: jest.Mock
+ leftJoin: jest.Mock
+ where: jest.Mock
+ groupBy: jest.Mock
+}
+
describe(FilesContentParser.name, () => {
let service: FilesContentParser
+ let db: { select: jest.Mock }
+ let isPathExistsSpy: jest.SpiedFunction<typeof filesUtils.isPathExists>
+
+ const mockQuery = (rows: unknown[], options: { groupBy?: boolean } = {}): QueryMock => {
+ const query = {} as QueryMock
+ query.from = jest.fn(() => query)
+ query.leftJoin = jest.fn(() => query)
+ query.where = jest.fn(() => (options.groupBy ? query : rows))
+ query.groupBy = jest.fn(() => rows)
+ db.select.mockReturnValueOnce(query)
+ return query
+ }
- beforeAll(async () => {
+ beforeEach(async () => {
+ db = { select: jest.fn() }
const module: TestingModule = await Test.createTestingModule({
- providers: [FilesContentParser, { provide: DB_TOKEN_PROVIDER, useValue: {} }]
+ providers: [FilesContentParser, { provide: DB_TOKEN_PROVIDER, useValue: db }]
}).compile()
+ module.useLogger(['fatal'])
service = module.get<FilesContentParser>(FilesContentParser)
+ isPathExistsSpy = jest.spyOn(filesUtils, 'isPathExists').mockResolvedValue(true)
+ })
+
+ afterEach(() => {
+ jest.restoreAllMocks()
})
it('should be defined', () => {
expect(service).toBeDefined()
})
+
+ it('should return all repository paths when no filter is provided', async () => {
+ const userPaths = [{ id: 1, type: FILE_REPOSITORY.USER, paths: [{ realPath: '/users/john/files', pathPrefix: 'files/personal', isDir: true }] }]
+ const spacePaths = [
+ { id: 2, type: FILE_REPOSITORY.SPACE, paths: [{ realPath: '/spaces/project/files', pathPrefix: 'files/project', isDir: true }] }
+ ]
+ const sharePaths = [{ id: 3, type: FILE_REPOSITORY.SHARE, paths: [{ realPath: '/shares/docs', pathPrefix: 'shares/docs', isDir: true }] }]
+ const userPathsSpy = jest.spyOn(service as any, 'userPaths').mockResolvedValue(userPaths)
+ const spacePathsSpy = jest.spyOn(service as any, 'spacePaths').mockResolvedValue(spacePaths)
+ const sharePathsSpy = jest.spyOn(service as any, 'sharePaths').mockResolvedValue(sharePaths as any)
+
+ await expect(service.allPaths()).resolves.toEqual([...userPaths, ...spacePaths, ...sharePaths])
+ expect(userPathsSpy).toHaveBeenCalledWith(undefined)
+ expect(spacePathsSpy).toHaveBeenCalledWith(undefined)
+ expect(sharePathsSpy).toHaveBeenCalledWith(undefined)
+ })
+
+ it('should only query filtered repositories and ignore empty filters', async () => {
+ const userPaths = [{ id: 1, type: FILE_REPOSITORY.USER, paths: [{ realPath: '/users/john/files', pathPrefix: 'files/personal', isDir: true }] }]
+ const userPathsSpy = jest.spyOn(service as any, 'userPaths').mockResolvedValue(userPaths)
+ const spacePathsSpy = jest.spyOn(service as any, 'spacePaths').mockResolvedValue([])
+ const sharePathsSpy = jest.spyOn(service as any, 'sharePaths').mockResolvedValue([])
+
+ await expect(service.allPaths([1], [], [])).resolves.toEqual(userPaths)
+ expect(userPathsSpy).toHaveBeenCalledWith([1])
+ expect(spacePathsSpy).not.toHaveBeenCalled()
+ expect(sharePathsSpy).not.toHaveBeenCalled()
+ })
+
+ it('should return an empty list without querying when every filter is empty', async () => {
+ await expect(service.allPaths([], [], [])).resolves.toEqual([])
+ expect(db.select).not.toHaveBeenCalled()
+ })
+
+ it('should build user file paths and skip missing user repositories', async () => {
+ mockQuery([
+ { id: 1, login: 'john' },
+ { id: 2, login: 'jane' }
+ ])
+ isPathExistsSpy.mockImplementation(async (p: string) => p === UserModel.getFilesPath('john'))
+
+ await expect((service as any).userPaths([1, 2])).resolves.toEqual([
+ {
+ id: 1,
+ type: FILE_REPOSITORY.USER,
+ paths: [
+ {
+ realPath: UserModel.getFilesPath('john'),
+ pathPrefix: `${SPACE_REPOSITORY.FILES}/${SPACE_ALIAS.PERSONAL}`,
+ isDir: true
+ }
+ ]
+ }
+ ])
+ expect(db.select).toHaveBeenCalledTimes(1)
+ expect(isPathExistsSpy).toHaveBeenCalledWith(UserModel.getFilesPath('john'))
+ expect(isPathExistsSpy).toHaveBeenCalledWith(UserModel.getFilesPath('jane'))
+ })
+
+ it('should not query users when user filter is empty', async () => {
+ await expect((service as any).userPaths([])).resolves.toEqual([])
+ expect(db.select).not.toHaveBeenCalled()
+ })
+
+ it('should build space file paths with internal and external roots', async () => {
+ mockQuery(
+ [
+ {
+ id: 7,
+ alias: 'project',
+ roots: [
+ { alias: 'external-docs', externalPath: '/mnt/docs', isDir: true },
+ { alias: 'owner-file', externalPath: null, isDir: false, file: { fromOwner: 'john', path: 'reports/a.txt' } }
+ ]
+ }
+ ],
+ { groupBy: true }
+ )
+
+ await expect((service as any).spacePaths([7])).resolves.toEqual([
+ {
+ id: 7,
+ type: FILE_REPOSITORY.SPACE,
+ paths: [
+ {
+ realPath: SpaceModel.getFilesPath('project'),
+ pathPrefix: `${SPACE_REPOSITORY.FILES}/project`,
+ isDir: true
+ },
+ {
+ realPath: '/mnt/docs',
+ pathPrefix: `${SPACE_REPOSITORY.FILES}/project/external-docs`,
+ isDir: true
+ },
+ {
+ realPath: path.join(UserModel.getFilesPath('john'), 'reports/a.txt'),
+ pathPrefix: `${SPACE_REPOSITORY.FILES}/project/owner-file`,
+ isDir: false
+ }
+ ]
+ }
+ ])
+ expect(db.select).toHaveBeenCalledTimes(1)
+ expect(isPathExistsSpy).toHaveBeenCalledWith(SpaceModel.getFilesPath('project'))
+ })
+
+ it('should not query spaces when space filter is empty', async () => {
+ await expect((service as any).spacePaths([])).resolves.toEqual([])
+ expect(db.select).not.toHaveBeenCalled()
+ })
+
+ it('should build share file paths from external, user, and space sources', async () => {
+ mockQuery(
+ [
+ { id: 10, alias: 'external-share', externalPath: '/mnt/share', isDir: true, file: { path: 'docs', fromOwner: null, fromSpace: null } },
+ { id: 11, alias: 'user-share', externalPath: null, isDir: false, file: { path: 'notes/a.txt', fromOwner: 'john', fromSpace: null } },
+ { id: 12, alias: 'space-share', externalPath: null, isDir: true, file: { path: 'folder', fromOwner: null, fromSpace: 'project' } },
+ { id: 13, alias: 'orphan-share', externalPath: null, isDir: true, file: { path: '.', fromOwner: null, fromSpace: null } },
+ { id: 14, alias: 'missing-share', externalPath: '/missing', isDir: true, file: { path: 'docs', fromOwner: null, fromSpace: null } }
+ ],
+ { groupBy: true }
+ )
+ isPathExistsSpy.mockImplementation(async (p: string) => p !== path.join('/missing', 'docs'))
+
+ await expect((service as any).sharePaths([10, 11, 12, 13, 14])).resolves.toEqual([
+ {
+ id: 10,
+ type: FILE_REPOSITORY.SHARE,
+ paths: [{ realPath: path.join('/mnt/share', 'docs'), pathPrefix: `${SPACE_REPOSITORY.SHARES}/external-share`, isDir: true }]
+ },
+ {
+ id: 11,
+ type: FILE_REPOSITORY.SHARE,
+ paths: [
+ { realPath: path.join(UserModel.getFilesPath('john'), 'notes/a.txt'), pathPrefix: `${SPACE_REPOSITORY.SHARES}/user-share`, isDir: false }
+ ]
+ },
+ {
+ id: 12,
+ type: FILE_REPOSITORY.SHARE,
+ paths: [
+ { realPath: path.join(SpaceModel.getFilesPath('project'), 'folder'), pathPrefix: `${SPACE_REPOSITORY.SHARES}/space-share`, isDir: true }
+ ]
+ }
+ ])
+ expect(db.select).toHaveBeenCalledTimes(1)
+ expect(isPathExistsSpy).toHaveBeenCalledWith(path.join('/missing', 'docs'))
+ })
+
+ it('should not query shares when share filter is empty', async () => {
+ await expect((service as any).sharePaths([])).resolves.toEqual([])
+ expect(db.select).not.toHaveBeenCalled()
+ })
})
diff --git a/backend/src/applications/files/services/files-content-parser.service.ts b/backend/src/applications/files/services/files-content-parser.service.ts
index 6be0f627..9d4ed247 100644
--- a/backend/src/applications/files/services/files-content-parser.service.ts
+++ b/backend/src/applications/files/services/files-content-parser.service.ts
@@ -13,7 +13,7 @@ import { spaces } from '../../spaces/schemas/spaces.schema'
import { USER_ROLE } from '../../users/constants/user'
import { UserModel } from '../../users/models/user.model'
import { users } from '../../users/schemas/users.schema'
-import { FileParseContext } from '../interfaces/file-parse-index'
+import { FileParseContentPath, FileParseContext } from '../interfaces/file-parse-index'
import { filePathSQL, files } from '../schemas/files.schema'
import { isPathExists } from '../utils/files'
import { FILE_REPOSITORY } from '../constants/operations'
@@ -24,34 +24,48 @@ export class FilesContentParser {
constructor(@Inject(DB_TOKEN_PROVIDER) private readonly db: DBSchema) {}
- async *allPaths(userIds?: number[], spaceIds?: number[], shareIds?: number[]): AsyncGenerator<[number, FILE_REPOSITORY, FileParseContext[]]> {
- yield* this.userPaths(userIds)
- yield* this.spacePaths(spaceIds)
- yield* this.sharePaths(shareIds)
+ async allPaths(userIds?: number[], spaceIds?: number[], shareIds?: number[]): Promise<FileParseContentPath[]> {
+ const hasNoFilters = userIds === undefined && spaceIds === undefined && shareIds === undefined
+ const includeUsers = hasNoFilters || !!userIds?.length
+ const includeSpaces = hasNoFilters || !!spaceIds?.length
+ const includeShares = hasNoFilters || !!shareIds?.length
+
+ const [userPaths, spacePaths, sharePaths] = await Promise.all([
+ includeUsers ? this.userPaths(userIds) : [],
+ includeSpaces ? this.spacePaths(spaceIds) : [],
+ includeShares ? this.sharePaths(shareIds) : []
+ ])
+
+ return [...userPaths, ...spacePaths, ...sharePaths]
}
- async *userPaths(userIds?: number[]): AsyncGenerator<[number, FILE_REPOSITORY, FileParseContext[]]> {
+ private async userPaths(userIds?: number[]): Promise<FileParseContentPath[]> {
+ if (userIds?.length === 0) return []
+ const paths: FileParseContentPath[] = []
for (const user of await this.db
.select({
id: users.id,
login: users.login
})
.from(users)
- .where(and(...[eq(users.storageIndexing, true), lte(users.role, USER_ROLE.USER), ...(userIds ? [inArray(users.id, userIds)] : [])]))) {
+ .where(and(...[eq(users.storageIndexing, true), lte(users.role, USER_ROLE.USER), ...(userIds?.length ? [inArray(users.id, userIds)] : [])]))) {
const userFilesPath = UserModel.getFilesPath(user.login)
if (!(await isPathExists(userFilesPath))) {
this.logger.warn({ tag: this.userPaths.name, msg: `user path does not exist : ${userFilesPath}` })
continue
}
- yield [
- user.id,
- FILE_REPOSITORY.USER,
- [{ realPath: userFilesPath, pathPrefix: `${SPACE_REPOSITORY.FILES}/${SPACE_ALIAS.PERSONAL}`, isDir: true }]
- ]
+ paths.push({
+ id: user.id,
+ type: FILE_REPOSITORY.USER,
+ paths: [{ realPath: userFilesPath, pathPrefix: `${SPACE_REPOSITORY.FILES}/${SPACE_ALIAS.PERSONAL}`, isDir: true }]
+ })
}
+ return paths
}
- async *spacePaths(spaceIds?: number[]): AsyncGenerator<[number, FILE_REPOSITORY, FileParseContext[]]> {
+ private async spacePaths(spaceIds?: number[]): Promise<FileParseContentPath[]> {
+ if (spaceIds?.length === 0) return []
+ const paths: FileParseContentPath[] = []
for (const space of await this.db
.select({
id: spaces.id,
@@ -70,14 +84,14 @@ export class FilesContentParser {
.leftJoin(spacesRoots, eq(spacesRoots.spaceId, spaces.id))
.leftJoin(files, eq(files.id, spacesRoots.fileId))
.leftJoin(users, eq(users.id, files.ownerId))
- .where(and(eq(spaces.storageIndexing, true), ...(spaceIds ? [inArray(spaces.id, spaceIds)] : [])))
+ .where(and(eq(spaces.storageIndexing, true), ...(spaceIds?.length ? [inArray(spaces.id, spaceIds)] : [])))
.groupBy(spaces.id)) {
const spaceFilesPath = SpaceModel.getFilesPath(space.alias)
if (!(await isPathExists(spaceFilesPath))) {
this.logger.warn({ tag: this.spacePaths.name, msg: `space path does not exist : ${spaceFilesPath}` })
continue
}
- const spacePath = [{ realPath: spaceFilesPath, pathPrefix: `${SPACE_REPOSITORY.FILES}/${space.alias}`, isDir: true }]
+ const spacePath: FileParseContext[] = [{ realPath: spaceFilesPath, pathPrefix: `${SPACE_REPOSITORY.FILES}/${space.alias}`, isDir: true }]
const rootPaths = space.roots.map(
(r: any): FileParseContext =>
r.externalPath
@@ -92,11 +106,14 @@ export class FilesContentParser {
isDir: r.isDir
}
)
- yield [space.id, FILE_REPOSITORY.SPACE, [...spacePath, ...rootPaths]]
+ paths.push({ id: space.id, type: FILE_REPOSITORY.SPACE, paths: [...spacePath, ...rootPaths] })
}
+ return paths
}
- async *sharePaths(shareIds?: number[]): AsyncGenerator<[number, FILE_REPOSITORY, FileParseContext[]]> {
+ private async sharePaths(shareIds?: number[]): Promise<FileParseContentPath[]> {
+ if (shareIds?.length === 0) return []
+ const paths: FileParseContentPath[] = []
for (const share of await this.db
.select({
id: shares.id,
@@ -117,7 +134,9 @@ export class FilesContentParser {
)
.leftJoin(spaces, and(isNull(shares.externalPath), isNotNull(files.spaceId), eq(spaces.id, files.spaceId), eq(spaces.storageIndexing, true)))
.leftJoin(users, and(eq(users.id, files.ownerId), eq(users.storageIndexing, true)))
- .where(and(eq(shares.storageIndexing, true), ...[eq(shares.type, SHARE_TYPE.COMMON), ...(shareIds ? [inArray(shares.id, shareIds)] : [])]))
+ .where(
+ and(eq(shares.storageIndexing, true), ...[eq(shares.type, SHARE_TYPE.COMMON), ...(shareIds?.length ? [inArray(shares.id, shareIds)] : [])])
+ )
.groupBy(shares.id)) {
let shareFilesPath: string
if (share.externalPath) {
@@ -134,11 +153,12 @@ export class FilesContentParser {
this.logger.warn({ tag: this.sharePaths.name, msg: `share path does not exist : ${shareFilesPath}` })
continue
}
- yield [
- share.id,
- FILE_REPOSITORY.SHARE,
- [{ realPath: shareFilesPath, pathPrefix: `${SPACE_REPOSITORY.SHARES}/${share.alias}`, isDir: share.isDir }]
- ]
+ paths.push({
+ id: share.id,
+ type: FILE_REPOSITORY.SHARE,
+ paths: [{ realPath: shareFilesPath, pathPrefix: `${SPACE_REPOSITORY.SHARES}/${share.alias}`, isDir: share.isDir }]
+ })
}
+ return paths
}
}
diff --git a/backend/src/applications/files/services/files-scheduler.service.ts b/backend/src/applications/files/services/files-scheduler.service.ts
index 9967e62e..4448021c 100644
--- a/backend/src/applications/files/services/files-scheduler.service.ts
+++ b/backend/src/applications/files/services/files-scheduler.service.ts
@@ -25,7 +25,6 @@ export class FilesScheduler {
private readonly logger = new Logger(FilesScheduler.name)
private isQuotaUpdateIsRunning = false
private isQuotaUpdateEntriesIsRunning = false
- private pendingFullSync = false
constructor(
@Inject(DB_TOKEN_PROVIDER) private readonly db: DBSchema,
@@ -68,13 +67,10 @@ export class FilesScheduler {
}
if (!this.filesContentIndexer.isEnabled || (await this.filesContentIndexer.isRunning())) return
try {
- await this.filesContentIndexer.updateIndexEntries()
+ await this.filesContentIndexer.processIndexingQueue()
} catch (e) {
this.logger.error({ tag: this.updateStorageAndIndexing.name, msg: `update indexing error: ${e}` })
}
- if (this.pendingFullSync) {
- await this.indexContentFiles()
- }
}
@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT)
@@ -140,17 +136,10 @@ export class FilesScheduler {
@Cron(CronExpression.EVERY_4_HOURS)
async indexContentFiles(): Promise<void> {
- // Conditional loading of file content indexing
- if (!this.filesContentIndexer.isEnabled) return
- if (await this.filesContentIndexer.isRunning()) {
- this.pendingFullSync = true
- this.logger.warn({ tag: this.indexContentFiles.name, msg: `SKIP (already running) - deferred` })
- return
+ // queue a full content indexing request, it will be consumed by the minute scheduler
+ if (await this.filesContentIndexer.requestFullIndexing()) {
+ this.logger.log({ tag: this.indexContentFiles.name, msg: `PENDING` })
}
- this.pendingFullSync = false
- this.logger.log({ tag: this.indexContentFiles.name, msg: `START` })
- await this.filesContentIndexer.parseAndIndexAllFiles()
- this.logger.log({ tag: this.indexContentFiles.name, msg: `END` })
}
@Cron(CronExpression.EVERY_DAY_AT_4AM)
@@ -238,7 +227,7 @@ export class FilesScheduler {
}
private async resetContentIndexingState(): Promise<void> {
- await this.filesContentIndexer.resetRunningState()
+ await this.filesContentIndexer.resetIndexingRuntimeState()
this.logger.log({ tag: this.resetContentIndexingState.name, msg: `done` })
}
}
diff --git a/backend/src/applications/files/services/files-search-manager.service.spec.ts b/backend/src/applications/files/services/files-search-manager.service.spec.ts
index 5be0d5e9..4cdae979 100644
--- a/backend/src/applications/files/services/files-search-manager.service.spec.ts
+++ b/backend/src/applications/files/services/files-search-manager.service.spec.ts
@@ -135,18 +135,16 @@ describe(FilesSearchManager.name, () => {
})
it('should stop filename search when the limit is reached', async () => {
- filesParser.allPaths.mockReturnValue(
- (async function* () {
- yield [
- 5,
- FILE_REPOSITORY.USER,
- [
- { realPath: '/root/file-a.txt', pathPrefix: 'files/personal', isDir: false },
- { realPath: '/root/dir', pathPrefix: 'files/personal', isDir: true }
- ]
+ filesParser.allPaths.mockResolvedValue([
+ {
+ id: 5,
+ type: FILE_REPOSITORY.USER,
+ paths: [
+ { realPath: '/root/file-a.txt', pathPrefix: 'files/personal', isDir: false },
+ { realPath: '/root/dir', pathPrefix: 'files/personal', isDir: true }
]
- })()
- )
+ }
+ ])
jest.spyOn(service as any, 'analyzeFile').mockResolvedValue(fileContent('file-a.txt'))
jest.spyOn(service as any, 'parseFileNames').mockReturnValue(
(async function* () {
diff --git a/backend/src/applications/files/services/files-search-manager.service.ts b/backend/src/applications/files/services/files-search-manager.service.ts
index 35da841e..bee83647 100644
--- a/backend/src/applications/files/services/files-search-manager.service.ts
+++ b/backend/src/applications/files/services/files-search-manager.service.ts
@@ -65,7 +65,7 @@ export class FilesSearchManager {
private async searchFileNames(userId: number, spaceIds: number[], shareIds: number[], search: string, limit: number): Promise<FileContent[]> {
const fileContents: FileContent[] = []
const regexpTerms = genRegexPositiveAndNegativeTerms(search)
- for await (const [_id, _type, paths] of this.filesParser.allPaths([userId], spaceIds, shareIds)) {
+ for (const { paths } of await this.filesParser.allPaths([userId], spaceIds, shareIds)) {
for (const p of paths) {
const regexBasePath = new RegExp(`^/?${escapePath(p.realPath)}/?`)
if (!p.isDir) {
diff --git a/backend/src/applications/files/utils/indexing.ts b/backend/src/applications/files/utils/indexing.ts
index d74825c2..74077b19 100644
--- a/backend/src/applications/files/utils/indexing.ts
+++ b/backend/src/applications/files/utils/indexing.ts
@@ -7,6 +7,10 @@ export function genIndexingKey(id: number, type: FILE_REPOSITORY, sep = '_'): st
return `${type}${sep}${id}`
}
+export function genRunId(): string {
+ return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`
+}
+
export function indexingUpdateCacheKeysFromSpace(userId: number, space: SpaceEnv): string[] {
const cacheKeys: string[] = []
if (space.inSharesRepository && !space.root.externalPath) {
diff --git a/frontend/src/app/applications/admin/components/admin-tools.component.html b/frontend/src/app/applications/admin/components/admin-tools.component.html
index 411b18be..306b1ee7 100644
--- a/frontend/src/app/applications/admin/components/admin-tools.component.html
+++ b/frontend/src/app/applications/admin/components/admin-tools.component.html
@@ -19,6 +19,9 @@
@case (IndexingState.STOPPING) {
<span class="badge bg-warning" l10nTranslate>{{indexingStatus.state}}</span>
}
+ @case (IndexingState.PENDING) {
+ <span class="badge bg-black" l10nTranslate>{{indexingStatus.state}}</span>
+ }
@default {
<span class="badge bg-secondary" l10nTranslate>{{indexingStatus.state}}</span>
}
@@ -56,7 +59,7 @@
<div class="text-muted no-select fs-sm my-3 px-1 me-auto" l10nTranslate>
Start or stop indexing.
</div>
- @if (indexingStatus.state === IndexingState.RUNNING) {
+ @if (indexingStatus.state === IndexingState.RUNNING || indexingStatus.state === IndexingState.PENDING) {
<button
(click)="stopIndexing()"
class="btn btn-sm btn-warning btn-sm text-nowrap"
@@ -82,7 +85,7 @@
@if (confirmResetIndexing) {
<button
(click)="confirmResetIndexing = false"
- [disabled]="indexingStatus.state === IndexingState.RUNNING"
+ [disabled]="indexingStatus.state === IndexingState.RUNNING || indexingStatus.state === IndexingState.PENDING"
class="btn btn-sm btn-secondary btn-sm text-nowrap me-2"
type="button">
<span l10nTranslate>Cancel</span>
diff --git a/frontend/src/app/applications/admin/components/admin-tools.component.ts b/frontend/src/app/applications/admin/components/admin-tools.component.ts
index eecdd9a6..63b91955 100644
--- a/frontend/src/app/applications/admin/components/admin-tools.component.ts
+++ b/frontend/src/app/applications/admin/components/admin-tools.component.ts
@@ -42,14 +42,14 @@ export class AdminToolsComponent {
}
startIndexing() {
- this.adminService.startIndexing().subscribe((started) => {
- if (started) this.indexingStatus.state = IndexingState.RUNNING
+ this.adminService.startIndexing().subscribe((pending) => {
+ if (pending) this.indexingStatus.state = IndexingState.PENDING
})
}
stopIndexing() {
- this.adminService.stopIndexing().subscribe((stopped) => {
- if (stopped) this.indexingStatus.state = IndexingState.STOPPING
+ this.adminService.stopIndexing().subscribe((stopping) => {
+ if (stopping) this.indexingStatus.state = IndexingState.STOPPING
})
}
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index 2fba1abb..7b2a1144 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -651,6 +651,7 @@
"State": "Status",
"Stop": "Stoppen",
"Indexes": "Indizes",
+ "pending": "ausstehend",
"running": "läuft",
"stopping": "wird gestoppt",
"idle": "leerlauf",
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index feb7ec58..d8d1b310 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -651,6 +651,7 @@
"State": "Estado",
"Stop": "Detener",
"Indexes": "Índices",
+ "pending": "pendiente",
"running": "en ejecución",
"stopping": "deteniendo",
"idle": "inactivo",
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index fe7830b7..8bbafb1e 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -651,6 +651,7 @@
"State": "État",
"Stop": "Arrêter",
"Indexes": "Indexes",
+ "pending": "en attente",
"running": "en cours",
"stopping": "arrêt en cours",
"idle": "inactif",
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index cdc74d85..ba6cbf72 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -651,6 +651,7 @@
"State": "स्थिति",
"Stop": "रोकें",
"Indexes": "इंडेक्स",
+ "pending": "लंबित",
"running": "चल रहा है",
"stopping": "रोका जा रहा है",
"idle": "निष्क्रिय",
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index 5fde9a48..fe38aacc 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -651,6 +651,7 @@
"State": "Stato",
"Stop": "Arresta",
"Indexes": "Indici",
+ "pending": "in attesa",
"running": "in esecuzione",
"stopping": "in arresto",
"idle": "inattivo",
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index e6c4bdd4..6a7a7636 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -651,6 +651,7 @@
"State": "状態",
"Stop": "停止",
"Indexes": "インデックス",
+ "pending": "保留中",
"running": "実行中",
"stopping": "停止中",
"idle": "待機中",
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index 165112fc..f179f9e5 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -651,6 +651,7 @@
"State": "상태",
"Stop": "중지",
"Indexes": "인덱스",
+ "pending": "대기 중",
"running": "실행 중",
"stopping": "중지 중",
"idle": "유휴",
diff --git a/frontend/src/i18n/nl.json b/frontend/src/i18n/nl.json
index 09919bef..0655d508 100644
--- a/frontend/src/i18n/nl.json
+++ b/frontend/src/i18n/nl.json
@@ -651,6 +651,7 @@
"State": "Status",
"Stop": "Stop",
"Indexes": "Indexen",
+ "pending": "in afwachting",
"running": "actief",
"stopping": "bezig met stoppen",
"idle": "inactief",
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 940f5a66..15d47feb 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -651,6 +651,7 @@
"State": "Stan",
"Stop": "Stop",
"Indexes": "Indeksy",
+ "pending": "oczekujące",
"running": "w trakcie",
"stopping": "zatrzymywanie",
"idle": "bezczynny",
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index 813c4670..f761745a 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -651,6 +651,7 @@
"State": "Estado",
"Stop": "Parar",
"Indexes": "Índices",
+ "pending": "pendente",
"running": "em execução",
"stopping": "parando",
"idle": "inativo",
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index 55a0eb3e..c7ddb7aa 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -651,6 +651,7 @@
"State": "Estado",
"Stop": "Parar",
"Indexes": "Índices",
+ "pending": "pendente",
"running": "em execução",
"stopping": "a parar",
"idle": "inativo",
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 8f5f54aa..6e9ae037 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -651,6 +651,7 @@
"State": "Состояние",
"Stop": "Остановить",
"Indexes": "Индексы",
+ "pending": "в ожидании",
"running": "выполняется",
"stopping": "останавливается",
"idle": "ожидание",
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index 530d6ad9..4d835a51 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -651,6 +651,7 @@
"State": "Durum",
"Stop": "Durdur",
"Indexes": "Dizinler",
+ "pending": "beklemede",
"running": "çalışıyor",
"stopping": "durduruluyor",
"idle": "boşta",
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index 0947c0bc..62f67e65 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -651,6 +651,7 @@
"State": "状态",
"Stop": "停止",
"Indexes": "索引",
+ "pending": "等待中",
"running": "运行中",
"stopping": "停止中",
"idle": "空闲",
diff --git a/package-lock.json b/package-lock.json
index d7683c83..20a4a3d8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -75,7 +75,7 @@
"drizzle-orm": "^0.45.1",
"fast-xml-parser": "^5.0.7",
"fs-extra": "^11.2.0",
- "html-to-text": "^9.0.5",
+ "html-to-text": "^10.0.0",
"js-yaml": "^4.1.0",
"ldapts": "^8.0.36",
"mime-types": "^3.0.1",
@@ -448,13 +448,13 @@
}
},
"node_modules/@angular-devkit/architect": {
- "version": "0.2003.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.24.tgz",
- "integrity": "sha512-E7mCdkL6SWnW60G1nGLuugmsopza/eVIrDWB1y0vLkWN8gepOvnHz2Uf637kdzed/F1WoqR+dhv1SfsaJapzKA==",
+ "version": "0.2003.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2003.25.tgz",
+ "integrity": "sha512-39pTqt4wSmpD1WeCee46oSGXRh6TR1PFd9GZEwyZoMvBTMs8mE2sXGxUgd4Qyi5CkQ1XnCM5XfgJcjUWUQRoGg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/core": "20.3.24",
+ "@angular-devkit/core": "20.3.25",
"rxjs": "7.8.2"
},
"engines": {
@@ -464,9 +464,9 @@
}
},
"node_modules/@angular-devkit/architect/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -491,6 +491,23 @@
}
}
},
+ "node_modules/@angular-devkit/architect/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular-devkit/architect/node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
@@ -502,13 +519,13 @@
}
},
"node_modules/@angular-devkit/schematics": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.24.tgz",
- "integrity": "sha512-B5fBPi0xnEDI0wLLkCjsrYjazRPyf+rnHLAHi34thMdeY9dqljJGWYdNuyUUBak6HNPBLdEo1EUSNcOF9OWt4A==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.25.tgz",
+ "integrity": "sha512-IB0IHf8ZRqr69hT/XIfHkYLPAYHWQ/WUc6+fKHBwq58jJlm/y5QUeTEuXvJ18IX/+hUIqw+E2Q3T0N9rLDLzXg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/core": "20.3.24",
+ "@angular-devkit/core": "20.3.25",
"jsonc-parser": "3.3.1",
"magic-string": "0.30.17",
"ora": "8.2.0",
@@ -620,6 +637,23 @@
}
}
},
+ "node_modules/@angular-devkit/schematics-cli/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular-devkit/schematics-cli/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -841,9 +875,9 @@
}
},
"node_modules/@angular-devkit/schematics/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -868,6 +902,23 @@
}
}
},
+ "node_modules/@angular-devkit/schematics/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular-devkit/schematics/node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
@@ -894,9 +945,9 @@
}
},
"node_modules/@angular-eslint/builder/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -921,6 +972,23 @@
}
}
},
+ "node_modules/@angular-eslint/builder/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular-eslint/builder/node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
@@ -992,9 +1060,9 @@
}
},
"node_modules/@angular-eslint/schematics/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1019,6 +1087,23 @@
}
}
},
+ "node_modules/@angular-eslint/schematics/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular-eslint/schematics/node_modules/semver": {
"version": "7.7.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
@@ -1088,14 +1173,14 @@
}
},
"node_modules/@angular/build": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.3.24.tgz",
- "integrity": "sha512-AMGXOr268y+kVutl4LpOXY2xv9P+RXLCyXUkzYwi8XwGyxAJZfyu/L5qtcO2llExp5CuvP0OxkWxk4JOGRi9TA==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular/build/-/build-20.3.25.tgz",
+ "integrity": "sha512-ddWmPzYuzDWz9ql0262u9w3OJHXpSjHVNIDFIYOG2XYyMj/Xve0RkJ8/xvV+Hv7T3iqyyGKtsO+n/d0GCJQCtQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@ampproject/remapping": "2.3.0",
- "@angular-devkit/architect": "0.2003.24",
+ "@angular-devkit/architect": "0.2003.25",
"@babel/core": "7.28.3",
"@babel/helper-annotate-as-pure": "7.27.3",
"@babel/helper-split-export-declaration": "7.24.7",
@@ -1137,7 +1222,7 @@
"@angular/platform-browser": "^20.0.0",
"@angular/platform-server": "^20.0.0",
"@angular/service-worker": "^20.0.0",
- "@angular/ssr": "^20.3.24",
+ "@angular/ssr": "^20.3.25",
"karma": "^6.4.0",
"less": "^4.2.0",
"ng-packagr": "^20.0.0",
@@ -1215,19 +1300,19 @@
}
},
"node_modules/@angular/cli": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.3.24.tgz",
- "integrity": "sha512-TT7LldRJPCi1VGBJMzcrYU+P3w2G6zgubwhFUdJthUiS77A+At6WJqaRY2BdIS3l7HZOXTEaU2Vj2Gkf2ol2Yw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-20.3.25.tgz",
+ "integrity": "sha512-QOSxza45CZY11kqPVpqsU+WGYF99rR/r9A9GykZQWuAHb5SEAxlXHyaaGMu/BMtBHy5HNIlJH25UlzelrbaNyQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/architect": "0.2003.24",
- "@angular-devkit/core": "20.3.24",
- "@angular-devkit/schematics": "20.3.24",
+ "@angular-devkit/architect": "0.2003.25",
+ "@angular-devkit/core": "20.3.25",
+ "@angular-devkit/schematics": "20.3.25",
"@inquirer/prompts": "7.8.2",
"@listr2/prompt-adapter-inquirer": "3.0.1",
"@modelcontextprotocol/sdk": "1.26.0",
- "@schematics/angular": "20.3.24",
+ "@schematics/angular": "20.3.25",
"@yarnpkg/lockfile": "1.1.0",
"algoliasearch": "5.35.0",
"ini": "5.0.0",
@@ -1250,9 +1335,9 @@
}
},
"node_modules/@angular/cli/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1277,6 +1362,23 @@
}
}
},
+ "node_modules/@angular/cli/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@angular/cli/node_modules/ansi-regex": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
@@ -1795,9 +1897,9 @@
}
},
"node_modules/@babel/compat-data": {
- "version": "7.29.0",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
- "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
+ "version": "7.29.3",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz",
+ "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2037,9 +2139,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.29.2",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
- "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
+ "version": "7.29.3",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz",
+ "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2836,9 +2938,9 @@
}
},
"node_modules/@dependents/detective-less": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-5.0.2.tgz",
- "integrity": "sha512-QPKO4ao2+iniYAYnPZwHKK67EgDG2GAdye9OCy11xsmApHGwzpH3AcSdPjGyPO3tC2/K8mF7JjWX3A/FTRnskg==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-5.0.3.tgz",
+ "integrity": "sha512-v6oD9Ukp+N7V4n6p5I/+mM5fIohSfkrDSGlFm5w/pYmchvbk+sMIHsLxrFJ5Lnujewj1BzWL0K84d88lwZAMQA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -6974,9 +7076,9 @@
]
},
"node_modules/@napi-rs/canvas": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-0.1.99.tgz",
- "integrity": "sha512-zN4eQlK3eBf7aJBcTHZilpBH3tDekBzPMIWC8r0s94Ecl73XfOyFi4w7yKFMRVUT0lvNQjtOL8YSrwqQj6mZFg==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-0.1.100.tgz",
+ "integrity": "sha512-xglYA6q3XO5P3BNJYxVZ1IV7DLVjp1Py6nwag88YntrS+3vKHyYcMqXVS4ZztJmwz2uGvz1FWhI/4LgbR5uQDA==",
"license": "MIT",
"optional": true,
"workspaces": [
@@ -6990,23 +7092,23 @@
"url": "https://github.com/sponsors/Brooooooklyn"
},
"optionalDependencies": {
- "@napi-rs/canvas-android-arm64": "0.1.99",
- "@napi-rs/canvas-darwin-arm64": "0.1.99",
- "@napi-rs/canvas-darwin-x64": "0.1.99",
- "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.99",
- "@napi-rs/canvas-linux-arm64-gnu": "0.1.99",
- "@napi-rs/canvas-linux-arm64-musl": "0.1.99",
- "@napi-rs/canvas-linux-riscv64-gnu": "0.1.99",
- "@napi-rs/canvas-linux-x64-gnu": "0.1.99",
- "@napi-rs/canvas-linux-x64-musl": "0.1.99",
- "@napi-rs/canvas-win32-arm64-msvc": "0.1.99",
- "@napi-rs/canvas-win32-x64-msvc": "0.1.99"
+ "@napi-rs/canvas-android-arm64": "0.1.100",
+ "@napi-rs/canvas-darwin-arm64": "0.1.100",
+ "@napi-rs/canvas-darwin-x64": "0.1.100",
+ "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.100",
+ "@napi-rs/canvas-linux-arm64-gnu": "0.1.100",
+ "@napi-rs/canvas-linux-arm64-musl": "0.1.100",
+ "@napi-rs/canvas-linux-riscv64-gnu": "0.1.100",
+ "@napi-rs/canvas-linux-x64-gnu": "0.1.100",
+ "@napi-rs/canvas-linux-x64-musl": "0.1.100",
+ "@napi-rs/canvas-win32-arm64-msvc": "0.1.100",
+ "@napi-rs/canvas-win32-x64-msvc": "0.1.100"
}
},
"node_modules/@napi-rs/canvas-android-arm64": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-android-arm64/-/canvas-android-arm64-0.1.99.tgz",
- "integrity": "sha512-9OCRt8VVxA17m32NWZKyNC2qamdaS/SC5CEOIQwFngRq0DIeVm4PDal+6Ljnhqm2whZiC63DNuKZ4xSp2nbj9w==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-android-arm64/-/canvas-android-arm64-0.1.100.tgz",
+ "integrity": "sha512-hjhCKhntPv9+t4ckHymdx0phYNcVW+GKQR6Lzw2zE+pOVjOplSmtx9nNNknTjbEDLcuLZqA1y8ufKg1XfgftzQ==",
"cpu": [
"arm64"
],
@@ -7024,9 +7126,9 @@
}
},
"node_modules/@napi-rs/canvas-darwin-arm64": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-arm64/-/canvas-darwin-arm64-0.1.99.tgz",
- "integrity": "sha512-lupMDMy1+H38dhyCcLirOKKVUyzzlxi7j7rGPLI3vViMHOoPjcXO1b10ivy+ad+q6MiwHfoLjKTCoLke5ySOBg==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-arm64/-/canvas-darwin-arm64-0.1.100.tgz",
+ "integrity": "sha512-2PcswRaC7Ly645DGt88///zuFDhJxJYdKAs1uU3mfk1atYkXufgcgLfBpk6Tm12nCQBaNt1wpybuPZ4qOhTo8A==",
"cpu": [
"arm64"
],
@@ -7044,9 +7146,9 @@
}
},
"node_modules/@napi-rs/canvas-darwin-x64": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-x64/-/canvas-darwin-x64-0.1.99.tgz",
- "integrity": "sha512-fdz02t4w8n6Ii/rYhWig6STb/zcTmCC/6YZTGmjoDeidDwn9Wf0ukQVynhCPEs29vqUc66wHZKsuIgMs9tycCg==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-x64/-/canvas-darwin-x64-0.1.100.tgz",
+ "integrity": "sha512-ePNZtj7pNIva/siZMg+HmbeozkIjqUIYdoymH8HaA3qK7LfzFN4WMBM8G6HQ9ZC+H3+Dnn5pqtiXpgLykaPOhw==",
"cpu": [
"x64"
],
@@ -7064,9 +7166,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-arm-gnueabihf": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm-gnueabihf/-/canvas-linux-arm-gnueabihf-0.1.99.tgz",
- "integrity": "sha512-w4FwVwlNo00ezeRhfY62IVIyt6G3u8wodkPtiqWc52BUHx+VDBUM2vkS3ogfANaLI7hnf3s6WK4LyZVUjBg1lA==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm-gnueabihf/-/canvas-linux-arm-gnueabihf-0.1.100.tgz",
+ "integrity": "sha512-d5cDB48oWFGU8/XPhUOFAlySgb/VAu7D+s8fi55K1Pcfg8aPplHWqMgibhVLU8ky7Pyg/fuiVLz4Nf3JrSTuUA==",
"cpu": [
"arm"
],
@@ -7084,9 +7186,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-arm64-gnu": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-gnu/-/canvas-linux-arm64-gnu-0.1.99.tgz",
- "integrity": "sha512-8JvHeexKQ8c7g0q7YJ29NVQwnf1ePghP9ys9ZN0R0qzyqJQ9Uw6N9qnDINArlm3IYHexB7LjzArIfhQiqSDGvQ==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-gnu/-/canvas-linux-arm64-gnu-0.1.100.tgz",
+ "integrity": "sha512-rDxgxRu69RvDlX/bh9o22DxLsGr8EqsNgotL9+RwQE1S0b0cqeatqsw6aW45mukm0B42DIAaAacKaYQ8cqS1nw==",
"cpu": [
"arm64"
],
@@ -7104,9 +7206,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-arm64-musl": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-musl/-/canvas-linux-arm64-musl-0.1.99.tgz",
- "integrity": "sha512-Z+6nyLdJXWzLPVxi4H6g9TJop4DwN3KSgHWto5JCbZV5/uKoVqcSynPs0tGlUHOoWI8S8tEvJspz51GQkvr07w==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-musl/-/canvas-linux-arm64-musl-0.1.100.tgz",
+ "integrity": "sha512-K3mDW66N+xT2/V439u1alFANiBUjdEx2gLiNYnCmUsva5jZMxWTjafBYwTzYK+EMFMHrUoabuU+T1BIP5CgbYQ==",
"cpu": [
"arm64"
],
@@ -7124,9 +7226,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-riscv64-gnu": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-riscv64-gnu/-/canvas-linux-riscv64-gnu-0.1.99.tgz",
- "integrity": "sha512-jAnfOUv4IO1l8Levk5t85oVtEBOXLa07KnIUgWo1CDlPxiqpxS3uBfiE38Lvj/CQgHaNF6Nxk/SaemwLgsVJgw==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-riscv64-gnu/-/canvas-linux-riscv64-gnu-0.1.100.tgz",
+ "integrity": "sha512-mooqUBTIsccZpnoQC4NgrC1v6C1vof39etLNMnBwCY+p0gajWJvAHLGQ6g/gGyS5YrpDW+GefSN4+Cvcr08UWw==",
"cpu": [
"riscv64"
],
@@ -7144,9 +7246,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-x64-gnu": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-gnu/-/canvas-linux-x64-gnu-0.1.99.tgz",
- "integrity": "sha512-mIkXw3fGmbYyFjSmfWEvty4jN+rwEOmv0+Dy9bRvvTzLYWCgm3RMgUEQVfAKFw96nIRFnyNZiK83KNQaVVFjng==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-gnu/-/canvas-linux-x64-gnu-0.1.100.tgz",
+ "integrity": "sha512-1eCvkDCazm7FFhsT7DfGOdSaHgZVK3bt/dSBl5EWHOWmnz+I7j8tPseJqqD81NF+MH21jKUK4wQSDjN0mdhnTg==",
"cpu": [
"x64"
],
@@ -7164,9 +7266,9 @@
}
},
"node_modules/@napi-rs/canvas-linux-x64-musl": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-musl/-/canvas-linux-x64-musl-0.1.99.tgz",
- "integrity": "sha512-f3Uz2P0RgrtBHISxZqr6yiYXJlTDyCVBumDacxo+4AmSg7z0HiqYZKGWC/gszq3fbPhyQUya1W2AEteKxT9Y6A==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-musl/-/canvas-linux-x64-musl-0.1.100.tgz",
+ "integrity": "sha512-20arT6lnI19S68qNlii73TSEDbECNgzMz2EpldC1V3mZFuRkeujXkcebRk0LRJe9SEUAooYiLokfMViY8IX7yA==",
"cpu": [
"x64"
],
@@ -7184,9 +7286,9 @@
}
},
"node_modules/@napi-rs/canvas-win32-arm64-msvc": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-arm64-msvc/-/canvas-win32-arm64-msvc-0.1.99.tgz",
- "integrity": "sha512-XE6KUkfqRsCNejcoRMiMr3RaUeObxNf6y7dut3hrq2rn7PzfRTZgrjF1F/B2C7FcdgqY/vSHWpQeMuNz1vTNHg==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-arm64-msvc/-/canvas-win32-arm64-msvc-0.1.100.tgz",
+ "integrity": "sha512-DZFFT1wIAg37LJw37yhMRFfjATd3vTQzjZ1Yki8u2vhO6Hi5VE6BVaGQ1aaDu7xb4iMErz+9EOwjpS7xcxFeBw==",
"cpu": [
"arm64"
],
@@ -7204,9 +7306,9 @@
}
},
"node_modules/@napi-rs/canvas-win32-x64-msvc": {
- "version": "0.1.99",
- "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-x64-msvc/-/canvas-win32-x64-msvc-0.1.99.tgz",
- "integrity": "sha512-plMYGVbc/vmmPF9MtmHbwNk1rL1Aj53vQZt+Gnv1oZn6gmd9jEHHJ0n9Nd2nxa5sKH7TS5IjkCDM6289O0d6PQ==",
+ "version": "0.1.100",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-x64-msvc/-/canvas-win32-x64-msvc-0.1.100.tgz",
+ "integrity": "sha512-MyT1j3mHC2+Lu4pBi9mKyMJhtP6U7k7EldY7sj/uS5gJA65gTXt8MefJQXLJo5d/vZbuWmfxzkEUNc/urV3pHA==",
"cpu": [
"x64"
],
@@ -7715,6 +7817,23 @@
}
}
},
+ "node_modules/@nestjs/cli/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@nestjs/cli/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -8351,6 +8470,23 @@
"yarn": ">= 1.13.0"
}
},
+ "node_modules/@nestjs/schematics/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@nestjs/schematics/node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
@@ -8790,9 +8926,9 @@
}
},
"node_modules/@npmcli/package-json/node_modules/hosted-git-info": {
- "version": "9.0.2",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.2.tgz",
- "integrity": "sha512-M422h7o/BR3rmCQ8UHi7cyyMqKltdP9Uo+J2fXK+RSAY+wTcKOIRyhTuKv4qn+DJf3g+PL890AzId5KZpX+CBg==",
+ "version": "9.0.3",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz",
+ "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==",
"dev": true,
"license": "ISC",
"dependencies": {
@@ -9731,14 +9867,14 @@
]
},
"node_modules/@schematics/angular": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.3.24.tgz",
- "integrity": "sha512-GNB8zI8Lz0rJl4Q7FH4Y8ZmRpODkNDKGxWObfZ39POgiyr3CtT5sMRTQq1lWRWTlZeV8uD51DvW/EsAsbaS4HA==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-20.3.25.tgz",
+ "integrity": "sha512-ezoJpPKhhjXgE3LxuNcJO/ghSXs8f73xrqGvqouag7IbuliJYbHrt22WH3X75XSbD0+iOdiqA2bARvAO/ezyxQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@angular-devkit/core": "20.3.24",
- "@angular-devkit/schematics": "20.3.24",
+ "@angular-devkit/core": "20.3.25",
+ "@angular-devkit/schematics": "20.3.25",
"jsonc-parser": "3.3.1"
},
"engines": {
@@ -9748,9 +9884,9 @@
}
},
"node_modules/@schematics/angular/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -9775,6 +9911,23 @@
}
}
},
+ "node_modules/@schematics/angular/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/@schematics/angular/node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
@@ -9793,16 +9946,19 @@
"license": "MIT"
},
"node_modules/@selderee/plugin-htmlparser2": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/@selderee/plugin-htmlparser2/-/plugin-htmlparser2-0.11.0.tgz",
- "integrity": "sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==",
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/@selderee/plugin-htmlparser2/-/plugin-htmlparser2-0.12.0.tgz",
+ "integrity": "sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A==",
"license": "MIT",
"dependencies": {
- "domhandler": "^5.0.3",
- "selderee": "^0.11.0"
+ "domelementtype": "~2.3.0",
+ "domhandler": "~5.0.3"
},
"funding": {
- "url": "https://ko-fi.com/killymxi"
+ "url": "https://github.com/sponsors/KillyMXI"
+ },
+ "peerDependencies": {
+ "selderee": "~0.12.0"
}
},
"node_modules/@sigstore/bundle": {
@@ -10097,9 +10253,9 @@
}
},
"node_modules/@swc/core": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.30.tgz",
- "integrity": "sha512-R8VQbQY1BZcbIF2p3gjlTCwAQzx1A194ugWfwld5y+WgVVWqVKm7eURGGOVbQVubgKWzidP2agomBbg96rZilQ==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.15.33.tgz",
+ "integrity": "sha512-jOlwnFV2xhuuZeAUILGFULeR6vDPfijEJ57evfocwznQldLU3w2cZ9bSDryY9ip+AsM3r1NJKzf47V2NXebkeQ==",
"dev": true,
"hasInstallScript": true,
"license": "Apache-2.0",
@@ -10115,18 +10271,18 @@
"url": "https://opencollective.com/swc"
},
"optionalDependencies": {
- "@swc/core-darwin-arm64": "1.15.30",
- "@swc/core-darwin-x64": "1.15.30",
- "@swc/core-linux-arm-gnueabihf": "1.15.30",
- "@swc/core-linux-arm64-gnu": "1.15.30",
- "@swc/core-linux-arm64-musl": "1.15.30",
- "@swc/core-linux-ppc64-gnu": "1.15.30",
- "@swc/core-linux-s390x-gnu": "1.15.30",
- "@swc/core-linux-x64-gnu": "1.15.30",
- "@swc/core-linux-x64-musl": "1.15.30",
- "@swc/core-win32-arm64-msvc": "1.15.30",
- "@swc/core-win32-ia32-msvc": "1.15.30",
- "@swc/core-win32-x64-msvc": "1.15.30"
+ "@swc/core-darwin-arm64": "1.15.33",
+ "@swc/core-darwin-x64": "1.15.33",
+ "@swc/core-linux-arm-gnueabihf": "1.15.33",
+ "@swc/core-linux-arm64-gnu": "1.15.33",
+ "@swc/core-linux-arm64-musl": "1.15.33",
+ "@swc/core-linux-ppc64-gnu": "1.15.33",
+ "@swc/core-linux-s390x-gnu": "1.15.33",
+ "@swc/core-linux-x64-gnu": "1.15.33",
+ "@swc/core-linux-x64-musl": "1.15.33",
+ "@swc/core-win32-arm64-msvc": "1.15.33",
+ "@swc/core-win32-ia32-msvc": "1.15.33",
+ "@swc/core-win32-x64-msvc": "1.15.33"
},
"peerDependencies": {
"@swc/helpers": ">=0.5.17"
@@ -10138,9 +10294,9 @@
}
},
"node_modules/@swc/core-darwin-arm64": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.30.tgz",
- "integrity": "sha512-VvpP+vq08HmGYewMWvrdsxh9s2lthz/808zXm8Yu5kaqeR8Yia2b0eYXleHQ3VAjoStUDk6LzTheBW9KXYQdMA==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.15.33.tgz",
+ "integrity": "sha512-N+L0uXhuO7FIfzqwgxmzv0zIpV0qEp8wPX3QQs2p4atjMoywup2JTeDlXPw+z9pWJGCae3JjM+tZ6myclI+2gA==",
"cpu": [
"arm64"
],
@@ -10155,9 +10311,9 @@
}
},
"node_modules/@swc/core-darwin-x64": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.30.tgz",
- "integrity": "sha512-WiJA0hiZI3nwQAO6mu5RqigtWGDtth4Hiq6rbZxAaQyhIcqKIg5IoMRc1Y071lrNJn29eEDMC86Rq58xgUxlDg==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.15.33.tgz",
+ "integrity": "sha512-/Il4QHSOhV4FekbsDtkrNmKbsX26oSysvgrRswa/RYOHXAkwXDbB4jaeKq6PsJLSPkzJ2KzQ061gtBnk0vNHfA==",
"cpu": [
"x64"
],
@@ -10172,9 +10328,9 @@
}
},
"node_modules/@swc/core-linux-arm-gnueabihf": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.30.tgz",
- "integrity": "sha512-YANuFUo48kIT6plJgCD0keae9HFXfjxsbvsgevqc0hr/07X/p7sAWTFOGYEc2SXcASaK7UvuQqzlbW8pr7R79g==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.15.33.tgz",
+ "integrity": "sha512-C64hBnBxq4viOPQ8hlx+2lJ23bzZBGnjw7ryALmS+0Q3zHmwO8lw1/DArLENw4Q18/0w5wdEO1k3m1wWNtKGqQ==",
"cpu": [
"arm"
],
@@ -10189,9 +10345,9 @@
}
},
"node_modules/@swc/core-linux-arm64-gnu": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.30.tgz",
- "integrity": "sha512-VndG8jaR4ugY6u+iVOT0Q+d2fZd7sLgjPgN8W/Le+3EbZKl+cRfFxV7Eoz4gfLqhmneZPdcIzf9T3LkgkmqNLg==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.15.33.tgz",
+ "integrity": "sha512-TRJfnJbX3jqpxRDRoieMzRiCBS5jOmXNb3iQXmcgjFEHKLnAgK1RZRU8Cq1MsPqO4jAJp/ld1G4O3fXuxv85uw==",
"cpu": [
"arm64"
],
@@ -10206,9 +10362,9 @@
}
},
"node_modules/@swc/core-linux-arm64-musl": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.30.tgz",
- "integrity": "sha512-1SYGs2l0Yyyi0pR/P/NKz/x0kqxkoiw+BXeJjLUdecSk/KasncWlJrc6hOvFSgKHOBrzgM5jwuluKtlT8dnrcA==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.15.33.tgz",
+ "integrity": "sha512-il7tYM+CpUNzieQbwAjFT1P8zqAhmGWNAGhQZBnxurXZ0aNn+5nqYFTEUKNZl7QibtT0uQXzTZrNGHCIj6Y1Og==",
"cpu": [
"arm64"
],
@@ -10223,9 +10379,9 @@
}
},
"node_modules/@swc/core-linux-ppc64-gnu": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-ppc64-gnu/-/core-linux-ppc64-gnu-1.15.30.tgz",
- "integrity": "sha512-TXREtiXeRhbfDFbmhnkIsXpKfzbfT73YkV2ZF6w0sfxgjC5zI2ZAbaCOq25qxvegofj2K93DtOpm9RLaBgqR2g==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-ppc64-gnu/-/core-linux-ppc64-gnu-1.15.33.tgz",
+ "integrity": "sha512-ZtNBwN0Z7CFj9Il0FcPaKdjgP7URyKu/3RfH46vq+0paOBqLj4NYldD6Qo//Duif/7IOtAraUfDOmp0PLAufog==",
"cpu": [
"ppc64"
],
@@ -10240,9 +10396,9 @@
}
},
"node_modules/@swc/core-linux-s390x-gnu": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-s390x-gnu/-/core-linux-s390x-gnu-1.15.30.tgz",
- "integrity": "sha512-DCR2YYeyd6DQE4OuDhImouuNcjXEiEdnn1Y0DyGteugPEDvVuvYk8Xddi+4o2SgWH6jiW8/I+3emZvbep1NC+g==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-s390x-gnu/-/core-linux-s390x-gnu-1.15.33.tgz",
+ "integrity": "sha512-De1IyajoOmhOYYjw/lx66bKlyDpHZTueqwpDrWgf5O7T6d1ODeJJO9/OqMBmrBQc5C+dNnlmIufHsp4QVCWufA==",
"cpu": [
"s390x"
],
@@ -10257,9 +10413,9 @@
}
},
"node_modules/@swc/core-linux-x64-gnu": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.30.tgz",
- "integrity": "sha512-5Pizw3NgfOJ5BJOBK8TIRa59xFW2avESTOBDPTAYwZYa1JNDs+KMF9lUfjJiJLM5HiMs/wPheA9eiT0q9m2AoA==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.15.33.tgz",
+ "integrity": "sha512-mGTH0YxmUN+x6vRN/I6NOk5X0ogNktkwPnJ94IMvR7QjhRDwL0O8RXEDhyUM0YtwWrryBOqaJQBX4zruxEPRGw==",
"cpu": [
"x64"
],
@@ -10274,9 +10430,9 @@
}
},
"node_modules/@swc/core-linux-x64-musl": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.30.tgz",
- "integrity": "sha512-qyqydP/wyH8alcIP4a2hnGSjHLJjm9H7yDFup+CPy9oTahFgLLwnNcv5UHXqO2Qs3AIND+cls5f/Bb6hqpxdgA==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.15.33.tgz",
+ "integrity": "sha512-hj628ZkSEJf6zMf5VMbYrG2O6QqyTIp2qwY6VlCjvIa9lAEZ5c2lfPblCLVGYubTeLJDxadLB/CxqQYOQABeEQ==",
"cpu": [
"x64"
],
@@ -10291,9 +10447,9 @@
}
},
"node_modules/@swc/core-win32-arm64-msvc": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.30.tgz",
- "integrity": "sha512-CaQENgDHVGOg1mSF5sQVgvfFHG9kjMor2rkLMLeLOkfZYNj13ppnJ9+lfaBZLZUMMbnlGQnavCJb8PVBUOso7Q==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.15.33.tgz",
+ "integrity": "sha512-GV2oohtN2/5+KSccl86VULu3aT+LrISC8uzgSq0FRnikpD+Zwc+sBlXmoKQ+Db6jI57ITUOIB8jRkdGMABC29g==",
"cpu": [
"arm64"
],
@@ -10308,9 +10464,9 @@
}
},
"node_modules/@swc/core-win32-ia32-msvc": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.30.tgz",
- "integrity": "sha512-30VdLeGk6fugiUs/kUdJ/pAg7z/zpvVbR11RH60jZ0Z42WIeIniYx0rLEWN7h/pKJ3CopqsQ3RsogCAkRKiA2g==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.15.33.tgz",
+ "integrity": "sha512-gtyvzSNR8DHKfFEA2uqb8Ld1myqi6uEg2jyeUq3ikn5ytYs7H8RpZYC8mdy4NXr8hfcdJfCLXPlYaqqfBXpoEQ==",
"cpu": [
"ia32"
],
@@ -10325,9 +10481,9 @@
}
},
"node_modules/@swc/core-win32-x64-msvc": {
- "version": "1.15.30",
- "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.30.tgz",
- "integrity": "sha512-4iObHPR+Q4oDY110EF5SF5eIaaVJNpMdG9C0q3Q92BsJ5y467uHz7sYQhP60WYlLFsLQ1el2YrIPUItUAQGOKg==",
+ "version": "1.15.33",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.15.33.tgz",
+ "integrity": "sha512-d6fRqQSkJI+kmMEBWaDQ7TMl8+YjLYbwRUPZQ9DY0ORBJeTzOrG0twvfvlZ2xgw6jA0ScQKgfBm4vHLSLl5Hqg==",
"cpu": [
"x64"
],
@@ -11171,17 +11327,17 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.0.tgz",
- "integrity": "sha512-HyAZtpdkgZwpq8Sz3FSUvCR4c+ScbuWa9AksK2Jweub7w4M3yTz4O11AqVJzLYjy/B9ZWPyc81I+mOdJU/bDQw==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.59.1.tgz",
+ "integrity": "sha512-BOziFIfE+6osHO9FoJG4zjoHUcvI7fTNBSpdAwrNH0/TLvzjsk2oo8XSSOT2HhqUyhZPfHv4UOffoJ9oEEQ7Ag==",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint-community/regexpp": "^4.12.2",
- "@typescript-eslint/scope-manager": "8.59.0",
- "@typescript-eslint/type-utils": "8.59.0",
- "@typescript-eslint/utils": "8.59.0",
- "@typescript-eslint/visitor-keys": "8.59.0",
+ "@typescript-eslint/scope-manager": "8.59.1",
+ "@typescript-eslint/type-utils": "8.59.1",
+ "@typescript-eslint/utils": "8.59.1",
+ "@typescript-eslint/visitor-keys": "8.59.1",
"ignore": "^7.0.5",
"natural-compare": "^1.4.0",
"ts-api-utils": "^2.5.0"
@@ -11194,22 +11350,22 @@
"url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
- "@typescript-eslint/parser": "^8.59.0",
+ "@typescript-eslint/parser": "^8.59.1",
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
"typescript": ">=4.8.4 <6.1.0"
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.59.0.tgz",
- "integrity": "sha512-TI1XGwKbDpo9tRW8UDIXCOeLk55qe9ZFGs8MTKU6/M08HWTw52DD/IYhfQtOEhEdPhLMT26Ka/x7p70nd3dzDg==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.59.1.tgz",
+ "integrity": "sha512-HDQH9O/47Dxi1ceDhBXdaldtf/WV9yRYMjbjCuNk3qnaTD564qwv61Y7+gTxwxRKzSrgO5uhtw584igXVuuZkA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/scope-manager": "8.59.0",
- "@typescript-eslint/types": "8.59.0",
- "@typescript-eslint/typescript-estree": "8.59.0",
- "@typescript-eslint/visitor-keys": "8.59.0",
+ "@typescript-eslint/scope-manager": "8.59.1",
+ "@typescript-eslint/types": "8.59.1",
+ "@typescript-eslint/typescript-estree": "8.59.1",
+ "@typescript-eslint/visitor-keys": "8.59.1",
"debug": "^4.4.3"
},
"engines": {
@@ -11225,14 +11381,14 @@
}
},
"node_modules/@typescript-eslint/project-service": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.59.0.tgz",
- "integrity": "sha512-Lw5ITrR5s5TbC19YSvlr63ZfLaJoU6vtKTHyB0GQOpX0W7d5/Ir6vUahWi/8Sps/nOukZQ0IB3SmlxZnjaKVnw==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.59.1.tgz",
+ "integrity": "sha512-+MuHQlHiEr00Of/IQbE/MmEoi44znZHbR/Pz7Opq4HryUOlRi+/44dro9Ycy8Fyo+/024IWtw8m4JUMCGTYxDg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/tsconfig-utils": "^8.59.0",
- "@typescript-eslint/types": "^8.59.0",
+ "@typescript-eslint/tsconfig-utils": "^8.59.1",
+ "@typescript-eslint/types": "^8.59.1",
"debug": "^4.4.3"
},
"engines": {
@@ -11247,14 +11403,14 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.59.0.tgz",
- "integrity": "sha512-UzR16Ut8IpA3Mc4DbgAShlPPkVm8xXMWafXxB0BocaVRHs8ZGakAxGRskF7FId3sdk9lgGD73GSFaWmWFDE4dg==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.59.1.tgz",
+ "integrity": "sha512-LwuHQI4pDOYVKvmH2dkaJo6YZCSgouVgnS/z7yBPKBMvgtBvyLqiLy9Z6b7+m/TRcX1NFYUqZetI5Y+aT4GEfg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/types": "8.59.0",
- "@typescript-eslint/visitor-keys": "8.59.0"
+ "@typescript-eslint/types": "8.59.1",
+ "@typescript-eslint/visitor-keys": "8.59.1"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -11265,9 +11421,9 @@
}
},
"node_modules/@typescript-eslint/tsconfig-utils": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.0.tgz",
- "integrity": "sha512-91Sbl3s4Kb3SybliIY6muFBmHVv+pYXfybC4Oolp3dvk8BvIE3wOPc+403CWIT7mJNkfQRGtdqghzs2+Z91Tqg==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.59.1.tgz",
+ "integrity": "sha512-/0nEyPbX7gRsk0Uwfe4ALwwgxuA66d/l2mhRDNlAvaj4U3juhUtJNq0DsY8M2AYwwb9rEq2hrC3IcIcEt++iJA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -11282,15 +11438,15 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.59.0.tgz",
- "integrity": "sha512-3TRiZaQSltGqGeNrJzzr1+8YcEobKH9rHnqIp/1psfKFmhRQDNMGP5hBufanYTGznwShzVLs3Mz+gDN7HkWfXg==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.59.1.tgz",
+ "integrity": "sha512-klWPBR2ciQHS3f++ug/mVnWKPjBUo7icEL3FAO1lhAR1Z1i5NQYZ1EannMSRYcq5qCv5wNALlXr6fksRHyYl7w==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/types": "8.59.0",
- "@typescript-eslint/typescript-estree": "8.59.0",
- "@typescript-eslint/utils": "8.59.0",
+ "@typescript-eslint/types": "8.59.1",
+ "@typescript-eslint/typescript-estree": "8.59.1",
+ "@typescript-eslint/utils": "8.59.1",
"debug": "^4.4.3",
"ts-api-utils": "^2.5.0"
},
@@ -11307,9 +11463,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.59.0.tgz",
- "integrity": "sha512-nLzdsT1gdOgFxxxwrlNVUBzSNBEEHJ86bblmk4QAS6stfig7rcJzWKqCyxFy3YRRHXDWEkb2NralA1nOYkkm/A==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.59.1.tgz",
+ "integrity": "sha512-ZDCjgccSdYPw5Bxh+my4Z0lJU96ZDN7jbBzvmEn0FZx3RtU1C7VWl6NbDx94bwY3V5YsgwRzJPOgeY2Q/nLG8A==",
"dev": true,
"license": "MIT",
"engines": {
@@ -11321,16 +11477,16 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.0.tgz",
- "integrity": "sha512-O9Re9P1BmBLFJyikRbQpLku/QA3/AueZNO9WePLBwQrvkixTmDe8u76B6CYUAITRl/rHawggEqUGn5QIkVRLMw==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.59.1.tgz",
+ "integrity": "sha512-OUd+vJS05sSkOip+BkZ/2NS8RMxrAAJemsC6vU3kmfLyeaJT0TftHkV9mcx2107MmsBVXXexhVu4F0TZXyMl4g==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/project-service": "8.59.0",
- "@typescript-eslint/tsconfig-utils": "8.59.0",
- "@typescript-eslint/types": "8.59.0",
- "@typescript-eslint/visitor-keys": "8.59.0",
+ "@typescript-eslint/project-service": "8.59.1",
+ "@typescript-eslint/tsconfig-utils": "8.59.1",
+ "@typescript-eslint/types": "8.59.1",
+ "@typescript-eslint/visitor-keys": "8.59.1",
"debug": "^4.4.3",
"minimatch": "^10.2.2",
"semver": "^7.7.3",
@@ -11405,16 +11561,16 @@
}
},
"node_modules/@typescript-eslint/utils": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.59.0.tgz",
- "integrity": "sha512-I1R/K7V07XsMJ12Oaxg/O9GfrysGTmCRhvZJBv0RE0NcULMzjqVpR5kRRQjHsz3J/bElU7HwCO7zkqL+MSUz+g==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.59.1.tgz",
+ "integrity": "sha512-3pIeoXhCeYH9FSCBI8P3iNwJlGuzPlYKkTlen2O9T1DSeeg8UG8jstq6BLk+Mda0qup7mgk4z4XL4OzRaxZ8LA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@eslint-community/eslint-utils": "^4.9.1",
- "@typescript-eslint/scope-manager": "8.59.0",
- "@typescript-eslint/types": "8.59.0",
- "@typescript-eslint/typescript-estree": "8.59.0"
+ "@typescript-eslint/scope-manager": "8.59.1",
+ "@typescript-eslint/types": "8.59.1",
+ "@typescript-eslint/typescript-estree": "8.59.1"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -11429,13 +11585,13 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.0.tgz",
- "integrity": "sha512-/uejZt4dSere1bx12WLlPfv8GktzcaDtuJ7s42/HEZ5zGj9oxRaD4bj7qwSunXkf+pbAhFt2zjpHYUiT5lHf0Q==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.59.1.tgz",
+ "integrity": "sha512-LdDNl6C5iJExcM0Yh0PwAIBb9PrSiCsWamF/JyEZawm3kFDnRoaq3LGE4bpyRao/fWeGKKyw7icx0YxrLFC5Cg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/types": "8.59.0",
+ "@typescript-eslint/types": "8.59.1",
"eslint-visitor-keys": "^5.0.0"
},
"engines": {
@@ -12137,15 +12293,15 @@
}
},
"node_modules/@xhmikosr/decompress-unzip": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/@xhmikosr/decompress-unzip/-/decompress-unzip-8.1.0.tgz",
- "integrity": "sha512-hVcpEZIS8avXU1ioR0Pb2LcBYHfah1lzzTQPDItkBi3W+kSE/DxSeEgOoHJB8rn+Izm0ArWZxxlpsvEK4ySjaw==",
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/@xhmikosr/decompress-unzip/-/decompress-unzip-8.1.1.tgz",
+ "integrity": "sha512-/B+Z0qJflGn5UEtmMZ2qeKeXwexOycxaibYhMOyLcRPJriXs4IkoSngVUVZXLYViu9TdHyFWynC6NB4EWBg8cg==",
"dev": true,
"license": "MIT",
"dependencies": {
- "file-type": "^21.3.0",
+ "file-type": "^21.3.4",
"get-stream": "^9.0.1",
- "yauzl": "^3.2.0"
+ "yauzl": "^3.3.0"
},
"engines": {
"node": ">=20"
@@ -12314,9 +12470,9 @@
}
},
"node_modules/ajv": {
- "version": "8.18.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
- "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
@@ -12409,9 +12565,9 @@
}
},
"node_modules/angular-eslint/node_modules/@angular-devkit/core": {
- "version": "20.3.24",
- "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.24.tgz",
- "integrity": "sha512-kmOjXJcbFxUI91nds9n6XZ6Y/DyQ7/TqRXbHHqvkz9RtlIpdbgWHlIZIq6mgsPOgPBzkxFjtncVARYZUI3yxaw==",
+ "version": "20.3.25",
+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.25.tgz",
+ "integrity": "sha512-pSfeWEoS1y9zxqTOw0Etj2NXkRmp/aU52wdnyq3KqVA9cJtgxtlOHlBBNswTil4dReojEy+0K1xJm+mLuWuLxA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -12436,6 +12592,23 @@
}
}
},
+ "node_modules/angular-eslint/node_modules/ajv": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz",
+ "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
"node_modules/angular-eslint/node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
@@ -12917,13 +13090,13 @@
}
},
"node_modules/axios": {
- "version": "1.15.2",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.2.tgz",
- "integrity": "sha512-wLrXxPtcrPTsNlJmKjkPnNPK2Ihe0hn0wGSaTEiHRPxwjvJwT3hKmXF4dpqxmPO9SoNb2FsYXj/xEo0gHN+D5A==",
+ "version": "1.16.0",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.16.0.tgz",
+ "integrity": "sha512-6hp5CwvTPlN2A31g5dxnwAX0orzM7pmCRDLnZSX772mv8WDqICwFjowHuPs04Mc8deIld1+ejhtaMn5vp6b+1w==",
"license": "MIT",
"peer": true,
"dependencies": {
- "follow-redirects": "^1.15.11",
+ "follow-redirects": "^1.16.0",
"form-data": "^4.0.5",
"proxy-from-env": "^2.1.0"
}
@@ -12939,9 +13112,9 @@
}
},
"node_modules/b4a": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.0.tgz",
- "integrity": "sha512-qRuSmNSkGQaHwNbM7J78Wwy+ghLEYF1zNrSeMxj4Kgw6y33O3mXcQ6Ie9fRvfU/YnxWkOchPXbaLb73TkIsfdg==",
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.1.tgz",
+ "integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==",
"license": "Apache-2.0",
"peerDependencies": {
"react-native-b4a": "*"
@@ -13188,9 +13361,9 @@
}
},
"node_modules/baseline-browser-mapping": {
- "version": "2.10.21",
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.21.tgz",
- "integrity": "sha512-Q+rUQ7Uz8AHM7DEaNdwvfFCTq7a43lNTzuS94eiWqwyxfV/wJv+oUivef51T91mmRY4d4A1u9rcSvkeufCVXlA==",
+ "version": "2.10.25",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.25.tgz",
+ "integrity": "sha512-QO/VHsXCQdnzADMfmkeOPvHdIAkoB7i0/rGjINPJEetLx75hNttVWGQ/jycHUDP9zZ9rupbm60WRxcwViB0MiA==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -13766,9 +13939,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001790",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001790.tgz",
- "integrity": "sha512-bOoxfJPyYo+ds6W0YfptaCWbFnJYjh2Y1Eow5lRv+vI2u8ganPZqNm1JwNh0t2ELQCqIWg4B3dWEusgAmsoyOw==",
+ "version": "1.0.30001791",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz",
+ "integrity": "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==",
"dev": true,
"funding": [
{
@@ -14986,6 +15159,15 @@
"node": ">=0.10.0"
}
},
+ "node_modules/deepmerge-ts": {
+ "version": "7.1.5",
+ "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-7.1.5.tgz",
+ "integrity": "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
"node_modules/defaults": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
@@ -15094,15 +15276,15 @@
}
},
"node_modules/detective-amd": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-6.0.2.tgz",
- "integrity": "sha512-qX4zkNVcufOoo7pKlRnLHEzUwDcqIY5N9FEuNJN+rDUjct3gikNdVJXRfpI6sG/Y9pfIMjcXeNdHV1oYulxjmw==",
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-6.1.0.tgz",
+ "integrity": "sha512-fmI6LGMvotqd49QaA3ZYw+q0aGp2yXmMjzIuY6fH9j9YFIXY/73yDhMwhX9cPbhWd+AH06NH1Di/LKOuCH0Ubg==",
"dev": true,
"license": "MIT",
"dependencies": {
"ast-module-types": "^6.0.1",
"escodegen": "^2.1.0",
- "get-amd-module-type": "^6.0.1",
+ "get-amd-module-type": "^6.0.2",
"node-source-walk": "^7.0.1"
},
"bin": {
@@ -15157,9 +15339,9 @@
}
},
"node_modules/detective-sass": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-6.0.1.tgz",
- "integrity": "sha512-jSGPO8QDy7K7pztUmGC6aiHkexBQT4GIH+mBAL9ZyBmnUIOFbkfZnO8wPRRJFP/QP83irObgsZHCoDHZ173tRw==",
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-6.0.2.tgz",
+ "integrity": "sha512-i3xpXHDKS0qI2aFW4asQ7fqlPK00ndOVZELvQapFJCaF0VxYmsNWtd0AmvXbTLMk7bfO5VdIeorhY9KfmHVoVA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -15171,9 +15353,9 @@
}
},
"node_modules/detective-scss": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-5.0.1.tgz",
- "integrity": "sha512-MAyPYRgS6DCiS6n6AoSBJXLGVOydsr9huwXORUlJ37K3YLyiN0vYHpzs3AdJOgHobBfispokoqrEon9rbmKacg==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-5.0.2.tgz",
+ "integrity": "sha512-9JOEMZ8pDh3ShXmftq7hoQqqJsClaGgxo1hghfCeFlmKf5TC/Twtwb0PAaK8dXwpg9Z0uCmEYSrCxO+kel2eEg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -16076,9 +16258,9 @@
"license": "MIT"
},
"node_modules/electron-to-chromium": {
- "version": "1.5.344",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.344.tgz",
- "integrity": "sha512-4MxfbmNDm+KPh066EZy+eUnkcDPcZ35wNmOWzFuh/ijvHsve6kbLTLURy88uCNK5FbpN+yk2nQY6BYh1GEt+wg==",
+ "version": "1.5.349",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.349.tgz",
+ "integrity": "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A==",
"dev": true,
"license": "ISC"
},
@@ -16122,9 +16304,9 @@
}
},
"node_modules/engine.io": {
- "version": "6.6.6",
- "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.6.tgz",
- "integrity": "sha512-U2SN0w3OpjFRVlrc17E6TMDmH58Xl9rai1MblNjAdwWp07Kk+llmzX0hjDpQdrDGzwmvOtgM5yI+meYX6iZ2xA==",
+ "version": "6.6.7",
+ "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.7.tgz",
+ "integrity": "sha512-DgOngfDKM2EviOH3Mr9m7ks1q8roetLy/IMmYthAYzbpInMbYc/GS+fWFA3rl1gvwKVsQrVV61fo5emD1y3OJQ==",
"license": "MIT",
"dependencies": {
"@types/cors": "^2.8.12",
@@ -16301,9 +16483,9 @@
}
},
"node_modules/es-module-lexer": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz",
- "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz",
+ "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==",
"dev": true,
"license": "MIT"
},
@@ -17018,9 +17200,9 @@
}
},
"node_modules/express-rate-limit": {
- "version": "8.4.0",
- "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.4.0.tgz",
- "integrity": "sha512-gDK8yiqKxrGta+3WtON59arrrw6GLmadA1qoFgYXzdcch8fmKDID2XqO8itsi3f1wufXYPT51387dN6cvVBS3Q==",
+ "version": "8.4.1",
+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.4.1.tgz",
+ "integrity": "sha512-NGVYwQSAyEQgzxX1iCM978PP9AdO/hW93gMcF6ZwQCm+rFvLsBH6w4xcXWTcliS8La5EPRN3p9wzItqBwJrfNw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -17247,9 +17429,9 @@
}
},
"node_modules/fast-xml-parser": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.1.tgz",
- "integrity": "sha512-8Cc3f8GUGUULg34pBch/KGyPLglS+OFs05deyOlY7fL2MTagYPKrVQNmR1fLF/yJ9PH5ZSTd3YDF6pnmeZU+zA==",
+ "version": "5.7.2",
+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.2.tgz",
+ "integrity": "sha512-P7oW7tLbYnhOLQk/Gv7cZgzgMPP/XN03K02/Jy6Y/NHzyIAIpxuZIM/YqAkfiXFPxA2CTm7NtCijK9EDu09u2w==",
"funding": [
{
"type": "github",
@@ -17441,21 +17623,21 @@
}
},
"node_modules/filing-cabinet": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/filing-cabinet/-/filing-cabinet-5.3.0.tgz",
- "integrity": "sha512-2EwtzdQkC37FJxDOrKuEOplTFzzaToCqzT008DrIWW27RQ6psxitfUi6hct5mUhMHO7C6xopOhxubyjyPCapbQ==",
+ "version": "5.4.1",
+ "resolved": "https://registry.npmjs.org/filing-cabinet/-/filing-cabinet-5.4.1.tgz",
+ "integrity": "sha512-XSZKDRYZ7ijMsr6aTD5rUy5nh4Dsg4+N74bufCHzdhFAh4argabH8CBGcus1ha+hGbJf7OQmbtTVVNnb1uDpmw==",
"dev": true,
"license": "MIT",
"dependencies": {
"app-module-path": "^2.2.0",
"commander": "^12.1.0",
- "enhanced-resolve": "^5.20.1",
- "module-definition": "^6.0.1",
- "module-lookup-amd": "^9.1.1",
+ "enhanced-resolve": "^5.21.0",
+ "module-definition": "^6.0.2",
+ "module-lookup-amd": "^9.1.3",
"resolve": "^1.22.12",
"resolve-dependency-path": "^4.0.1",
- "sass-lookup": "^6.1.1",
- "stylus-lookup": "^6.1.1",
+ "sass-lookup": "^6.1.2",
+ "stylus-lookup": "^6.1.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.9.3"
},
@@ -18465,9 +18647,9 @@
"license": "MIT"
},
"node_modules/hono": {
- "version": "4.12.14",
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.14.tgz",
- "integrity": "sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==",
+ "version": "4.12.16",
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.16.tgz",
+ "integrity": "sha512-jN0ZewiNAWSe5khM3EyCmBb250+b40wWbwNILNfEvq84VREWwOIkuUsFONk/3i3nqkz7Oe1PcpM2mwQEK2L9Kg==",
"dev": true,
"license": "MIT",
"engines": {
@@ -18496,45 +18678,28 @@
"peer": true
},
"node_modules/html-to-text": {
- "version": "9.0.5",
- "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-9.0.5.tgz",
- "integrity": "sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==",
+ "version": "10.0.0",
+ "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-10.0.0.tgz",
+ "integrity": "sha512-2OH59Gtprdczel+7Rxgpz9hGVJREaf8Lt1H4kZwWHpEn70VQKRuMNGsb2eDbwaTzrYzb0hheiOG1P7Dim0B4dQ==",
"license": "MIT",
"dependencies": {
- "@selderee/plugin-htmlparser2": "^0.11.0",
- "deepmerge": "^4.3.1",
+ "@selderee/plugin-htmlparser2": "~0.12.0",
+ "deepmerge-ts": "^7.1.5",
"dom-serializer": "^2.0.0",
- "htmlparser2": "^8.0.2",
- "selderee": "^0.11.0"
+ "htmlparser2": "^10.1.0",
+ "selderee": "~0.12.0"
},
"engines": {
- "node": ">=14"
- }
- },
- "node_modules/html-to-text/node_modules/htmlparser2": {
- "version": "8.0.2",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz",
- "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==",
- "funding": [
- "https://github.com/fb55/htmlparser2?sponsor=1",
- {
- "type": "github",
- "url": "https://github.com/sponsors/fb55"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "domelementtype": "^2.3.0",
- "domhandler": "^5.0.3",
- "domutils": "^3.0.1",
- "entities": "^4.4.0"
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/KillyMXI"
}
},
"node_modules/htmlparser2": {
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
"integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==",
- "dev": true,
"funding": [
"https://github.com/fb55/htmlparser2?sponsor=1",
{
@@ -18554,7 +18719,6 @@
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
"integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=0.12"
@@ -21293,9 +21457,9 @@
}
},
"node_modules/jose": {
- "version": "6.2.2",
- "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.2.tgz",
- "integrity": "sha512-d7kPDd34KO/YnzaDOlikGpOurfF0ByC2sEV4cANCtdqLlTfBlw2p14O/5d/zv40gJPbIQxfES3nSx1/oYNyuZQ==",
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.3.tgz",
+ "integrity": "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
@@ -21586,12 +21750,12 @@
}
},
"node_modules/leac": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/leac/-/leac-0.6.0.tgz",
- "integrity": "sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==",
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/leac/-/leac-0.7.0.tgz",
+ "integrity": "sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw==",
"license": "MIT",
"funding": {
- "url": "https://ko-fi.com/killymxi"
+ "url": "https://github.com/sponsors/KillyMXI"
}
},
"node_modules/leven": {
@@ -21846,9 +22010,9 @@
}
},
"node_modules/loader-runner": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz",
- "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==",
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.2.tgz",
+ "integrity": "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==",
"dev": true,
"license": "MIT",
"engines": {
@@ -23174,9 +23338,9 @@
}
},
"node_modules/module-lookup-amd": {
- "version": "9.1.2",
- "resolved": "https://registry.npmjs.org/module-lookup-amd/-/module-lookup-amd-9.1.2.tgz",
- "integrity": "sha512-HFEiUNm8/woZFJZcd42wrovEHjHN6nwfNjf2CjiVLbVFRbj+sEmEJn0mrx8JY4/qJP8wSZTtmguikAJBqEuRRQ==",
+ "version": "9.1.3",
+ "resolved": "https://registry.npmjs.org/module-lookup-amd/-/module-lookup-amd-9.1.3.tgz",
+ "integrity": "sha512-Jc3XmOaR9FdfMJSK8+vyLgsCkzm8z2L0NS6vrlRWi12DjS7MY7TMNE7E1yj8yXx837xtMDbKSSgcdXnFlJ2YLg==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -23218,9 +23382,9 @@
"license": "MIT"
},
"node_modules/msgpackr": {
- "version": "1.11.10",
- "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.11.10.tgz",
- "integrity": "sha512-iCZNq+HszvF+fC3anCm4nBmWEnbeIAfpDs6IStAEKhQ2YSgkjzVG2FF9XJqwwQh5bH3N9OUTUt4QwVN6MLMLtA==",
+ "version": "1.11.12",
+ "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.11.12.tgz",
+ "integrity": "sha512-RBdJ1Un7yGlXWajrkxcSa93nvQ0w4zBf60c0yYv7YtBelP8H2FA7XsfBbMHtXKXUMUxH7zV3Zuozh+kUQWhHvg==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -23262,9 +23426,9 @@
}
},
"node_modules/mysql2": {
- "version": "3.22.2",
- "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.22.2.tgz",
- "integrity": "sha512-snC/L6YoCJPFpozZo3p3hiOlt9ItQ7sCnLSziFLlIttEzsPhrdcPT8g21BiQ7Oqif25W4Xq1IFuBzBvoFYDf0Q==",
+ "version": "3.22.3",
+ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.22.3.tgz",
+ "integrity": "sha512-uWWxvZSRvRhtBdh2CdcuK83YcOfPdmEeEYB069bAmPnV93QApDGVPuvCQOLjlh7tYHEWdgQPrn6kosDxHBVLkA==",
"license": "MIT",
"dependencies": {
"aws-ssl-profiles": "^1.1.2",
@@ -23296,9 +23460,9 @@
}
},
"node_modules/nanoid": {
- "version": "3.3.11",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "version": "3.3.12",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",
"dev": true,
"funding": [
{
@@ -23568,14 +23732,6 @@
"license": "MIT",
"peer": true
},
- "node_modules/node-readable-to-web-readable-stream": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.4.2.tgz",
- "integrity": "sha512-/cMZNI34v//jUTrI+UIo4ieHAB5EZRY/+7OmXZgBxaWBMcW2tGdceIw06RFxWxrKZ5Jp3sI2i5TsRo+CBhtVLQ==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
"node_modules/node-releases": {
"version": "2.0.38",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz",
@@ -23584,22 +23740,22 @@
"license": "MIT"
},
"node_modules/node-source-walk": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-7.0.1.tgz",
- "integrity": "sha512-3VW/8JpPqPvnJvseXowjZcirPisssnBuDikk6JIZ8jQzF7KJQX52iPFX4RYYxLycYH7IbMRSPUOga/esVjy5Yg==",
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-7.0.2.tgz",
+ "integrity": "sha512-71kFFjYaSshDTA8/a2HiTYPLdASWjLJxUyJxGE+ffxU+KhxSBtM9kiLUX+R2yooFdSFKMFpi4n3PFtDy6qXv8A==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@babel/parser": "^7.26.7"
+ "@babel/parser": "^7.29.0"
},
"engines": {
"node": ">=18"
}
},
"node_modules/nodemailer": {
- "version": "8.0.5",
- "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.5.tgz",
- "integrity": "sha512-0PF8Yb1yZuQfQbq+5/pZJrtF6WQcjTd5/S4JOHs9PGFxuTqoB/icwuB44pOdURHJbRKX1PPoJZtY7R4VUoCC8w==",
+ "version": "8.0.7",
+ "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.7.tgz",
+ "integrity": "sha512-pkjE4mkBzQjdJT4/UmlKl3pX0rC9fZmjh7c6C9o7lv66Ac6w9WCnzPzhbPNxwZAzlF4mdq4CSWB5+FbK6FWCow==",
"license": "MIT-0",
"engines": {
"node": ">=6.0.0"
@@ -23728,9 +23884,9 @@
}
},
"node_modules/npm-package-arg/node_modules/hosted-git-info": {
- "version": "9.0.2",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.2.tgz",
- "integrity": "sha512-M422h7o/BR3rmCQ8UHi7cyyMqKltdP9Uo+J2fXK+RSAY+wTcKOIRyhTuKv4qn+DJf3g+PL890AzId5KZpX+CBg==",
+ "version": "9.0.3",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz",
+ "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==",
"dev": true,
"license": "ISC",
"dependencies": {
@@ -23874,9 +24030,9 @@
}
},
"node_modules/oauth4webapi": {
- "version": "3.8.5",
- "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.5.tgz",
- "integrity": "sha512-A8jmyUckVhRJj5lspguklcl90Ydqk61H3dcU0oLhH3Yv13KpAliKTt5hknpGGPZSSfOwGyraNEFmofDYH+1kSg==",
+ "version": "3.8.6",
+ "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.6.tgz",
+ "integrity": "sha512-iwemM91xz8nryHti2yTmg5fhyEMVOkOXwHNqbvcATjyajb5oQxCQzrNOA6uElRHuMhQQTKUyFKV9y/CNyg25BQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
@@ -23970,9 +24126,9 @@
}
},
"node_modules/openid-client": {
- "version": "6.8.3",
- "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.3.tgz",
- "integrity": "sha512-AoY/NaN9esS3+xvHInFSK0g3skSfeE0uqQAKRj4rB6/GsBIvzwTUaYo9+HcqpKIaP0dP85p5W07hayKgS4GAeA==",
+ "version": "6.8.4",
+ "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.4.tgz",
+ "integrity": "sha512-QSw0BA08piujetEwfZsHoTrDpMEha7GDZDicQqVwX4u0ChCjefvjDB++TZ8BTg76UpwhzIQgdvvfgfl3HpCSAw==",
"license": "MIT",
"dependencies": {
"jose": "^6.2.2",
@@ -24370,16 +24526,16 @@
}
},
"node_modules/parseley": {
- "version": "0.12.1",
- "resolved": "https://registry.npmjs.org/parseley/-/parseley-0.12.1.tgz",
- "integrity": "sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==",
+ "version": "0.13.1",
+ "resolved": "https://registry.npmjs.org/parseley/-/parseley-0.13.1.tgz",
+ "integrity": "sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A==",
"license": "MIT",
"dependencies": {
- "leac": "^0.6.0",
- "peberminta": "^0.9.0"
+ "leac": "^0.7.0",
+ "peberminta": "^0.10.0"
},
"funding": {
- "url": "https://ko-fi.com/killymxi"
+ "url": "https://github.com/sponsors/KillyMXI"
}
},
"node_modules/parseurl": {
@@ -24564,26 +24720,25 @@
"integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg=="
},
"node_modules/pdfjs-dist": {
- "version": "5.6.205",
- "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-5.6.205.tgz",
- "integrity": "sha512-tlUj+2IDa7G1SbvBNN74UHRLJybZDWYom+k6p5KIZl7huBvsA4APi6mKL+zCxd3tLjN5hOOEE9Tv7VdzO88pfg==",
+ "version": "5.7.284",
+ "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-5.7.284.tgz",
+ "integrity": "sha512-h4EdYQczmGhbOlqc3PPZwxevn7ApdWPbovAuWXOB/DjIyigSnwfy2oze7c6mRcSr9XgLp3eN3EeL4DyySTPMFw==",
"dev": true,
"license": "Apache-2.0",
"engines": {
- "node": ">=20.19.0 || >=22.13.0 || >=24"
+ "node": ">=22.13.0 || >=24"
},
"optionalDependencies": {
- "@napi-rs/canvas": "^0.1.96",
- "node-readable-to-web-readable-stream": "^0.4.2"
+ "@napi-rs/canvas": "^0.1.100"
}
},
"node_modules/peberminta": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/peberminta/-/peberminta-0.9.0.tgz",
- "integrity": "sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==",
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/peberminta/-/peberminta-0.10.0.tgz",
+ "integrity": "sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ==",
"license": "MIT",
"funding": {
- "url": "https://ko-fi.com/killymxi"
+ "url": "https://github.com/sponsors/KillyMXI"
}
},
"node_modules/pend": {
@@ -24845,9 +25000,9 @@
}
},
"node_modules/postcss": {
- "version": "8.5.10",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.10.tgz",
- "integrity": "sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==",
+ "version": "8.5.13",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.13.tgz",
+ "integrity": "sha512-qif0+jGGZoLWdHey3UFHHWP0H7Gbmsk8T5VEqyYFbWqPr1XqvLGBbk/sl8V5exGmcYJklJOhOQq1pV9IcsiFag==",
"dev": true,
"funding": [
{
@@ -25849,9 +26004,9 @@
}
},
"node_modules/sass-lookup": {
- "version": "6.1.1",
- "resolved": "https://registry.npmjs.org/sass-lookup/-/sass-lookup-6.1.1.tgz",
- "integrity": "sha512-12dvZdQYTeKZ1ypjuiijZYuMZ1m0F+4+BkRX5yJi2WA9W3DBUrcdCt7bVuKlagHl11n8eYtalWDle+m98Ol2DA==",
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/sass-lookup/-/sass-lookup-6.1.2.tgz",
+ "integrity": "sha512-GjmndmKQBtlPil79RK72L7yc5kDXZPCQeH97bP8R8DcxtXQJO6vECExb3WP/m6+cxaV9h4ZxrSRvCkPG2v/VSw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -26008,15 +26163,15 @@
}
},
"node_modules/selderee": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/selderee/-/selderee-0.11.0.tgz",
- "integrity": "sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==",
+ "version": "0.12.0",
+ "resolved": "https://registry.npmjs.org/selderee/-/selderee-0.12.0.tgz",
+ "integrity": "sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw==",
"license": "MIT",
"dependencies": {
- "parseley": "^0.12.0"
+ "parseley": "~0.13.1"
},
"funding": {
- "url": "https://ko-fi.com/killymxi"
+ "url": "https://github.com/sponsors/KillyMXI"
}
},
"node_modules/semver": {
@@ -26454,13 +26609,13 @@
}
},
"node_modules/socks": {
- "version": "2.8.7",
- "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz",
- "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==",
+ "version": "2.8.8",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.8.tgz",
+ "integrity": "sha512-NlGELfPrgX2f1TAAcz0WawlLn+0r3FyhhCRpFFK2CemXenPYvzMWWZINv3eDNo9ucdwme7oCHRY0Jnbs4aIkog==",
"dev": true,
"license": "MIT",
"dependencies": {
- "ip-address": "^10.0.1",
+ "ip-address": "^10.1.1",
"smart-buffer": "^4.2.0"
},
"engines": {
@@ -26483,6 +26638,16 @@
"node": ">= 14"
}
},
+ "node_modules/socks/node_modules/ip-address": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
+ "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
"node_modules/sonic-boom": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz",
@@ -26928,9 +27093,9 @@
"license": "MIT"
},
"node_modules/stylus-lookup": {
- "version": "6.1.1",
- "resolved": "https://registry.npmjs.org/stylus-lookup/-/stylus-lookup-6.1.1.tgz",
- "integrity": "sha512-0+xmFLaqWksv5/pMiZtONG6gP82YNGVWgKiQXvw8cdKVFEJ++X9dySGR0hG+A+78PBtbHPqiJzXi2ZKoWr/7Sg==",
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/stylus-lookup/-/stylus-lookup-6.1.2.tgz",
+ "integrity": "sha512-O+Q/SJ8s1X2aMLh4213fQ9X/bND9M3dhSsyTRe+O1OXPcewGLiYmAtKCrnP7FDvDBaXB2ZHPkCt3zi4cJXBlCQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -28496,16 +28661,16 @@
}
},
"node_modules/typescript-eslint": {
- "version": "8.59.0",
- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.59.0.tgz",
- "integrity": "sha512-BU3ONW9X+v90EcCH9ZS6LMackcVtxRLlI3XrYyqZIwVSHIk7Qf7bFw1z0M9Q0IUxhTMZCf8piY9hTYaNEIASrw==",
+ "version": "8.59.1",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.59.1.tgz",
+ "integrity": "sha512-xqDcFVBmlrltH64lklOVp1wYxgJr6LVdg3NamBgH2OOQDLFdTKfIZXF5PfghrnXQKXZGTQs8tr1vL7fJvq8CTQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@typescript-eslint/eslint-plugin": "8.59.0",
- "@typescript-eslint/parser": "8.59.0",
- "@typescript-eslint/typescript-estree": "8.59.0",
- "@typescript-eslint/utils": "8.59.0"
+ "@typescript-eslint/eslint-plugin": "8.59.1",
+ "@typescript-eslint/parser": "8.59.1",
+ "@typescript-eslint/typescript-estree": "8.59.1",
+ "@typescript-eslint/utils": "8.59.1"
},
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -28616,9 +28781,9 @@
}
},
"node_modules/unpdf": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/unpdf/-/unpdf-1.6.0.tgz",
- "integrity": "sha512-DsjbuDe6PDbZzGvAP40QQp0xskrXP3Tm3fd/FLkGObL00Icr7cc28QgrPHYg+6B1lMWydgXwDXauIv5CGyXudA==",
+ "version": "1.6.2",
+ "resolved": "https://registry.npmjs.org/unpdf/-/unpdf-1.6.2.tgz",
+ "integrity": "sha512-zQ80ySoPuPHOsvIoRp/nJyQt8TOUoTh1+WBCGcBvlddQNgKDLRwm0AY3x8Q35I7+kIiRSgqMx+Ma2pl9McIp7A==",
"license": "MIT",
"peerDependencies": {
"@napi-rs/canvas": "^0.1.69"
@@ -29515,9 +29680,9 @@
}
},
"node_modules/webpack-sources": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.4.0.tgz",
- "integrity": "sha512-gHwIe1cgBvvfLeu1Yz/dcFpmHfKDVxxyqI+kzqmuxZED81z2ChxpyqPaWcNqigPywhaEke7AjSGga+kxY55gjQ==",
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.4.1.tgz",
+ "integrity": "sha512-eACpxRN02yaawnt+uUNIF7Qje6A9zArxBbcAJjK1PK3S9Ycg5jIuJ8pW4q8EMnwNZCEGltcjkRx1QzOxOkKD8A==",
"dev": true,
"license": "MIT",
"engines": {
@@ -29836,9 +30001,9 @@
"license": "ISC"
},
"node_modules/yaml": {
- "version": "2.8.3",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
- "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
+ "version": "2.8.4",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.4.tgz",
+ "integrity": "sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==",
"dev": true,
"license": "ISC",
"bin": {