mirror of
https://github.com/bitwarden/cli
synced 2025-12-12 22:33:37 +00:00
node api service
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 5850a590ce...17cf059970
@@ -25,7 +25,7 @@
|
|||||||
"lint:fix": "tslint src/**/*.ts spec/**/*.ts --fix"
|
"lint:fix": "tslint src/**/*.ts spec/**/*.ts --fix"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"bw": "./bw.js"
|
"bw": "./build/bw.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/commander": "^2.12.2",
|
"@types/commander": "^2.12.2",
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { NodeMessagingService } from './services/nodeMessaging.service';
|
|||||||
import { NodePlatformUtilsService } from './services/nodePlatformUtils.service';
|
import { NodePlatformUtilsService } from './services/nodePlatformUtils.service';
|
||||||
import { NodeStorageService } from './services/nodeStorage.service';
|
import { NodeStorageService } from './services/nodeStorage.service';
|
||||||
|
|
||||||
import { ApiService } from 'jslib/services/api.service';
|
|
||||||
import { AppIdService } from 'jslib/services/appId.service';
|
import { AppIdService } from 'jslib/services/appId.service';
|
||||||
import { AuditService } from 'jslib/services/audit.service';
|
import { AuditService } from 'jslib/services/audit.service';
|
||||||
import { CipherService } from 'jslib/services/cipher.service';
|
import { CipherService } from 'jslib/services/cipher.service';
|
||||||
@@ -16,6 +15,7 @@ import { CryptoService } from 'jslib/services/crypto.service';
|
|||||||
import { EnvironmentService } from 'jslib/services/environment.service';
|
import { EnvironmentService } from 'jslib/services/environment.service';
|
||||||
import { FolderService } from 'jslib/services/folder.service';
|
import { FolderService } from 'jslib/services/folder.service';
|
||||||
import { LockService } from 'jslib/services/lock.service';
|
import { LockService } from 'jslib/services/lock.service';
|
||||||
|
import { NodeApiService } from 'jslib/services/nodeApi.service';
|
||||||
import { NodeCryptoFunctionService } from 'jslib/services/nodeCryptoFunction.service';
|
import { NodeCryptoFunctionService } from 'jslib/services/nodeCryptoFunction.service';
|
||||||
import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service';
|
import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service';
|
||||||
import { SettingsService } from 'jslib/services/settings.service';
|
import { SettingsService } from 'jslib/services/settings.service';
|
||||||
@@ -36,7 +36,7 @@ export class Main {
|
|||||||
cryptoService: CryptoService;
|
cryptoService: CryptoService;
|
||||||
tokenService: TokenService;
|
tokenService: TokenService;
|
||||||
appIdService: AppIdService;
|
appIdService: AppIdService;
|
||||||
apiService: ApiService;
|
apiService: NodeApiService;
|
||||||
environmentService: EnvironmentService;
|
environmentService: EnvironmentService;
|
||||||
userService: UserService;
|
userService: UserService;
|
||||||
settingsService: SettingsService;
|
settingsService: SettingsService;
|
||||||
@@ -62,7 +62,7 @@ export class Main {
|
|||||||
this.appIdService = new AppIdService(this.storageService);
|
this.appIdService = new AppIdService(this.storageService);
|
||||||
this.tokenService = new TokenService(this.storageService);
|
this.tokenService = new TokenService(this.storageService);
|
||||||
this.messagingService = new NodeMessagingService();
|
this.messagingService = new NodeMessagingService();
|
||||||
this.apiService = new ApiService(this.tokenService, this.platformUtilsService,
|
this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService,
|
||||||
(expired: boolean) => { /* do nothing */ });
|
(expired: boolean) => { /* do nothing */ });
|
||||||
this.environmentService = new EnvironmentService(this.apiService, this.storageService);
|
this.environmentService = new EnvironmentService(this.apiService, this.storageService);
|
||||||
this.userService = new UserService(this.tokenService, this.storageService);
|
this.userService = new UserService(this.tokenService, this.storageService);
|
||||||
|
|||||||
Reference in New Issue
Block a user