quidproquo-webserver 0.0.9 → 0.0.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/lib/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export { ServiceInfrastructureConfig, ServiceInfrastructureConfigs, ServiceInfra
5
5
  export { DnsServiceInfrastructureConfig } from "./serviceInfrastructureDefinitions/dns";
6
6
  export { RouteInfrastructureConfig } from "./serviceInfrastructureDefinitions/route";
7
7
  export { ServiceNameInfrastructureConfig } from "./serviceInfrastructureDefinitions/serviceName";
8
+ export { SrcPathname } from "./types/srcFileTypes";
8
9
  export { default as utils } from "./utils";
package/lib/utils.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import { ServiceInfrastructureConfigType, ServiceInfrastructureConfig, ServiceInfrastructureConfigs } from "./serviceInfrastructureDefinitions/ServiceInfrastructureConfig";
2
+ import { SrcPathname } from "./types/srcFileTypes";
3
+ export declare const getAllSrcEntries: (configs: ServiceInfrastructureConfigs) => SrcPathname[];
2
4
  declare const _default: {
3
5
  getServiceInfrastructureDefinitions: <T extends ServiceInfrastructureConfig>(configs: ServiceInfrastructureConfigs, serviceInfrastructureConfigType: ServiceInfrastructureConfigType) => T[];
4
6
  getServiceInfrastructureDefinition: <T_1 extends ServiceInfrastructureConfig>(configs: ServiceInfrastructureConfigs, serviceInfrastructureConfigType: ServiceInfrastructureConfigType) => T_1 | undefined;
7
+ getAllSrcEntries: (configs: ServiceInfrastructureConfigs) => string[];
5
8
  };
6
9
  export default _default;
package/lib/utils.js CHANGED
@@ -1,12 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllSrcEntries = void 0;
4
+ const ServiceInfrastructureConfig_1 = require("./serviceInfrastructureDefinitions/ServiceInfrastructureConfig");
3
5
  const getServiceInfrastructureDefinitions = (configs, serviceInfrastructureConfigType) => {
4
6
  return configs.filter((c) => c.serviceInfrastructureConfigType === serviceInfrastructureConfigType);
5
7
  };
6
8
  const getServiceInfrastructureDefinition = (configs, serviceInfrastructureConfigType) => {
7
9
  return getServiceInfrastructureDefinitions(configs, serviceInfrastructureConfigType)[0];
8
10
  };
11
+ const getAllSrcEntries = (configs) => {
12
+ const routes = getServiceInfrastructureDefinitions(configs, ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType.ROUTE);
13
+ return routes.map((r) => r.src);
14
+ };
15
+ exports.getAllSrcEntries = getAllSrcEntries;
9
16
  exports.default = {
10
17
  getServiceInfrastructureDefinitions,
11
18
  getServiceInfrastructureDefinition,
19
+ getAllSrcEntries: exports.getAllSrcEntries,
12
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-webserver",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",