@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 +1 -1
- package/src/utils/enums.ts +15 -11
- package/src/utils/utils.ts +0 -3
package/package.json
CHANGED
package/src/utils/enums.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
IMAGE
|
|
3
|
-
VIDEO
|
|
4
|
-
AUDIO
|
|
5
|
-
APPLICATION
|
|
6
|
-
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
|
|
10
|
-
|
|
11
|
-
|
|
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]
|
package/src/utils/utils.ts
CHANGED
|
@@ -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
|