@pristine-ts/networking 0.0.175 → 0.0.179

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 (117) hide show
  1. package/dist/lib/cjs/errors/errors.js +3 -0
  2. package/dist/lib/cjs/errors/errors.js.map +1 -1
  3. package/dist/lib/cjs/errors/request-handling.error.js +20 -0
  4. package/dist/lib/cjs/errors/request-handling.error.js.map +1 -0
  5. package/dist/lib/cjs/errors/request-interception-execution.error.js +21 -0
  6. package/dist/lib/cjs/errors/request-interception-execution.error.js.map +1 -0
  7. package/dist/lib/cjs/errors/response-interception-execution.error.js +23 -0
  8. package/dist/lib/cjs/errors/response-interception-execution.error.js.map +1 -0
  9. package/dist/lib/cjs/{enrichers/enrichers.js → handlers/handlers.js} +2 -2
  10. package/dist/lib/cjs/handlers/handlers.js.map +1 -0
  11. package/dist/lib/cjs/handlers/request.event-handler.js +71 -0
  12. package/dist/lib/cjs/handlers/request.event-handler.js.map +1 -0
  13. package/dist/lib/cjs/interceptors/interceptors.js +15 -0
  14. package/dist/lib/cjs/interceptors/interceptors.js.map +1 -0
  15. package/dist/lib/cjs/interceptors/request-body-converter.interceptor.js +89 -0
  16. package/dist/lib/cjs/interceptors/request-body-converter.interceptor.js.map +1 -0
  17. package/dist/lib/cjs/{enrichers/router-response.enricher.js → interceptors/response-headers.interceptor.js} +14 -12
  18. package/dist/lib/cjs/interceptors/response-headers.interceptor.js.map +1 -0
  19. package/dist/lib/cjs/interfaces/interfaces.js +1 -2
  20. package/dist/lib/cjs/interfaces/interfaces.js.map +1 -1
  21. package/dist/lib/cjs/interfaces/{router-request-enricher.interface.js → request-interceptor.interface.js} +1 -1
  22. package/dist/lib/cjs/interfaces/request-interceptor.interface.js.map +1 -0
  23. package/dist/lib/cjs/mappers/mappers.js +14 -0
  24. package/dist/lib/cjs/mappers/mappers.js.map +1 -0
  25. package/dist/lib/cjs/mappers/request.mapper.js +37 -0
  26. package/dist/lib/cjs/mappers/request.mapper.js.map +1 -0
  27. package/dist/lib/cjs/models/models.js +0 -2
  28. package/dist/lib/cjs/models/models.js.map +1 -1
  29. package/dist/lib/cjs/networking.module.js +14 -2
  30. package/dist/lib/cjs/networking.module.js.map +1 -1
  31. package/dist/lib/cjs/router.js +167 -49
  32. package/dist/lib/cjs/router.js.map +1 -1
  33. package/dist/lib/esm/errors/errors.js +3 -0
  34. package/dist/lib/esm/errors/errors.js.map +1 -1
  35. package/dist/lib/esm/errors/request-handling.error.js +16 -0
  36. package/dist/lib/esm/errors/request-handling.error.js.map +1 -0
  37. package/dist/lib/esm/errors/request-interception-execution.error.js +17 -0
  38. package/dist/lib/esm/errors/request-interception-execution.error.js.map +1 -0
  39. package/dist/lib/esm/errors/response-interception-execution.error.js +19 -0
  40. package/dist/lib/esm/errors/response-interception-execution.error.js.map +1 -0
  41. package/dist/lib/esm/handlers/handlers.js +2 -0
  42. package/dist/lib/esm/handlers/handlers.js.map +1 -0
  43. package/dist/lib/esm/handlers/request.event-handler.js +68 -0
  44. package/dist/lib/esm/handlers/request.event-handler.js.map +1 -0
  45. package/dist/lib/esm/interceptors/interceptors.js +3 -0
  46. package/dist/lib/esm/interceptors/interceptors.js.map +1 -0
  47. package/dist/lib/esm/interceptors/request-body-converter.interceptor.js +86 -0
  48. package/dist/lib/esm/interceptors/request-body-converter.interceptor.js.map +1 -0
  49. package/dist/lib/esm/{enrichers/router-response.enricher.js → interceptors/response-headers.interceptor.js} +13 -11
  50. package/dist/lib/esm/interceptors/response-headers.interceptor.js.map +1 -0
  51. package/dist/lib/esm/interfaces/interfaces.js +1 -2
  52. package/dist/lib/esm/interfaces/interfaces.js.map +1 -1
  53. package/dist/lib/esm/interfaces/request-interceptor.interface.js +2 -0
  54. package/dist/lib/esm/interfaces/request-interceptor.interface.js.map +1 -0
  55. package/dist/lib/esm/mappers/mappers.js +2 -0
  56. package/dist/lib/esm/mappers/mappers.js.map +1 -0
  57. package/dist/lib/esm/mappers/request.mapper.js +34 -0
  58. package/dist/lib/esm/mappers/request.mapper.js.map +1 -0
  59. package/dist/lib/esm/models/models.js +0 -2
  60. package/dist/lib/esm/models/models.js.map +1 -1
  61. package/dist/lib/esm/networking.module.js +14 -2
  62. package/dist/lib/esm/networking.module.js.map +1 -1
  63. package/dist/lib/esm/router.js +166 -48
  64. package/dist/lib/esm/router.js.map +1 -1
  65. package/dist/types/errors/errors.d.ts +3 -0
  66. package/dist/types/errors/request-handling.error.d.ts +7 -0
  67. package/dist/types/errors/request-interception-execution.error.d.ts +7 -0
  68. package/dist/types/errors/response-interception-execution.error.d.ts +7 -0
  69. package/dist/types/handlers/handlers.d.ts +1 -0
  70. package/dist/types/handlers/request.event-handler.d.ts +14 -0
  71. package/dist/types/interceptors/interceptors.d.ts +2 -0
  72. package/dist/types/interceptors/request-body-converter.interceptor.d.ts +9 -0
  73. package/dist/types/interceptors/response-headers.interceptor.d.ts +10 -0
  74. package/dist/types/interfaces/controller-method-parameter-decorator-resolver.interface.d.ts +1 -1
  75. package/dist/types/interfaces/interfaces.d.ts +1 -2
  76. package/dist/types/interfaces/request-interceptor.interface.d.ts +39 -0
  77. package/dist/types/interfaces/router.interface.d.ts +6 -3
  78. package/dist/types/mappers/mappers.d.ts +1 -0
  79. package/dist/types/mappers/request.mapper.d.ts +8 -0
  80. package/dist/types/models/models.d.ts +0 -2
  81. package/dist/types/networking.module.d.ts +3 -1
  82. package/dist/types/resolvers/body-parameter-decorator.resolver.d.ts +1 -1
  83. package/dist/types/resolvers/controller-method-parameter-decorator.resolver.d.ts +1 -1
  84. package/dist/types/resolvers/headers-parameter-decorator.resolver.d.ts +1 -1
  85. package/dist/types/resolvers/identity-parameter-decorator.resolver.d.ts +1 -1
  86. package/dist/types/resolvers/query-parameter-decorator.resolver.d.ts +1 -1
  87. package/dist/types/resolvers/query-parameters-decorator.resolver.d.ts +1 -1
  88. package/dist/types/resolvers/request-parameter-decorator.resolver.d.ts +1 -1
  89. package/dist/types/resolvers/route-parameter-decorator.resolver.d.ts +1 -1
  90. package/dist/types/router.d.ts +17 -7
  91. package/package.json +7 -5
  92. package/dist/lib/cjs/enrichers/enrichers.js.map +0 -1
  93. package/dist/lib/cjs/enrichers/router-response.enricher.js.map +0 -1
  94. package/dist/lib/cjs/interfaces/router-request-enricher.interface.js.map +0 -1
  95. package/dist/lib/cjs/interfaces/router-response-enricher.interface.js +0 -3
  96. package/dist/lib/cjs/interfaces/router-response-enricher.interface.js.map +0 -1
  97. package/dist/lib/cjs/models/request.js +0 -50
  98. package/dist/lib/cjs/models/request.js.map +0 -1
  99. package/dist/lib/cjs/models/response.js +0 -16
  100. package/dist/lib/cjs/models/response.js.map +0 -1
  101. package/dist/lib/esm/enrichers/enrichers.js +0 -2
  102. package/dist/lib/esm/enrichers/enrichers.js.map +0 -1
  103. package/dist/lib/esm/enrichers/router-response.enricher.js.map +0 -1
  104. package/dist/lib/esm/interfaces/router-request-enricher.interface.js +0 -2
  105. package/dist/lib/esm/interfaces/router-request-enricher.interface.js.map +0 -1
  106. package/dist/lib/esm/interfaces/router-response-enricher.interface.js +0 -2
  107. package/dist/lib/esm/interfaces/router-response-enricher.interface.js.map +0 -1
  108. package/dist/lib/esm/models/request.js +0 -46
  109. package/dist/lib/esm/models/request.js.map +0 -1
  110. package/dist/lib/esm/models/response.js +0 -12
  111. package/dist/lib/esm/models/response.js.map +0 -1
  112. package/dist/types/enrichers/enrichers.d.ts +0 -1
  113. package/dist/types/enrichers/router-response.enricher.d.ts +0 -11
  114. package/dist/types/interfaces/router-request-enricher.interface.d.ts +0 -18
  115. package/dist/types/interfaces/router-response-enricher.interface.d.ts +0 -20
  116. package/dist/types/models/request.d.ts +0 -45
  117. package/dist/types/models/response.d.ts +0 -24
@@ -18,4 +18,7 @@ __exportStar(require("./method-router-adding.error"), exports);
18
18
  __exportStar(require("./not-found.http-error"), exports);
19
19
  __exportStar(require("./path-router-adding.error"), exports);
20
20
  __exportStar(require("./path-router-instantiation.error"), exports);
21
+ __exportStar(require("./request-handling.error"), exports);
22
+ __exportStar(require("./request-interception-execution.error"), exports);
23
+ __exportStar(require("./response-interception-execution.error"), exports);
21
24
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,yDAAuC;AACvC,+CAA6B;AAC7B,4DAA0C;AAC1C,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/errors/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,yDAAuC;AACvC,+CAA6B;AAC7B,4DAA0C;AAC1C,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,2DAAyC;AACzC,yEAAuD;AACvD,0EAAwD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestHandlingError = void 0;
4
+ const common_1 = require("@pristine-ts/common");
5
+ /**
6
+ * This Error is thrown when there's an error that happens while handling a request.
7
+ */
8
+ class RequestHandlingError extends common_1.LoggableError {
9
+ constructor(message, request) {
10
+ super(message, {
11
+ request,
12
+ });
13
+ // Set the prototype explicitly.
14
+ // As specified in the documentation in TypeScript
15
+ // https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
16
+ Object.setPrototypeOf(this, RequestHandlingError.prototype);
17
+ }
18
+ }
19
+ exports.RequestHandlingError = RequestHandlingError;
20
+ //# sourceMappingURL=request-handling.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-handling.error.js","sourceRoot":"","sources":["../../../../src/errors/request-handling.error.ts"],"names":[],"mappings":";;;AAAA,gDAA2D;AAE3D;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAa;IAEnD,YAAmB,OAAe,EAAE,OAAgB;QAChD,KAAK,CAAC,OAAO,EAAE;YACX,OAAO;SACV,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CACxE;AAXD,oDAWC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestInterceptionExecutionError = void 0;
4
+ const common_1 = require("@pristine-ts/common");
5
+ /**
6
+ * This Error is thrown when there's an error in the execution of a request interceptor.
7
+ */
8
+ class RequestInterceptionExecutionError extends common_1.LoggableError {
9
+ constructor(message, request, error) {
10
+ super(message, {
11
+ error,
12
+ request,
13
+ });
14
+ // Set the prototype explicitly.
15
+ // As specified in the documentation in TypeScript
16
+ // https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
17
+ Object.setPrototypeOf(this, RequestInterceptionExecutionError.prototype);
18
+ }
19
+ }
20
+ exports.RequestInterceptionExecutionError = RequestInterceptionExecutionError;
21
+ //# sourceMappingURL=request-interception-execution.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/request-interception-execution.error.ts"],"names":[],"mappings":";;;AAAA,gDAA2D;AAE3D;;GAEG;AACH,MAAa,iCAAkC,SAAQ,sBAAa;IAEhE,YAAmB,OAAe,EAAE,OAAgB,EAAE,KAAa;QAC/D,KAAK,CAAC,OAAO,EAAE;YACX,KAAK;YACL,OAAO;SACV,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iCAAiC,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CACrF;AAZD,8EAYC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResponseInterceptionExecutionError = void 0;
4
+ const common_1 = require("@pristine-ts/common");
5
+ /**
6
+ * This Error is thrown when an error happens in the execution of a response interceptor.
7
+ */
8
+ class ResponseInterceptionExecutionError extends common_1.LoggableError {
9
+ constructor(message, request, response, interceptor, previousError) {
10
+ super(message, {
11
+ previousError,
12
+ request,
13
+ response,
14
+ interceptor,
15
+ });
16
+ // Set the prototype explicitly.
17
+ // As specified in the documentation in TypeScript
18
+ // https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
19
+ Object.setPrototypeOf(this, ResponseInterceptionExecutionError.prototype);
20
+ }
21
+ }
22
+ exports.ResponseInterceptionExecutionError = ResponseInterceptionExecutionError;
23
+ //# sourceMappingURL=response-interception-execution.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-interception-execution.error.js","sourceRoot":"","sources":["../../../../src/errors/response-interception-execution.error.ts"],"names":[],"mappings":";;;AAAA,gDAAqE;AAErE;;GAEG;AACH,MAAa,kCAAmC,SAAQ,sBAAa;IAEjE,YAAmB,OAAe,EAAE,OAAgB,EAAE,QAAkB,EAAE,WAAgB,EAAE,aAAqB;QAC7G,KAAK,CAAC,OAAO,EAAE;YACX,aAAa;YACb,OAAO;YACP,QAAQ;YACR,WAAW;SACd,CAAC,CAAC;QAEH,gCAAgC;QAChC,kDAAkD;QAClD,gIAAgI;QAChI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kCAAkC,CAAC,SAAS,CAAC,CAAC;IAAI,CAAC;CACtF;AAdD,gFAcC"}
@@ -10,5 +10,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./router-response.enricher"), exports);
14
- //# sourceMappingURL=enrichers.js.map
13
+ __exportStar(require("./request.event-handler"), exports);
14
+ //# sourceMappingURL=handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../../src/handlers/handlers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.RequestEventHandler = void 0;
25
+ const core_1 = require("@pristine-ts/core");
26
+ const tsyringe_1 = require("tsyringe");
27
+ const common_1 = require("@pristine-ts/common");
28
+ const networking_module_keyname_1 = require("../networking.module.keyname");
29
+ let RequestEventHandler = class RequestEventHandler {
30
+ constructor(router, tracingManager, dependencyContainer) {
31
+ this.router = router;
32
+ this.tracingManager = tracingManager;
33
+ this.dependencyContainer = dependencyContainer;
34
+ this.priority = 10000; // Arbitrarily set to 10 000 so that another handler can have more priority, but be certain you know what you are doing.
35
+ }
36
+ supports(event) {
37
+ return event.payload instanceof common_1.Request;
38
+ }
39
+ handle(event) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ // todo: add tracing to calculate router setup
42
+ // We can use the injected TracingManager
43
+ this.router.setup();
44
+ //previous code:
45
+ // const routerSetupSpan = new Span(SpanKeynameEnum.RouterSetup);
46
+ //
47
+ // // Setup the router
48
+ // this.setupRouter();
49
+ //
50
+ // routerSetupSpan.endDate = Date.now();
51
+ // this.initializationSpan.addChild(routerSetupSpan);
52
+ //todo add tracing to calculate request execution
53
+ // todo catch if the method throws even though it should never throw.
54
+ const response = yield this.router.execute(event.payload, this.dependencyContainer);
55
+ //previous code:
56
+ // const requestSpan = tracingManager.startSpan(SpanKeynameEnum.RequestExecution);
57
+ return new core_1.EventResponse(event, response);
58
+ });
59
+ }
60
+ };
61
+ RequestEventHandler = __decorate([
62
+ common_1.moduleScoped(networking_module_keyname_1.NetworkingModuleKeyname),
63
+ common_1.tag(common_1.ServiceDefinitionTagEnum.EventHandler),
64
+ tsyringe_1.injectable(),
65
+ __param(0, tsyringe_1.inject("RouterInterface")),
66
+ __param(1, tsyringe_1.inject("TracingManagerInterface")),
67
+ __param(2, tsyringe_1.inject(common_1.ServiceDefinitionTagEnum.CurrentChildContainer)),
68
+ __metadata("design:paramtypes", [Object, Object, Object])
69
+ ], RequestEventHandler);
70
+ exports.RequestEventHandler = RequestEventHandler;
71
+ //# sourceMappingURL=request.event-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.event-handler.js","sourceRoot":"","sources":["../../../../src/handlers/request.event-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8E;AAC9E,uCAAiE;AAEjE,gDAAmG;AAEnG,4EAAqE;AAKrE,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAG5B,YAAwD,MAAuB,EACf,cAAuC,EAClB,mBAAwC;QAFrE,WAAM,GAAN,MAAM,CAAiB;QACf,mBAAc,GAAd,cAAc,CAAyB;QAClB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAJ7H,aAAQ,GAAW,KAAK,CAAC,CAAC,wHAAwH;IAKlJ,CAAC;IAED,QAAQ,CAAI,KAAe;QACvB,OAAO,KAAK,CAAC,OAAO,YAAY,gBAAO,CAAC;IAC5C,CAAC;IAEK,MAAM,CAAC,KAAqB;;YAC9B,8CAA8C;YAC9C,yCAAyC;YACzC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;YACnB,gBAAgB;YAChB,qEAAqE;YACrE,EAAE;YACF,0BAA0B;YAC1B,0BAA0B;YAC1B,EAAE;YACF,4CAA4C;YAC5C,yDAAyD;YAGzD,iDAAiD;YACjD,qEAAqE;YAErE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YAEpF,gBAAgB;YAChB,kFAAkF;YAElF,OAAO,IAAI,oBAAa,CAAoB,KAAK,EAAE,QAAQ,CAAC,CAAC;QACjE,CAAC;KAAA;CAEJ,CAAA;AArCY,mBAAmB;IAH/B,qBAAY,CAAC,mDAAuB,CAAC;IACrC,YAAG,CAAC,iCAAwB,CAAC,YAAY,CAAC;IAC1C,qBAAU,EAAE;IAII,WAAA,iBAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,iBAAM,CAAC,yBAAyB,CAAC,CAAA;IACjC,WAAA,iBAAM,CAAC,iCAAwB,CAAC,qBAAqB,CAAC,CAAA;;GAL1D,mBAAmB,CAqC/B;AArCY,kDAAmB"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./request-body-converter.interceptor"), exports);
14
+ __exportStar(require("./response-headers.interceptor"), exports);
15
+ //# sourceMappingURL=interceptors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interceptors.js","sourceRoot":"","sources":["../../../../src/interceptors/interceptors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAqD;AACrD,iEAA+C"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.RequestBodyConverterInterceptor = void 0;
25
+ const tsyringe_1 = require("tsyringe");
26
+ const common_1 = require("@pristine-ts/common");
27
+ const networking_module_keyname_1 = require("../networking.module.keyname");
28
+ const invalid_body_http_error_1 = require("../errors/invalid-body.http-error");
29
+ let RequestBodyConverterInterceptor = class RequestBodyConverterInterceptor {
30
+ constructor(isActive, logHandler) {
31
+ this.isActive = isActive;
32
+ this.logHandler = logHandler;
33
+ }
34
+ interceptRequest(request) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ if (this.isActive === false) {
37
+ return request;
38
+ }
39
+ let contentType;
40
+ for (let key in request.headers) {
41
+ if (request.headers.hasOwnProperty(key) === false) {
42
+ continue;
43
+ }
44
+ const requestHeader = request.headers[key];
45
+ if (key.toLowerCase() === "content-type") {
46
+ contentType = requestHeader;
47
+ break;
48
+ }
49
+ }
50
+ if (contentType === undefined) {
51
+ return request;
52
+ }
53
+ switch (contentType.toLowerCase()) {
54
+ case "application/json":
55
+ switch (typeof request.body) {
56
+ case "object":
57
+ return request;
58
+ case "string":
59
+ try {
60
+ if (request.body) {
61
+ request.body = JSON.parse(request.body);
62
+ }
63
+ }
64
+ catch (e) {
65
+ const errorMessage = "This request has the Content-Type header 'application/json' but the body contains invalid JSON.";
66
+ this.logHandler.error(errorMessage);
67
+ throw new invalid_body_http_error_1.InvalidBodyHttpError(errorMessage);
68
+ }
69
+ break;
70
+ default:
71
+ const errorMessage = "This request has the Content-Type header 'application/json' but the body contains invalid JSON.";
72
+ this.logHandler.error(errorMessage);
73
+ throw new invalid_body_http_error_1.InvalidBodyHttpError(errorMessage);
74
+ }
75
+ }
76
+ return request;
77
+ });
78
+ }
79
+ };
80
+ RequestBodyConverterInterceptor = __decorate([
81
+ common_1.tag(common_1.ServiceDefinitionTagEnum.RequestInterceptor),
82
+ common_1.moduleScoped(networking_module_keyname_1.NetworkingModuleKeyname),
83
+ tsyringe_1.injectable(),
84
+ __param(0, tsyringe_1.inject("%" + networking_module_keyname_1.NetworkingModuleKeyname + ".request_body_converter.is_active%")),
85
+ __param(1, tsyringe_1.inject("LogHandlerInterface")),
86
+ __metadata("design:paramtypes", [Boolean, Object])
87
+ ], RequestBodyConverterInterceptor);
88
+ exports.RequestBodyConverterInterceptor = RequestBodyConverterInterceptor;
89
+ //# sourceMappingURL=request-body-converter.interceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-body-converter.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/request-body-converter.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA4C;AAE5C,gDAAyF;AACzF,4EAAqE;AAErE,+EAAuE;AAKvE,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IACxC,YAA2G,QAAiB,EAChE,UAA+B;QADgB,aAAQ,GAAR,QAAQ,CAAS;QAChE,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAEK,gBAAgB,CAAC,OAAgB;;YACnC,IAAG,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE;gBACxB,OAAO,OAAO,CAAC;aAClB;YAED,IAAI,WAA+B,CAAC;YAEpC,KAAK,IAAI,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE;gBAC7B,IAAI,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE;oBAC/C,SAAS;iBACZ;gBAED,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBAE3C,IAAG,GAAG,CAAC,WAAW,EAAE,KAAK,cAAc,EAAE;oBACrC,WAAW,GAAG,aAAa,CAAC;oBAC5B,MAAM;iBACT;aACJ;YAED,IAAG,WAAW,KAAK,SAAS,EAAE;gBAC1B,OAAO,OAAO,CAAC;aAClB;YAED,QAAQ,WAAW,CAAC,WAAW,EAAE,EAAE;gBAC/B,KAAK,kBAAkB;oBAEnB,QAAQ,OAAO,OAAO,CAAC,IAAI,EAAE;wBACzB,KAAK,QAAQ;4BACT,OAAO,OAAO,CAAC;wBAEnB,KAAK,QAAQ;4BACT,IAAI;gCACA,IAAG,OAAO,CAAC,IAAI,EAAE;oCACb,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iCAC3C;6BACJ;4BACD,OAAO,CAAC,EAAE;gCACN,MAAM,YAAY,GAAG,iGAAiG,CAAC;gCACvH,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gCAEpC,MAAM,IAAI,8CAAoB,CAAC,YAAY,CAAC,CAAC;6BAChD;4BACD,MAAM;wBAEV;4BACI,MAAM,YAAY,GAAG,iGAAiG,CAAC;4BACvH,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;4BAEpC,MAAM,IAAI,8CAAoB,CAAC,YAAY,CAAC,CAAC;qBACpD;aAGR;YAED,OAAO,OAAO,CAAC;QACnB,CAAC;KAAA;CAEJ,CAAA;AA/DY,+BAA+B;IAH3C,YAAG,CAAC,iCAAwB,CAAC,kBAAkB,CAAC;IAChD,qBAAY,CAAC,mDAAuB,CAAC;IACrC,qBAAU,EAAE;IAEI,WAAA,iBAAM,CAAC,GAAG,GAAG,mDAAuB,GAAG,oCAAoC,CAAC,CAAA;IAC5E,WAAA,iBAAM,CAAC,qBAAqB,CAAC,CAAA;;GAFjC,+BAA+B,CA+D3C;AA/DY,0EAA+B"}
@@ -15,26 +15,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
15
15
  });
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RouterResponseEnricher = void 0;
18
+ exports.ResponseHeadersInterceptor = void 0;
19
19
  const common_1 = require("@pristine-ts/common");
20
20
  const networking_module_keyname_1 = require("../networking.module.keyname");
21
+ const tsyringe_1 = require("tsyringe");
21
22
  /**
22
- * The RouterResponseEnricher enriches the response of the router by adding the response headers specified by the response header decorator.
23
- * It is tagged as an RouterResponseEnricher so it can be automatically injected with the all the other RouterResponseEnrichers.
23
+ * The Response Interceptor intercepts the response of the router by adding the response headers specified by the response header decorator.
24
+ * It is tagged as a RequestInterceptor so it can be automatically injected with the all the other RequestInterceptor.
24
25
  */
25
- let RouterResponseEnricher = class RouterResponseEnricher {
26
- enrichResponse(response, request, methodNode) {
26
+ let ResponseHeadersInterceptor = class ResponseHeadersInterceptor {
27
+ interceptResponse(response, request, methodNode) {
27
28
  return __awaiter(this, void 0, void 0, function* () {
28
- if (methodNode.route.context && methodNode.route.context.hasOwnProperty("responseHeaders")) {
29
+ if (methodNode && methodNode.route.context && methodNode.route.context.hasOwnProperty("responseHeaders")) {
29
30
  response.headers = Object.assign(Object.assign({}, response.headers), methodNode.route.context.responseHeaders);
30
31
  }
31
32
  return response;
32
33
  });
33
34
  }
34
35
  };
35
- RouterResponseEnricher = __decorate([
36
- common_1.tag(common_1.ServiceDefinitionTagEnum.RouterResponseEnricher),
37
- common_1.moduleScoped(networking_module_keyname_1.NetworkingModuleKeyname)
38
- ], RouterResponseEnricher);
39
- exports.RouterResponseEnricher = RouterResponseEnricher;
40
- //# sourceMappingURL=router-response.enricher.js.map
36
+ ResponseHeadersInterceptor = __decorate([
37
+ common_1.tag(common_1.ServiceDefinitionTagEnum.RequestInterceptor),
38
+ common_1.moduleScoped(networking_module_keyname_1.NetworkingModuleKeyname),
39
+ tsyringe_1.injectable()
40
+ ], ResponseHeadersInterceptor);
41
+ exports.ResponseHeadersInterceptor = ResponseHeadersInterceptor;
42
+ //# sourceMappingURL=response-headers.interceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-headers.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/response-headers.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAAmG;AACnG,4EAAqE;AAGrE,uCAAoC;AACpC;;;GAGG;AAIH,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAC7B,iBAAiB,CAAC,QAAkB,EAAE,OAAgB,EAAE,UAA6B;;YACvF,IAAG,UAAU,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAC;gBACpG,QAAQ,CAAC,OAAO,mCAAO,QAAQ,CAAC,OAAO,GAAK,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;aACxF;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ,CAAA;AARY,0BAA0B;IAHtC,YAAG,CAAC,iCAAwB,CAAC,kBAAkB,CAAC;IAChD,qBAAY,CAAC,mDAAuB,CAAC;IACrC,qBAAU,EAAE;GACA,0BAA0B,CAQtC;AARY,gEAA0B"}
@@ -17,10 +17,9 @@ __exportStar(require("./identity-parameteter-decorator.interface"), exports);
17
17
  __exportStar(require("./parameter-decorator.interface"), exports);
18
18
  __exportStar(require("./query-parameter-decorator.interface"), exports);
19
19
  __exportStar(require("./query-parameters-decorator.interface"), exports);
20
+ __exportStar(require("./request-interceptor.interface"), exports);
20
21
  __exportStar(require("./request-parameter-decorator.interface"), exports);
21
22
  __exportStar(require("./route-method-decorator.interface"), exports);
22
23
  __exportStar(require("./route-parameter-decorator.interface"), exports);
23
24
  __exportStar(require("./router.interface"), exports);
24
- __exportStar(require("./router-request-enricher.interface"), exports);
25
- __exportStar(require("./router-response-enricher.interface"), exports);
26
25
  //# sourceMappingURL=interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAqD;AACrD,6FAA2E;AAC3E,0EAAwD;AACxD,6EAA2D;AAC3D,kEAAgD;AAChD,wEAAsD;AACtD,yEAAuD;AACvD,0EAAwD;AACxD,qEAAmD;AACnD,wEAAsD;AACtD,qDAAmC;AACnC,sEAAoD;AACpD,uEAAqD"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/interfaces/interfaces.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAqD;AACrD,6FAA2E;AAC3E,0EAAwD;AACxD,6EAA2D;AAC3D,kEAAgD;AAChD,wEAAsD;AACtD,yEAAuD;AACvD,kEAAgD;AAChD,0EAAwD;AACxD,qEAAmD;AACnD,wEAAsD;AACtD,qDAAmC"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=router-request-enricher.interface.js.map
3
+ //# sourceMappingURL=request-interceptor.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-interceptor.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/request-interceptor.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./request.mapper"), exports);
14
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../src/mappers/mappers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.RequestMapper = void 0;
10
+ const common_1 = require("@pristine-ts/common");
11
+ const tsyringe_1 = require("tsyringe");
12
+ const networking_module_keyname_1 = require("../networking.module.keyname");
13
+ const core_1 = require("@pristine-ts/core");
14
+ let RequestMapper = class RequestMapper {
15
+ supportsMapping(rawEvent, executionContext) {
16
+ return rawEvent instanceof common_1.Request;
17
+ }
18
+ map(rawEvent, executionContext) {
19
+ return {
20
+ executionOrder: "sequential",
21
+ events: [new core_1.Event("Request", rawEvent)],
22
+ };
23
+ }
24
+ supportsReverseMapping(eventResponse, response, executionContext) {
25
+ return eventResponse.response instanceof common_1.Response;
26
+ }
27
+ reverseMap(eventResponse, response, executionContext) {
28
+ return eventResponse.response;
29
+ }
30
+ };
31
+ RequestMapper = __decorate([
32
+ common_1.moduleScoped(networking_module_keyname_1.NetworkingModuleKeyname),
33
+ common_1.tag(common_1.ServiceDefinitionTagEnum.EventMapper),
34
+ tsyringe_1.injectable()
35
+ ], RequestMapper);
36
+ exports.RequestMapper = RequestMapper;
37
+ //# sourceMappingURL=request.mapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/request.mapper.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gDAAmG;AACnG,uCAAoC;AACpC,4EAAqE;AACrE,4CAM2B;AAK3B,IAAa,aAAa,GAA1B,MAAa,aAAa;IACtB,eAAe,CAAC,QAAa,EAAE,gBAAgD;QAC3E,OAAO,QAAQ,YAAY,gBAAO,CAAC;IACvC,CAAC;IAED,GAAG,CAAC,QAAa,EAAE,gBAAgD;QAC/D,OAAO;YACH,cAAc,EAAE,YAAY;YAC5B,MAAM,EAAE,CAAC,IAAI,YAAK,CAAU,SAAS,EAAE,QAAQ,CAAC,CAAC;SACpD,CAAC;IACN,CAAC;IAED,sBAAsB,CAAC,aAA+C,EAAE,QAAa,EAAE,gBAAgD;QACnI,OAAO,aAAa,CAAC,QAAQ,YAAY,iBAAQ,CAAC;IACtD,CAAC;IAED,UAAU,CAAC,aAA+C,EAAE,QAAa,EAAE,gBAAgD;QACvH,OAAO,aAAa,CAAC,QAAQ,CAAC;IAClC,CAAC;CAEJ,CAAA;AApBY,aAAa;IAHzB,qBAAY,CAAC,mDAAuB,CAAC;IACrC,YAAG,CAAC,iCAAwB,CAAC,WAAW,CAAC;IACzC,qBAAU,EAAE;GACA,aAAa,CAoBzB;AApBY,sCAAa"}
@@ -10,7 +10,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./request"), exports);
14
- __exportStar(require("./response"), exports);
15
13
  __exportStar(require("./route"), exports);
16
14
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/models/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB"}
@@ -14,10 +14,13 @@ exports.NetworkingModule = void 0;
14
14
  const networking_module_keyname_1 = require("./networking.module.keyname");
15
15
  const security_1 = require("@pristine-ts/security");
16
16
  const telemetry_1 = require("@pristine-ts/telemetry");
17
+ const configuration_1 = require("@pristine-ts/configuration");
17
18
  __exportStar(require("./decorators/decorators"), exports);
18
- __exportStar(require("./enrichers/enrichers"), exports);
19
19
  __exportStar(require("./errors/errors"), exports);
20
+ __exportStar(require("./handlers/handlers"), exports);
21
+ __exportStar(require("./interceptors/interceptors"), exports);
20
22
  __exportStar(require("./interfaces/interfaces"), exports);
23
+ __exportStar(require("./mappers/mappers"), exports);
21
24
  __exportStar(require("./models/models"), exports);
22
25
  __exportStar(require("./nodes/nodes"), exports);
23
26
  __exportStar(require("./resolvers/resolvers"), exports);
@@ -29,6 +32,15 @@ exports.NetworkingModule = {
29
32
  security_1.SecurityModule,
30
33
  telemetry_1.TelemetryModule,
31
34
  ],
32
- configurationDefinitions: [],
35
+ configurationDefinitions: [
36
+ {
37
+ parameterName: networking_module_keyname_1.NetworkingModuleKeyname + ".request_body_converter.is_active",
38
+ isRequired: false,
39
+ defaultValue: true,
40
+ defaultResolvers: [
41
+ new configuration_1.BooleanResolver(new configuration_1.EnvironmentVariableResolver("PRISTINE_NETWORKING_REQUEST_BODY_CONVERTER_IS_ACTIVE")),
42
+ ],
43
+ }
44
+ ],
33
45
  };
34
46
  //# sourceMappingURL=networking.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"networking.module.js","sourceRoot":"","sources":["../../../src/networking.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2EAAoE;AACpE,oDAAqD;AACrD,sDAAuD;AAEvD,0DAAwC;AACxC,wDAAsC;AACtC,kDAAgC;AAChC,0DAAwC;AACxC,kDAAgC;AAChC,gDAA8B;AAC9B,wDAAsC;AACtC,gDAA8B;AAE9B,2CAAyB;AAEZ,QAAA,gBAAgB,GAAoB;IAC7C,OAAO,EAAE,mDAAuB;IAChC,aAAa,EAAE;QACX,yBAAc;QACd,2BAAe;KAClB;IACD,wBAAwB,EAAE,EAEzB;CACJ,CAAA"}
1
+ {"version":3,"file":"networking.module.js","sourceRoot":"","sources":["../../../src/networking.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,2EAAoE;AACpE,oDAAqD;AACrD,sDAAuD;AACvD,8DAAwF;AAExF,0DAAwC;AACxC,kDAAgC;AAChC,sDAAoC;AACpC,8DAA4C;AAC5C,0DAAwC;AACxC,oDAAkC;AAClC,kDAAgC;AAChC,gDAA8B;AAC9B,wDAAsC;AACtC,gDAA8B;AAE9B,2CAAyB;AAEZ,QAAA,gBAAgB,GAAoB;IAC7C,OAAO,EAAE,mDAAuB;IAChC,aAAa,EAAE;QACX,yBAAc;QACd,2BAAe;KAClB;IACD,wBAAwB,EAAE;QACtB;YACI,aAAa,EAAE,mDAAuB,GAAG,mCAAmC;YAC5E,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,IAAI;YAClB,gBAAgB,EAAE;gBACd,IAAI,+BAAe,CAAC,IAAI,2CAA2B,CAAC,sDAAsD,CAAC,CAAC;aAC/G;SACJ;KACJ;CACJ,CAAA"}