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,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isVirtualHostableS3Bucket = void 0;
const util_endpoints_1 = require("@smithy/util-endpoints");
const isIpAddress_1 = require("../isIpAddress");
const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
if (allowSubDomains) {
for (const label of value.split(".")) {
if (!(0, exports.isVirtualHostableS3Bucket)(label)) {
return false;
}
}
return true;
}
if (!(0, util_endpoints_1.isValidHostLabel)(value)) {
return false;
}
if (value.length < 3 || value.length > 63) {
return false;
}
if (value !== value.toLowerCase()) {
return false;
}
if ((0, isIpAddress_1.isIpAddress)(value)) {
return false;
}
return true;
};
exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket;