@firebase/functions
Advanced tools
Comparing version 0.11.8-canary.beaa4dffb to 0.11.8-canary.cf988b0b1
@@ -175,6 +175,12 @@ import { _registerComponent, registerVersion, _getProvider, getApp } from '@firebase/app'; | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
class FunctionsError extends FirebaseError { | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
@@ -187,3 +193,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -193,2 +199,5 @@ details) { | ||
this.details = details; | ||
// Since the FirebaseError constructor sets the prototype of `this` to FirebaseError.prototype, | ||
// we also have to do it in all subclasses to allow for correct `instanceof` checks. | ||
Object.setPrototypeOf(this, FunctionsError.prototype); | ||
} | ||
@@ -612,3 +621,3 @@ } | ||
const name = "@firebase/functions"; | ||
const version = "0.11.8-canary.beaa4dffb"; | ||
const version = "0.11.8-canary.cf988b0b1"; | ||
@@ -734,3 +743,3 @@ /** | ||
export { connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
export { FunctionsError, connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
//# sourceMappingURL=index.node.esm.js.map |
@@ -19,2 +19,3 @@ /** | ||
import { Functions, HttpsCallableOptions, HttpsCallable } from './public-types'; | ||
export { FunctionsError } from './error'; | ||
export * from './public-types'; | ||
@@ -21,0 +22,0 @@ /** |
@@ -21,10 +21,16 @@ /** | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
export declare class FunctionsError extends FirebaseError { | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
@@ -37,3 +43,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -40,0 +46,0 @@ details?: unknown); |
@@ -18,3 +18,2 @@ /** | ||
import { FirebaseApp } from '@firebase/app'; | ||
import { FirebaseError } from '@firebase/util'; | ||
/** | ||
@@ -120,17 +119,2 @@ * An `HttpsCallableResult` wraps a single result from a function call. | ||
export declare type FunctionsErrorCode = `functions/${FunctionsErrorCodeCore}`; | ||
/** | ||
* An error returned by the Firebase Functions client SDK. | ||
* @public | ||
*/ | ||
export interface FunctionsError extends FirebaseError { | ||
/** | ||
* A standard error code that will be returned to the client. This also | ||
* determines the HTTP status code of the response, as defined in code.proto. | ||
*/ | ||
readonly code: FunctionsErrorCode; | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
} | ||
declare module '@firebase/component' { | ||
@@ -137,0 +121,0 @@ interface NameServiceMapping { |
@@ -44,14 +44,25 @@ /** | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
export declare interface FunctionsError extends FirebaseError { | ||
export declare class FunctionsError extends FirebaseError { | ||
/** | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
/** | ||
* A standard error code that will be returned to the client. This also | ||
* determines the HTTP status code of the response, as defined in code.proto. | ||
*/ | ||
readonly code: FunctionsErrorCode; | ||
code: FunctionsErrorCodeCore, message?: string, | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
details?: unknown); | ||
} | ||
@@ -58,0 +69,0 @@ |
@@ -44,14 +44,25 @@ /** | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
export declare interface FunctionsError extends FirebaseError { | ||
export declare class FunctionsError extends FirebaseError { | ||
/** | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
/** | ||
* A standard error code that will be returned to the client. This also | ||
* determines the HTTP status code of the response, as defined in code.proto. | ||
*/ | ||
readonly code: FunctionsErrorCode; | ||
code: FunctionsErrorCodeCore, message?: string, | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
details?: unknown); | ||
} | ||
@@ -58,0 +69,0 @@ |
@@ -178,6 +178,12 @@ 'use strict'; | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
class FunctionsError extends util.FirebaseError { | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
@@ -190,3 +196,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -196,2 +202,5 @@ details) { | ||
this.details = details; | ||
// Since the FirebaseError constructor sets the prototype of `this` to FirebaseError.prototype, | ||
// we also have to do it in all subclasses to allow for correct `instanceof` checks. | ||
Object.setPrototypeOf(this, FunctionsError.prototype); | ||
} | ||
@@ -615,3 +624,3 @@ } | ||
const name = "@firebase/functions"; | ||
const version = "0.11.8-canary.beaa4dffb"; | ||
const version = "0.11.8-canary.cf988b0b1"; | ||
@@ -725,2 +734,3 @@ /** | ||
exports.FunctionsError = FunctionsError; | ||
exports.connectFunctionsEmulator = connectFunctionsEmulator; | ||
@@ -727,0 +737,0 @@ exports.getFunctions = getFunctions; |
@@ -175,7 +175,13 @@ import { _registerComponent, registerVersion, getApp, _getProvider } from '@firebase/app'; | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
var FunctionsError = /** @class */ (function (_super) { | ||
__extends(FunctionsError, _super); | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
function FunctionsError( | ||
@@ -188,3 +194,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -194,2 +200,5 @@ details) { | ||
_this.details = details; | ||
// Since the FirebaseError constructor sets the prototype of `this` to FirebaseError.prototype, | ||
// we also have to do it in all subclasses to allow for correct `instanceof` checks. | ||
Object.setPrototypeOf(_this, FunctionsError.prototype); | ||
return _this; | ||
@@ -694,3 +703,3 @@ } | ||
var name = "@firebase/functions"; | ||
var version = "0.11.8-canary.beaa4dffb"; | ||
var version = "0.11.8-canary.cf988b0b1"; | ||
@@ -807,3 +816,3 @@ /** | ||
export { connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
export { FunctionsError, connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -174,6 +174,12 @@ import { _registerComponent, registerVersion, _getProvider, getApp } from '@firebase/app'; | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
class FunctionsError extends FirebaseError { | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
@@ -186,3 +192,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -192,2 +198,5 @@ details) { | ||
this.details = details; | ||
// Since the FirebaseError constructor sets the prototype of `this` to FirebaseError.prototype, | ||
// we also have to do it in all subclasses to allow for correct `instanceof` checks. | ||
Object.setPrototypeOf(this, FunctionsError.prototype); | ||
} | ||
@@ -611,3 +620,3 @@ } | ||
const name = "@firebase/functions"; | ||
const version = "0.11.8-canary.beaa4dffb"; | ||
const version = "0.11.8-canary.cf988b0b1"; | ||
@@ -721,3 +730,3 @@ /** | ||
export { connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
export { FunctionsError, connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL }; | ||
//# sourceMappingURL=index.esm2017.js.map |
@@ -180,7 +180,13 @@ 'use strict'; | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
var FunctionsError = /** @class */ (function (_super) { | ||
tslib.__extends(FunctionsError, _super); | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
function FunctionsError( | ||
@@ -193,3 +199,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -199,2 +205,5 @@ details) { | ||
_this.details = details; | ||
// Since the FirebaseError constructor sets the prototype of `this` to FirebaseError.prototype, | ||
// we also have to do it in all subclasses to allow for correct `instanceof` checks. | ||
Object.setPrototypeOf(_this, FunctionsError.prototype); | ||
return _this; | ||
@@ -699,3 +708,3 @@ } | ||
var name = "@firebase/functions"; | ||
var version = "0.11.8-canary.beaa4dffb"; | ||
var version = "0.11.8-canary.cf988b0b1"; | ||
@@ -824,2 +833,3 @@ /** | ||
exports.FunctionsError = FunctionsError; | ||
exports.connectFunctionsEmulator = connectFunctionsEmulator; | ||
@@ -826,0 +836,0 @@ exports.getFunctions = getFunctions; |
@@ -19,2 +19,3 @@ /** | ||
import { Functions, HttpsCallableOptions, HttpsCallable } from './public-types'; | ||
export { FunctionsError } from './error'; | ||
export * from './public-types'; | ||
@@ -21,0 +22,0 @@ /** |
@@ -21,10 +21,16 @@ /** | ||
/** | ||
* An explicit error that can be thrown from a handler to send an error to the | ||
* client that called the function. | ||
* An error returned by the Firebase Functions client SDK. | ||
* | ||
* See {@link FunctionsErrorCode} for full documentation of codes. | ||
* | ||
* @public | ||
*/ | ||
export declare class FunctionsError extends FirebaseError { | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
/** | ||
* Constructs a new instance of the `FunctionsError` class. | ||
*/ | ||
constructor( | ||
@@ -37,3 +43,3 @@ /** | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
* Additional details to be converted to JSON and included in the error response. | ||
*/ | ||
@@ -40,0 +46,0 @@ details?: unknown); |
@@ -18,3 +18,2 @@ /** | ||
import { FirebaseApp } from '@firebase/app'; | ||
import { FirebaseError } from '@firebase/util'; | ||
/** | ||
@@ -120,17 +119,2 @@ * An `HttpsCallableResult` wraps a single result from a function call. | ||
export declare type FunctionsErrorCode = `functions/${FunctionsErrorCodeCore}`; | ||
/** | ||
* An error returned by the Firebase Functions client SDK. | ||
* @public | ||
*/ | ||
export interface FunctionsError extends FirebaseError { | ||
/** | ||
* A standard error code that will be returned to the client. This also | ||
* determines the HTTP status code of the response, as defined in code.proto. | ||
*/ | ||
readonly code: FunctionsErrorCode; | ||
/** | ||
* Extra data to be converted to JSON and included in the error response. | ||
*/ | ||
readonly details?: unknown; | ||
} | ||
declare module '@firebase/component' { | ||
@@ -137,0 +121,0 @@ interface NameServiceMapping { |
{ | ||
"name": "@firebase/functions", | ||
"version": "0.11.8-canary.beaa4dffb", | ||
"version": "0.11.8-canary.cf988b0b1", | ||
"description": "", | ||
@@ -51,6 +51,6 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"peerDependencies": { | ||
"@firebase/app": "0.10.11-canary.beaa4dffb" | ||
"@firebase/app": "0.10.13-canary.cf988b0b1" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app": "0.10.11-canary.beaa4dffb", | ||
"@firebase/app": "0.10.13-canary.cf988b0b1", | ||
"rollup": "2.79.1", | ||
@@ -71,7 +71,7 @@ "@rollup/plugin-json": "4.1.0", | ||
"dependencies": { | ||
"@firebase/component": "0.6.9-canary.beaa4dffb", | ||
"@firebase/messaging-interop-types": "0.2.2-canary.beaa4dffb", | ||
"@firebase/auth-interop-types": "0.2.3-canary.beaa4dffb", | ||
"@firebase/app-check-interop-types": "0.3.2-canary.beaa4dffb", | ||
"@firebase/util": "1.10.0-canary.beaa4dffb", | ||
"@firebase/component": "0.6.9-canary.cf988b0b1", | ||
"@firebase/messaging-interop-types": "0.2.2-canary.cf988b0b1", | ||
"@firebase/auth-interop-types": "0.2.3-canary.cf988b0b1", | ||
"@firebase/app-check-interop-types": "0.3.2-canary.cf988b0b1", | ||
"@firebase/util": "1.10.0-canary.cf988b0b1", | ||
"undici": "6.19.7", | ||
@@ -78,0 +78,0 @@ "tslib": "^2.1.0" |
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
436034
5008
+ Added@firebase/app@0.10.13-canary.cf988b0b1(transitive)
+ Added@firebase/app-check-interop-types@0.3.2-canary.cf988b0b1(transitive)
+ Added@firebase/auth-interop-types@0.2.3-canary.cf988b0b1(transitive)
+ Added@firebase/component@0.6.9-canary.cf988b0b1(transitive)
+ Added@firebase/logger@0.4.2-canary.cf988b0b1(transitive)
+ Added@firebase/messaging-interop-types@0.2.2-canary.cf988b0b1(transitive)
+ Added@firebase/util@1.10.0-canary.cf988b0b1(transitive)
- Removed@firebase/app@0.10.11-canary.beaa4dffb(transitive)
- Removed@firebase/app-check-interop-types@0.3.2-canary.beaa4dffb(transitive)
- Removed@firebase/auth-interop-types@0.2.3-canary.beaa4dffb(transitive)
- Removed@firebase/component@0.6.9-canary.beaa4dffb(transitive)
- Removed@firebase/logger@0.4.2-canary.beaa4dffb(transitive)
- Removed@firebase/messaging-interop-types@0.2.2-canary.beaa4dffb(transitive)
- Removed@firebase/util@1.10.0-canary.beaa4dffb(transitive)
Updated@firebase/app-check-interop-types@0.3.2-canary.cf988b0b1
Updated@firebase/messaging-interop-types@0.2.2-canary.cf988b0b1