@dereekb/firebase-server 9.20.7 → 9.20.9
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 +8 -0
- package/mailgun/package.json +9 -9
- package/package.json +7 -7
- package/src/lib/nest/app.d.ts +12 -1
- package/src/lib/nest/app.js +8 -2
- package/src/lib/nest/app.js.map +1 -1
- package/test/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.20.9](https://github.com/dereekb/dbx-components/compare/v9.20.8-dev...v9.20.9) (2023-01-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.20.8](https://github.com/dereekb/dbx-components/compare/v9.20.7-dev...v9.20.8) (2022-12-31)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [9.20.7](https://github.com/dereekb/dbx-components/compare/v9.20.6-dev...v9.20.7) (2022-12-31)
|
|
6
14
|
|
|
7
15
|
|
package/mailgun/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.9",
|
|
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.9",
|
|
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.9",
|
|
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.9",
|
|
20
20
|
"@nestjs/config": "^2.0.1",
|
|
21
|
-
"@dereekb/firebase-server": "9.20.
|
|
21
|
+
"@dereekb/firebase-server": "9.20.9",
|
|
22
22
|
"jsonwebtoken": "^9.0.0",
|
|
23
|
-
"@dereekb/firebase": "9.20.
|
|
23
|
+
"@dereekb/firebase": "9.20.9",
|
|
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.9",
|
|
28
28
|
"ms": "^3.0.0-canary.1",
|
|
29
|
-
"@dereekb/model": "9.20.
|
|
30
|
-
"@dereekb/date": "9.20.
|
|
29
|
+
"@dereekb/model": "9.20.9",
|
|
30
|
+
"@dereekb/date": "9.20.9",
|
|
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.20.
|
|
3
|
+
"version": "9.20.9",
|
|
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.9",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.20.
|
|
12
|
+
"@dereekb/util": "9.20.9",
|
|
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.9",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.20.
|
|
22
|
-
"@dereekb/date": "9.20.
|
|
21
|
+
"@dereekb/model": "9.20.9",
|
|
22
|
+
"@dereekb/date": "9.20.9",
|
|
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.20.
|
|
33
|
+
"@dereekb/nestjs": "9.20.9",
|
|
34
34
|
"@nestjs/config": "^2.0.1",
|
|
35
35
|
"tslib": "^2.0.0"
|
|
36
36
|
},
|
package/src/lib/nest/app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClassType, Getter } from '@dereekb/util';
|
|
2
|
-
import { INestApplicationContext, NestApplicationOptions, Provider } from '@nestjs/common';
|
|
2
|
+
import { INestApplication, INestApplicationContext, NestApplicationOptions, Provider } from '@nestjs/common';
|
|
3
3
|
import * as express from 'express';
|
|
4
4
|
import * as admin from 'firebase-admin';
|
|
5
5
|
import { StorageBucketId } from '@dereekb/firebase';
|
|
@@ -29,6 +29,7 @@ export interface NestServerInstance<T> {
|
|
|
29
29
|
}
|
|
30
30
|
export declare class FirebaseNestServerRootModule {
|
|
31
31
|
}
|
|
32
|
+
export declare type ConfigureNestServerInstanceFunction = (nestApp: INestApplication) => INestApplication | void;
|
|
32
33
|
export interface NestServerInstanceConfig<T> {
|
|
33
34
|
/**
|
|
34
35
|
* Module to instantiate.
|
|
@@ -62,6 +63,16 @@ export interface NestServerInstanceConfig<T> {
|
|
|
62
63
|
* Additional nest application options.
|
|
63
64
|
*/
|
|
64
65
|
readonly applicationOptions?: NestApplicationOptions;
|
|
66
|
+
/**
|
|
67
|
+
* Global routing prefix.
|
|
68
|
+
*
|
|
69
|
+
* Example: '/api'
|
|
70
|
+
*/
|
|
71
|
+
readonly globalApiRoutePrefix?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional configuration function
|
|
74
|
+
*/
|
|
75
|
+
readonly configureNestServerInstance?: ConfigureNestServerInstanceFunction;
|
|
65
76
|
}
|
|
66
77
|
export interface NestServerEnvironmentConfig {
|
|
67
78
|
environment: ServerEnvironmentConfig;
|
package/src/lib/nest/app.js
CHANGED
|
@@ -16,7 +16,7 @@ class FirebaseNestServerRootModule {
|
|
|
16
16
|
}
|
|
17
17
|
exports.FirebaseNestServerRootModule = FirebaseNestServerRootModule;
|
|
18
18
|
function nestServerInstance(config) {
|
|
19
|
-
const { moduleClass, providers: additionalProviders, defaultStorageBucket: inputDefaultStorageBucket, forceStorageBucket } = config;
|
|
19
|
+
const { moduleClass, providers: additionalProviders, defaultStorageBucket: inputDefaultStorageBucket, forceStorageBucket, globalApiRoutePrefix, configureNestServerInstance } = config;
|
|
20
20
|
const serversCache = new Map();
|
|
21
21
|
const initNestServer = (firebaseApp, env) => {
|
|
22
22
|
const appName = firebaseApp.name;
|
|
@@ -64,7 +64,13 @@ function nestServerInstance(config) {
|
|
|
64
64
|
exports: providers,
|
|
65
65
|
global: true
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
let nestApp = yield core_1.NestFactory.create(providersModule, new platform_express_1.ExpressAdapter(expressInstance), options);
|
|
68
|
+
if (globalApiRoutePrefix) {
|
|
69
|
+
nestApp = nestApp.setGlobalPrefix(globalApiRoutePrefix);
|
|
70
|
+
}
|
|
71
|
+
if (configureNestServerInstance) {
|
|
72
|
+
nestApp = configureNestServerInstance(nestApp) || nestApp;
|
|
73
|
+
}
|
|
68
74
|
return nestApp.init();
|
|
69
75
|
});
|
|
70
76
|
const nest = createNestServer(server).catch((err) => {
|
package/src/lib/nest/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../../../packages/firebase-server/src/lib/nest/app.ts"],"names":[],"mappings":";;;;AAAA,wCAAoG;AAEpG,uCAA2C;AAC3C,+DAA0D;AAC1D,mCAAmC;AACnC,gEAA4E;AAE5E,6CAAmH;AAEnH,6DAA6F;AAC7F,oDAA8D;AAC9D,+BAAwD;AACxD,4CAA4G;AA4B5G,MAAa,4BAA4B;CAAG;AAA5C,oEAA4C;
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../../../packages/firebase-server/src/lib/nest/app.ts"],"names":[],"mappings":";;;;AAAA,wCAAoG;AAEpG,uCAA2C;AAC3C,+DAA0D;AAC1D,mCAAmC;AACnC,gEAA4E;AAE5E,6CAAmH;AAEnH,6DAA6F;AAC7F,oDAA8D;AAC9D,+BAAwD;AACxD,4CAA4G;AA4B5G,MAAa,4BAA4B;CAAG;AAA5C,oEAA4C;AAqD5C,SAAgB,kBAAkB,CAAI,MAAmC;IACvE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,GAAG,MAAM,CAAC;IACvL,MAAM,YAAY,GAAG,IAAI,GAAG,EAAsB,CAAC;IAEnD,MAAM,cAAc,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C;IAEF,MAAM,gBAAgB,GAAG,CAAO,WAA0B,EAAoB,EAAE;QAC9E,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;QACjC,MAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,OAAyB,CAAC;QAE9B,IAAI,UAAU,EAAE;YACd,OAAO,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACrC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAC7B,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;YACpC,CAAC,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAClC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,WAAW;QACX,cAAc;QACd,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAlHD,gDAkHC"}
|
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.9",
|
|
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.9",
|
|
10
10
|
"rxjs": "^7.5.0",
|
|
11
11
|
"firebase": "^9.9.2",
|
|
12
|
-
"@dereekb/util": "9.20.
|
|
12
|
+
"@dereekb/util": "9.20.9",
|
|
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.9",
|
|
20
20
|
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.20.
|
|
22
|
-
"@dereekb/date": "9.20.
|
|
21
|
+
"@dereekb/model": "9.20.9",
|
|
22
|
+
"@dereekb/date": "9.20.9",
|
|
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.
|
|
27
|
+
"@dereekb/util/test": "9.20.9",
|
|
28
28
|
"firebase-admin": "^11.4.1",
|
|
29
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.9",
|
|
34
|
+
"@dereekb/firebase-server": "9.20.9",
|
|
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.9",
|
|
38
38
|
"@nestjs/config": "^2.0.1",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
}
|