mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
24c240d0d4
* Allow for update logic in state update callbacks * Prefer reading updates to sending in stream * Inform state providers when they must deserialize * Update DefaultGlobalState to act more like DefaultUserState * Fully Implement AbstractStorageService * Add KeyDefinitionOptions * Address PR feedback * Prefer testing interactions for ports * Synced memory storage for browser * Fix port handling * Do not stringify port message data * Use messaging storage * Initialize new foreground memory storage services This will need to be rethought for short-lived background pages, but for now the background is the source of truth for memory storage * Use global state for account service * Use BrowserApi listener to avoid safari memory leaks * Fix build errors: debugging and missed impls * Prefer bound arrow functions * JSON Stringify Messages * Prefer `useClass` * Use noop services * extract storage observable to new interface This also reverts changes for the existing services to use foreground/background services. Those are now used only in state providers * Fix web DI * Prefer initializing observable in constructor * Do not use jsonify as equality operator * Remove port listener to avoid memory leaks * Fix logic and type issues --------- Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"pretty": true,
|
|
"moduleResolution": "node",
|
|
"noImplicitAny": true,
|
|
"target": "ES2016",
|
|
"module": "ES2020",
|
|
"lib": ["es5", "es6", "es7", "dom"],
|
|
"sourceMap": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"declaration": false,
|
|
"outDir": "dist",
|
|
"baseUrl": ".",
|
|
"resolveJsonModule": true,
|
|
"paths": {
|
|
"@bitwarden/angular/*": ["./libs/angular/src/*"],
|
|
"@bitwarden/auth": ["./libs/auth/src"],
|
|
"@bitwarden/common/*": ["./libs/common/src/*"],
|
|
"@bitwarden/components": ["./libs/components/src"],
|
|
"@bitwarden/exporter/*": ["./libs/exporter/src/*"],
|
|
"@bitwarden/importer/core": ["./libs/importer/src"],
|
|
"@bitwarden/importer/ui": ["./libs/importer/src/components"],
|
|
"@bitwarden/node/*": ["./libs/node/src/*"],
|
|
"@bitwarden/web-vault/*": ["./apps/web/src/*"],
|
|
"@bitwarden/vault": ["./libs/vault/src"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"transform": "typescript-transform-paths"
|
|
}
|
|
],
|
|
"useDefineForClassFields": false
|
|
},
|
|
"include": ["apps/web/src/**/*", "libs/*/src/**/*", "bitwarden_license/bit-web/src/**/*"],
|
|
"exclude": ["apps/web/src/**/*.spec.ts", "libs/*/src/**/*.spec.ts", "**/*.spec-util.ts"]
|
|
}
|