@taruvi/sdk 1.1.8 → 1.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taruvi/sdk",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "Taruvi SDK",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -1,12 +1,16 @@
1
- export enum MimeTypeCategory {
2
- IMAGE = 'image',
3
- VIDEO = 'video',
4
- AUDIO = 'audio',
5
- APPLICATION = 'application',
6
- TEXT = 'text'
7
- }
1
+ export const MimeTypeCategory = {
2
+ IMAGE: 'image',
3
+ VIDEO: 'video',
4
+ AUDIO: 'audio',
5
+ APPLICATION: 'application',
6
+ TEXT: 'text'
7
+ } as const
8
8
 
9
- export enum Visibility {
10
- PUBLIC = 'public',
11
- PRIVATE = 'private'
12
- }
9
+ export type MimeTypeCategory = typeof MimeTypeCategory[keyof typeof MimeTypeCategory]
10
+
11
+ export const Visibility = {
12
+ PUBLIC: 'public',
13
+ PRIVATE: 'private'
14
+ } as const
15
+
16
+ export type Visibility = typeof Visibility[keyof typeof Visibility]
@@ -1,9 +1,6 @@
1
1
  const _window = typeof window !== 'undefined' ? window : undefined
2
- const _global = typeof global !== 'undefined' ? global : undefined
3
- const _process = typeof process !== 'undefined' ? process : undefined
4
2
  const _navigator = typeof navigator !== 'undefined' ? navigator : undefined
5
3
  const _document = typeof document !== 'undefined' ? document : undefined
6
- const _self = typeof self !== 'undefined' ? self : undefined
7
4
 
8
5
  export const isBrowser = (): boolean => {
9
6
  return _window !== undefined && _document !== undefined