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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
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('
|
|
14
|
+
throw new Error('setup failed: ' + result);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.setup = setup;
|