@dereekb/firebase-server 9.20.6 → 9.20.7
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 +11 -11
- package/package.json +8 -8
- package/src/lib/nest/function/v1/call.d.ts +2 -1
- package/src/lib/nest/function/v1/call.js +4 -2
- package/src/lib/nest/function/v1/call.js.map +1 -1
- package/src/lib/nest/function/v2/call.d.ts +2 -1
- package/src/lib/nest/function/v2/call.js +2 -2
- package/src/lib/nest/function/v2/call.js.map +1 -1
- package/test/package.json +12 -12
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.20.7](https://github.com/dereekb/dbx-components/compare/v9.20.6-dev...v9.20.7) (2022-12-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [9.20.6](https://github.com/dereekb/dbx-components/compare/v9.20.5-dev...v9.20.6) (2022-12-26)
|
|
6
10
|
|
|
7
11
|
|
package/mailgun/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/nestjs/mailgun": "9.20.
|
|
9
|
+
"@dereekb/nestjs/mailgun": "9.20.7",
|
|
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.20.
|
|
13
|
+
"@dereekb/util": "9.20.7",
|
|
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.20.
|
|
19
|
+
"@dereekb/nestjs": "9.20.7",
|
|
20
20
|
"@nestjs/config": "^2.0.1",
|
|
21
|
-
"@dereekb/firebase-server": "9.20.
|
|
22
|
-
"jsonwebtoken": "^
|
|
23
|
-
"@dereekb/firebase": "9.20.
|
|
21
|
+
"@dereekb/firebase-server": "9.20.7",
|
|
22
|
+
"jsonwebtoken": "^9.0.0",
|
|
23
|
+
"@dereekb/firebase": "9.20.7",
|
|
24
24
|
"rxjs": "^7.5.0",
|
|
25
25
|
"firebase": "^9.9.2",
|
|
26
26
|
"class-transformer": "^0.5.1",
|
|
27
|
-
"@dereekb/rxjs": "9.20.
|
|
27
|
+
"@dereekb/rxjs": "9.20.7",
|
|
28
28
|
"ms": "^3.0.0-canary.1",
|
|
29
|
-
"@dereekb/model": "9.20.
|
|
30
|
-
"@dereekb/date": "9.20.
|
|
29
|
+
"@dereekb/model": "9.20.7",
|
|
30
|
+
"@dereekb/date": "9.20.7",
|
|
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",
|
|
34
34
|
"@vvo/tzdb": "^6.0.0",
|
|
35
35
|
"firebase-functions": "^4.0.0",
|
|
36
|
-
"firebase-admin": "^11.4.
|
|
36
|
+
"firebase-admin": "^11.4.1",
|
|
37
37
|
"@google-cloud/firestore": "^6.3.0",
|
|
38
38
|
"@nestjs/core": "^9.0.0",
|
|
39
39
|
"@nestjs/platform-express": "^9.0.0",
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.7",
|
|
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.20.
|
|
9
|
+
"@dereekb/firebase": "9.20.7",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.20.
|
|
12
|
+
"@dereekb/util": "9.20.7",
|
|
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.20.
|
|
19
|
+
"@dereekb/rxjs": "9.20.7",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.20.
|
|
22
|
-
"@dereekb/date": "9.20.
|
|
21
|
+
"@dereekb/model": "9.20.7",
|
|
22
|
+
"@dereekb/date": "9.20.7",
|
|
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
27
|
"firebase-functions": "^4.0.0",
|
|
28
|
-
"firebase-admin": "^11.4.
|
|
28
|
+
"firebase-admin": "^11.4.1",
|
|
29
29
|
"@google-cloud/firestore": "^6.3.0",
|
|
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.20.
|
|
33
|
+
"@dereekb/nestjs": "9.20.7",
|
|
34
34
|
"@nestjs/config": "^2.0.1",
|
|
35
35
|
"tslib": "^2.0.0"
|
|
36
36
|
},
|
|
@@ -9,13 +9,14 @@ export declare type NestApplicationRunnableHttpFunctionFactory<I> = NestApplicat
|
|
|
9
9
|
* Factory function for generating a NestApplicationFunctionFactory for a HttpsFunctions/Runnable firebase function.
|
|
10
10
|
*/
|
|
11
11
|
export declare type OnCallWithNestApplicationFactory = <I = unknown, O = unknown>(fn: OnCallWithNestApplication<I, O>) => NestApplicationRunnableHttpFunctionFactory<I>;
|
|
12
|
+
export declare type OnCallWithNestApplicationFactoryConfigFunctionBuilderFunction = (builder: functions.FunctionBuilder) => functions.FunctionBuilder;
|
|
12
13
|
/**
|
|
13
14
|
* Creates a factory for generating OnCallWithNestApplication functions.
|
|
14
15
|
*
|
|
15
16
|
* @param nestAppPromiseGetter
|
|
16
17
|
* @returns
|
|
17
18
|
*/
|
|
18
|
-
export declare function onCallWithNestApplicationFactory(): OnCallWithNestApplicationFactory;
|
|
19
|
+
export declare function onCallWithNestApplicationFactory(builderFunction?: OnCallWithNestApplicationFactoryConfigFunctionBuilderFunction): OnCallWithNestApplicationFactory;
|
|
19
20
|
/**
|
|
20
21
|
* Factory function for generating HttpsFunctions/Runnable firebase function that returns the value from the input OnCallWithNestContext function.
|
|
21
22
|
*/
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.onCallWithNestContextFactory = exports.onCallWithNestApplicationFactory = exports.makeOnCallWithNestApplicationRequest = void 0;
|
|
4
4
|
const functions = require("firebase-functions");
|
|
5
5
|
const call_1 = require("../call");
|
|
6
|
+
const util_1 = require("@dereekb/util");
|
|
6
7
|
function makeOnCallWithNestApplicationRequest(nestApplication, data, context) {
|
|
7
8
|
return Object.assign(Object.assign({}, context), { nestApplication,
|
|
8
9
|
data });
|
|
@@ -14,9 +15,10 @@ exports.makeOnCallWithNestApplicationRequest = makeOnCallWithNestApplicationRequ
|
|
|
14
15
|
* @param nestAppPromiseGetter
|
|
15
16
|
* @returns
|
|
16
17
|
*/
|
|
17
|
-
function onCallWithNestApplicationFactory() {
|
|
18
|
+
function onCallWithNestApplicationFactory(builderFunction = (0, util_1.mapIdentityFunction)()) {
|
|
19
|
+
const functionsBuilder = builderFunction(functions.runWith({}));
|
|
18
20
|
return (fn) => {
|
|
19
|
-
return (nestAppPromiseGetter) =>
|
|
21
|
+
return (nestAppPromiseGetter) => functionsBuilder.https.onCall((data, context) => nestAppPromiseGetter().then((x) => fn(makeOnCallWithNestApplicationRequest(x, data, context))));
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
exports.onCallWithNestApplicationFactory = onCallWithNestApplicationFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase-server/src/lib/nest/function/v1/call.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAIhD,kCAAsI;
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase-server/src/lib/nest/function/v1/call.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAIhD,kCAAsI;AACtI,wCAAoD;AAEpD,SAAgB,oCAAoC,CAAI,eAAwC,EAAE,IAAO,EAAE,OAAwC;IACjJ,uCACK,OAAO,KACV,eAAe;QACf,IAAI,IACJ;AACJ,CAAC;AAND,oFAMC;AAYD;;;;;GAKG;AACH,SAAgB,gCAAgC,CAAC,kBAAiF,IAAA,0BAAmB,GAAE;IACrJ,MAAM,gBAAgB,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAChE,OAAO,CAAO,EAAmC,EAAE,EAAE;QACnD,OAAO,CAAC,oBAAkD,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAO,EAAE,OAAwC,EAAE,EAAE,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,oCAAoC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtP,CAAC,CAAC;AACJ,CAAC;AALD,4EAKC;AAOD;;;;;;GAMG;AACH,SAAgB,4BAA4B,CAAI,UAA4C,EAAE,eAAmC;IAC/H,OAAO,CAAO,EAAkC,EAAE,EAAE,CAAC,UAAU,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,IAAA,8BAAuB,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAC5I,CAAC;AAFD,oEAEC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { https } from 'firebase-functions/v2';
|
|
1
2
|
import { CallableHttpFunction } from '../../../function/type';
|
|
2
3
|
import { MakeNestContext, NestApplicationFunctionFactory } from '../../nest.provider';
|
|
3
4
|
import { OnCallWithNestApplication, OnCallWithNestContext } from '../call';
|
|
@@ -12,7 +13,7 @@ export declare type OnCallHandlerWithNestApplicationFactory = <I, O>(fn: OnCallW
|
|
|
12
13
|
* @param nestAppPromiseGetter
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
|
-
export declare function onCallHandlerWithNestApplicationFactory(): OnCallHandlerWithNestApplicationFactory;
|
|
16
|
+
export declare function onCallHandlerWithNestApplicationFactory(opts?: https.CallableOptions): OnCallHandlerWithNestApplicationFactory;
|
|
16
17
|
/**
|
|
17
18
|
* Factory function for generating HttpsFunctions/Runnable firebase function that returns the value from the input OnCallWithNestContext function.
|
|
18
19
|
*/
|
|
@@ -9,9 +9,9 @@ const call_1 = require("../call");
|
|
|
9
9
|
* @param nestAppPromiseGetter
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
|
-
function onCallHandlerWithNestApplicationFactory() {
|
|
12
|
+
function onCallHandlerWithNestApplicationFactory(opts = {}) {
|
|
13
13
|
return (fn) => {
|
|
14
|
-
return (nestAppPromiseGetter) => v2_1.https.onCall((request) => nestAppPromiseGetter().then((nestApplication) => fn(Object.assign(Object.assign({}, request), { nestApplication }))));
|
|
14
|
+
return (nestAppPromiseGetter) => v2_1.https.onCall(opts, (request) => nestAppPromiseGetter().then((nestApplication) => fn(Object.assign(Object.assign({}, request), { nestApplication }))));
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
exports.onCallHandlerWithNestApplicationFactory = onCallHandlerWithNestApplicationFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase-server/src/lib/nest/function/v2/call.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAG9C,kCAAoG;AAYpG;;;;;GAKG;AACH,SAAgB,uCAAuC;
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase-server/src/lib/nest/function/v2/call.ts"],"names":[],"mappings":";;;AACA,8CAA8C;AAG9C,kCAAoG;AAYpG;;;;;GAKG;AACH,SAAgB,uCAAuC,CAAC,OAA8B,EAAE;IACtF,OAAO,CAAO,EAAmC,EAAE,EAAE;QACnD,OAAO,CAAC,oBAAkD,EAAE,EAAE,CAC5D,UAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAA2B,EAAE,EAAE,CACjD,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CAC9C,EAAE,iCACG,OAAO,KACV,eAAe,IACf,CACH,CACF,CAAC;IACN,CAAC,CAAC;AACJ,CAAC;AAZD,0FAYC;AAMD;;;;;;GAMG;AACH,SAAgB,mCAAmC,CAAI,UAAmD,EAAE,eAAmC;IAC7I,OAAO,CAAO,EAAkC,EAAE,EAAE,CAAC,UAAU,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,IAAA,8BAAuB,EAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAC5I,CAAC;AAFD,kFAEC"}
|
package/test/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/test",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/firebase": "9.20.
|
|
9
|
+
"@dereekb/firebase": "9.20.7",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.20.
|
|
12
|
+
"@dereekb/util": "9.20.7",
|
|
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.20.
|
|
19
|
+
"@dereekb/rxjs": "9.20.7",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.20.
|
|
22
|
-
"@dereekb/date": "9.20.
|
|
21
|
+
"@dereekb/model": "9.20.7",
|
|
22
|
+
"@dereekb/date": "9.20.7",
|
|
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.20.
|
|
28
|
-
"firebase-admin": "^11.4.
|
|
29
|
-
"jsonwebtoken": "^
|
|
27
|
+
"@dereekb/util/test": "9.20.7",
|
|
28
|
+
"firebase-admin": "^11.4.1",
|
|
29
|
+
"jsonwebtoken": "^9.0.0",
|
|
30
30
|
"firebase-functions": "^4.0.0",
|
|
31
31
|
"@nestjs/common": "^9.0.0",
|
|
32
32
|
"@google-cloud/firestore": "^6.3.0",
|
|
33
|
-
"@dereekb/firebase/test": "9.20.
|
|
34
|
-
"@dereekb/firebase-server": "9.20.
|
|
33
|
+
"@dereekb/firebase/test": "9.20.7",
|
|
34
|
+
"@dereekb/firebase-server": "9.20.7",
|
|
35
35
|
"@nestjs/core": "^9.0.0",
|
|
36
36
|
"@nestjs/platform-express": "^9.0.0",
|
|
37
|
-
"@dereekb/nestjs": "9.20.
|
|
37
|
+
"@dereekb/nestjs": "9.20.7",
|
|
38
38
|
"@nestjs/config": "^2.0.1",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
}
|