flipper-frontend-core
Advanced tools
Comparing version 0.171.1 to 0.172.0
@@ -37,2 +37,4 @@ import BaseDevice from './devices/BaseDevice'; | ||
private readonly flipperServer; | ||
private resolveInitPromise; | ||
readonly initializationPromise: Promise<unknown>; | ||
constructor(id: string, query: ClientQuery, conn: ClientConnection | null | undefined, logger: Logger, plugins: Plugins | null | undefined, device: BaseDevice, flipperServer: FlipperServer); | ||
@@ -39,0 +41,0 @@ isBackgroundPlugin(pluginId: string): boolean; |
@@ -19,2 +19,5 @@ "use strict"; | ||
this.sandyPluginStates = new Map(); | ||
this.initializationPromise = new Promise((_resolve) => { | ||
this.resolveInitPromise = _resolve; | ||
}); | ||
this.connected.set(!!conn); | ||
@@ -38,2 +41,3 @@ this.plugins = plugins ? plugins : new Set(); | ||
async init() { | ||
var _a; | ||
await this.loadPlugins('init'); | ||
@@ -48,2 +52,3 @@ await Promise.all([...this.plugins].map(async (pluginId) => this.startPluginIfNeeded(await this.getPlugin(pluginId)))); | ||
this.emit('plugins-change'); | ||
(_a = this.resolveInitPromise) === null || _a === void 0 ? void 0 : _a.call(this, null); | ||
} | ||
@@ -50,0 +55,0 @@ async loadPlugins(_phase) { |
{ | ||
"name": "flipper-frontend-core", | ||
"version": "0.171.1", | ||
"version": "0.172.0", | ||
"description": "Exposes core functionality for Flipper frontends: Flipper Electron, Flipper Browser UI, Flipper Server Companion.", | ||
@@ -13,4 +13,4 @@ "repository": "facebook/flipper", | ||
"eventemitter3": "^4.0.7", | ||
"flipper-common": "0.171.1", | ||
"flipper-plugin-core": "0.171.1", | ||
"flipper-common": "0.172.0", | ||
"flipper-plugin-core": "0.172.0", | ||
"immer": "^9.0.12", | ||
@@ -23,3 +23,3 @@ "js-base64": "^3.7.2", | ||
"devDependencies": { | ||
"flipper-test-utils": "0.171.1" | ||
"flipper-test-utils": "0.172.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "peerDependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128821
1601
+ Addedflipper-common@0.172.0(transitive)
+ Addedflipper-plugin-core@0.172.0(transitive)
- Removedflipper-common@0.171.1(transitive)
- Removedflipper-plugin-core@0.171.1(transitive)
Updatedflipper-common@0.172.0
Updatedflipper-plugin-core@0.172.0