@ccci/micro-server 1.1.15 → 1.1.17

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.
@@ -1,3 +1,6 @@
1
+ /// <reference types="bun-types" />
2
+ /// <reference types="node" />
3
+ /// <reference types="bun-types" />
1
4
  import type { Server, ServerWebSocket } from 'bun';
2
5
  export default class BaseSocketHandler {
3
6
  static channel: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  /**
2
3
  * Retrieves the MIME type for a given file name based on its extension.
3
4
  * @param fileName - The name of the file to extract the MIME type for.
@@ -6,6 +6,7 @@ import { RequestUserType } from '../types/BaseModelTypes';
6
6
  * @returns
7
7
  */
8
8
  export declare function generate(payload: object): string;
9
+ export declare function generateRefreshToken(payload: object): string;
9
10
  export declare function verify(token: string, secret?: string): RequestUserType;
10
11
  export declare function decode(val: string | Request): RequestUserType;
11
12
  //# sourceMappingURL=TokenGenerator.d.ts.map
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { UploadedFile } from 'express-fileupload';
2
3
  import * as minio from 'minio';
3
4
  import { ApplicationOptionType } from '..';
@@ -1,3 +1,5 @@
1
+ /// <reference types="bun-types" />
2
+ /// <reference types="bun-types" />
1
3
  import { ServerWebSocket } from 'bun';
2
4
  import BaseSocketHandler from './BaseSocketHandler';
3
5
  export default class WebSocketServer {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { ApplicationOptionType } from "../types/ApplicationOptionType";
2
3
  import { S3, DeleteObjectRequest } from "@aws-sdk/client-s3";
3
4
  import { AttachmentMetadataType } from "../types/AttachmentMetadataTypes";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",