@transcend-io/cli 4.75.0 → 4.76.0

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.
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.buildEnabledRouteType = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const codecs_1 = require("../codecs");
29
+ /**
30
+ * Builds a custom io-ts type that represents a route allowed by the proxy
31
+ *
32
+ * @param TRouteName - the string with the name of the allowed route
33
+ * @returns custom io-ts AllowedRoute type
34
+ */
35
+ const buildEnabledRouteType = ({ TRouteName, }) => t.type({
36
+ routeName: TRouteName,
37
+ enabledPolicies: t.array(codecs_1.Policy),
38
+ });
39
+ exports.buildEnabledRouteType = buildEnabledRouteType;
40
+ //# sourceMappingURL=buildEnabledRouteType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildEnabledRouteType.js","sourceRoot":"","sources":["../../src/helpers/buildEnabledRouteType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAAkD;AAElD;;;;;GAKG;AACI,MAAM,qBAAqB,GAAG,CAAoB,EACvD,UAAU,GAIX,EAAiB,EAAE,CAClB,CAAC,CAAC,IAAI,CAAC;IACL,SAAS,EAAE,UAAU;IACrB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,eAAM,CAAC;CACjC,CAAC,CAAC;AATQ,QAAA,qBAAqB,yBAS7B"}