@messenger-box/cron-job-server-module 10.0.2-alpha.4 → 10.0.3-alpha.0

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.0.3-alpha.0](https://github.com/cdmbase/messenger-box/compare/v10.0.2-alpha.6...v10.0.3-alpha.0) (2025-02-24)
7
+
8
+ **Note:** Version bump only for package @messenger-box/cron-job-server-module
9
+
10
+ ## [10.0.2-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.4...v10.0.2-alpha.5) (2025-02-24)
11
+
12
+ **Note:** Version bump only for package @messenger-box/cron-job-server-module
13
+
6
14
  ## [10.0.2-alpha.4](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.3...v10.0.2-alpha.4) (2025-02-10)
7
15
 
8
16
  **Note:** Version bump only for package @messenger-box/cron-job-server-module
@@ -1,4 +1,4 @@
1
- import {Service}from'moleculer';import {MoleculerCronServiceName,MessengerNotificationCronTaskName}from'common';import {TYPES,NotificationDurationUnitEnum}from'@messenger-box/platform-server';import {CommonType}from'@common-stack/core';import CronTasks from'@skoropletov/moleculer-cron-tasks';class MessengerNotificationCronMoleculerService extends Service {
1
+ import {Service}from'moleculer';import {SERVER_TYPES,MoleculerCronServiceName,MessengerNotificationCronTaskName,NotificationDurationUnitEnum}from'common';import {CommonType}from'@common-stack/core';import CronTasks from'@skoropletov/moleculer-cron-tasks';class MessengerNotificationCronMoleculerService extends Service {
2
2
  constructor(broker, {
3
3
  container
4
4
  }) {
@@ -14,7 +14,7 @@ import {Service}from'moleculer';import {MoleculerCronServiceName,MessengerNotifi
14
14
  }
15
15
  registerCronJobs(container) {
16
16
  const logger = container.get(CommonType.LOGGER);
17
- const messengerService = container.get(TYPES.MessengerNotificationService);
17
+ const messengerService = container.get(SERVER_TYPES.MessengerNotificationService);
18
18
  this.broker.createService({
19
19
  name: MoleculerCronServiceName.MessengerNotificationCronJob,
20
20
  mixins: [CronTasks],
@@ -1 +1 @@
1
- {"version":3,"file":"messenger-notification-cron-moleculer-service.js","sources":["../../src/plugins/messenger-notification-cron-moleculer-service.ts"],"sourcesContent":[null],"names":[],"mappings":"qSAQM,MAAO,yCAA0C,SAAQ,OAAO,CAAA;AAClE,EAAA,WAAA,CAAA,MAAiC,EAAA;;AAE7B,GAAA,EAAA;SACI,CAAA;kBACM,GAAyC,SAAA;2BACxC,CAAA;qDACU,CAAA,IAAA;AACb,MAAA,OAAA,GAAA;;AAEP,QAAA,IAAE,CAAA,gBAAA,CAAA,SAAA,CAAA;;AAGC,KAAA,CAAA;;kBAEE,CAAA,SAAA,EAAgB;AACtB,IAAA,MAAA,MAAK,GAAM,SAAC,CAAA,GAAA,CAAa,UAAC,CAAA,MAAA,CAAA;0BACQ,GAAA,SAAA,CAAA,GAAA,CAAC,KAA4B,CAAA,4BAAA,CAAA;eACrD,CAAA,aAAG,CAAS;AAClB,MAAA,IAAA,EAAA,wBAAO,CAAA,4BAAA;wBACC,CAAA;;;;;;;AAOJ;AACI;AACA,MAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAAc,CAAA,+BAAA,CAAA,CAAA;;yBAEJ;sBAIT,CAAA,yDAAA,EAAA,IAAA,IAAA,EAAA,CAAA;AACJ,UAAA,MAAA,gBAAA,CAAA,+BAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACD;AACI,OAAA,EAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAA0B,CAAA,uCAAA,CAAA,CAAA;AAC1B,QAAA,QAAA,EAAA,gBAAc;yBACJ;wFAEF,EAAA,IAAA,IAAA,EAAA,CAAA;gCAGP,CAAA,uCAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACJ;AACJ,OAAA;AACJ,KAAA,CAAA;;AAER"}
1
+ {"version":3,"file":"messenger-notification-cron-moleculer-service.js","sources":["../../src/plugins/messenger-notification-cron-moleculer-service.ts"],"sourcesContent":[null],"names":[],"mappings":"+PAQM,MAAO,yCAA0C,SAAQ,OAAO,CAAA;AAClE,EAAA,WAAA,CAAA,MAAiC,EAAA;;AAE7B,GAAA,EAAA;SACI,CAAA;kBACM,GAAyC,SAAA;2BACxC,CAAA;qDACU,CAAA,IAAA;AACb,MAAA,OAAA,GAAA;;AAEP,QAAA,IAAE,CAAA,gBAAA,CAAA,SAAA,CAAA;;AAGC,KAAA,CAAA;;kBAEE,CAAA,SAAA,EAAgB;AAGtB,IAAA,MAAA,MAAK,GAAM,SAAC,CAAA,GAAA,CAAa,UAAC,CAAA,MAAA,CAAA;0BACQ,GAAA,SAAA,CAAA,GAAA,CAAC,YAA4B,CAAA,4BAAA,CAAA;eACrD,CAAA,aAAG,CAAS;AAClB,MAAA,IAAA,EAAA,wBAAO,CAAA,4BAAA;wBACC,CAAA;;;;;;;AAOJ;AACI;AACA,MAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAAc,CAAA,+BAAA,CAAA,CAAA;;yBAEJ;sBAIT,CAAA,yDAAA,EAAA,IAAA,IAAA,EAAA,CAAA;AACJ,UAAA,MAAA,gBAAA,CAAA,+BAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACD;AACI,OAAA,EAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAA0B,CAAA,uCAAA,CAAA,CAAA;AAC1B,QAAA,QAAA,EAAA,gBAAc;yBACJ;wFAEF,EAAA,IAAA,IAAA,EAAA,CAAA;gCAGP,CAAA,uCAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACJ;AACJ,OAAA;AACJ,KAAA,CAAA;;AAER"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/cron-job-server-module",
3
- "version": "10.0.2-alpha.4",
3
+ "version": "10.0.3-alpha.0",
4
4
  "description": "Extension to Messenger box cron jobs server",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -21,8 +21,8 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@messenger-box/core": "10.0.2-alpha.4",
25
- "@messenger-box/platform-server": "10.0.2-alpha.4",
24
+ "@messenger-box/core": "10.0.3-alpha.0",
25
+ "@messenger-box/platform-server": "10.0.3-alpha.0",
26
26
  "@skoropletov/moleculer-cron-tasks": "^0.0.8"
27
27
  },
28
28
  "devDependencies": {
@@ -58,5 +58,5 @@
58
58
  "typescript": {
59
59
  "definition": "lib/index.d.ts"
60
60
  },
61
- "gitHead": "98626044ba5be1703f2b84365807f6ca5ae29d19"
61
+ "gitHead": "cb604ad29beef9310b8888965ce9d9abad241793"
62
62
  }
package/rollup.config.mjs CHANGED
@@ -1,31 +1,36 @@
1
1
  import { createRollupConfig } from '../../../rollup.config.base.mjs';
2
2
 
3
3
  // Define any additional plugins specific to this bundle
4
- const additionalPlugins = [
5
- ];
4
+ const additionalPlugins = [];
6
5
 
7
6
  // Use the createRollupConfig function to merge the base and specific configurations
8
7
  export default (commandLineArgs) => {
9
8
  const isWatchMode = commandLineArgs.watch;
10
9
  return [
11
- createRollupConfig({
12
- input: ['src/index.ts'],
13
- plugins: [
14
- // Spread in additional plugins specific to this config
15
- ...additionalPlugins,
16
- ],
17
- output: [
10
+ createRollupConfig(
18
11
  {
19
- dir: 'lib',
20
- format: 'es',
21
- name: 'Accounts',
22
- compact: true,
23
- exports: 'named',
24
- sourcemap: true,
25
- preserveModules: true,
26
- chunkFileNames: '[name]-[hash].[format].js',
12
+ input: ['src/index.ts'],
13
+ plugins: [
14
+ // Spread in additional plugins specific to this config
15
+ ...additionalPlugins,
16
+ ],
17
+ output: [
18
+ {
19
+ dir: 'lib',
20
+ format: 'es',
21
+ name: 'Accounts',
22
+ compact: true,
23
+ exports: 'named',
24
+ sourcemap: true,
25
+ preserveModules: true,
26
+ chunkFileNames: '[name]-[hash].[format].js',
27
+ },
28
+ ],
27
29
  },
28
- ],
29
- }, isWatchMode),
30
- ];
30
+ {
31
+ isWatchMode,
32
+ generateRoutesJSON: false,
33
+ },
34
+ ),
35
+ ];
31
36
  };
@@ -1,6 +1,6 @@
1
1
  import { Service, ServiceBroker } from 'moleculer';
2
2
  import { MoleculerCronServiceName, MessengerNotificationCronTaskName } from 'common';
3
- import { NotificationDurationUnitEnum, IMessengerNotificationService, TYPES } from '@messenger-box/platform-server';
3
+ import { NotificationDurationUnitEnum, IMessengerNotificationService, SERVER_TYPES } from 'common';
4
4
  import { Container } from 'inversify';
5
5
  import { CommonType } from '@common-stack/core';
6
6
  import CronTasks from '@skoropletov/moleculer-cron-tasks';
@@ -21,7 +21,9 @@ export class MessengerNotificationCronMoleculerService extends Service {
21
21
 
22
22
  private registerCronJobs(container: Container): void {
23
23
  const logger: CdmLogger.ILogger = container.get(CommonType.LOGGER);
24
- const messengerService: IMessengerNotificationService = container.get(TYPES.MessengerNotificationService);
24
+ const messengerService: IMessengerNotificationService = container.get(
25
+ SERVER_TYPES.MessengerNotificationService,
26
+ );
25
27
  this.broker.createService({
26
28
  name: MoleculerCronServiceName.MessengerNotificationCronJob,
27
29
  mixins: [CronTasks],
package/lib/routes.json DELETED
@@ -1 +0,0 @@
1
- []