include node_modules so release .zip is deployable

This commit is contained in:
2023-11-24 17:44:25 -05:00
parent 6c86cfe5d2
commit 8b11c41267
8963 changed files with 874175 additions and 1 deletions
@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEndpointProperty = void 0;
const types_1 = require("../types");
const evaluateTemplate_1 = require("./evaluateTemplate");
const getEndpointProperties_1 = require("./getEndpointProperties");
const getEndpointProperty = (property, options) => {
if (Array.isArray(property)) {
return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options));
}
switch (typeof property) {
case "string":
return (0, evaluateTemplate_1.evaluateTemplate)(property, options);
case "object":
if (property === null) {
throw new types_1.EndpointError(`Unexpected endpoint property: ${property}`);
}
return (0, getEndpointProperties_1.getEndpointProperties)(property, options);
case "boolean":
return property;
default:
throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`);
}
};
exports.getEndpointProperty = getEndpointProperty;