flipper-common
Advanced tools
Comparing version 0.260.0 to 0.261.0
@@ -22,3 +22,3 @@ /** | ||
export { logPlatformSuccessRate, reportPlatformFailures, reportUsage, reportPluginFailures, tryCatchReportPluginFailuresAsync, tryCatchReportPlatformFailures, tryCatchReportPluginFailures, UnsupportedError, } from './utils/metrics'; | ||
export { ConnectivityError, CancelledPromiseError, UnableToExtractClientQueryError, UserUnauthorizedError, UserNotSignedInError, NoLongerConnectedToClientError, UserError, SystemError, X2PAgentdError, isConnectivityOrAuthError, isError, isAuthError, FlipperServerDisconnectedError, FlipperServerTimeoutError, getStringFromErrorLike, getErrorFromErrorLike, deserializeRemoteError, } from './utils/errors'; | ||
export { ConnectivityError, CancelledPromiseError, UnableToExtractClientQueryError, UserUnauthorizedError, UserNotSignedInError, NoLongerConnectedToClientError, UserError, SystemError, X2PAgentdError, isConnectivityOrAuthError, isError, isAuthError, FlipperServerDisconnectedError, InternGraphServerError, FlipperServerTimeoutError, getStringFromErrorLike, getErrorFromErrorLike, deserializeRemoteError, } from './utils/errors'; | ||
export { createControlledPromise } from './utils/controlledPromise'; | ||
@@ -25,0 +25,0 @@ export * from './utils/typeUtils'; |
@@ -25,3 +25,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createControlledPromise = exports.deserializeRemoteError = exports.getErrorFromErrorLike = exports.getStringFromErrorLike = exports.FlipperServerTimeoutError = exports.FlipperServerDisconnectedError = exports.isAuthError = exports.isError = exports.isConnectivityOrAuthError = exports.X2PAgentdError = 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 = exports.LoggerFormat = exports.LoggerExtractError = void 0; | ||
exports.createControlledPromise = exports.deserializeRemoteError = exports.getErrorFromErrorLike = exports.getStringFromErrorLike = exports.FlipperServerTimeoutError = exports.InternGraphServerError = exports.FlipperServerDisconnectedError = exports.isAuthError = exports.isError = exports.isConnectivityOrAuthError = exports.X2PAgentdError = 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 = exports.LoggerFormat = exports.LoggerExtractError = void 0; | ||
var Logger_1 = require("./utils/Logger"); | ||
@@ -73,2 +73,3 @@ Object.defineProperty(exports, "LoggerExtractError", { enumerable: true, get: function () { return Logger_1.LoggerExtractError; } }); | ||
Object.defineProperty(exports, "FlipperServerDisconnectedError", { enumerable: true, get: function () { return errors_1.FlipperServerDisconnectedError; } }); | ||
Object.defineProperty(exports, "InternGraphServerError", { enumerable: true, get: function () { return errors_1.InternGraphServerError; } }); | ||
Object.defineProperty(exports, "FlipperServerTimeoutError", { enumerable: true, get: function () { return errors_1.FlipperServerTimeoutError; } }); | ||
@@ -75,0 +76,0 @@ Object.defineProperty(exports, "getStringFromErrorLike", { enumerable: true, get: function () { return errors_1.getStringFromErrorLike; } }); |
@@ -34,2 +34,7 @@ /** | ||
} | ||
export declare class InternGraphServerError extends Error { | ||
body: any; | ||
constructor(msg: string, body: any); | ||
name: 'InternGraphServerError'; | ||
} | ||
export declare class UserUnauthorizedError extends Error { | ||
@@ -36,0 +41,0 @@ constructor(msg?: string); |
@@ -11,3 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deserializeRemoteError = exports.getStringFromErrorLike = exports.getErrorFromErrorLike = exports.isError = exports.FlipperServerTimeoutError = exports.FlipperServerDisconnectedError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.X2PAgentdError = exports.UserUnauthorizedError = exports.ConnectivityError = exports.CancelledPromiseError = exports.UnableToExtractClientQueryError = exports.UserError = exports.SystemError = exports.isConnectivityOrAuthError = exports.isAuthError = void 0; | ||
exports.deserializeRemoteError = exports.getStringFromErrorLike = exports.getErrorFromErrorLike = exports.isError = exports.FlipperServerTimeoutError = exports.FlipperServerDisconnectedError = exports.NoLongerConnectedToClientError = exports.UserNotSignedInError = exports.X2PAgentdError = exports.UserUnauthorizedError = exports.InternGraphServerError = exports.ConnectivityError = exports.CancelledPromiseError = exports.UnableToExtractClientQueryError = exports.UserError = exports.SystemError = exports.isConnectivityOrAuthError = exports.isAuthError = void 0; | ||
function isAuthError(err) { | ||
@@ -64,2 +64,10 @@ return (err instanceof UserNotSignedInError || err instanceof UserUnauthorizedError); | ||
exports.ConnectivityError = ConnectivityError; | ||
class InternGraphServerError extends Error { | ||
constructor(msg, body) { | ||
super(msg); | ||
this.name = 'InternGraphServerError'; | ||
this.body = body; | ||
} | ||
} | ||
exports.InternGraphServerError = InternGraphServerError; | ||
class UserUnauthorizedError extends Error { | ||
@@ -66,0 +74,0 @@ constructor(msg = 'User unauthorized.') { |
{ | ||
"name": "flipper-common", | ||
"version": "0.260.0", | ||
"version": "0.261.0", | ||
"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
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
166390
2771