@ccci/micro-server 1.0.165 → 1.0.167

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.
@@ -16,10 +16,7 @@ export default class Mailer {
16
16
  static getInstance(): Mailer;
17
17
  connect(options: ApplicationOptionType): Promise<void>;
18
18
  hasValidConfig(options: ApplicationOptionType): boolean;
19
- sendMail(options: MailInterface, template?: string, values?: any): Promise<{
20
- info: any;
21
- emailLink: string | false;
22
- }>;
19
+ sendMail(options: MailInterface, template?: string, values?: any): Promise<void>;
23
20
  findTemplate(name: string): Promise<unknown>;
24
21
  }
25
22
  export {};
@@ -24,4 +24,16 @@ export declare const decrypt: (salt: string, encoded: string) => string;
24
24
  * @returns The encrypted string in hexadecimal format.
25
25
  */
26
26
  export declare const encrypt: (salt: string, text: string) => string;
27
+ /**
28
+ * Returns the start and end dates of the current week.
29
+ * The week starts on Monday (00:00:00.000) and ends on Sunday (23:59:59.999).
30
+ *
31
+ * @returns An object containing:
32
+ * - `startOfWeek`: Date representing the beginning of the current week (Monday at midnight).
33
+ * - `endOfWeek`: Date representing the end of the current week (Sunday at 23:59:59.999).
34
+ */
35
+ export declare const getCurrentWeek: () => {
36
+ startOfWeek: Date;
37
+ endOfWeek: Date;
38
+ };
27
39
  //# sourceMappingURL=Mixins.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.165",
3
+ "version": "1.0.167",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",