@pi-r/aws-lib 0.11.3 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +15 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,17 +1,5 @@
1
1
  "use strict";
2
- exports.isAccessDefined = isAccessDefined;
3
- exports.isEnvDefined = isEnvDefined;
4
- exports.isSharedCredentialsDefined = isSharedCredentialsDefined;
5
- exports.isProviderChainDefined = isProviderChainDefined;
6
- exports.isDatabaseDefined = isDatabaseDefined;
7
- exports.getPublicReadPolicy = getPublicReadPolicy;
8
- exports.getBucketPublicReadPolicy = getBucketPublicReadPolicy;
9
- exports.getPrivatePolicy = getPrivatePolicy;
10
- exports.setEndpoint = setEndpoint;
11
- exports.setDatabaseEndpoint = setDatabaseEndpoint;
12
- exports.checkBucketCannedACL = checkBucketCannedACL;
13
- exports.formatDefaultRetention = formatDefaultRetention;
14
- exports.getBucketKey = getBucketKey;
2
+
15
3
  function isAccessDefined(credential) {
16
4
  return !!(credential.accessKeyId && credential.secretAccessKey);
17
5
  }
@@ -118,3 +106,17 @@ function formatDefaultRetention(retention) {
118
106
  function getBucketKey(credential, bucket, acl, service, sdk) {
119
107
  return JSON.stringify(credential) + bucket + '_' + (acl || '') + service + sdk;
120
108
  }
109
+
110
+ exports.checkBucketCannedACL = checkBucketCannedACL;
111
+ exports.formatDefaultRetention = formatDefaultRetention;
112
+ exports.getBucketKey = getBucketKey;
113
+ exports.getBucketPublicReadPolicy = getBucketPublicReadPolicy;
114
+ exports.getPrivatePolicy = getPrivatePolicy;
115
+ exports.getPublicReadPolicy = getPublicReadPolicy;
116
+ exports.isAccessDefined = isAccessDefined;
117
+ exports.isDatabaseDefined = isDatabaseDefined;
118
+ exports.isEnvDefined = isEnvDefined;
119
+ exports.isProviderChainDefined = isProviderChainDefined;
120
+ exports.isSharedCredentialsDefined = isSharedCredentialsDefined;
121
+ exports.setDatabaseEndpoint = setDatabaseEndpoint;
122
+ exports.setEndpoint = setEndpoint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/aws-lib",
3
- "version": "0.11.3",
3
+ "version": "0.12.0",
4
4
  "description": "AWS cloud utility functions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",