@ptc-org/nestjs-query-typegoose 1.1.1 → 1.1.2
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/package.json +4 -4
- package/src/module.js +1 -1
- package/src/module.js.map +1 -1
- package/src/providers.js +1 -1
- package/src/providers.js.map +1 -1
- package/src/query/comparison.builder.js +1 -1
- package/src/query/comparison.builder.js.map +1 -1
- package/src/query/index.js +4 -4
- package/src/query/index.js.map +1 -1
- package/src/services/index.js +1 -1
- package/src/services/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptc-org/nestjs-query-typegoose",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Typegoose adapter for @ptc-org/nestjs-query-core",
|
|
5
5
|
"author": "john mcinall<johnmcinall@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/tripss/nestjs-query#readme",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"lodash.escaperegexp": "^4.1.2",
|
|
24
24
|
"lodash.merge": "^4.6.2",
|
|
25
25
|
"tslib": "^2.4.0",
|
|
26
|
-
"@ptc-org/nestjs-query-core": "1.1.
|
|
26
|
+
"@ptc-org/nestjs-query-core": "1.1.2",
|
|
27
27
|
"reflect-metadata": "^0.1.13"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
+
"@m8a/nestjs-typegoose": "^8.0.5",
|
|
30
31
|
"@nestjs/common": "^8.0.0 || ^9.0.0",
|
|
31
32
|
"@typegoose/typegoose": "^8.0.0 || ^9.0.0",
|
|
32
|
-
"mongoose": "^6.
|
|
33
|
-
"nestjs-typegoose": "^7.1.38"
|
|
33
|
+
"mongoose": "^6.5.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
package/src/module.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NestjsQueryTypegooseModule = void 0;
|
|
4
|
-
const nestjs_typegoose_1 = require("nestjs-typegoose");
|
|
4
|
+
const nestjs_typegoose_1 = require("@m8a/nestjs-typegoose");
|
|
5
5
|
const providers_1 = require("./providers");
|
|
6
6
|
class NestjsQueryTypegooseModule {
|
|
7
7
|
static forFeature(models, connectionName) {
|
package/src/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../packages/query-typegoose/src/module.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../packages/query-typegoose/src/module.ts"],"names":[],"mappings":";;;AAAA,4DAAuD;AAGvD,2CAAkE;AAGlE,MAAa,0BAA0B;IACrC,MAAM,CAAC,UAAU,CAAC,MAAsD,EAAE,cAAuB;QAC/F,MAAM,qBAAqB,GAAG,IAAA,gDAAoC,EAAC,MAAM,CAAC,CAAA;QAC1E,MAAM,eAAe,GAAG,kCAAe,CAAC,UAAU,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QAC1E,OAAO;YACL,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,MAAM,EAAE,0BAA0B;YAClC,SAAS,EAAE,CAAC,GAAG,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,GAAG,qBAAqB,EAAE,eAAe,CAAC;SACrD,CAAA;IACH,CAAC;CACF;AAXD,gEAWC"}
|
package/src/providers.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTypegooseQueryServiceProviders = void 0;
|
|
4
|
+
const nestjs_typegoose_1 = require("@m8a/nestjs-typegoose");
|
|
4
5
|
const nestjs_query_core_1 = require("@ptc-org/nestjs-query-core");
|
|
5
6
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
6
7
|
const is_class_1 = require("is-class");
|
|
7
|
-
const nestjs_typegoose_1 = require("nestjs-typegoose");
|
|
8
8
|
const services_1 = require("./services");
|
|
9
9
|
const isTypegooseClass = (item) => (0, is_class_1.isClass)(item);
|
|
10
10
|
const isTypegooseClassWithOptions = (item) => isTypegooseClass(item.typegooseClass);
|
package/src/providers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../packages/query-typegoose/src/providers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../packages/query-typegoose/src/providers.ts"],"names":[],"mappings":";;;AAAA,4DAAqD;AAErD,kEAAsF;AACtF,oDAA8E;AAE9E,uCAAkC;AAElC,yCAAkD;AAMlD,MAAM,gBAAgB,GAAG,CAAC,IAAoB,EAA0B,EAAE,CAAC,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAA;AAExF,MAAM,2BAA2B,GAAG,CAAC,IAA0B,EAAqC,EAAE,CACpG,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;AAEvC,IAAA,uCAAmB,EAAC,CAAC,GAAsB,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAQ,CAAC,QAAQ,CAAC,CAAA;AAEpG,SAAS,iBAAiB,CAAC,IAAoB;IAC7C,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;QAC1B,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,CAAA;KAChC;IACD,IAAI,2BAA2B,CAAC,IAAI,CAAC,EAAE;QACrC,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAS,mCAAmC,CAC1C,KAAiD;IAEjD,MAAM,UAAU,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC3C,IAAI,CAAC,UAAU,EAAE;QACf,4EAA4E;QAC5E,MAAM,IAAI,KAAK,CAAC,qBAAqB,KAAK,gBAAgB,CAAC,CAAA;KAC5D;IACD,MAAM,SAAS,GAAG,UAAU,CAAC,cAAc,EAAE,IAAI,CAAA;IAEjD,OAAO;QACL,OAAO,EAAE,IAAA,wCAAoB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAClD,UAAU,CAAC,UAA6C;YACtD,mGAAmG;YACnG,+DAA+D;YAC/D,IAAA,uCAAmB,EAAC,CAAC,GAA0B,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;YAEjG,OAAO,IAAI,gCAAqB,CAAC,UAAU,CAAC,CAAA;QAC9C,CAAC;QACD,MAAM,EAAE,CAAC,IAAA,gCAAa,EAAC,SAAS,CAAC,CAAC;KACnC,CAAA;AACH,CAAC;AAEM,MAAM,oCAAoC,GAAG,CAAC,MAAsD,EAAqB,EAAE,CAChI,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,CAAC,CAAA;AADtD,QAAA,oCAAoC,wCACkB"}
|
|
@@ -4,7 +4,7 @@ exports.ComparisonBuilder = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
|
6
6
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
7
|
-
const lodash_escaperegexp_1 =
|
|
7
|
+
const lodash_escaperegexp_1 = tslib_1.__importDefault(require("lodash.escaperegexp"));
|
|
8
8
|
const helpers_1 = require("./helpers");
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison.builder.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/query/comparison.builder.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AAEpD,oDAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"comparison.builder.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/query/comparison.builder.ts"],"names":[],"mappings":";;;;AAAA,2CAAoD;AAEpD,oDAAgE;AAChE,sFAA8C;AAE9C,uCAAwC;AAaxC;;;GAGG;AACH,MAAa,iBAAiB;IAc5B,YACW,KAAwC,EACxC,gBAAwC,iBAAiB,CAAC,sBAAsB;QADhF,UAAK,GAAL,KAAK,CAAmC;QACxC,kBAAa,GAAb,aAAa,CAAmE;IACxF,CAAC;IAEJ;;;;;;OAMG;IACH,KAAK,CACH,KAAQ,EACR,GAAyC,EACzC,GAAqC;QAErC,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;QAClD,MAAM,aAAa,GAAI,GAAc,CAAC,WAAW,EAAE,CAAA;QACnD,IAAI,aAA0D,CAAA;QAC9D,IAAI,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE;YACrC,yCAAyC;YACzC,aAAa,GAAG;gBACd,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAgB,CAAC;aAClD,CAAA;SACrC;QACD,IAAI,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YAClC,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,GAAG,CAAC,CAAA;SACxD;QAED,IAAI,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YACrC,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;SAClE;QAED,IAAI,CAAC,aAAa,EAAE;YAClB,MAAM,IAAI,4BAAmB,CAAC,oBAAoB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;SACzE;QAED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KAAK;IACT,GAAG,EAAE,MAAM;IACX,EAAE,EAAE,KAAK;IACT,KAAK,EAAE,MAAM;IACb,EAAE,EAAE,KAAK;IACT,KAAK,EAAE,KAAK;CACb,CAAA"}
|
package/src/query/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./aggregate.builder"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./comparison.builder"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./filter-query.builder"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./where.builder"), exports);
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/src/query/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/query/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/query/index.ts"],"names":[],"mappings":";;;AAAA,8DAAmC;AACnC,+DAAoC;AACpC,iEAAsC;AACtC,0DAA+B"}
|
package/src/services/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./typegoose-query-service"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/services/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/query-typegoose/src/services/index.ts"],"names":[],"mappings":";;;AAAA,oEAAyC"}
|