Skip to content

Commit 3e848b8

Browse files
Exports auth headers function (#37)
This PR exports the generateAuthHeaders function for external use. ### Background [OPDATA-2540](https://smartcontract-it.atlassian.net/browse/OPDATA-2540) ### Testing Ran unit tests via `npm test` [OPDATA-2540]: https://smartcontract-it.atlassian.net/browse/OPDATA-2540?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2 parents b7ed89a + 1edd20c commit 3e848b8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

typescript/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chainlink/data-streams-sdk",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "TypeScript SDK for Chainlink Data Streams",
55
"main": "dist/src/index.js",
66
"types": "dist/src/index.d.ts",

typescript/src/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ export { ConnectionStatus } from "./types/metrics";
6969
export * from "./types/errors";
7070

7171
// Utility Functions
72-
export {
73-
// Report utilities
74-
getReportVersion,
72+
export {
73+
// Report utilities
74+
getReportVersion,
7575
formatReport,
7676
// Time utilities
7777
getCurrentTimestamp,
78+
// Authentication Headers
79+
generateAuthHeaders,
7880
} from "./utils";
7981

8082
// Constants
8183
export { DEFAULT_CONFIG } from "./defaultConfig";
82-
export { DEFAULT_TIMEOUT, DEFAULT_RETRY_ATTEMPTS, DEFAULT_RETRY_DELAY } from "./utils/constants";
84+
export { DEFAULT_TIMEOUT, DEFAULT_RETRY_ATTEMPTS, DEFAULT_RETRY_DELAY } from "./utils/constants";

0 commit comments

Comments
 (0)