react-native-compressor 1.16.0 → 1.16.2
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/README.md +0 -2
- package/ios/Utils/Uploader.swift +10 -1
- package/lib/commonjs/Audio/index.js +2 -4
- package/lib/commonjs/Audio/index.js.map +1 -1
- package/lib/commonjs/Image/index.js +3 -5
- package/lib/commonjs/Image/index.js.map +1 -1
- package/lib/commonjs/Main.js +1 -2
- package/lib/commonjs/Main.js.map +1 -1
- package/lib/commonjs/Spec/NativeCompressor.js +1 -2
- package/lib/commonjs/Spec/NativeCompressor.js.map +1 -1
- package/lib/commonjs/Video/index.js +12 -13
- package/lib/commonjs/Video/index.js.map +1 -1
- package/lib/commonjs/expo-plugin/compressor.js +1 -2
- package/lib/commonjs/expo-plugin/compressor.js.map +1 -1
- package/lib/commonjs/global.d.js +6 -0
- package/lib/commonjs/global.d.js.map +1 -0
- package/lib/commonjs/index.js +2 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/Downloader.js.map +1 -1
- package/lib/commonjs/utils/Uploader.js +7 -11
- package/lib/commonjs/utils/Uploader.js.map +1 -1
- package/lib/commonjs/utils/helpers.js.map +1 -1
- package/lib/commonjs/utils/index.js +7 -14
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/Audio/index.js +3 -2
- package/lib/module/Audio/index.js.map +1 -1
- package/lib/module/Image/index.js +4 -3
- package/lib/module/Image/index.js.map +1 -1
- package/lib/module/Main.js +2 -0
- package/lib/module/Main.js.map +1 -1
- package/lib/module/Spec/NativeCompressor.js +2 -0
- package/lib/module/Spec/NativeCompressor.js.map +1 -1
- package/lib/module/Video/index.js +13 -11
- package/lib/module/Video/index.js.map +1 -1
- package/lib/module/expo-plugin/compressor.js +2 -0
- package/lib/module/expo-plugin/compressor.js.map +1 -1
- package/lib/module/global.d.js +4 -0
- package/lib/module/global.d.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/Downloader.js +2 -0
- package/lib/module/utils/Downloader.js.map +1 -1
- package/lib/module/utils/Uploader.js +7 -7
- package/lib/module/utils/Uploader.js.map +1 -1
- package/lib/module/utils/helpers.js +2 -0
- package/lib/module/utils/helpers.js.map +1 -1
- package/lib/module/utils/index.js +8 -11
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/src/Audio/index.d.ts.map +1 -0
- package/lib/typescript/src/Image/index.d.ts.map +1 -0
- package/lib/typescript/src/Main.d.ts.map +1 -0
- package/lib/typescript/src/Spec/NativeCompressor.d.ts.map +1 -0
- package/lib/typescript/src/Video/index.d.ts.map +1 -0
- package/lib/typescript/src/expo-plugin/compressor.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → src/index.d.ts} +7 -7
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/Downloader.d.ts +2 -0
- package/lib/typescript/src/utils/Downloader.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/Uploader.d.ts +1 -1
- package/lib/typescript/src/utils/Uploader.d.ts.map +1 -0
- package/lib/typescript/src/utils/helpers.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/index.d.ts +1 -1
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/package.json +38 -95
- package/src/Image/index.tsx +5 -11
- package/src/Main.tsx +2 -4
- package/src/Spec/NativeCompressor.ts +1 -1
- package/src/Video/index.tsx +19 -43
- package/src/global.d.ts +8 -0
- package/src/utils/Downloader.tsx +5 -12
- package/src/utils/Uploader.tsx +6 -12
- package/src/utils/helpers.ts +1 -8
- package/src/utils/index.tsx +10 -30
- package/lib/typescript/Audio/index.d.ts.map +0 -1
- package/lib/typescript/Image/index.d.ts.map +0 -1
- package/lib/typescript/Main.d.ts.map +0 -1
- package/lib/typescript/Spec/NativeCompressor.d.ts.map +0 -1
- package/lib/typescript/Video/index.d.ts.map +0 -1
- package/lib/typescript/expo-plugin/compressor.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/utils/Downloader.d.ts +0 -2
- package/lib/typescript/utils/Downloader.d.ts.map +0 -1
- package/lib/typescript/utils/Uploader.d.ts.map +0 -1
- package/lib/typescript/utils/helpers.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts.map +0 -1
- /package/lib/typescript/{Audio → src/Audio}/index.d.ts +0 -0
- /package/lib/typescript/{Image → src/Image}/index.d.ts +0 -0
- /package/lib/typescript/{Main.d.ts → src/Main.d.ts} +0 -0
- /package/lib/typescript/{Spec → src/Spec}/NativeCompressor.d.ts +0 -0
- /package/lib/typescript/{Video → src/Video}/index.d.ts +0 -0
- /package/lib/typescript/{expo-plugin → src/expo-plugin}/compressor.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/helpers.d.ts +0 -0
package/src/Video/index.tsx
CHANGED
|
@@ -18,11 +18,7 @@ type videoCompresssionType = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export type VideoCompressorType = {
|
|
21
|
-
compress(
|
|
22
|
-
fileUrl: string,
|
|
23
|
-
options?: videoCompresssionType,
|
|
24
|
-
onProgress?: (progress: number) => void
|
|
25
|
-
): Promise<string>;
|
|
21
|
+
compress(fileUrl: string, options?: videoCompresssionType, onProgress?: (progress: number) => void): Promise<string>;
|
|
26
22
|
cancelCompression(cancellationId: string): void;
|
|
27
23
|
activateBackgroundTask(onExpired?: (data: any) => void): Promise<any>;
|
|
28
24
|
deactivateBackgroundTask(): Promise<any>;
|
|
@@ -37,38 +33,27 @@ export const cancelCompression = (cancellationId: string) => {
|
|
|
37
33
|
};
|
|
38
34
|
|
|
39
35
|
const Video: VideoCompressorType = {
|
|
40
|
-
compress: async (
|
|
41
|
-
fileUrl: string,
|
|
42
|
-
options?: videoCompresssionType,
|
|
43
|
-
onProgress?: (progress: number) => void
|
|
44
|
-
) => {
|
|
36
|
+
compress: async (fileUrl: string, options?: videoCompresssionType, onProgress?: (progress: number) => void) => {
|
|
45
37
|
const uuid = uuidv4();
|
|
46
38
|
let subscription: NativeEventSubscription;
|
|
47
39
|
let subscription2: NativeEventSubscription;
|
|
48
40
|
|
|
49
41
|
try {
|
|
50
42
|
if (onProgress) {
|
|
51
|
-
subscription = VideoCompressEventEmitter.addListener(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (event.uuid === uuid) {
|
|
55
|
-
onProgress(event.data.progress);
|
|
56
|
-
}
|
|
43
|
+
subscription = VideoCompressEventEmitter.addListener('videoCompressProgress', (event: any) => {
|
|
44
|
+
if (event.uuid === uuid) {
|
|
45
|
+
onProgress(event.data.progress);
|
|
57
46
|
}
|
|
58
|
-
);
|
|
47
|
+
});
|
|
59
48
|
}
|
|
60
49
|
|
|
61
50
|
if (options?.downloadProgress) {
|
|
62
51
|
//@ts-ignore
|
|
63
|
-
subscription2 = VideoCompressEventEmitter.addListener(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
if (event.uuid === uuid) {
|
|
67
|
-
options.downloadProgress &&
|
|
68
|
-
options.downloadProgress(event.data.progress);
|
|
69
|
-
}
|
|
52
|
+
subscription2 = VideoCompressEventEmitter.addListener('downloadProgress', (event: any) => {
|
|
53
|
+
if (event.uuid === uuid) {
|
|
54
|
+
options.downloadProgress && options.downloadProgress(event.data.progress);
|
|
70
55
|
}
|
|
71
|
-
);
|
|
56
|
+
});
|
|
72
57
|
}
|
|
73
58
|
|
|
74
59
|
const modifiedOptions: {
|
|
@@ -79,8 +64,7 @@ const Video: VideoCompressorType = {
|
|
|
79
64
|
minimumFileSizeForCompress?: number;
|
|
80
65
|
progressDivider?: number;
|
|
81
66
|
} = { uuid };
|
|
82
|
-
if (options?.progressDivider)
|
|
83
|
-
modifiedOptions.progressDivider = options?.progressDivider;
|
|
67
|
+
if (options?.progressDivider) modifiedOptions.progressDivider = options?.progressDivider;
|
|
84
68
|
if (options?.bitrate) modifiedOptions.bitrate = options?.bitrate;
|
|
85
69
|
if (options?.compressionMethod) {
|
|
86
70
|
modifiedOptions.compressionMethod = options?.compressionMethod;
|
|
@@ -93,17 +77,13 @@ const Video: VideoCompressorType = {
|
|
|
93
77
|
modifiedOptions.maxSize = 640;
|
|
94
78
|
}
|
|
95
79
|
if (options?.minimumFileSizeForCompress !== undefined) {
|
|
96
|
-
modifiedOptions.minimumFileSizeForCompress =
|
|
97
|
-
options?.minimumFileSizeForCompress;
|
|
80
|
+
modifiedOptions.minimumFileSizeForCompress = options?.minimumFileSizeForCompress;
|
|
98
81
|
}
|
|
99
82
|
if (options?.getCancellationId) {
|
|
100
83
|
options?.getCancellationId(uuid);
|
|
101
84
|
}
|
|
102
85
|
|
|
103
|
-
const result = await NativeVideoCompressor.compress(
|
|
104
|
-
fileUrl,
|
|
105
|
-
modifiedOptions
|
|
106
|
-
);
|
|
86
|
+
const result = await NativeVideoCompressor.compress(fileUrl, modifiedOptions);
|
|
107
87
|
return result;
|
|
108
88
|
} finally {
|
|
109
89
|
// @ts-ignore
|
|
@@ -119,16 +99,12 @@ const Video: VideoCompressorType = {
|
|
|
119
99
|
cancelCompression,
|
|
120
100
|
activateBackgroundTask(onExpired?) {
|
|
121
101
|
if (onExpired) {
|
|
122
|
-
const subscription: NativeEventSubscription =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
subscription.remove();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
);
|
|
102
|
+
const subscription: NativeEventSubscription = VideoCompressEventEmitter.addListener('backgroundTaskExpired', (event: any) => {
|
|
103
|
+
onExpired(event);
|
|
104
|
+
if (subscription) {
|
|
105
|
+
subscription.remove();
|
|
106
|
+
}
|
|
107
|
+
});
|
|
132
108
|
}
|
|
133
109
|
return NativeVideoCompressor.activateBackgroundTask({});
|
|
134
110
|
},
|
package/src/global.d.ts
ADDED
package/src/utils/Downloader.tsx
CHANGED
|
@@ -3,23 +3,16 @@ import type { NativeEventSubscription } from 'react-native';
|
|
|
3
3
|
import { Compressor } from '../Main';
|
|
4
4
|
const CompressEventEmitter = new NativeEventEmitter(Compressor);
|
|
5
5
|
import { uuidv4 } from './helpers';
|
|
6
|
-
export const download = async (
|
|
7
|
-
fileUrl: string,
|
|
8
|
-
downloadProgress?: (progress: number) => void,
|
|
9
|
-
progressDivider?: number
|
|
10
|
-
): Promise<any> => {
|
|
6
|
+
export const download = async (fileUrl: string, downloadProgress?: (progress: number) => void, progressDivider?: number): Promise<any> => {
|
|
11
7
|
let subscription: NativeEventSubscription;
|
|
12
8
|
try {
|
|
13
9
|
const uuid = uuidv4();
|
|
14
10
|
if (downloadProgress) {
|
|
15
|
-
subscription = CompressEventEmitter.addListener(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (event.uuid === uuid) {
|
|
19
|
-
downloadProgress(event.data.progress);
|
|
20
|
-
}
|
|
11
|
+
subscription = CompressEventEmitter.addListener('downloadProgress', (event: any) => {
|
|
12
|
+
if (event.uuid === uuid) {
|
|
13
|
+
downloadProgress(event.data.progress);
|
|
21
14
|
}
|
|
22
|
-
);
|
|
15
|
+
});
|
|
23
16
|
}
|
|
24
17
|
if (Platform.OS === 'android' && fileUrl.includes('file://')) {
|
|
25
18
|
fileUrl = fileUrl.replace('file://', '');
|
package/src/utils/Uploader.tsx
CHANGED
|
@@ -39,10 +39,7 @@ export declare type UploaderOptions = (
|
|
|
39
39
|
getCancellationId?: (cancellationId: string) => void;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
export const cancelUpload: (
|
|
43
|
-
uuid?: string,
|
|
44
|
-
shouldCancelAll?: boolean
|
|
45
|
-
) => void = (uuid = '', shouldCancelAll = false) => {
|
|
42
|
+
export const cancelUpload: (uuid?: string, shouldCancelAll?: boolean) => void = (uuid = '', shouldCancelAll = false) => {
|
|
46
43
|
return Compressor.cancelUpload(uuid, shouldCancelAll);
|
|
47
44
|
};
|
|
48
45
|
|
|
@@ -51,20 +48,17 @@ export const backgroundUpload = async (
|
|
|
51
48
|
fileUrl: string,
|
|
52
49
|
options: UploaderOptions,
|
|
53
50
|
onProgress?: (writtem: number, total: number) => void,
|
|
54
|
-
abortSignal?: AbortSignal
|
|
51
|
+
abortSignal?: AbortSignal,
|
|
55
52
|
): Promise<any> => {
|
|
56
53
|
const uuid = uuidv4();
|
|
57
54
|
let subscription: NativeEventSubscription;
|
|
58
55
|
try {
|
|
59
56
|
if (onProgress) {
|
|
60
|
-
subscription = CompressEventEmitter.addListener(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (event.uuid === uuid) {
|
|
64
|
-
onProgress(event.data.written, event.data.total);
|
|
65
|
-
}
|
|
57
|
+
subscription = CompressEventEmitter.addListener('uploadProgress', (event: any) => {
|
|
58
|
+
if (event.uuid === uuid) {
|
|
59
|
+
onProgress(event.data.written, event.data.total);
|
|
66
60
|
}
|
|
67
|
-
);
|
|
61
|
+
});
|
|
68
62
|
}
|
|
69
63
|
if (Platform.OS === 'android' && fileUrl.includes('file://')) {
|
|
70
64
|
fileUrl = fileUrl.replace('file://', '');
|
package/src/utils/helpers.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
export const uuidv4 = () => {
|
|
2
2
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
3
|
-
const r =
|
|
4
|
-
(parseFloat(
|
|
5
|
-
'0.' +
|
|
6
|
-
Math.random().toString().replace('0.', '') +
|
|
7
|
-
new Date().getTime()
|
|
8
|
-
) *
|
|
9
|
-
16) |
|
|
10
|
-
0,
|
|
3
|
+
const r = (parseFloat('0.' + Math.random().toString().replace('0.', '') + new Date().getTime()) * 16) | 0,
|
|
11
4
|
// eslint-disable-next-line eqeqeq
|
|
12
5
|
v = c == 'x' ? r : (r & 0x3) | 0x8;
|
|
13
6
|
return v.toString(16);
|
package/src/utils/index.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable no-bitwise */
|
|
2
1
|
import { Compressor } from '../Main';
|
|
3
2
|
import { Platform } from 'react-native';
|
|
4
3
|
type qualityType = 'low' | 'medium' | 'high';
|
|
@@ -30,7 +29,7 @@ type createVideoThumbnailType = (
|
|
|
30
29
|
fileUrl: string,
|
|
31
30
|
options?: {
|
|
32
31
|
headers?: { [key: string]: string };
|
|
33
|
-
}
|
|
32
|
+
},
|
|
34
33
|
) => Promise<{
|
|
35
34
|
path: string;
|
|
36
35
|
size: number;
|
|
@@ -57,10 +56,7 @@ type getVideoMetaDataType = (filePath: string) => Promise<{
|
|
|
57
56
|
width: number;
|
|
58
57
|
height: number;
|
|
59
58
|
}>;
|
|
60
|
-
type getRealPathType = (
|
|
61
|
-
path: string,
|
|
62
|
-
type: 'video' | 'image'
|
|
63
|
-
) => Promise<string>;
|
|
59
|
+
type getRealPathType = (path: string, type: 'video' | 'image') => Promise<string>;
|
|
64
60
|
|
|
65
61
|
export const generateFilePath: any = (extension: string) => {
|
|
66
62
|
return new Promise((resolve, reject) => {
|
|
@@ -81,17 +77,11 @@ export const getVideoMetaData: getVideoMetaDataType = (path: string) => {
|
|
|
81
77
|
const unifyMetaData = (exifResult: any) => {
|
|
82
78
|
const output: any = {};
|
|
83
79
|
const isIos = Platform.OS === 'ios';
|
|
84
|
-
output.ImageWidth = isIos
|
|
85
|
-
? exifResult?.PixelWidth
|
|
86
|
-
: parseInt(exifResult.ImageWidth);
|
|
80
|
+
output.ImageWidth = isIos ? exifResult?.PixelWidth : parseInt(exifResult.ImageWidth);
|
|
87
81
|
|
|
88
|
-
output.ImageHeight = isIos
|
|
89
|
-
? exifResult?.PixelHeight
|
|
90
|
-
: parseInt(exifResult.ImageLength);
|
|
82
|
+
output.ImageHeight = isIos ? exifResult?.PixelHeight : parseInt(exifResult.ImageLength);
|
|
91
83
|
|
|
92
|
-
output.Orientation = isIos
|
|
93
|
-
? exifResult.Orientation
|
|
94
|
-
: parseInt(exifResult.Orientation);
|
|
84
|
+
output.Orientation = isIos ? exifResult.Orientation : parseInt(exifResult.Orientation);
|
|
95
85
|
|
|
96
86
|
output.size = exifResult.size;
|
|
97
87
|
output.extension = exifResult.extension;
|
|
@@ -104,10 +94,7 @@ export const getImageMetaData: getImageMetaDataType = async (path: string) => {
|
|
|
104
94
|
return unifyMetaData(result);
|
|
105
95
|
};
|
|
106
96
|
|
|
107
|
-
export const createVideoThumbnail: createVideoThumbnailType = (
|
|
108
|
-
fileUrl,
|
|
109
|
-
options = {}
|
|
110
|
-
) => {
|
|
97
|
+
export const createVideoThumbnail: createVideoThumbnailType = (fileUrl, options = {}) => {
|
|
111
98
|
return Compressor.createVideoThumbnail(fileUrl, options);
|
|
112
99
|
};
|
|
113
100
|
|
|
@@ -115,8 +102,7 @@ export const clearCache: clearCacheType = (cacheDir?: string) => {
|
|
|
115
102
|
return Compressor.clearCache(cacheDir);
|
|
116
103
|
};
|
|
117
104
|
|
|
118
|
-
const isValidUrl = (url: string) =>
|
|
119
|
-
/^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(url);
|
|
105
|
+
const isValidUrl = (url: string) => /^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(url);
|
|
120
106
|
|
|
121
107
|
const getFullFilename = (path: string | null) => {
|
|
122
108
|
if (typeof path === 'string') {
|
|
@@ -128,8 +114,7 @@ const getFullFilename = (path: string | null) => {
|
|
|
128
114
|
}
|
|
129
115
|
|
|
130
116
|
// In case of url, check if it ends with "/" and do not consider it furthermore
|
|
131
|
-
if (_path[_path.length - 1] === '/')
|
|
132
|
-
_path = _path.substring(0, path.length - 1);
|
|
117
|
+
if (_path[_path.length - 1] === '/') _path = _path.substring(0, path.length - 1);
|
|
133
118
|
|
|
134
119
|
const array = _path.split('/');
|
|
135
120
|
return array.length > 1 ? array[array.length - 1] : INCORRECT_INPUT_PATH;
|
|
@@ -151,15 +136,10 @@ const getFilename = (path: string | null) => {
|
|
|
151
136
|
};
|
|
152
137
|
|
|
153
138
|
const isRemoteMedia = (path: string | null) => {
|
|
154
|
-
return typeof path === 'string'
|
|
155
|
-
? path?.split(':/')?.[0]?.includes('http')
|
|
156
|
-
: null;
|
|
139
|
+
return typeof path === 'string' ? path?.split(':/')?.[0]?.includes('http') : null;
|
|
157
140
|
};
|
|
158
141
|
|
|
159
|
-
export const getDetails = (
|
|
160
|
-
mediaFullPath: string,
|
|
161
|
-
extesnion: 'mp3' | 'mp4' = 'mp3'
|
|
162
|
-
): Promise<any | null> => {
|
|
142
|
+
export const getDetails = (mediaFullPath: string, extesnion: 'mp3' | 'mp4' = 'mp3'): Promise<any | null> => {
|
|
163
143
|
return new Promise(async (resolve, reject) => {
|
|
164
144
|
try {
|
|
165
145
|
// Since we used "-v error", a work around is to call first this command before the following
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Audio/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,QAAA,MAAM,KAAK,EAAE,SAQZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Image/index.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAMF,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,KAAK,EAAE,SAkCZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../src/Main.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,UAAU,KASX,CAAC;AAEN,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeCompressor.d.ts","sourceRoot":"","sources":["../../../src/Spec/NativeCompressor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IAEvC,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpD,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG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B,eAAe,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compressor.d.ts","sourceRoot":"","sources":["../../../src/expo-plugin/compressor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAGzE,KAAK,KAAK,GAAG,EAAE,CAAC;;AAIhB,wBAA0E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EAER,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,CAAC;AACF,YAAY,EAAE,mBAAmB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACpC,wBAiBE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Downloader.d.ts","sourceRoot":"","sources":["../../../src/utils/Downloader.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,YACV,MAAM,iCACe,MAAM,KAAK,IAAI,i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AAM,WACF,MAAM,WACN,eAAe,0BACD,MAAM,SAAS,MAAM,KAAK,IAAI,6BACvC,WAAW,KACxB,QAAQ,GAAG,CAwCb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,cAclB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.tsx"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAG7C,KAAK,qBAAqB,GAAG;IAE3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,qBAG5C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3E,CAAC;AAEF,KAAK,wBAAwB,GAAG,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IACR,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC,KACE,OAAO,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAA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AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|