@nmxjs/api 1.1.0 → 1.1.1

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.
@@ -19,7 +19,7 @@ class ApiRouteCoreModule {
19
19
  inject: servicesKeys,
20
20
  },
21
21
  {
22
- provide: constants_1.transporterOptionsKey,
22
+ provide: constants_1.getTransporterOptionsKey,
23
23
  useFactory: (...services) => (serviceName) => {
24
24
  const servicesInfo = services.filter(v => (v === null || v === void 0 ? void 0 : v.serviceName) === serviceName);
25
25
  if (!servicesInfo.length) {
@@ -63,7 +63,7 @@ class ApiRouteCoreModule {
63
63
  inject: [constants_1.apiRouterKey],
64
64
  },
65
65
  ],
66
- exports: [constants_1.apiRouterKey, constants_1.transporterOptionsKey, constants_1.apiRouterResolversKey],
66
+ exports: [constants_1.apiRouterKey, constants_1.getTransporterOptionsKey, constants_1.apiRouterResolversKey],
67
67
  };
68
68
  }
69
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ApiRouteCoreModule.js","sourceRoot":"","sources":["../../src/ApiRouterCore/ApiRouteCoreModule.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,0CAA+C;AAC/C,wCAAoD;AACpD,2CAAyF;AACzF,8CAA4G;AAG5G,MAAa,kBAAkB;IACtB,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EAA+B;QAC/G,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,OAAO;YACP,MAAM,EAAE,kBAAkB;YAC1B,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,wBAAY;oBACrB,UAAU,EAAE,gBAAgB;oBAC5B,MAAM,EAAE,YAAY;iBACrB;gBACD;oBACE,OAAO,EAAE,iCAAqB;oBAC9B,UAAU,EACR,CAAC,GAAG,QAA+B,EAAE,EAAE,CACvC,CAAC,WAAmB,EAAE,EAAE;wBACtB,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM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,CAAC;CACF;AAzED,gDAyEC"}
@@ -0,0 +1 @@
1
+ export declare const getTransporterOptionsKey: unique symbol;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTransporterOptionsKey = void 0;
4
+ exports.getTransporterOptionsKey = Symbol('GET_TRANSPORTER_OPTIONS_KEY');
5
+ //# sourceMappingURL=getTransporterOptionsKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransporterOptionsKey.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/constants/getTransporterOptionsKey.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export * from './apiRouterKey';
2
2
  export * from './endErrorText';
3
- export * from './transporterOptionsKey';
4
3
  export * from './apiRouterResolversKey';
4
+ export * from './getTransporterOptionsKey';
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./apiRouterKey"), exports);
18
18
  __exportStar(require("./endErrorText"), exports);
19
- __exportStar(require("./transporterOptionsKey"), exports);
20
19
  __exportStar(require("./apiRouterResolversKey"), exports);
20
+ __exportStar(require("./getTransporterOptionsKey"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,0DAAwC;AACxC,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,0DAAwC;AACxC,6DAA2C"}
@@ -0,0 +1,2 @@
1
+ import { MicroserviceOptions } from '@nestjs/microservices';
2
+ export type GetTransporterOptions = (serviceName: string) => MicroserviceOptions;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=GetGrpcOptions.js.map
3
+ //# sourceMappingURL=GetTransporterOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetTransporterOptions.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/interfaces/GetTransporterOptions.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- export * from './GetGrpcOptions';
1
+ export * from './GetTransporterOptions';
2
2
  export * from './IApiRouterCoreModuleOptions';
3
3
  export * from './IWebApiAuthHandlerOptions';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GetGrpcOptions"), exports);
17
+ __exportStar(require("./GetTransporterOptions"), exports);
18
18
  __exportStar(require("./IApiRouterCoreModuleOptions"), exports);
19
19
  __exportStar(require("./IWebApiAuthHandlerOptions"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,gEAA8C;AAC9C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmxjs/api",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- export declare const transporterOptionsKey: unique symbol;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.transporterOptionsKey = void 0;
4
- exports.transporterOptionsKey = Symbol('TRANSPORTER_OPTIONS_KEY');
5
- //# sourceMappingURL=transporterOptionsKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transporterOptionsKey.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/constants/transporterOptionsKey.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { GrpcOptions } from '@nestjs/microservices';
2
- export type GetGrpcOptions = (serviceName: string) => GrpcOptions;
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetGrpcOptions.js","sourceRoot":"","sources":["../../../src/ApiRouterCore/interfaces/GetGrpcOptions.ts"],"names":[],"mappings":""}