Skip to content

Commit 146ecb2

Browse files
committed
chore: convert constants from enum to object
1 parent d3257c0 commit 146ecb2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/utils/InstabugConstants.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
enum InstabugConstants {
2-
GRAPHQL_HEADER = 'ibg-graphql-header',
1+
const InstabugConstants = {
2+
GRAPHQL_HEADER: 'ibg-graphql-header',
33

44
// TODO: dyanmically get the max size from the native SDK and update the error message to reflect the dynamic size.
5-
MAX_NETWORK_BODY_SIZE_IN_BYTES = 1024 * 10, // 10 KB
6-
MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE = 'The response body has not been logged because it exceeds the maximum size of 10 Kb',
7-
MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE = 'The request body has not been logged because it exceeds the maximum size of 10 Kb',
8-
}
5+
MAX_NETWORK_BODY_SIZE_IN_BYTES: 1024 * 10, // 10 KB
6+
MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE:
7+
'The response body has not been logged because it exceeds the maximum size of 10 Kb',
8+
MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE:
9+
'The request body has not been logged because it exceeds the maximum size of 10 Kb',
10+
};
911

1012
export default InstabugConstants;

0 commit comments

Comments
 (0)