MCPcopy Create free account
hub / github.com/ShipSecAI/studio / ensureS3Config

Function ensureS3Config

worker/src/destinations/adapters/s3.ts:109–117  ·  view source on GitHub ↗
(config: unknown)

Source from the content-addressed store, hash-verified

107};
108
109function ensureS3Config(config: unknown): S3AdapterConfig {
110 if (!isS3Config(config)) {
111 throw new ConfigurationError('S3 destination requires a bucket name.', {
112 configKey: 'bucket',
113 details: { receivedConfig: typeof config },
114 });
115 }
116 return config;
117}
118
119function isS3Config(config: unknown): config is S3AdapterConfig {
120 if (!config || typeof config !== 'object') {

Callers 1

saveFunction · 0.85

Calls 1

isS3ConfigFunction · 0.85

Tested by

no test coverage detected