speedly 1.2.20 → 1.2.22

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.
@@ -117,7 +117,7 @@ declare const db: (collectionName: string, config?: ConfigsType) => {
117
117
  limit(value: number): /*elided*/ any;
118
118
  populate(value: string | object | (string | object)[]): /*elided*/ any;
119
119
  };
120
- aggregate: (pipeline?: never[]) => {
120
+ aggregate: (pipeline?: any[]) => {
121
121
  (req: Request, res: Response, next: NextFunction): Promise<void>;
122
122
  select(value: string | {
123
123
  [key: string]: -1 | 1;
@@ -177,5 +177,5 @@ declare const db: (collectionName: string, config?: ConfigsType) => {
177
177
  limit(value: number): /*elided*/ any;
178
178
  populate(value: string | object | (string | object)[]): /*elided*/ any;
179
179
  };
180
- } | undefined;
180
+ };
181
181
  export default db;
@@ -19,5 +19,5 @@ declare const _default: (destination?: string | ((req: Request, file: Express.Mu
19
19
  fields: (fields: multer.Field[]) => (req: Request, res: Response, next: NextFunction) => void;
20
20
  any: () => (req: Request, res: Response, next: NextFunction) => void;
21
21
  none: () => (req: Request, res: Response, next: NextFunction) => void;
22
- } | undefined;
22
+ };
23
23
  export default _default;
@@ -117,7 +117,7 @@ declare const db: (collectionName: string, config?: ConfigsType) => {
117
117
  limit(value: number): /*elided*/ any;
118
118
  populate(value: string | object | (string | object)[]): /*elided*/ any;
119
119
  };
120
- aggregate: (pipeline?: never[]) => {
120
+ aggregate: (pipeline?: any[]) => {
121
121
  (req: Request, res: Response, next: NextFunction): Promise<void>;
122
122
  select(value: string | {
123
123
  [key: string]: -1 | 1;
@@ -177,5 +177,5 @@ declare const db: (collectionName: string, config?: ConfigsType) => {
177
177
  limit(value: number): /*elided*/ any;
178
178
  populate(value: string | object | (string | object)[]): /*elided*/ any;
179
179
  };
180
- } | undefined;
180
+ };
181
181
  export default db;
@@ -19,5 +19,5 @@ declare const _default: (destination?: string | ((req: Request, file: Express.Mu
19
19
  fields: (fields: multer.Field[]) => (req: Request, res: Response, next: NextFunction) => void;
20
20
  any: () => (req: Request, res: Response, next: NextFunction) => void;
21
21
  none: () => (req: Request, res: Response, next: NextFunction) => void;
22
- } | undefined;
22
+ };
23
23
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedly",
3
- "version": "1.2.20",
3
+ "version": "1.2.22",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",