File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ const ALGORITHM: string = "AWS4-HMAC-SHA256";
10
10
const CONTENT_TYPE : string = "application/x-amz-json-1.0" ;
11
11
12
12
/** Required configuration for assembling headers. */
13
- export interface HeadersConfig extends ClientConfig {
13
+ interface HeadersConfig extends ClientConfig {
14
14
host : string ; // dynamodb.us-west-2.amazonaws.com
15
15
method : string ; // POST
16
16
cache : Doc ; // internal cache for expensive-2-make signing key (& credScope)
17
17
date ?: Date ; // allows reusing a date for 5min (max signature timestamp diff)
18
18
}
19
19
20
+ export type { HeadersConfig } ;
21
+
20
22
/** Assembles a header object for a DynamoDB request. */
21
23
export async function createHeaders (
22
24
op : string ,
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ const ANY_BUT_DIGITS: RegExp = /[^\d]/g;
2
2
const ANY_BUT_DIGITS_T : RegExp = / [ ^ \d T ] / g;
3
3
4
4
/** Generic document. */
5
- export interface Doc {
5
+ interface Doc {
6
6
[ key : string ] : any ;
7
7
}
8
8
9
+ export type { Doc } ;
10
+
9
11
/** noop. */
10
12
export function noop ( ..._ : any [ ] ) : void { }
11
13
You can’t perform that action at this time.
0 commit comments