quidproquo-webserver 0.0.8 → 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 +2 -0
- package/lib/index.js +3 -1
- package/lib/utils.d.ts +3 -0
- package/lib/utils.js +8 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { defineRoute } from "./serviceInfrastructureDefinitions/route";
|
|
2
2
|
export { defineDns } from "./serviceInfrastructureDefinitions/dns";
|
|
3
|
+
export { defineServiceName } from "./serviceInfrastructureDefinitions/serviceName";
|
|
3
4
|
export { ServiceInfrastructureConfig, ServiceInfrastructureConfigs, ServiceInfrastructureConfigType, } from "./serviceInfrastructureDefinitions/ServiceInfrastructureConfig";
|
|
4
5
|
export { DnsServiceInfrastructureConfig } from "./serviceInfrastructureDefinitions/dns";
|
|
5
6
|
export { RouteInfrastructureConfig } from "./serviceInfrastructureDefinitions/route";
|
|
6
7
|
export { ServiceNameInfrastructureConfig } from "./serviceInfrastructureDefinitions/serviceName";
|
|
8
|
+
export { SrcPathname } from "./types/srcFileTypes";
|
|
7
9
|
export { default as utils } from "./utils";
|
package/lib/index.js
CHANGED
|
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.utils = exports.ServiceInfrastructureConfigType = exports.defineDns = exports.defineRoute = void 0;
|
|
6
|
+
exports.utils = exports.ServiceInfrastructureConfigType = exports.defineServiceName = exports.defineDns = exports.defineRoute = void 0;
|
|
7
7
|
var route_1 = require("./serviceInfrastructureDefinitions/route");
|
|
8
8
|
Object.defineProperty(exports, "defineRoute", { enumerable: true, get: function () { return route_1.defineRoute; } });
|
|
9
9
|
var dns_1 = require("./serviceInfrastructureDefinitions/dns");
|
|
10
10
|
Object.defineProperty(exports, "defineDns", { enumerable: true, get: function () { return dns_1.defineDns; } });
|
|
11
|
+
var serviceName_1 = require("./serviceInfrastructureDefinitions/serviceName");
|
|
12
|
+
Object.defineProperty(exports, "defineServiceName", { enumerable: true, get: function () { return serviceName_1.defineServiceName; } });
|
|
11
13
|
var ServiceInfrastructureConfig_1 = require("./serviceInfrastructureDefinitions/ServiceInfrastructureConfig");
|
|
12
14
|
Object.defineProperty(exports, "ServiceInfrastructureConfigType", { enumerable: true, get: function () { return ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType; } });
|
|
13
15
|
var utils_1 = require("./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
|
};
|