asherah 1.0.30 → 1.0.31

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
package/dist/index.d.ts CHANGED
@@ -13,20 +13,24 @@ export declare type DataRowRecord = {
13
13
  Key: EnvelopeKeyRecord;
14
14
  };
15
15
  export declare type AsherahConfig = {
16
- kmsType: string;
17
- metastore: string;
18
- serviceName: string;
19
- productId: string;
20
- rdbmsConnectionString: string | null;
21
- dynamoDbEndpoint: string | null;
22
- dynamoDbRegion: string | null;
23
- dynamoDbTableName: string | null;
24
- enableRegionSuffix: boolean;
25
- preferredRegion: string | null;
26
- regionMap: string | null;
27
- verbose: boolean;
28
- sessionCache: boolean;
29
- debugOutput: boolean;
16
+ ServiceName: string;
17
+ ProductID: string;
18
+ ExpireAfter: number | null;
19
+ CheckInterval: number | null;
20
+ Metastore: string;
21
+ ConnectionString: string | null;
22
+ ReplicaReadConsistency: string | null;
23
+ DynamoDBEndpoint: string | null;
24
+ DynamoDBRegion: string | null;
25
+ DynamoDBTableName: string | null;
26
+ SessionCacheMaxSize: number | null;
27
+ SessionCacheDuration: number | null;
28
+ KMS: string | null;
29
+ RegionMap: string | null;
30
+ PreferredRegion: string | null;
31
+ EnableRegionSuffix: boolean | null;
32
+ EnableSessionCaching: boolean | null;
33
+ Verbose: boolean | null;
30
34
  };
31
35
  export declare function setup(config: AsherahConfig): void;
32
36
  export declare function decrypt(partitionId: string, dataRowRecord: DataRowRecord): Buffer;
package/dist/index.js CHANGED
@@ -8,10 +8,10 @@ const libasherah = (0, cobhan_1.load_platform_library)('node_modules/asherah/bin
8
8
  'SetupJson': ['int32', ['pointer']]
9
9
  });
10
10
  function setup(config) {
11
- const configJsonBuffer = (0, cobhan_1.string_to_cbuffer)(JSON.stringify(config));
11
+ const configJsonBuffer = (0, cobhan_1.json_to_cbuffer)(config);
12
12
  const result = libasherah.SetupJson(configJsonBuffer);
13
13
  if (result < 0) {
14
- throw new Error('setupJson failed: ' + result);
14
+ throw new Error('setup failed: ' + result);
15
15
  }
16
16
  }
17
17
  exports.setup = setup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asherah",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Asherah envelope encryption and key rotation library",
5
5
  "main": "dist/index.js",
6
6
  "repository": {