apeframework 0.0.0-dev.23 → 0.0.0-dev.24

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/dist/jwt/Jwt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SignJWT, jwtVerify } from 'jose';
1
+ import { jwtVerify, SignJWT } from 'jose';
2
2
  import { validateSecretLength } from './validateSecretLength.js';
3
3
  class Jwt {
4
4
  algorithm;
@@ -1,7 +1,7 @@
1
1
  import nodemailer from 'nodemailer';
2
2
  import { getTls } from '../../../tls/getTls.js';
3
- import { Mailer } from '../../Mailer.js';
4
3
  import { getIcalendar } from '../../getIcalendar.js';
4
+ import { Mailer } from '../../Mailer.js';
5
5
  import { getAddress } from './getAddress.js';
6
6
  import { getAddresses } from './getAddresses.js';
7
7
  import { getAttachments } from './getAttachments.js';
@@ -1,4 +1,7 @@
1
1
  import type { Address } from '../../Address.js';
2
- import type { Address as NodemailerAddress } from 'nodemailer/lib/mailer';
2
+ interface NodemailerAddress {
3
+ address: string;
4
+ name: string;
5
+ }
3
6
  declare const getAddress: (address?: Address) => NodemailerAddress | undefined;
4
7
  export { getAddress, };
@@ -1,4 +1,7 @@
1
1
  import type { Address } from '../../Address.js';
2
- import type { Address as NodemailerAddress } from 'nodemailer/lib/mailer';
2
+ interface NodemailerAddress {
3
+ address: string;
4
+ name: string;
5
+ }
3
6
  declare const getAddresses: (addresses?: Address[]) => NodemailerAddress[];
4
7
  export { getAddresses, };
@@ -1,4 +1,10 @@
1
1
  import type { Attachment } from '../../Attachment.js';
2
- import type { Attachment as NodemailerAttachment } from 'nodemailer/lib/mailer';
2
+ import type { Readable } from 'stream';
3
+ interface NodemailerAttachment {
4
+ filename: string;
5
+ cid: string;
6
+ contentType: string | undefined;
7
+ content: Buffer | Readable | string;
8
+ }
3
9
  declare const getAttachments: (attachments?: Attachment[]) => NodemailerAttachment[];
4
10
  export { getAttachments, };
@@ -32,6 +32,7 @@ declare class Server {
32
32
  onError?: ErrorHandler;
33
33
  });
34
34
  start(): Promise<string>;
35
+ close(): Promise<void>;
35
36
  openapi(format: OpenApiFormat): OpenAPIV3.Document;
36
37
  }
37
38
  export { Server, };
@@ -3,8 +3,8 @@ import cors from '@fastify/cors';
3
3
  import responseValidation from '@fastify/response-validation';
4
4
  import swagger from '@fastify/swagger';
5
5
  import fastify from 'fastify';
6
- import { OpenApiFormat } from './OpenApiFormat.js';
7
6
  import { getAjv } from './getAjv.js';
7
+ import { OpenApiFormat } from './OpenApiFormat.js';
8
8
  class Server {
9
9
  server;
10
10
  host;
@@ -77,6 +77,9 @@ class Server {
77
77
  port: this.port,
78
78
  });
79
79
  }
80
+ async close() {
81
+ await this.server.close();
82
+ }
80
83
  openapi(format) {
81
84
  return this.server.swagger({
82
85
  yaml: format === OpenApiFormat.YAML,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apeframework",
3
- "version": "0.0.0-dev.23",
3
+ "version": "0.0.0-dev.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,6 +17,37 @@
17
17
  "url": "git+https://github.com/ApeFramework/apeframework.git"
18
18
  },
19
19
  "type": "module",
20
+ "engines": {
21
+ "node": ">=22"
22
+ },
23
+ "dependencies": {
24
+ "@fastify/compress": "^8.0",
25
+ "@fastify/cors": "^11.0",
26
+ "@fastify/response-validation": "^3.0",
27
+ "@fastify/swagger": "^9.4",
28
+ "@types/fs-extra": "^11.0",
29
+ "@types/nodemailer": "^6.4",
30
+ "@types/yargs-parser": "^21.0",
31
+ "ajv": "^8.17",
32
+ "bcryptjs": "^3.0",
33
+ "bullmq": "^5.48",
34
+ "dotenv": "^16.4",
35
+ "fast-uri": "^3.0",
36
+ "fastify": "^5.2",
37
+ "fs-extra": "^11.3",
38
+ "ical-generator": "^8.1",
39
+ "ioredis": "^5.6",
40
+ "jose": "^6.0",
41
+ "nodemailer": "^6.10",
42
+ "openapi-types": "^12.1",
43
+ "pino": "^9.6",
44
+ "pino-pretty": "^13.0",
45
+ "yargs-parser": "^21.1"
46
+ },
47
+ "peerDependencies": {
48
+ "@types/node": "^22.14",
49
+ "typescript": "^5.8"
50
+ },
20
51
  "exports": {
21
52
  "./cipher/Algorithm": {
22
53
  "import": {
@@ -642,37 +673,5 @@
642
673
  "default": "./dist/utils/wait.js"
643
674
  }
644
675
  }
645
- },
646
- "engines": {
647
- "node": ">=22"
648
- },
649
- "dependencies": {
650
- "@fastify/compress": "^8.0",
651
- "@fastify/cors": "^10.0",
652
- "@fastify/response-validation": "^3.0",
653
- "@fastify/swagger": "^9.4",
654
- "@types/bcryptjs": "^2.4",
655
- "@types/fs-extra": "^11.0",
656
- "@types/nodemailer": "^6.4",
657
- "@types/yargs-parser": "^21.0",
658
- "ajv": "^8.17",
659
- "bcryptjs": "^2.4",
660
- "bullmq": "^5.34",
661
- "dotenv": "^16.4",
662
- "fast-uri": "^3.0",
663
- "fastify": "^5.2",
664
- "fs-extra": "^11.2",
665
- "ical-generator": "^8.0",
666
- "ioredis": "^5.4",
667
- "jose": "^5.9",
668
- "nodemailer": "^6.9",
669
- "openapi-types": "^12.1",
670
- "pino": "^9.6",
671
- "pino-pretty": "^13.0",
672
- "yargs-parser": "^21.1"
673
- },
674
- "peerDependencies": {
675
- "@types/node": "^22.10",
676
- "typescript": "^5.7"
677
676
  }
678
677
  }