Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flipper-common

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flipper-common - npm Package Compare versions

Comparing version 0.191.0 to 0.191.1

4

lib/clientUtils.d.ts

@@ -9,3 +9,3 @@ /**

*/
export declare type ClientIdConstituents = {
export type ClientIdConstituents = {
app: string;

@@ -16,3 +16,3 @@ os: string;

};
declare type PluginKeyConstituents = {
type PluginKeyConstituents = {
type: 'device';

@@ -19,0 +19,0 @@ pluginName: string;

@@ -9,3 +9,3 @@ /**

*/
declare type SerializableFnArg = null | boolean | number | string | {
type SerializableFnArg = null | boolean | number | string | {
[prop: string]: SerializableFnArg | SerializableFnArg[];

@@ -22,3 +22,3 @@ };

}
export declare type FlipperCompanionCommands = {
export type FlipperCompanionCommands = {
'companion-plugin-list': (clientId: string) => Promise<FlipperCompanionAvailablePlugin[]>;

@@ -59,3 +59,3 @@ /**

};
export declare type FlipperCompanionEvents = {
export type FlipperCompanionEvents = {
'companion-plugin-state-update': {

@@ -62,0 +62,0 @@ clientId: string;

@@ -56,6 +56,6 @@ /**

}
export declare type OS = 'iOS' | 'Android' | 'Metro' | 'Windows' | 'MacOS' | 'Browser' | 'Linux';
export declare type DeviceType = 'emulator' | 'physical' | 'dummy';
export declare type PluginType = 'client' | 'device';
export declare type DeviceSpec = 'KaiOS';
export type OS = 'iOS' | 'Android' | 'Metro' | 'Windows' | 'MacOS' | 'Browser' | 'Linux';
export type DeviceType = 'emulator' | 'physical' | 'dummy';
export type PluginType = 'client' | 'device';
export type DeviceSpec = 'KaiOS';
export interface ConcretePluginDetails extends PluginDetails {

@@ -70,3 +70,3 @@ isActivatable: boolean;

}
export declare type ActivatablePluginDetails = InstalledPluginDetails;
export type ActivatablePluginDetails = InstalledPluginDetails;
export interface DownloadablePluginDetails extends ConcretePluginDetails {

@@ -81,3 +81,3 @@ isActivatable: false;

}
export declare type UpdateResult = {
export type UpdateResult = {
kind: 'not-installed';

@@ -94,8 +94,8 @@ version: string;

};
export declare type UpdatablePlugin = {
export type UpdatablePlugin = {
updateStatus: UpdateResult;
};
export declare type UpdatablePluginDetails = InstalledPluginDetails & UpdatablePlugin;
export type UpdatablePluginDetails = InstalledPluginDetails & UpdatablePlugin;
export declare function getPluginDetails(packageJson: any): PluginDetails;
export declare function isPluginJson(packageJson: any): boolean;
//# sourceMappingURL=PluginDetails.d.ts.map

@@ -14,6 +14,6 @@ /**

import { LoggerInfo } from './utils/Logger';
export declare type FlipperServerType = 'embedded' | 'external';
export declare type FlipperServerState = 'pending' | 'starting' | 'started' | 'error' | 'closed';
export declare type DeviceOS = PluginOS;
export declare type DeviceDescription = {
export type FlipperServerType = 'embedded' | 'external';
export type FlipperServerState = 'pending' | 'starting' | 'started' | 'error' | 'closed';
export type DeviceOS = PluginOS;
export type DeviceDescription = {
readonly os: DeviceOS;

@@ -32,3 +32,3 @@ readonly title: string;

};
export declare type DeviceLogEntry = {
export type DeviceLogEntry = {
readonly date: Date;

@@ -42,4 +42,4 @@ readonly type: DeviceLogLevel;

};
export declare type DeviceLogLevel = 'unknown' | 'verbose' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
export declare type UninitializedClient = {
export type DeviceLogLevel = 'unknown' | 'verbose' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
export type UninitializedClient = {
os: string;

@@ -49,3 +49,3 @@ deviceName: string;

};
export declare type ClientQuery = {
export type ClientQuery = {
readonly app: string;

@@ -58,7 +58,7 @@ readonly os: DeviceOS;

};
export declare type ClientDescription = {
export type ClientDescription = {
readonly id: string;
readonly query: ClientQuery;
};
export declare type ClientErrorType = {
export type ClientErrorType = {
message: string;

@@ -68,3 +68,3 @@ stacktrace: string;

};
export declare type ClientResponseType = {
export type ClientResponseType = {
success: object | string | number | boolean | null;

@@ -78,3 +78,3 @@ error?: never;

};
export declare type FlipperServerEvents = {
export type FlipperServerEvents = {
'server-state': {

@@ -113,3 +113,3 @@ state: FlipperServerState;

};
export declare type IOSDeviceParams = {
export type IOSDeviceParams = {
udid: string;

@@ -151,3 +151,3 @@ type: DeviceType;

}
export declare type FlipperServerCommands = {
export type FlipperServerCommands = {
'get-server-state': () => Promise<{

@@ -242,7 +242,7 @@ state: FlipperServerState;

};
export declare type GraphResponse = {
export type GraphResponse = {
status: number;
data: any;
};
export declare type GraphFileUpload = {
export type GraphFileUpload = {
path?: string;

@@ -271,3 +271,3 @@ contents?: string;

};
export declare type ENVIRONMENT_VARIABLES = keyof typeof environmentVariables;
export type ENVIRONMENT_VARIABLES = keyof typeof environmentVariables;
/**

@@ -277,3 +277,3 @@ * Grab all environment variables from a process.env object, without leaking variables which usage isn't declared in ENVIRONMENT_VARIABLES

export declare function parseEnvironmentVariables(baseEnv: any): Partial<Record<ENVIRONMENT_VARIABLES, string>>;
declare type ENVIRONMENT_PATHS = 'appPath' | 'homePath' | 'execPath' | 'staticPath' | 'tempPath' | 'desktopPath';
type ENVIRONMENT_PATHS = 'appPath' | 'homePath' | 'execPath' | 'staticPath' | 'tempPath' | 'desktopPath';
export interface ExecOptions {

@@ -297,3 +297,3 @@ maxBuffer?: number;

}
export declare type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
export type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
export interface MkdirOptions {

@@ -312,3 +312,3 @@ mode?: string | number;

}
export declare type DownloadFileUpdate = {
export type DownloadFileUpdate = {
id: string;

@@ -351,3 +351,3 @@ downloaded: number;

}
export declare type FlipperServerConfig = {
export type FlipperServerConfig = {
gatekeepers: Record<string, boolean>;

@@ -374,3 +374,3 @@ env: Partial<Record<ENVIRONMENT_VARIABLES, string>>;

}
export declare type MetroBundleDetails = {
export type MetroBundleDetails = {
entryFile: string;

@@ -382,3 +382,3 @@ platform?: string;

};
export declare type MetroGlobalCacheDisabledReason = 'too_many_errors' | 'too_many_misses';
export type MetroGlobalCacheDisabledReason = 'too_many_errors' | 'too_many_misses';
/**

@@ -390,3 +390,3 @@ * A tagged union of all the actions that may happen and we may want to

*/
export declare type MetroReportableEvent = {
export type MetroReportableEvent = {
port: number;

@@ -445,3 +445,3 @@ projectRoots: ReadonlyArray<string>;

};
export declare type SignCertificateMessage = {
export type SignCertificateMessage = {
method: 'signCertificate';

@@ -452,11 +452,11 @@ csr: string;

};
export declare type GetPluginsMessage = {
export type GetPluginsMessage = {
id: number;
method: 'getPlugins';
};
export declare type GetBackgroundPluginsMessage = {
export type GetBackgroundPluginsMessage = {
id: number;
method: 'getBackgroundPlugins';
};
export declare type ExecuteMessage = {
export type ExecuteMessage = {
method: 'execute';

@@ -469,3 +469,3 @@ params: {

};
export declare type ResponseMessage = {
export type ResponseMessage = {
id: number;

@@ -479,3 +479,3 @@ success: object | string | number | boolean | null;

};
export declare type CrashLog = {
export type CrashLog = {
callstack?: string;

@@ -482,0 +482,0 @@ reason: string;

@@ -10,3 +10,3 @@ /**

import { FlipperServer, FlipperServerCommands, FlipperServerEvents } from './server-types';
export declare type ServerAddOnStartDetails = {
export type ServerAddOnStartDetails = {
path: string;

@@ -23,6 +23,6 @@ };

}
export declare type FlipperPluginReceiverRes = object | string | number | boolean | null | undefined | void;
export declare type FlipperPluginReceiver<T> = (data: T) => FlipperPluginReceiverRes | Promise<FlipperPluginReceiverRes>;
export declare type EventsContract = Record<string, any>;
export declare type MethodsContract = Record<string, (params: any) => Promise<any>>;
export type FlipperPluginReceiverRes = object | string | number | boolean | null | undefined | void;
export type FlipperPluginReceiver<T> = (data: T) => FlipperPluginReceiverRes | Promise<FlipperPluginReceiverRes>;
export type EventsContract = Record<string, any>;
export type MethodsContract = Record<string, (params: any) => Promise<any>>;
export interface ServerAddOnPluginConnection<Events extends EventsContract, Methods extends MethodsContract> {

@@ -35,7 +35,7 @@ send<T extends keyof Events & string>(method: T, ...params: Events[T] extends never ? [] : [Events[T]]): void;

}
export declare type ServerAddOnCleanup = () => Promise<void>;
export declare type ServerAddOnExtras = {
export type ServerAddOnCleanup = () => Promise<void>;
export type ServerAddOnExtras = {
flipperServer: FlipperServerForServerAddOn;
};
export declare type ServerAddOn<Events extends EventsContract, Methods extends MethodsContract> = (connection: ServerAddOnPluginConnection<Events, Methods>, extras: ServerAddOnExtras) => Promise<ServerAddOnCleanup>;
export type ServerAddOn<Events extends EventsContract, Methods extends MethodsContract> = (connection: ServerAddOnPluginConnection<Events, Methods>, extras: ServerAddOnExtras) => Promise<ServerAddOnCleanup>;
//# sourceMappingURL=ServerAddOn.d.ts.map

@@ -18,3 +18,3 @@ /**

*/
export declare type Settings = {
export type Settings = {
androidHome: string;

@@ -71,7 +71,7 @@ enableAndroid: boolean;

/** Launcher settings only apply to Electron, and aren't managed or relevant for flipper-server-core */
export declare type LauncherSettings = {
export type LauncherSettings = {
releaseChannel: ReleaseChannel;
ignoreLocalPin: boolean;
};
export declare type ProcessConfig = {
export type ProcessConfig = {
disabledPlugins: string[];

@@ -90,4 +90,4 @@ lastWindowPosition: {

};
export declare type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
export declare type EnvironmentInfo = {
export type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
export type EnvironmentInfo = {
processId: number;

@@ -94,0 +94,0 @@ isProduction: boolean;

@@ -11,10 +11,10 @@ /**

import { FlipperServerCommands, FlipperServerEvents } from './server-types';
export declare type GenericWebSocketMessage<E = string, T = unknown> = {
export type GenericWebSocketMessage<E = string, T = unknown> = {
event: E;
payload: T;
};
export declare type GenericWebSocketError = GenericWebSocketMessage<'error', {
export type GenericWebSocketError = GenericWebSocketMessage<'error', {
message: string;
}>;
export declare type ExecWebSocketMessage = GenericWebSocketMessage<'exec', {
export type ExecWebSocketMessage = GenericWebSocketMessage<'exec', {
[K in keyof FlipperServerCommands]: {

@@ -26,11 +26,11 @@ id: number;

}[keyof FlipperServerCommands]>;
export declare type ExecResponseWebSocketMessage = GenericWebSocketMessage<'exec-response', {
export type ExecResponseWebSocketMessage = GenericWebSocketMessage<'exec-response', {
id: number;
data: unknown;
}>;
export declare type ExecResponseErrorWebSocketMessage = GenericWebSocketMessage<'exec-response-error', {
export type ExecResponseErrorWebSocketMessage = GenericWebSocketMessage<'exec-response-error', {
id: number;
data: unknown;
}>;
export declare type ServerEventWebSocketMessage = GenericWebSocketMessage<'server-event', {
export type ServerEventWebSocketMessage = GenericWebSocketMessage<'server-event', {
[K in keyof FlipperServerEvents]: {

@@ -41,3 +41,3 @@ event: K;

}[keyof FlipperServerEvents]>;
export declare type CompanionEventWebSocketMessage = GenericWebSocketMessage<'companion-event', {
export type CompanionEventWebSocketMessage = GenericWebSocketMessage<'companion-event', {
[K in keyof FlipperCompanionEvents]: {

@@ -48,4 +48,4 @@ event: K;

}[keyof FlipperCompanionEvents]>;
export declare type ClientWebSocketMessage = ExecWebSocketMessage;
export declare type ServerWebSocketMessage = ExecResponseWebSocketMessage | ExecResponseErrorWebSocketMessage | ServerEventWebSocketMessage;
export type ClientWebSocketMessage = ExecWebSocketMessage;
export type ServerWebSocketMessage = ExecResponseWebSocketMessage | ExecResponseErrorWebSocketMessage | ServerEventWebSocketMessage;
//# sourceMappingURL=transport.d.ts.map

@@ -9,3 +9,3 @@ /**

*/
export declare type User = {
export type User = {
id?: string;

@@ -12,0 +12,0 @@ name?: string;

@@ -9,3 +9,3 @@ /**

*/
declare type Res<T> = {
type Res<T> = {
promise: Promise<T>;

@@ -12,0 +12,0 @@ resolve: (...res: T extends void ? [] : [T]) => void;

@@ -9,8 +9,8 @@ /**

*/
export declare type LoggerTypes = 'error' | 'warn' | 'info' | 'debug';
export declare type LoggerTrackType = 'duration' | 'usage' | 'performance' | 'success-rate' | 'operation-cancelled';
export declare type LoggerArgs = {
export type LoggerTypes = 'error' | 'warn' | 'info' | 'debug';
export type LoggerTrackType = 'duration' | 'usage' | 'performance' | 'success-rate' | 'operation-cancelled';
export type LoggerArgs = {
isTest?: boolean;
};
export declare type LoggerInfo = {
export type LoggerInfo = {
formatted: Array<any>;

@@ -22,3 +22,3 @@ namespace: string;

};
export declare type LoggerPerformanceEntry = {
export type LoggerPerformanceEntry = {
startTime: number;

@@ -25,0 +25,0 @@ name: string;

@@ -9,3 +9,3 @@ /**

*/
declare type Result = {
type Result = {
kind: 'success';

@@ -12,0 +12,0 @@ } | {

{
"name": "flipper-common",
"version": "0.191.0",
"version": "0.191.1",
"description": "Server & UI shared Flipper utilities",

@@ -5,0 +5,0 @@ "repository": "facebook/flipper",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc