quidproquo-webserver 0.0.5 → 0.0.6

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/lib/index.js CHANGED
@@ -1,8 +1,15 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defineDns = exports.defineRoute = void 0;
6
+ exports.utils = exports.ServiceInfrastructureConfigType = exports.defineDns = exports.defineRoute = void 0;
4
7
  var route_1 = require("./serviceInfrastructureDefinitions/route");
5
8
  Object.defineProperty(exports, "defineRoute", { enumerable: true, get: function () { return route_1.defineRoute; } });
6
9
  var dns_1 = require("./serviceInfrastructureDefinitions/dns");
7
10
  Object.defineProperty(exports, "defineDns", { enumerable: true, get: function () { return dns_1.defineDns; } });
11
+ var ServiceInfrastructureConfig_1 = require("./serviceInfrastructureDefinitions/ServiceInfrastructureConfig");
12
+ Object.defineProperty(exports, "ServiceInfrastructureConfigType", { enumerable: true, get: function () { return ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType; } });
13
+ var utils_1 = require("./utils");
14
+ Object.defineProperty(exports, "utils", { enumerable: true, get: function () { return __importDefault(utils_1).default; } });
8
15
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuE;AAA9D,oGAAA,WAAW,OAAA;AACpB,8DAAmE;AAA1D,gGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAuE;AAA9D,oGAAA,WAAW,OAAA;AACpB,8DAAmE;AAA1D,gGAAA,SAAS,OAAA;AAElB,8GAIwE;AADtE,8IAAA,+BAA+B,OAAA;AAGjC,iCAA2C;AAAlC,+GAAA,OAAO,OAAS"}
package/lib/utils.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const getServiceInfrastructureDefinitions = (configs, serviceInfrastructureConfigType) => {
4
+ return configs.filter((c) => c.serviceInfrastructureConfigType === serviceInfrastructureConfigType);
5
+ };
6
+ const getServiceInfrastructureDefinition = (configs, serviceInfrastructureConfigType) => {
7
+ return getServiceInfrastructureDefinitions(configs, serviceInfrastructureConfigType)[0];
8
+ };
9
+ exports.default = {
10
+ getServiceInfrastructureDefinitions,
11
+ getServiceInfrastructureDefinition,
12
+ };
13
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAMA,MAAM,mCAAmC,GAAG,CAG1C,OAAqC,EACrC,+BAAgE,EAC3D,EAAE;IACP,OAAO,OAAO,CAAC,MAAM,CACnB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,+BAA+B,KAAK,+BAA+B,CACtE,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,kCAAkC,GAAG,CAGzC,OAAqC,EACrC,+BAAgE,EACjD,EAAE;IACjB,OAAO,mCAAmC,CACxC,OAAO,EACP,+BAA+B,CAChC,CAAC,CAAC,CAAM,CAAC;AACZ,CAAC,CAAC;AAEF,kBAAe;IACb,mCAAmC;IACnC,kCAAkC;CACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-webserver",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "files": [