@dereekb/firebase-server 9.11.4 → 9.11.6

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 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.11.6](https://github.com/dereekb/dbx-components/compare/v9.11.5-dev...v9.11.6) (2022-10-13)
6
+
7
+
8
+
9
+ ## [9.11.5](https://github.com/dereekb/dbx-components/compare/v9.11.4-dev...v9.11.5) (2022-10-13)
10
+
11
+
12
+
5
13
  ## [9.11.4](https://github.com/dereekb/dbx-components/compare/v9.11.3-dev...v9.11.4) (2022-10-10)
6
14
 
7
15
 
@@ -1,43 +1,42 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/mailgun",
3
- "version": "9.11.4",
3
+ "version": "9.11.6",
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.11.4",
9
+ "@dereekb/nestjs/mailgun": "9.11.6",
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.11.4",
13
+ "@dereekb/util": "9.11.6",
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.11.4",
19
+ "@dereekb/nestjs": "9.11.6",
20
20
  "@nestjs/config": "^2.0.1",
21
- "@dereekb/firebase-server": "9.11.4",
21
+ "@dereekb/firebase-server": "9.11.6",
22
22
  "jsonwebtoken": "^8.0.0",
23
- "@dereekb/firebase": "9.11.4",
23
+ "@dereekb/firebase": "9.11.6",
24
24
  "rxjs": "^7.5.0",
25
25
  "firebase": "^9.9.2",
26
26
  "class-transformer": "^0.5.1",
27
- "@dereekb/rxjs": "9.11.4",
27
+ "@dereekb/rxjs": "9.11.6",
28
28
  "ms": "^3.0.0-canary.1",
29
- "@dereekb/model": "9.11.4",
30
- "@dereekb/date": "9.11.4",
29
+ "@dereekb/model": "9.11.6",
30
+ "@dereekb/date": "9.11.6",
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
- "@vvo/tzdb": "^6.56.0",
34
+ "@vvo/tzdb": "^6.0.0",
35
35
  "firebase-functions": "^3.24.0",
36
- "firebase-admin": "^11.0.0",
37
- "@google-cloud/firestore": "^5.0.2",
36
+ "firebase-admin": "^11.1.0",
37
+ "@google-cloud/firestore": "^6.3.0",
38
38
  "@nestjs/core": "^9.0.0",
39
39
  "@nestjs/platform-express": "^9.0.0",
40
- "node-schedule": "^2.1.0",
41
40
  "tslib": "^2.0.0"
42
41
  }
43
42
  }
package/package.json CHANGED
@@ -1,38 +1,37 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server",
3
- "version": "9.11.4",
3
+ "version": "9.11.6",
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.11.4",
9
+ "@dereekb/firebase": "9.11.6",
10
10
  "rxjs": "^7.5.0",
11
11
  "firebase": "^9.9.2",
12
- "@dereekb/util": "9.11.4",
12
+ "@dereekb/util": "9.11.6",
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.11.4",
19
+ "@dereekb/rxjs": "9.11.6",
20
20
  "ms": "^3.0.0-canary.1",
21
- "@dereekb/model": "9.11.4",
22
- "@dereekb/date": "9.11.4",
21
+ "@dereekb/model": "9.11.6",
22
+ "@dereekb/date": "9.11.6",
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
- "@vvo/tzdb": "^6.56.0",
26
+ "@vvo/tzdb": "^6.0.0",
27
27
  "firebase-functions": "^3.24.0",
28
- "firebase-admin": "^11.0.0",
29
- "@google-cloud/firestore": "^5.0.2",
28
+ "firebase-admin": "^11.1.0",
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.11.4",
33
+ "@dereekb/nestjs": "9.11.6",
34
34
  "@nestjs/config": "^2.0.1",
35
- "node-schedule": "^2.1.0",
36
35
  "tslib": "^2.0.0"
37
36
  },
38
37
  "exports": {
@@ -4,4 +4,3 @@ export * from './context';
4
4
  export * from './call';
5
5
  export * from './nest';
6
6
  export * from './schedule';
7
- export * from './schedule.util';
@@ -7,5 +7,4 @@ tslib_1.__exportStar(require("./context"), exports);
7
7
  tslib_1.__exportStar(require("./call"), exports);
8
8
  tslib_1.__exportStar(require("./nest"), exports);
9
9
  tslib_1.__exportStar(require("./schedule"), exports);
10
- tslib_1.__exportStar(require("./schedule.util"), exports);
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/src/lib/nest/function/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqB;AACrB,+CAAqB;AACrB,oDAA0B;AAC1B,iDAAuB;AACvB,iDAAuB;AACvB,qDAA2B;AAC3B,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/src/lib/nest/function/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqB;AACrB,+CAAqB;AACrB,oDAA0B;AAC1B,iDAAuB;AACvB,iDAAuB;AACvB,qDAA2B"}
package/test/package.json CHANGED
@@ -1,42 +1,41 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/test",
3
- "version": "9.11.4",
3
+ "version": "9.11.6",
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.11.4",
9
+ "@dereekb/firebase": "9.11.6",
10
10
  "rxjs": "^7.5.0",
11
11
  "firebase": "^9.9.2",
12
- "@dereekb/util": "9.11.4",
12
+ "@dereekb/util": "9.11.6",
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.11.4",
19
+ "@dereekb/rxjs": "9.11.6",
20
20
  "ms": "^3.0.0-canary.1",
21
- "@dereekb/model": "9.11.4",
22
- "@dereekb/date": "9.11.4",
21
+ "@dereekb/model": "9.11.6",
22
+ "@dereekb/date": "9.11.6",
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
- "@vvo/tzdb": "^6.56.0",
27
- "@dereekb/util/test": "9.11.4",
28
- "firebase-admin": "^11.0.0",
26
+ "@vvo/tzdb": "^6.0.0",
27
+ "@dereekb/util/test": "9.11.6",
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
- "@google-cloud/firestore": "^5.0.2",
33
- "@dereekb/firebase/test": "9.11.4",
34
- "@dereekb/firebase-server": "9.11.4",
32
+ "@google-cloud/firestore": "^6.3.0",
33
+ "@dereekb/firebase/test": "9.11.6",
34
+ "@dereekb/firebase-server": "9.11.6",
35
35
  "@nestjs/core": "^9.0.0",
36
36
  "@nestjs/platform-express": "^9.0.0",
37
- "@dereekb/nestjs": "9.11.4",
37
+ "@dereekb/nestjs": "9.11.6",
38
38
  "@nestjs/config": "^2.0.1",
39
- "node-schedule": "^2.1.0",
40
39
  "tslib": "^2.0.0"
41
40
  }
42
41
  }
@@ -1,46 +0,0 @@
1
- import { AsyncDecisionFunction, CronExpression, MappedObjectMap, Minutes } from '@dereekb/util';
2
- import { Job, RecurrenceRule } from 'node-schedule';
3
- import { NestApplicationScheduleConfiguredFunctionMap } from './schedule';
4
- export declare type NestApplicationScheduleConfiguredFunctionJobMap<T extends NestApplicationScheduleConfiguredFunctionMap> = MappedObjectMap<T, Job>;
5
- export declare type ScheduledRecurrenceValue = Minutes | CronExpression | RecurrenceRule;
6
- /**
7
- * Configuration for initEnvironmentForScheduleConfiguredFunctions()
8
- */
9
- export interface InitEnvironmentForScheduleConfiguredFunctionsConfig<T extends NestApplicationScheduleConfiguredFunctionMap = NestApplicationScheduleConfiguredFunctionMap> {
10
- /**
11
- * Function to check whether or not to enable the dev schedule.
12
- *
13
- * If not provided, then the initialization is skipped.
14
- */
15
- checkEnabled?: AsyncDecisionFunction<void>;
16
- /**
17
- * Runs all cron jobs at the given interval in minutes.
18
- */
19
- overrideAll?: ScheduledRecurrenceValue;
20
- /**
21
- * Override specific function's times.
22
- */
23
- override?: Partial<MappedObjectMap<T, ScheduledRecurrenceValue>>;
24
- /**
25
- * Runs all jobs that have a readable schedule on the given
26
- */
27
- scheduleCron?: ScheduledRecurrenceValue;
28
- }
29
- /**
30
- * Initializes the current environment to handle the input scheduled functions.
31
- *
32
- * - For production, nothing will be configured.
33
- * - For development,
34
- *
35
- * @param input
36
- * @returns
37
- */
38
- export declare function initEnvironmentForScheduleConfiguredFunctions<T extends NestApplicationScheduleConfiguredFunctionMap>(input: T, config: InitEnvironmentForScheduleConfiguredFunctionsConfig): T;
39
- /**
40
- * Initializes jobs for each scheduled task in the input map.
41
- *
42
- * @param input
43
- * @param config
44
- * @returns
45
- */
46
- export declare function initDevelopmentEnvironmentForScheduleConfiguredFunctions<T extends NestApplicationScheduleConfiguredFunctionMap>(input: T, config: InitEnvironmentForScheduleConfiguredFunctionsConfig<T>): NestApplicationScheduleConfiguredFunctionJobMap<T>;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initDevelopmentEnvironmentForScheduleConfiguredFunctions = exports.initEnvironmentForScheduleConfiguredFunctions = void 0;
4
- const tslib_1 = require("tslib");
5
- const util_1 = require("@dereekb/util");
6
- const node_schedule_1 = require("node-schedule");
7
- /**
8
- * Initializes the current environment to handle the input scheduled functions.
9
- *
10
- * - For production, nothing will be configured.
11
- * - For development,
12
- *
13
- * @param input
14
- * @returns
15
- */
16
- function initEnvironmentForScheduleConfiguredFunctions(input, config) {
17
- const { checkEnabled } = config;
18
- if (checkEnabled != null) {
19
- setTimeout(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- const isEnabled = yield checkEnabled();
21
- if (isEnabled) {
22
- console.log('Initializing scheduled functions for development environment...');
23
- initDevelopmentEnvironmentForScheduleConfiguredFunctions(input, config);
24
- }
25
- }), 100);
26
- }
27
- return input;
28
- }
29
- exports.initEnvironmentForScheduleConfiguredFunctions = initEnvironmentForScheduleConfiguredFunctions;
30
- /**
31
- * Initializes jobs for each scheduled task in the input map.
32
- *
33
- * @param input
34
- * @param config
35
- * @returns
36
- */
37
- function initDevelopmentEnvironmentForScheduleConfiguredFunctions(input, config) {
38
- const { overrideAll, override = {}, scheduleCron } = config;
39
- const result = (0, util_1.mapObjectMap)(input, (entry, key) => {
40
- var _a, _b, _c;
41
- const schedule = entry._schedule;
42
- let cron = (_c = (_b = (_a = overrideAll !== null && overrideAll !== void 0 ? overrideAll : override[key]) !== null && _a !== void 0 ? _a : schedule.cron) !== null && _b !== void 0 ? _b : scheduleCron) !== null && _c !== void 0 ? _c : 1;
43
- if (typeof cron === 'number') {
44
- cron = (0, util_1.cronExpressionRepeatingEveryNMinutes)(cron);
45
- }
46
- return (0, node_schedule_1.scheduleJob)(cron, entry._runNow);
47
- });
48
- return result;
49
- }
50
- exports.initDevelopmentEnvironmentForScheduleConfiguredFunctions = initDevelopmentEnvironmentForScheduleConfiguredFunctions;
51
- //# sourceMappingURL=schedule.util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schedule.util.js","sourceRoot":"","sources":["../../../../../../../packages/firebase-server/src/lib/nest/function/schedule.util.ts"],"names":[],"mappings":";;;;AAAA,wCAAoJ;AACpJ,iDAAiE;AAgCjE;;;;;;;;GAQG;AACH,SAAgB,6CAA6C,CAAyD,KAAQ,EAAE,MAA2D;IACzL,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAEhC,IAAI,YAAY,IAAI,IAAI,EAAE;QACxB,UAAU,CAAC,GAAS,EAAE;YACpB,MAAM,SAAS,GAAG,MAAM,YAAY,EAAE,CAAC;YACvC,IAAI,SAAS,EAAE;gBACb,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;gBAC/E,wDAAwD,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;aACzE;QACH,CAAC,CAAA,EAAE,GAAG,CAAC,CAAC;KACT;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAdD,sGAcC;AAED;;;;;;GAMG;AACH,SAAgB,wDAAwD,CAAyD,KAAQ,EAAE,MAA8D;IACvM,MAAM,EAAE,WAAW,EAAE,QAAQ,GAAG,EAA2D,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAErH,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;;QAChD,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,IAAI,GAA6B,MAAA,MAAA,MAAA,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,QAAQ,CAAC,GAAG,CAAC,mCAAI,QAAQ,CAAC,IAAI,mCAAI,YAAY,mCAAI,CAAC,CAAC;QAExG,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,GAAG,IAAA,2CAAoC,EAAC,IAAI,CAAC,CAAC;SACnD;QAED,OAAO,IAAA,2BAAW,EAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAfD,4HAeC"}