asherah 1.0.9 → 1.0.10

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/index.js CHANGED
@@ -46,6 +46,7 @@ import cobhan from 'cobhan'
46
46
  * @param {string} [args.dynamoDbTableName]
47
47
  * @param {boolean} [args.enableRegionSuffix]
48
48
  * @param {string} [args.preferredRegion]
49
+ * @param {string} [args.regionMap]
49
50
  * @param {boolean} [args.verbose]
50
51
  * @param {boolean} [args.sessionCache]
51
52
  */
@@ -60,6 +61,7 @@ function setup({
60
61
  dynamoDbTableName = null,
61
62
  enableRegionSuffix = null,
62
63
  preferredRegion = null,
64
+ regionMap = null,
63
65
  verbose = false,
64
66
  sessionCache = false
65
67
  }) {
@@ -73,10 +75,11 @@ function setup({
73
75
  const serviceNameBuffer = cobhan.string_to_cbuffer(serviceName)
74
76
  const productIdBuffer = cobhan.string_to_cbuffer(productId)
75
77
  const preferredRegionBuffer = cobhan.string_to_cbuffer(preferredRegion)
78
+ const regionMapBuffer = cobhan.string_to_cbuffer(regionMap)
76
79
  const verboseInt = verbose ? 1 : 0
77
80
  const sessionCacheInt = sessionCache ? 1 : 0
78
81
 
79
- const result = libasherah.Setup(kmsTypeBuffer, metastoreBuffer, rdbmsConnectionStringBuffer, dynamoDbEndpointBuffer, dynamoDbRegionBuffer, dynamoDbTableNameBuffer, enableRegionSuffixInt, serviceNameBuffer, productIdBuffer, preferredRegionBuffer, verboseInt, sessionCacheInt);
82
+ const result = libasherah.Setup(kmsTypeBuffer, metastoreBuffer, rdbmsConnectionStringBuffer, dynamoDbEndpointBuffer, dynamoDbRegionBuffer, dynamoDbTableNameBuffer, enableRegionSuffixInt, serviceNameBuffer, productIdBuffer, preferredRegionBuffer, regionMapBuffer, verboseInt, sessionCacheInt);
80
83
  if (result < 0) {
81
84
  throw new Error('setup failed: ' + result);
82
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asherah",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Asherah envelope encryption and key rotation library",
5
5
  "main": "index.js",
6
6
  "type": "module",