flipper-common
Advanced tools
Comparing version 0.145.0 to 0.146.0
@@ -11,4 +11,6 @@ export { Logger, LoggerTrackType, LoggerTypes, LoggerArgs, getLogger, setLoggerInstance, NoopLogger, } from './utils/Logger'; | ||
export { logPlatformSuccessRate, reportPlatformFailures, reportUsage, reportPluginFailures, tryCatchReportPluginFailuresAsync, tryCatchReportPlatformFailures, tryCatchReportPluginFailures, UnsupportedError, } from './utils/metrics'; | ||
export { ConnectivityError, CancelledPromiseError, UnableToExtractClientQueryError, UserUnauthorizedError, UserNotSignedInError, NoLongerConnectedToClientError, isConnectivityOrAuthError, isError, isAuthError, getStringFromErrorLike, getErrorFromErrorLike, deserializeRemoteError, } from './utils/errors'; | ||
export { ConnectivityError, CancelledPromiseError, UnableToExtractClientQueryError, UserUnauthorizedError, UserNotSignedInError, NoLongerConnectedToClientError, UserError, SystemError, isConnectivityOrAuthError, isError, isAuthError, getStringFromErrorLike, getErrorFromErrorLike, deserializeRemoteError, } from './utils/errors'; | ||
export { createControlledPromise } from './utils/controlledPromise'; | ||
export * from './utils/typeUtils'; | ||
export * from './utils/uuid'; | ||
export * from './GK'; | ||
@@ -15,0 +17,0 @@ export * from './clientUtils'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createControlledPromise = exports.deserializeRemoteError = exports.getErrorFromErrorLike = exports.getStringFromErrorLike = exports.isAuthError = exports.isError = exports.isConnectivityOrAuthError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.UserUnauthorizedError = exports.UnableToExtractClientQueryError = exports.CancelledPromiseError = exports.ConnectivityError = exports.UnsupportedError = exports.tryCatchReportPluginFailures = exports.tryCatchReportPlatformFailures = exports.tryCatchReportPluginFailuresAsync = exports.reportPluginFailures = exports.reportUsage = exports.reportPlatformFailures = exports.logPlatformSuccessRate = exports.fsConstants = exports.assertNever = exports.isProduction = exports.isTest = exports.timeout = exports.sleep = exports.NoopLogger = exports.setLoggerInstance = exports.getLogger = void 0; | ||
exports.createControlledPromise = exports.deserializeRemoteError = exports.getErrorFromErrorLike = exports.getStringFromErrorLike = exports.isAuthError = exports.isError = exports.isConnectivityOrAuthError = exports.SystemError = exports.UserError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.UserUnauthorizedError = exports.UnableToExtractClientQueryError = exports.CancelledPromiseError = exports.ConnectivityError = exports.UnsupportedError = exports.tryCatchReportPluginFailures = exports.tryCatchReportPlatformFailures = exports.tryCatchReportPluginFailuresAsync = exports.reportPluginFailures = exports.reportUsage = exports.reportPlatformFailures = exports.logPlatformSuccessRate = exports.fsConstants = exports.assertNever = exports.isProduction = exports.isTest = exports.timeout = exports.sleep = exports.NoopLogger = exports.setLoggerInstance = exports.getLogger = void 0; | ||
var Logger_1 = require("./utils/Logger"); | ||
@@ -53,2 +53,4 @@ Object.defineProperty(exports, "getLogger", { enumerable: true, get: function () { return Logger_1.getLogger; } }); | ||
Object.defineProperty(exports, "NoLongerConnectedToClientError", { enumerable: true, get: function () { return errors_1.NoLongerConnectedToClientError; } }); | ||
Object.defineProperty(exports, "UserError", { enumerable: true, get: function () { return errors_1.UserError; } }); | ||
Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } }); | ||
Object.defineProperty(exports, "isConnectivityOrAuthError", { enumerable: true, get: function () { return errors_1.isConnectivityOrAuthError; } }); | ||
@@ -62,2 +64,4 @@ Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return errors_1.isError; } }); | ||
Object.defineProperty(exports, "createControlledPromise", { enumerable: true, get: function () { return controlledPromise_1.createControlledPromise; } }); | ||
__exportStar(require("./utils/typeUtils"), exports); | ||
__exportStar(require("./utils/uuid"), exports); | ||
__exportStar(require("./GK"), exports); | ||
@@ -64,0 +68,0 @@ __exportStar(require("./clientUtils"), exports); |
@@ -24,2 +24,3 @@ export interface PluginDetails { | ||
pluginType?: PluginType; | ||
headless?: boolean; | ||
supportedDevices?: SupportedDevice[]; | ||
@@ -26,0 +27,0 @@ supportedApps?: SupportedApp[]; |
@@ -65,2 +65,3 @@ "use strict"; | ||
publishedDocs: packageJson.publishedDocs, | ||
headless: packageJson.headless, | ||
}; | ||
@@ -67,0 +68,0 @@ } |
@@ -145,2 +145,3 @@ import { FlipperDoctor } from './doctor'; | ||
'device-list': () => Promise<DeviceDescription[]>; | ||
'device-find': (deviceSerial: string) => Promise<DeviceDescription | undefined>; | ||
'device-take-screenshot': (serial: string) => Promise<string>; | ||
@@ -155,2 +156,3 @@ 'device-start-screencapture': (serial: string, destination: string) => Promise<void>; | ||
'client-list': () => Promise<ClientDescription[]>; | ||
'client-find': (clientId: string) => Promise<ClientDescription | undefined>; | ||
'client-request': (clientId: string, payload: any) => Promise<void>; | ||
@@ -157,0 +159,0 @@ 'client-request-response': (clientId: string, payload: any) => Promise<ClientResponseType>; |
import { ClientErrorType } from '../server-types'; | ||
export declare function isAuthError(err: any): err is UserNotSignedInError | UserUnauthorizedError; | ||
export declare function isConnectivityOrAuthError(err: any): err is ConnectivityError | UserNotSignedInError | UserUnauthorizedError; | ||
export declare class SystemError extends Error { | ||
name: string; | ||
readonly context?: unknown; | ||
constructor(msg: string, ...args: unknown[]); | ||
} | ||
export declare class UserError extends Error { | ||
name: string; | ||
readonly context?: unknown; | ||
constructor(msg: string, ...args: unknown[]); | ||
} | ||
export declare class UnableToExtractClientQueryError extends Error { | ||
@@ -5,0 +15,0 @@ constructor(msg: string); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deserializeRemoteError = exports.getStringFromErrorLike = exports.getErrorFromErrorLike = exports.isError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.UserUnauthorizedError = exports.ConnectivityError = exports.CancelledPromiseError = exports.UnableToExtractClientQueryError = exports.isConnectivityOrAuthError = exports.isAuthError = void 0; | ||
exports.deserializeRemoteError = exports.getStringFromErrorLike = exports.getErrorFromErrorLike = exports.isError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.UserUnauthorizedError = exports.ConnectivityError = exports.CancelledPromiseError = exports.UnableToExtractClientQueryError = exports.UserError = exports.SystemError = exports.isConnectivityOrAuthError = exports.isAuthError = void 0; | ||
function isAuthError(err) { | ||
@@ -15,2 +15,18 @@ return (err instanceof UserNotSignedInError || err instanceof UserUnauthorizedError); | ||
exports.isConnectivityOrAuthError = isConnectivityOrAuthError; | ||
class SystemError extends Error { | ||
constructor(msg, ...args) { | ||
super(msg); | ||
this.name = 'SystemError'; | ||
this.context = args; | ||
} | ||
} | ||
exports.SystemError = SystemError; | ||
class UserError extends Error { | ||
constructor(msg, ...args) { | ||
super(msg); | ||
this.name = 'UserError'; | ||
this.context = args; | ||
} | ||
} | ||
exports.UserError = UserError; | ||
class UnableToExtractClientQueryError extends Error { | ||
@@ -17,0 +33,0 @@ constructor(msg) { |
{ | ||
"name": "flipper-common", | ||
"version": "0.145.0", | ||
"version": "0.146.0", | ||
"description": "Server & UI shared Flipper utilities", | ||
@@ -11,4 +11,8 @@ "repository": "facebook/flipper", | ||
"bugs": "https://github.com/facebook/flipper/issues", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^8.3.4" | ||
}, | ||
"peerDependencies": {}, | ||
@@ -15,0 +19,0 @@ "scripts": { |
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
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
112833
86
1643
1
1
+ Addeduuid@^8.3.2
+ Addeduuid@8.3.2(transitive)