1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00
Files
browser/libs/api/project.json
addisonbeck d509d277ee refactor: introduce @bitwarden/api and @bitwarden/legacy-api
- Created libs/legacy-api with description and platform team ownership
- Updated tsconfig.base path mapping and CODEOWNERS
- npm install changes in package-lock from generator

feat(api): add minimal ApiClient and HttpOperations type with lifted core methods (send, fetch/nativeFetch, token helpers, error handling)

feat(api): include prerelease flag header in ApiClient headers to match ApiService behavior

refactor(api): type logoutCallback param as LogoutReason to mirror ApiService

chore(api): remove unused HttpOperations import from abstraction

refactor(api): rename api-client.ts to api.service.ts and update barrel/spec imports

chore(api): restore comments and constructor parity with common ApiService (device field, directory traversal note, unauthenticated header rationale)

angular: provide TokenProvider -> TokenProviderService; convert TokenProvider to abstract class for DI token; no cycles with @bitwarden/api
2025-08-14 18:14:46 -04:00

34 lines
838 B
JSON

{
"name": "api",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/api/src",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/api",
"main": "libs/api/src/index.ts",
"tsConfig": "libs/api/tsconfig.lib.json",
"assets": ["libs/api/*.md"]
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api/**/*.ts"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/api/jest.config.js"
}
}
}
}