feat(objectloader2): make attribute masking optional

This commit is contained in:
Gergo Jedlicska
2025-09-17 18:00:59 +02:00
parent 2a43ce23d4
commit b0ed356282
3 changed files with 6 additions and 3 deletions
@@ -40,7 +40,7 @@ export class ObjectLoader2Factory {
token?: string
headers?: Headers
options?: ObjectLoader2FactoryOptions
attributeMask: ObjectAttributeMask
attributeMask?: ObjectAttributeMask
}): ObjectLoader2 {
const log = ObjectLoader2Factory.getLogger(params.options?.logger)
let database
@@ -13,7 +13,7 @@ export interface ServerDownloaderOptions {
headers?: Headers
logger: CustomLogger
fetch?: Fetcher
attributeMask: ObjectAttributeMask
attributeMask?: ObjectAttributeMask
}
const MAX_SAFARI_DECODE_BYTES = 2 * 1024 * 1024 * 1024 - 1024 * 1024 // 2GB minus a margin
+4 -1
View File
@@ -20,4 +20,7 @@ export interface DataChunk extends Base {
data?: Base[]
}
export type ObjectAttributeMask = { include: string[] } | { exclude: string[] }
export type ObjectAttributeMask =
| { include: string[] }
| { exclude: string[] }
| undefined