@nmxjs/api 1.1.8 → 1.1.10
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/ApiService/services/TrySetupWebApiService.js +2 -2
- package/dist/ApiService/services/TrySetupWebApiService.js.map +1 -1
- package/dist/ApiService/utils/getQueryMutationByName.d.ts +1 -2
- package/dist/ApiService/utils/getQueryMutationByName.js +2 -2
- package/dist/ApiService/utils/getQueryMutationByName.js.map +1 -1
- package/package.json +6 -4
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.TrySetupWebApiService = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
12
11
|
const utils_1 = require("../utils");
|
|
13
12
|
const utils_2 = require("@nmxjs/utils");
|
|
13
|
+
const { Args } = require('@nestjs/graphql');
|
|
14
14
|
let TrySetupWebApiService = class TrySetupWebApiService {
|
|
15
15
|
call({ schema, service, subService }) {
|
|
16
16
|
const target = () => { };
|
|
@@ -23,7 +23,7 @@ let TrySetupWebApiService = class TrySetupWebApiService {
|
|
|
23
23
|
})(target, methodName, undefined);
|
|
24
24
|
if (typeof schema[methodName].request === 'function') {
|
|
25
25
|
Reflect.defineMetadata('design:paramtypes', [schema[methodName].request], target, methodName);
|
|
26
|
-
|
|
26
|
+
Args('request', { type: () => schema[methodName].request })(target, methodName, 0);
|
|
27
27
|
}
|
|
28
28
|
}, {});
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrySetupWebApiService.js","sourceRoot":"","sources":["../../../src/ApiService/services/TrySetupWebApiService.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"TrySetupWebApiService.js","sourceRoot":"","sources":["../../../src/ApiService/services/TrySetupW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C;IACT,CAAC;CACF,CAAA;AAnBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;GACA,qBAAqB,CAmBjC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getQueryMutationByName = void 0;
|
|
4
|
-
const
|
|
5
|
-
const getQueryMutationByName = (methodName) => methodName.includes('get') ? { type: 'Query', decorator:
|
|
4
|
+
const { Query, Mutation } = require('@nestjs/graphql');
|
|
5
|
+
const getQueryMutationByName = (methodName) => methodName.includes('get') ? { type: 'Query', decorator: Query } : { type: 'Mutation', decorator: Mutation };
|
|
6
6
|
exports.getQueryMutationByName = getQueryMutationByName;
|
|
7
7
|
//# sourceMappingURL=getQueryMutationByName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getQueryMutationByName.js","sourceRoot":"","sources":["../../../src/ApiService/utils/getQueryMutationByName.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"getQueryMutationByName.js","sourceRoot":"","sources":["../../../src/ApiService/utils/getQueryMutationByName.ts"],"names":[],"mappings":";;;AAAA,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhD,MAAM,sBAAsB,GAAG,CAAC,UAAkB,EAAE,EAAE,CAC3D,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AADlG,QAAA,sBAAsB,0BAC4E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmxjs/api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,15 +28,17 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@nestjs/common": "^10.2.10",
|
|
31
|
-
"@
|
|
32
|
-
"@nmxjs/config": "^1.0.4",
|
|
31
|
+
"@nmxjs/config": "^1.0.5",
|
|
33
32
|
"@nmxjs/errors": "^1.0.3",
|
|
34
|
-
"@nmxjs/utils": "^1.0.
|
|
33
|
+
"@nmxjs/utils": "^1.0.4",
|
|
35
34
|
"deepmerge": "^4.3.1",
|
|
36
35
|
"express": "^4.18.2",
|
|
37
36
|
"node-cache": "^5.1.2",
|
|
38
37
|
"object-hash": "^3.0.0",
|
|
39
38
|
"reflect-metadata": "^0.2.1",
|
|
40
39
|
"rxjs": "^7.8.1"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@nestjs/graphql": "^10.1.2"
|
|
41
43
|
}
|
|
42
44
|
}
|