gl-store-s3.js/node_modules/aws-sdk/lib/api_loader.js

20 lines
440 B
JavaScript
Raw Normal View History

2019-05-08 11:19:12 +00:00
function apiLoader(svc, version) {
if (!apiLoader.services.hasOwnProperty(svc)) {
throw new Error('InvalidService: Failed to load api for ' + svc);
}
return apiLoader.services[svc][version];
}
/**
* @api private
*
* This member of AWS.apiLoader is private, but changing it will necessitate a
* change to ../scripts/services-table-generator.ts
*/
apiLoader.services = {};
/**
* @api private
*/
module.exports = apiLoader;