MCPcopy Create free account
hub / github.com/bitwarden/clients / constructor

Method constructor

apps/cli/src/commands/update.command.ts:41–49  ·  view source on GitHub ↗
(
    private platformUtilsService: PlatformUtilsService,
    protected apiService: ApiService,
    private licenseType: CliLicenseType,
    private platform: NodeJS.Platform = process.platform,
    private arch: NodeJS.Architecture = process.arch,
  )

Source from the content-addressed store, hash-verified

39 inPkg = false;
40
41 constructor(
42 private platformUtilsService: PlatformUtilsService,
43 protected apiService: ApiService,
44 private licenseType: CliLicenseType,
45 private platform: NodeJS.Platform = process.platform,
46 private arch: NodeJS.Architecture = process.arch,
47 ) {
48 this.inPkg = !!(process as any).pkg;
49 }
50
51 async run(): Promise<Response> {
52 const response = await this.apiService.nativeFetch(new Request(CLIENTS_RELEASE_LIST_ENDPOINT));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected