MCPcopy Create free account
hub / github.com/component/s3 / validateConfig

Function validateConfig

index.js:20–26  ·  view source on GitHub ↗

* Validate global configuration. * * @api private

()

Source from the content-addressed store, hash-verified

18 */
19
20function validateConfig() {
21 if (!S3.signature) throw new Error('S3.signature required');
22 if (!S3.bucket) throw new Error('S3.bucket required');
23 if (!S3.policy) throw new Error('S3.policy required');
24 if (!S3.key) throw new Error('S3.key required');
25 if (!S3.acl) throw new Error('S3.acl required');
26}
27
28/**
29 * Initialize a new `Upload` file` and options.

Callers 1

UploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected