@dereekb/firebase-server 9.14.1 → 9.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/mailgun/package.json +9 -9
- package/package.json +7 -7
- package/src/lib/auth/auth.service.d.ts +8 -21
- package/src/lib/auth/auth.service.js.map +1 -1
- package/src/lib/nest/function/context.d.ts +13 -10
- package/src/lib/nest/function/context.js +18 -11
- package/src/lib/nest/function/context.js.map +1 -1
- package/test/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.14.2](https://github.com/dereekb/dbx-components/compare/v9.14.1-dev...v9.14.2) (2022-11-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [9.14.1](https://github.com/dereekb/dbx-components/compare/v9.14.0-dev...v9.14.1) (2022-11-09)
|
|
6
10
|
|
|
7
11
|
|
package/mailgun/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "9.14.
|
|
3
|
+
"version": "9.14.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/nestjs/mailgun": "9.14.
|
|
9
|
+
"@dereekb/nestjs/mailgun": "9.14.2",
|
|
10
10
|
"@nestjs/common": "^9.0.0",
|
|
11
11
|
"mailgun.js": "^8.0.0",
|
|
12
12
|
"form-data": "4.0.0",
|
|
13
|
-
"@dereekb/util": "9.14.
|
|
13
|
+
"@dereekb/util": "9.14.2",
|
|
14
14
|
"lodash.isequal": "^4.5.0",
|
|
15
15
|
"make-error": "^1.3.0",
|
|
16
16
|
"class-validator": "^0.13.2",
|
|
17
17
|
"ts-essentials": "^9.1.2",
|
|
18
18
|
"extra-set": "^2.2.11",
|
|
19
|
-
"@dereekb/nestjs": "9.14.
|
|
19
|
+
"@dereekb/nestjs": "9.14.2",
|
|
20
20
|
"@nestjs/config": "^2.0.1",
|
|
21
|
-
"@dereekb/firebase-server": "9.14.
|
|
21
|
+
"@dereekb/firebase-server": "9.14.2",
|
|
22
22
|
"jsonwebtoken": "^8.0.0",
|
|
23
|
-
"@dereekb/firebase": "9.14.
|
|
23
|
+
"@dereekb/firebase": "9.14.2",
|
|
24
24
|
"rxjs": "^7.5.0",
|
|
25
25
|
"firebase": "^9.9.2",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
|
-
"@dereekb/rxjs": "9.14.
|
|
27
|
+
"@dereekb/rxjs": "9.14.2",
|
|
28
28
|
"ms": "^3.0.0-canary.1",
|
|
29
|
-
"@dereekb/model": "9.14.
|
|
30
|
-
"@dereekb/date": "9.14.
|
|
29
|
+
"@dereekb/model": "9.14.2",
|
|
30
|
+
"@dereekb/date": "9.14.2",
|
|
31
31
|
"date-fns": "^2.29.0",
|
|
32
32
|
"date-fns-tz": "^1.3.0",
|
|
33
33
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server",
|
|
3
|
-
"version": "9.14.
|
|
3
|
+
"version": "9.14.2",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"firebase-functions-test": "2.0.2"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"jsonwebtoken": "^8.0.0",
|
|
9
|
-
"@dereekb/firebase": "9.14.
|
|
9
|
+
"@dereekb/firebase": "9.14.2",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.14.
|
|
12
|
+
"@dereekb/util": "9.14.2",
|
|
13
13
|
"lodash.isequal": "^4.5.0",
|
|
14
14
|
"make-error": "^1.3.0",
|
|
15
15
|
"class-validator": "^0.13.2",
|
|
16
16
|
"ts-essentials": "^9.1.2",
|
|
17
17
|
"extra-set": "^2.2.11",
|
|
18
18
|
"class-transformer": "^0.5.1",
|
|
19
|
-
"@dereekb/rxjs": "9.14.
|
|
19
|
+
"@dereekb/rxjs": "9.14.2",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.14.
|
|
22
|
-
"@dereekb/date": "9.14.
|
|
21
|
+
"@dereekb/model": "9.14.2",
|
|
22
|
+
"@dereekb/date": "9.14.2",
|
|
23
23
|
"date-fns": "^2.29.0",
|
|
24
24
|
"date-fns-tz": "^1.3.0",
|
|
25
25
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@nestjs/common": "^9.0.0",
|
|
31
31
|
"@nestjs/core": "^9.0.0",
|
|
32
32
|
"@nestjs/platform-express": "^9.0.0",
|
|
33
|
-
"@dereekb/nestjs": "9.14.
|
|
33
|
+
"@dereekb/nestjs": "9.14.2",
|
|
34
34
|
"@nestjs/config": "^2.0.1",
|
|
35
35
|
"tslib": "^2.0.0"
|
|
36
36
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as functions from 'firebase-functions';
|
|
2
2
|
import * as admin from 'firebase-admin';
|
|
3
|
-
import { FirebaseAuthContextInfo, FirebaseAuthDetails, FirebaseAuthUserId } from '@dereekb/firebase';
|
|
4
|
-
import {
|
|
3
|
+
import { FirebaseAuthContextInfo, FirebaseAuthDetails, FirebaseAuthUserId, FirebaseAuthNewUserClaimsData, FirebaseAuthSetupPassword } from '@dereekb/firebase';
|
|
4
|
+
import { Milliseconds, AuthClaims, AuthRoleSet, ArrayOrValue, AuthRole, AuthClaimsUpdate, AuthClaimsObject, Maybe, EmailAddress, E164PhoneNumber } from '@dereekb/util';
|
|
5
5
|
import { CallableContextWithAuthData } from '../function/context';
|
|
6
6
|
import { AuthDataRef } from './auth.context';
|
|
7
7
|
export interface FirebaseServerAuthUserIdentifierContext {
|
|
@@ -140,21 +140,7 @@ export declare abstract class AbstractFirebaseServerAuthContext<C extends Fireba
|
|
|
140
140
|
}
|
|
141
141
|
export declare const FIREBASE_SERVER_AUTH_CLAIMS_SETUP_PASSWORD_KEY = "setupPassword";
|
|
142
142
|
export declare const FIREBASE_SERVER_AUTH_CLAIMS_SETUP_LAST_COM_DATE_KEY = "setupCommunicationAt";
|
|
143
|
-
|
|
144
|
-
* Password used for completing setup.
|
|
145
|
-
*/
|
|
146
|
-
export declare type FirebaseServerAuthSetupPassword = PasswordString;
|
|
147
|
-
export interface FirebaseServerAuthNewUserClaimsData {
|
|
148
|
-
/**
|
|
149
|
-
* Setup password time
|
|
150
|
-
*/
|
|
151
|
-
readonly setupPassword: FirebaseServerAuthSetupPassword;
|
|
152
|
-
/**
|
|
153
|
-
* Last setup communication time.
|
|
154
|
-
*/
|
|
155
|
-
readonly setupCommunicationAt: ISO8601DateString;
|
|
156
|
-
}
|
|
157
|
-
export interface FirebaseServerAuthNewUserClaims extends FirebaseServerAuthNewUserClaimsData, AuthClaimsObject {
|
|
143
|
+
export interface FirebaseServerAuthNewUserClaims extends FirebaseAuthNewUserClaimsData, AuthClaimsObject {
|
|
158
144
|
}
|
|
159
145
|
export interface FirebaseServerAuthInitializeNewUser<D = unknown> {
|
|
160
146
|
/**
|
|
@@ -178,7 +164,7 @@ export interface FirebaseServerAuthInitializeNewUser<D = unknown> {
|
|
|
178
164
|
*
|
|
179
165
|
* This is a setup password and should not be the user's permenant/final password.
|
|
180
166
|
*/
|
|
181
|
-
readonly setupPassword?:
|
|
167
|
+
readonly setupPassword?: FirebaseAuthSetupPassword;
|
|
182
168
|
/**
|
|
183
169
|
* Whether or not to send a setup email. Is true by default.
|
|
184
170
|
*/
|
|
@@ -194,7 +180,7 @@ export interface FirebaseServerAuthInitializeNewUser<D = unknown> {
|
|
|
194
180
|
}
|
|
195
181
|
export interface FirebaseServerAuthCreateNewUserResult {
|
|
196
182
|
readonly user: admin.auth.UserRecord;
|
|
197
|
-
readonly password:
|
|
183
|
+
readonly password: FirebaseAuthSetupPassword;
|
|
198
184
|
}
|
|
199
185
|
export interface FirebaseServerAuthNewUserSendSetupDetailsConfig<D = unknown> {
|
|
200
186
|
/**
|
|
@@ -208,7 +194,7 @@ export interface FirebaseServerAuthNewUserSendSetupDetailsConfig<D = unknown> {
|
|
|
208
194
|
}
|
|
209
195
|
export interface FirebaseServerAuthNewUserSetupDetails<U extends FirebaseServerAuthUserContext = FirebaseServerAuthUserContext, D = unknown> extends FirebaseServerAuthNewUserSendSetupDetailsConfig<D> {
|
|
210
196
|
readonly userContext: U;
|
|
211
|
-
readonly claims:
|
|
197
|
+
readonly claims: FirebaseAuthNewUserClaimsData;
|
|
212
198
|
}
|
|
213
199
|
export interface FirebaseServerNewUserService<D = unknown, U extends FirebaseServerAuthUserContext = FirebaseServerAuthUserContext> {
|
|
214
200
|
initializeNewUser(input: FirebaseServerAuthInitializeNewUser<D>): Promise<admin.auth.UserRecord>;
|
|
@@ -257,7 +243,7 @@ export declare abstract class AbstractFirebaseServerNewUserService<U extends Fir
|
|
|
257
243
|
*/
|
|
258
244
|
markUserSetupAsComplete(uid: FirebaseAuthUserId): Promise<boolean>;
|
|
259
245
|
protected createNewUser(input: FirebaseServerAuthInitializeNewUser<D>): Promise<FirebaseServerAuthCreateNewUserResult>;
|
|
260
|
-
protected generateRandomSetupPassword():
|
|
246
|
+
protected generateRandomSetupPassword(): FirebaseAuthSetupPassword;
|
|
261
247
|
protected abstract sendSetupContentToUser(user: FirebaseServerAuthNewUserSetupDetails<U, D>): Promise<void>;
|
|
262
248
|
protected updateClaimsToClearUser(userContext: U): Promise<void>;
|
|
263
249
|
}
|
|
@@ -364,3 +350,4 @@ export declare abstract class AbstractFirebaseServerAuthService<U extends Fireba
|
|
|
364
350
|
authContextInfo(context: AuthDataRef): Maybe<FirebaseAuthContextInfo>;
|
|
365
351
|
authDetailsForRecord(record: admin.auth.UserRecord): FirebaseAuthDetails;
|
|
366
352
|
}
|
|
353
|
+
export { FirebaseAuthNewUserClaimsData as FirebaseServerAuthNewUserClaimsData, FirebaseAuthSetupPassword as FirebaseServerAuthSetupPassword };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../../../packages/firebase-server/src/lib/auth/auth.service.ts"],"names":[],"mappings":";;;;AAGA,wCAAuY;AACvY,iDAA+F;AAC/F,iDAAkF;AAClF,wCAA2E;AAC3E,2CAAqD;AAgFrD,MAAsB,qCAAqC;IAGzD,YAAqB,OAAU,EAAW,GAAuB;QAA5C,YAAO,GAAP,OAAO,CAAG;QAAW,QAAG,GAAH,GAAG,CAAoB;QAFhD,gBAAW,GAAG,IAAA,mBAAY,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnB,CAAC;IAE/D,MAAM;;YACV,OAAO,IAAA,kCAAsB,EAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,CAAC;KAAA;IAED,UAAU;QACR,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;IACvF,CAAC;IAEK,SAAS;;YACb,MAAM,MAAM,GAAG,MA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AAY,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACxF,iBAAY,GAAG,IAAA,mBAAY,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnB,CAAC;IAElF,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;IAC7B,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;IACjC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAA8B,CAAC;IAC1D,CAAC;IAED,sCAAsC;IACtC,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;IAC9B,CAAC;CACF;AApCD,8EAoCC;AAED,mCAAmC;AACtB,QAAA,8CAA8C,GAAG,eAAe,CAAC;AACjE,QAAA,mDAAmD,GAAG,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../../../packages/firebase-server/src/lib/auth/auth.service.ts"],"names":[],"mappings":";;;;AAGA,wCAAuY;AACvY,iDAA+F;AAC/F,iDAAkF;AAClF,wCAA2E;AAC3E,2CAAqD;AAgFrD,MAAsB,qCAAqC;IAGzD,YAAqB,OAAU,EAAW,GAAuB;QAA5C,YAAO,GAAP,OAAO,CAAG;QAAW,QAAG,GAAH,GAA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M,CAAC,KAAK;YACnB,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAC;IACJ,CAAC;CACF;AAnED,8EAmEC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { TransformAndValidateFunctionResultFactory, TransformAndValidateObjectFactory } from '@dereekb/model';
|
|
2
|
-
/**
|
|
3
|
-
* Context used for transforming content.
|
|
4
|
-
*/
|
|
5
|
-
export interface FirebaseServerActionsTransformContext {
|
|
6
|
-
readonly firebaseServerActionTransformFactory: TransformAndValidateObjectFactory;
|
|
7
|
-
readonly firebaseServerActionTransformFunctionFactory: TransformAndValidateFunctionResultFactory;
|
|
8
|
-
}
|
|
9
|
-
export declare function firebaseServerActionsTransformContext(): FirebaseServerActionsTransformContext;
|
|
10
|
-
export declare function firebaseServerActionsTransformFactory(): TransformAndValidateObjectFactory;
|
|
11
2
|
/**
|
|
12
3
|
* Context used for building FirebaseServerActions. It contains references to reusable factories.
|
|
13
4
|
*/
|
|
@@ -16,4 +7,16 @@ export declare abstract class AbstractFirebaseServerActionsContext implements Fi
|
|
|
16
7
|
abstract readonly firebaseServerActionTransformFactory: TransformAndValidateObjectFactory;
|
|
17
8
|
abstract readonly firebaseServerActionTransformFunctionFactory: TransformAndValidateFunctionResultFactory<unknown>;
|
|
18
9
|
}
|
|
19
|
-
export declare function firebaseServerActionsContext(): FirebaseServerActionsContext;
|
|
10
|
+
export declare function firebaseServerActionsContext(logError?: FirebaseServerActionsTransformFactoryLogErrorFunctionInput): FirebaseServerActionsContext;
|
|
11
|
+
export declare type FirebaseServerActionsTransformFactoryLogErrorFunction = (details: object) => void;
|
|
12
|
+
export declare type FirebaseServerActionsTransformFactoryLogErrorFunctionInput = FirebaseServerActionsTransformFactoryLogErrorFunction | boolean;
|
|
13
|
+
export declare const defaultFirebaseServerActionsTransformFactoryLogErrorFunction: FirebaseServerActionsTransformFactoryLogErrorFunction;
|
|
14
|
+
/**
|
|
15
|
+
* Context used for transforming content.
|
|
16
|
+
*/
|
|
17
|
+
export interface FirebaseServerActionsTransformContext {
|
|
18
|
+
readonly firebaseServerActionTransformFactory: TransformAndValidateObjectFactory;
|
|
19
|
+
readonly firebaseServerActionTransformFunctionFactory: TransformAndValidateFunctionResultFactory;
|
|
20
|
+
}
|
|
21
|
+
export declare function firebaseServerActionsTransformContext(logError?: FirebaseServerActionsTransformFactoryLogErrorFunctionInput): FirebaseServerActionsTransformContext;
|
|
22
|
+
export declare function firebaseServerActionsTransformFactory(logError?: FirebaseServerActionsTransformFactoryLogErrorFunctionInput): TransformAndValidateObjectFactory;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.firebaseServerActionsTransformFactory = exports.firebaseServerActionsTransformContext = exports.defaultFirebaseServerActionsTransformFactoryLogErrorFunction = exports.firebaseServerActionsContext = exports.AbstractFirebaseServerActionsContext = void 0;
|
|
4
4
|
const model_1 = require("@dereekb/model");
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
|
6
6
|
const firebase_functions_1 = require("firebase-functions");
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const util_1 = require("@dereekb/util");
|
|
8
|
+
class AbstractFirebaseServerActionsContext {
|
|
9
|
+
}
|
|
10
|
+
exports.AbstractFirebaseServerActionsContext = AbstractFirebaseServerActionsContext;
|
|
11
|
+
function firebaseServerActionsContext(logError) {
|
|
12
|
+
return Object.assign({}, firebaseServerActionsTransformContext(logError));
|
|
13
|
+
}
|
|
14
|
+
exports.firebaseServerActionsContext = firebaseServerActionsContext;
|
|
15
|
+
const defaultFirebaseServerActionsTransformFactoryLogErrorFunction = (details) => {
|
|
16
|
+
console.log('firebaseServerActionsTransformFactory() encountered validation error: ', details);
|
|
17
|
+
};
|
|
18
|
+
exports.defaultFirebaseServerActionsTransformFactoryLogErrorFunction = defaultFirebaseServerActionsTransformFactoryLogErrorFunction;
|
|
19
|
+
function firebaseServerActionsTransformContext(logError) {
|
|
20
|
+
const firebaseServerActionTransformFactory = firebaseServerActionsTransformFactory(logError);
|
|
9
21
|
const firebaseServerActionTransformFunctionFactory = (0, model_1.toTransformAndValidateFunctionResultFactory)(firebaseServerActionTransformFactory);
|
|
10
22
|
return {
|
|
11
23
|
firebaseServerActionTransformFactory,
|
|
@@ -13,22 +25,17 @@ function firebaseServerActionsTransformContext() {
|
|
|
13
25
|
};
|
|
14
26
|
}
|
|
15
27
|
exports.firebaseServerActionsTransformContext = firebaseServerActionsTransformContext;
|
|
16
|
-
function firebaseServerActionsTransformFactory() {
|
|
28
|
+
function firebaseServerActionsTransformFactory(logError = false) {
|
|
17
29
|
const nestValidationExceptionFactory = new common_1.ValidationPipe().createExceptionFactory();
|
|
30
|
+
const logErrorFunction = logError !== false ? (typeof logError === 'function' ? logError : exports.defaultFirebaseServerActionsTransformFactoryLogErrorFunction) : util_1.mapIdentityFunction;
|
|
18
31
|
return (0, model_1.transformAndValidateObjectFactory)({
|
|
19
32
|
handleValidationError: (validationError) => {
|
|
20
33
|
const nestError = nestValidationExceptionFactory(validationError);
|
|
21
34
|
const details = nestError.getResponse();
|
|
35
|
+
logErrorFunction(details);
|
|
22
36
|
throw new firebase_functions_1.https.HttpsError('invalid-argument', 'Parameters validation check failed.', details);
|
|
23
37
|
}
|
|
24
38
|
});
|
|
25
39
|
}
|
|
26
40
|
exports.firebaseServerActionsTransformFactory = firebaseServerActionsTransformFactory;
|
|
27
|
-
class AbstractFirebaseServerActionsContext {
|
|
28
|
-
}
|
|
29
|
-
exports.AbstractFirebaseServerActionsContext = AbstractFirebaseServerActionsContext;
|
|
30
|
-
function firebaseServerActionsContext() {
|
|
31
|
-
return Object.assign({}, firebaseServerActionsTransformContext());
|
|
32
|
-
}
|
|
33
|
-
exports.firebaseServerActionsContext = firebaseServerActionsContext;
|
|
34
41
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/src/lib/nest/function/context.ts"],"names":[],"mappings":";;;AACA,0CAA8L;AAC9L,2CAA+D;AAC/D,2DAA2C;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/src/lib/nest/function/context.ts"],"names":[],"mappings":";;;AACA,0CAA8L;AAC9L,2CAA+D;AAC/D,2DAA2C;AAC3C,wCAAoD;AAQpD,MAAsB,oCAAoC;CAGzD;AAHD,oFAGC;AAED,SAAgB,4BAA4B,CAAC,QAAqE;IAChH,yBACK,qCAAqC,CAAC,QAAQ,CAAC,EAClD;AACJ,CAAC;AAJD,oEAIC;AAMM,MAAM,4DAA4D,GAA0D,CAAC,OAAO,EAAE,EAAE;IAC7I,OAAO,CAAC,GAAG,CAAC,wEAAwE,EAAE,OAAO,CAAC,CAAC;AACjG,CAAC,CAAC;AAFW,QAAA,4DAA4D,gEAEvE;AAUF,SAAgB,qCAAqC,CAAC,QAAqE;IACzH,MAAM,oCAAoC,GAAG,qCAAqC,CAAC,QAAQ,CAAC,CAAC;IAC7F,MAAM,4CAA4C,GAAG,IAAA,mDAA2C,EAAC,oCAAoC,CAAC,CAAC;IAEvI,OAAO;QACL,oCAAoC;QACpC,4CAA4C;KAC7C,CAAC;AACJ,CAAC;AARD,sFAQC;AAED,SAAgB,qCAAqC,CAAC,WAAuE,KAAK;IAChI,MAAM,8BAA8B,GAAG,IAAI,uBAAc,EAAE,CAAC,sBAAsB,EAAE,CAAC;IACrF,MAAM,gBAAgB,GAAG,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,oEAA4D,CAAC,CAAC,CAAC,CAAC,0BAAmB,CAAC;IAE/K,OAAO,IAAA,yCAAiC,EAAC;QACvC,qBAAqB,EAAE,CAAC,eAAkC,EAAE,EAAE;YAC5D,MAAM,SAAS,GAAG,8BAA8B,CAAC,eAAe,CAAC,CAAC;YAClE,MAAM,OAAO,GAAI,SAA2B,CAAC,WAAW,EAAE,CAAC;YAC3D,gBAAgB,CAAC,OAAiB,CAAC,CAAC;YACpC,MAAM,IAAI,0BAAK,CAAC,UAAU,CAAC,kBAAkB,EAAE,qCAAqC,EAAE,OAAO,CAAC,CAAC;QACjG,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAZD,sFAYC"}
|
package/test/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/test",
|
|
3
|
-
"version": "9.14.
|
|
3
|
+
"version": "9.14.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/firebase": "9.14.
|
|
9
|
+
"@dereekb/firebase": "9.14.2",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.14.
|
|
12
|
+
"@dereekb/util": "9.14.2",
|
|
13
13
|
"lodash.isequal": "^4.5.0",
|
|
14
14
|
"make-error": "^1.3.0",
|
|
15
15
|
"class-validator": "^0.13.2",
|
|
16
16
|
"ts-essentials": "^9.1.2",
|
|
17
17
|
"extra-set": "^2.2.11",
|
|
18
18
|
"class-transformer": "^0.5.1",
|
|
19
|
-
"@dereekb/rxjs": "9.14.
|
|
19
|
+
"@dereekb/rxjs": "9.14.2",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.14.
|
|
22
|
-
"@dereekb/date": "9.14.
|
|
21
|
+
"@dereekb/model": "9.14.2",
|
|
22
|
+
"@dereekb/date": "9.14.2",
|
|
23
23
|
"date-fns": "^2.29.0",
|
|
24
24
|
"date-fns-tz": "^1.3.0",
|
|
25
25
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
26
26
|
"@vvo/tzdb": "^6.0.0",
|
|
27
|
-
"@dereekb/util/test": "9.14.
|
|
27
|
+
"@dereekb/util/test": "9.14.2",
|
|
28
28
|
"firebase-admin": "^11.1.0",
|
|
29
29
|
"jsonwebtoken": "^8.0.0",
|
|
30
30
|
"firebase-functions": "^3.24.0",
|
|
31
31
|
"@nestjs/common": "^9.0.0",
|
|
32
32
|
"@google-cloud/firestore": "^6.3.0",
|
|
33
|
-
"@dereekb/firebase/test": "9.14.
|
|
34
|
-
"@dereekb/firebase-server": "9.14.
|
|
33
|
+
"@dereekb/firebase/test": "9.14.2",
|
|
34
|
+
"@dereekb/firebase-server": "9.14.2",
|
|
35
35
|
"@nestjs/core": "^9.0.0",
|
|
36
36
|
"@nestjs/platform-express": "^9.0.0",
|
|
37
|
-
"@dereekb/nestjs": "9.14.
|
|
37
|
+
"@dereekb/nestjs": "9.14.2",
|
|
38
38
|
"@nestjs/config": "^2.0.1",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
}
|