@r5v/mongoose-paginate 1.0.6 → 1.0.7

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.
Files changed (61) hide show
  1. package/dist/{aggregationPagingQuery.d.ts → types/aggregationPagingQuery.d.ts} +2 -2
  2. package/dist/types/aggregationPagingQuery.d.ts.map +1 -0
  3. package/dist/types/index.d.ts.map +1 -0
  4. package/dist/types/index.js +2 -0
  5. package/dist/{pagingQuery.d.ts → types/pagingQuery.d.ts} +2 -2
  6. package/dist/types/pagingQuery.d.ts.map +1 -0
  7. package/dist/types/tests/dotNotation.spec.d.ts.map +1 -0
  8. package/dist/types/tests/findProtectedPaths.spec.d.ts.map +1 -0
  9. package/dist/types/tests/getPathsWithRef.spec.d.ts.map +1 -0
  10. package/dist/types/tests/getPropertyFromDotNotation.spec.d.ts.map +1 -0
  11. package/dist/types/tests/insertPopulate.spec.d.ts.map +1 -0
  12. package/dist/types/tests/pagingQuery.spec.d.ts.map +1 -0
  13. package/dist/types/tests/parseSortString.spec.d.ts.map +1 -0
  14. package/dist/types/types/index.d.ts +59 -0
  15. package/dist/types/types/index.d.ts.map +1 -0
  16. package/dist/{utils → types/utils}/dotNotation.d.ts +1 -0
  17. package/dist/types/utils/dotNotation.d.ts.map +1 -0
  18. package/dist/types/utils/findKeyWithValue.d.ts.map +1 -0
  19. package/dist/types/utils/findProtectedPaths.d.ts.map +1 -0
  20. package/dist/types/utils/getPathsWithRef.d.ts.map +1 -0
  21. package/dist/types/utils/isJsonString.d.ts.map +1 -0
  22. package/dist/types/utils/isValidDateString.d.ts.map +1 -0
  23. package/dist/{utils → types/utils}/parseParams.d.ts +1 -1
  24. package/dist/types/utils/parseParams.d.ts.map +1 -0
  25. package/dist/types/utils/parsePopulateQuery.d.ts.map +1 -0
  26. package/dist/types/utils/parseSortString.d.ts.map +1 -0
  27. package/package.json +2 -2
  28. package/dist/aggregationPagingQuery.d.ts.map +0 -1
  29. package/dist/index.d.ts.map +0 -1
  30. package/dist/pagingQuery.d.ts.map +0 -1
  31. package/dist/tests/dotNotation.spec.d.ts.map +0 -1
  32. package/dist/tests/findProtectedPaths.spec.d.ts.map +0 -1
  33. package/dist/tests/getPathsWithRef.spec.d.ts.map +0 -1
  34. package/dist/tests/getPropertyFromDotNotation.spec.d.ts.map +0 -1
  35. package/dist/tests/insertPopulate.spec.d.ts.map +0 -1
  36. package/dist/tests/pagingQuery.spec.d.ts.map +0 -1
  37. package/dist/tests/parseSortString.spec.d.ts.map +0 -1
  38. package/dist/utils/dotNotation.d.ts.map +0 -1
  39. package/dist/utils/findKeyWithValue.d.ts.map +0 -1
  40. package/dist/utils/findProtectedPaths.d.ts.map +0 -1
  41. package/dist/utils/getPathsWithRef.d.ts.map +0 -1
  42. package/dist/utils/isJsonString.d.ts.map +0 -1
  43. package/dist/utils/isValidDateString.d.ts.map +0 -1
  44. package/dist/utils/parseParams.d.ts.map +0 -1
  45. package/dist/utils/parsePopulateQuery.d.ts.map +0 -1
  46. package/dist/utils/parseSortString.d.ts.map +0 -1
  47. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
  48. /package/dist/{tests → types/tests}/dotNotation.spec.d.ts +0 -0
  49. /package/dist/{tests → types/tests}/findProtectedPaths.spec.d.ts +0 -0
  50. /package/dist/{tests → types/tests}/getPathsWithRef.spec.d.ts +0 -0
  51. /package/dist/{tests → types/tests}/getPropertyFromDotNotation.spec.d.ts +0 -0
  52. /package/dist/{tests → types/tests}/insertPopulate.spec.d.ts +0 -0
  53. /package/dist/{tests → types/tests}/pagingQuery.spec.d.ts +0 -0
  54. /package/dist/{tests → types/tests}/parseSortString.spec.d.ts +0 -0
  55. /package/dist/{utils → types/utils}/findKeyWithValue.d.ts +0 -0
  56. /package/dist/{utils → types/utils}/findProtectedPaths.d.ts +0 -0
  57. /package/dist/{utils → types/utils}/getPathsWithRef.d.ts +0 -0
  58. /package/dist/{utils → types/utils}/isJsonString.d.ts +0 -0
  59. /package/dist/{utils → types/utils}/isValidDateString.d.ts +0 -0
  60. /package/dist/{utils → types/utils}/parsePopulateQuery.d.ts +0 -0
  61. /package/dist/{utils → types/utils}/parseSortString.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Model, Aggregate } from "mongoose";
2
2
  import type { Request } from "express";
3
- import type { AggregateQueryOptions, ExpressQuery, AggregateQueryParsedRequestParams } from './index.d';
3
+ import type { AggregateQueryOptions, ExpressQuery, AggregateQueryParsedRequestParams } from './types';
4
4
  export declare class AggregationPagingQuery {
5
5
  params: AggregateQueryParsedRequestParams;
6
6
  options: AggregateQueryOptions;
@@ -9,7 +9,7 @@ export declare class AggregationPagingQuery {
9
9
  model: Model<any>;
10
10
  constructor(req: Request<{}, any, any, Partial<ExpressQuery>>, model: Model<any>, options: AggregateQueryOptions);
11
11
  findProtectedPaths: (model: Model<any>) => string[];
12
- parseParams: (defaultParams: import("./index.d").PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams, params: import("qs").ParsedQs, isAggregate?: boolean) => import("./index.d").PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams;
12
+ parseParams: (defaultParams: import("./types").PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams, params: import("qs").ParsedQs, isAggregate?: boolean) => import("./types").PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams;
13
13
  isValidDateString: (value: string) => boolean;
14
14
  isJsonString: (str: string) => boolean;
15
15
  parseSortString: (sortString: string) => [string, import("mongoose").SortOrder][];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregationPagingQuery.d.ts","sourceRoot":"","sources":["../../src/aggregationPagingQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EACL,SAAS,EAKZ,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAC,qBAAqB,EAAE,YAAY,EAAE,iCAAiC,EAAC,MAAM,SAAS,CAAA;AAQnG,qBAAa,sBAAsB;IAC/B,MAAM,EAAG,iCAAiC,CAazC;IACD,OAAO,EAAE,qBAAqB,CAK7B;IACD,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAA;IACxC,cAAc,EAAE,MAAM,EAAE,CAAK;IAC7B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBACL,GAAG,EAAE,OAAO,CAAC,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,qBAAqB;IAQ/G,kBAAkB,kCAAqB;IACvC,WAAW,sPAAc;IACzB,iBAAiB,6BAAoB;IACrC,YAAY,2BAAe;IAC3B,eAAe,mEAAkB;IACjC,wBAAwB;;MAA2B;IACnD,YAAY,aAOX;IACD,SAAS,sBAkDR;IACD,cAAc,GAAI,UAAU,GAAG,KAAG,GAAG,CAmCpC;IAED,OAAO,CAAC,qBAAqB,CAS5B;IACD,IAAI,qBAgCH;CAEJ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import type { PagingQueryParsedRequestParams, PagingQueryOptions } from './index.d';
1
+ import type { PagingQueryParsedRequestParams, PagingQueryOptions } from './types';
2
2
  import { Model, QueryWithHelpers } from "mongoose";
3
3
  import type { Request } from 'express';
4
4
  export declare class PagingQuery {
@@ -10,7 +10,7 @@ export declare class PagingQuery {
10
10
  private isJsonString;
11
11
  private initQuery;
12
12
  parseSortString: (sortString: string) => [string, import("mongoose").SortOrder][];
13
- parseParams: (defaultParams: PagingQueryParsedRequestParams | import("./index.d").AggregateQueryParsedRequestParams, params: import("qs").ParsedQs, isAggregate?: boolean) => PagingQueryParsedRequestParams | import("./index.d").AggregateQueryParsedRequestParams;
13
+ parseParams: (defaultParams: PagingQueryParsedRequestParams | import("./types").AggregateQueryParsedRequestParams, params: import("qs").ParsedQs, isAggregate?: boolean) => PagingQueryParsedRequestParams | import("./types").AggregateQueryParsedRequestParams;
14
14
  exec: () => Promise<any>;
15
15
  }
16
16
  //# sourceMappingURL=pagingQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingQuery.d.ts","sourceRoot":"","sources":["../../src/pagingQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAC/E,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAA;AAQpC,qBAAa,WAAW;IACpB,MAAM,EAAE,8BAA8B,CAUrC;IACD,OAAO,EAAE,kBAAkB,CAAK;IAChC,KAAK,EAAE,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAO;IAC/C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBAEL,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,GAAE,OAAO,CAAC,kBAAkB,CAAM;IAMtF,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,SAAS,CAqChB;IACD,eAAe,mEAAkB;IACjC,WAAW,sPAAc;IACzB,IAAI,qBAuBH;CACJ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotNotation.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/dotNotation.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findProtectedPaths.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/findProtectedPaths.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPathsWithRef.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/getPathsWithRef.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPropertyFromDotNotation.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/getPropertyFromDotNotation.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertPopulate.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/insertPopulate.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingQuery.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/pagingQuery.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseSortString.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/parseSortString.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ import mongoose, { QueryOptions, SortOrder, AggregateOptions } from "mongoose";
2
+ import { ParsedQs } from "qs";
3
+ export interface ExpressQuery extends ParsedQs {
4
+ $filter: string;
5
+ $limit: string;
6
+ $skip: string;
7
+ $sort: string;
8
+ $paging: "yes" | "no" | "0" | "false";
9
+ $populate: string;
10
+ $includes: string;
11
+ $select: string;
12
+ $count: string;
13
+ }
14
+ export interface StandardParsedRequestParams {
15
+ $filter?: {
16
+ [key: string]: any;
17
+ };
18
+ $limit: number;
19
+ $skip: number;
20
+ $paging?: boolean;
21
+ $populate?: string[];
22
+ $includes?: string[];
23
+ $select?: string;
24
+ }
25
+ export interface PagingQueryParsedRequestParams extends StandardParsedRequestParams {
26
+ $lean?: boolean;
27
+ $sort?: [string, SortOrder][];
28
+ }
29
+ export interface AggregateQueryParsedRequestParams extends StandardParsedRequestParams {
30
+ $preSort: {
31
+ [key: string]: SortOrder;
32
+ };
33
+ $sort: {
34
+ [key: string]: SortOrder;
35
+ };
36
+ $count: string[];
37
+ $postFilter: {
38
+ [key: string]: any;
39
+ };
40
+ }
41
+ export interface StandardQueryOptions extends QueryOptions {
42
+ disablePaging?: boolean;
43
+ disableFilter?: boolean;
44
+ }
45
+ export interface PagingQueryOptions extends StandardQueryOptions {
46
+ staticFilter?: {
47
+ [key: string]: any;
48
+ };
49
+ single?: boolean;
50
+ }
51
+ export interface AggregateQueryOptions extends StandardQueryOptions, Omit<AggregateOptions, 'comment'> {
52
+ disablePostFilter?: boolean;
53
+ disablePreSort?: boolean;
54
+ staticPostFilter?: {
55
+ [key: string]: any;
56
+ };
57
+ pipeline: mongoose.PipelineStage[];
58
+ }
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,EAAE,EAAC,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAC,QAAQ,EAAC,MAAM,IAAI,CAAC;AAE5B,MAAM,WAAW,YAAa,SAAQ,QAAQ;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,OAAO,CAAA;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IACxC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,8BAA+B,SAAQ,2BAA2B;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;CAEhC;AACD,MAAM,WAAW,iCAAkC,SAAQ,2BAA2B;IAClF,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;IACtC,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;IACnC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,WAAW,EAAE;QAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;KAAC,CAAA;CAClC;AACD,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC5D,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;CAGpB;AACD,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,EAAC,SAAS,CAAC;IAEjG,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAC,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IACxC,QAAQ,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAA;CACrC"}
@@ -7,4 +7,5 @@ export declare const setPropertyFromDotNotation: (obj: any, path: any, value: an
7
7
  export declare const setPropertiesFromDotNotation: (obj: any, dotNotationMap: any) => any;
8
8
  export declare const setPropertyFromDotNotationImmutable: (obj: any, path: any, value: any) => any;
9
9
  export declare const setPropertiesFromDotNotationImmutable: (obj: any, dotNotationMap: any) => any;
10
+ export type setPropertiesFromDotNotationImmutable = typeof setPropertiesFromDotNotationImmutable;
10
11
  //# sourceMappingURL=dotNotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dotNotation.d.ts","sourceRoot":"","sources":["../../../src/utils/dotNotation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,GAAI,KAAI,GAAG,EAAE,MAAK,MAAM,QAI9D,CAAA;AACD,eAAO,MAAM,mBAAmB,GAAI,cAAS,EAAE,QAAM,GAAU,OAoB9D,CAAA;AAGD,eAAO,MAAO,2BAA2B,GAAI,gBAAe;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,OAwB7E,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,QAAG,EAAE,SAAI,EAAE,UAAK,QA4B1D,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,QAAG,EAAE,mBAAc,QAc/D,CAAC;AAGF,eAAO,MAAM,mCAAmC,GAAI,QAAG,EAAE,SAAI,EAAE,UAAK,QA6BnE,CAAC;AAGF,eAAO,MAAM,qCAAqC,GAAI,QAAG,EAAE,mBAAc,QAgBxE,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,OAAO,qCAAqC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findKeyWithValue.d.ts","sourceRoot":"","sources":["../../../src/utils/findKeyWithValue.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,QAAG,EAAE,cAAS,EAAE,gBAAW,YAe3D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findProtectedPaths.d.ts","sourceRoot":"","sources":["../../../src/utils/findProtectedPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,CAAC,GAAG,CAAC,KAAG,MAAM,EAsE5D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPathsWithRef.d.ts","sourceRoot":"","sources":["../../../src/utils/getPathsWithRef.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAE,SAAI;UACT,MAAM;aAAW,GAAG;GAoH5C,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isJsonString.d.ts","sourceRoot":"","sources":["../../../src/utils/isJsonString.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,YAOvC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/isValidDateString.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,KAAG,OAKjD,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { ParsedQs } from "qs";
2
- import type { PagingQueryParsedRequestParams, AggregateQueryParsedRequestParams } from '../index.d';
2
+ import type { PagingQueryParsedRequestParams, AggregateQueryParsedRequestParams } from '../types';
3
3
  export declare const parseParams: (defaultParams: PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams, params: ParsedQs, isAggregate?: boolean) => PagingQueryParsedRequestParams | AggregateQueryParsedRequestParams;
4
4
  //# sourceMappingURL=parseParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseParams.d.ts","sourceRoot":"","sources":["../../../src/utils/parseParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,IAAI,CAAC;AAC5B,OAAO,KAAK,EACR,8BAA8B,EAC9B,iCAAiC,EACpC,MAAM,UAAU,CAAA;AAGjB,eAAO,MAAM,WAAW,GAAI,eAAe,8BAA8B,GAAG,iCAAiC,EAAE,QAAQ,QAAQ,EAAE,qBAAmB,KAAG,8BAA8B,GAAG,iCA4CvL,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsePopulateQuery.d.ts","sourceRoot":"","sources":["../../../src/utils/parsePopulateQuery.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,EAAE,EAAE,WAAW,MAAM,EAAE;UAmB1D,MAAM;aAAW,GAAG;GAGtC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseSortString.d.ts","sourceRoot":"","sources":["../../../src/utils/parseSortString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,0BAyBjD,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,eAAU,KAAE;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,SAAS,CAAA;CAO3E,CAAA"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@r5v/mongoose-paginate",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "./dist/index.js",
5
- "types": "./dist/index.d.ts",
5
+ "types": "./dist/types/index.d.ts",
6
6
  "scripts": {
7
7
  "prebuild": "rimraf dist/",
8
8
  "build": "tsc",
@@ -1 +0,0 @@
1
- {"version":3,"file":"aggregationPagingQuery.d.ts","sourceRoot":"","sources":["../src/aggregationPagingQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EACL,SAAS,EAKZ,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAC,qBAAqB,EAAE,YAAY,EAAE,iCAAiC,EAAC,MAAM,WAAW,CAAA;AAQrG,qBAAa,sBAAsB;IAC/B,MAAM,EAAG,iCAAiC,CAazC;IACD,OAAO,EAAE,qBAAqB,CAK7B;IACD,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAA;IACxC,cAAc,EAAE,MAAM,EAAE,CAAK;IAC7B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBACL,GAAG,EAAE,OAAO,CAAC,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,qBAAqB;IAQ/G,kBAAkB,kCAAqB;IACvC,WAAW,0PAAc;IACzB,iBAAiB,6BAAoB;IACrC,YAAY,2BAAe;IAC3B,eAAe,mEAAkB;IACjC,wBAAwB;;MAA2B;IACnD,YAAY,aAOX;IACD,SAAS,sBAkDR;IACD,cAAc,GAAI,UAAU,GAAG,KAAG,GAAG,CAmCpC;IAED,OAAO,CAAC,qBAAqB,CAS5B;IACD,IAAI,qBAgCH;CAEJ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagingQuery.d.ts","sourceRoot":"","sources":["../src/pagingQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAE,kBAAkB,EAAC,MAAM,WAAW,CAAA;AACjF,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAA;AAQpC,qBAAa,WAAW;IACpB,MAAM,EAAE,8BAA8B,CAUrC;IACD,OAAO,EAAE,kBAAkB,CAAK;IAChC,KAAK,EAAE,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAO;IAC/C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;gBAEL,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,GAAE,OAAO,CAAC,kBAAkB,CAAM;IAMtF,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,SAAS,CAqChB;IACD,eAAe,mEAAkB;IACjC,WAAW,0PAAc;IACzB,IAAI,qBAuBH;CACJ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotNotation.spec.d.ts","sourceRoot":"","sources":["../../src/tests/dotNotation.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"findProtectedPaths.spec.d.ts","sourceRoot":"","sources":["../../src/tests/findProtectedPaths.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPathsWithRef.spec.d.ts","sourceRoot":"","sources":["../../src/tests/getPathsWithRef.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPropertyFromDotNotation.spec.d.ts","sourceRoot":"","sources":["../../src/tests/getPropertyFromDotNotation.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"insertPopulate.spec.d.ts","sourceRoot":"","sources":["../../src/tests/insertPopulate.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagingQuery.spec.d.ts","sourceRoot":"","sources":["../../src/tests/pagingQuery.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseSortString.spec.d.ts","sourceRoot":"","sources":["../../src/tests/parseSortString.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotNotation.d.ts","sourceRoot":"","sources":["../../src/utils/dotNotation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,GAAI,KAAI,GAAG,EAAE,MAAK,MAAM,QAI9D,CAAA;AACD,eAAO,MAAM,mBAAmB,GAAI,cAAS,EAAE,QAAM,GAAU,OAoB9D,CAAA;AAGD,eAAO,MAAO,2BAA2B,GAAI,gBAAe;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,GAAG,CAAA;CAAC,OAwB7E,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,QAAG,EAAE,SAAI,EAAE,UAAK,QA4B1D,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,QAAG,EAAE,mBAAc,QAc/D,CAAC;AAGF,eAAO,MAAM,mCAAmC,GAAI,QAAG,EAAE,SAAI,EAAE,UAAK,QA6BnE,CAAC;AAGF,eAAO,MAAM,qCAAqC,GAAI,QAAG,EAAE,mBAAc,QAgBxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"findKeyWithValue.d.ts","sourceRoot":"","sources":["../../src/utils/findKeyWithValue.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,QAAG,EAAE,cAAS,EAAE,gBAAW,YAe3D,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"findProtectedPaths.d.ts","sourceRoot":"","sources":["../../src/utils/findProtectedPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,CAAC,GAAG,CAAC,KAAG,MAAM,EAsE5D,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPathsWithRef.d.ts","sourceRoot":"","sources":["../../src/utils/getPathsWithRef.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAE,SAAI;UACT,MAAM;aAAW,GAAG;GAoH5C,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isJsonString.d.ts","sourceRoot":"","sources":["../../src/utils/isJsonString.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,YAOvC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValidDateString.d.ts","sourceRoot":"","sources":["../../src/utils/isValidDateString.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,KAAG,OAKjD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseParams.d.ts","sourceRoot":"","sources":["../../src/utils/parseParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,IAAI,CAAC;AAC5B,OAAO,KAAK,EAAC,8BAA8B,EAAE,iCAAiC,EAAC,MAAM,YAAY,CAAA;AAGjG,eAAO,MAAM,WAAW,GAAI,eAAe,8BAA8B,GAAG,iCAAiC,EAAE,QAAQ,QAAQ,EAAE,qBAAmB,KAAG,8BAA8B,GAAG,iCA4CvL,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsePopulateQuery.d.ts","sourceRoot":"","sources":["../../src/utils/parsePopulateQuery.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,EAAE,EAAE,WAAW,MAAM,EAAE;UAmB1D,MAAM;aAAW,GAAG;GAGtC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseSortString.d.ts","sourceRoot":"","sources":["../../src/utils/parseSortString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,0BAyBjD,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,eAAU,KAAE;IAAC,CAAC,GAAG,EAAC,MAAM,GAAE,SAAS,CAAA;CAO3E,CAAA"}
File without changes
File without changes