react-native-compressor 1.15.0 → 1.16.1

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.
Files changed (96) hide show
  1. package/README.md +0 -2
  2. package/ios/Image/ImageCompressor.swift +63 -37
  3. package/ios/Image/ImageMain.swift +16 -5
  4. package/ios/Utils/Utils.swift +7 -6
  5. package/lib/commonjs/Audio/index.js +2 -4
  6. package/lib/commonjs/Audio/index.js.map +1 -1
  7. package/lib/commonjs/Image/index.js +3 -5
  8. package/lib/commonjs/Image/index.js.map +1 -1
  9. package/lib/commonjs/Main.js +1 -2
  10. package/lib/commonjs/Main.js.map +1 -1
  11. package/lib/commonjs/Spec/NativeCompressor.js +1 -2
  12. package/lib/commonjs/Spec/NativeCompressor.js.map +1 -1
  13. package/lib/commonjs/Video/index.js +12 -13
  14. package/lib/commonjs/Video/index.js.map +1 -1
  15. package/lib/commonjs/expo-plugin/compressor.js +1 -2
  16. package/lib/commonjs/expo-plugin/compressor.js.map +1 -1
  17. package/lib/commonjs/global.d.js +6 -0
  18. package/lib/commonjs/global.d.js.map +1 -0
  19. package/lib/commonjs/index.js +2 -3
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/package.json +1 -0
  22. package/lib/commonjs/utils/Downloader.js +2 -2
  23. package/lib/commonjs/utils/Downloader.js.map +1 -1
  24. package/lib/commonjs/utils/Uploader.js +9 -13
  25. package/lib/commonjs/utils/Uploader.js.map +1 -1
  26. package/lib/commonjs/utils/helpers.js +16 -0
  27. package/lib/commonjs/utils/helpers.js.map +1 -0
  28. package/lib/commonjs/utils/index.js +21 -26
  29. package/lib/commonjs/utils/index.js.map +1 -1
  30. package/lib/module/Audio/index.js +3 -2
  31. package/lib/module/Audio/index.js.map +1 -1
  32. package/lib/module/Image/index.js +4 -3
  33. package/lib/module/Image/index.js.map +1 -1
  34. package/lib/module/Main.js +2 -0
  35. package/lib/module/Main.js.map +1 -1
  36. package/lib/module/Spec/NativeCompressor.js +2 -0
  37. package/lib/module/Spec/NativeCompressor.js.map +1 -1
  38. package/lib/module/Video/index.js +13 -11
  39. package/lib/module/Video/index.js.map +1 -1
  40. package/lib/module/expo-plugin/compressor.js +2 -0
  41. package/lib/module/expo-plugin/compressor.js.map +1 -1
  42. package/lib/module/global.d.js +4 -0
  43. package/lib/module/global.d.js.map +1 -0
  44. package/lib/module/index.js +2 -0
  45. package/lib/module/index.js.map +1 -1
  46. package/lib/module/utils/Downloader.js +3 -1
  47. package/lib/module/utils/Downloader.js.map +1 -1
  48. package/lib/module/utils/Uploader.js +8 -8
  49. package/lib/module/utils/Uploader.js.map +1 -1
  50. package/lib/module/utils/helpers.js +11 -0
  51. package/lib/module/utils/helpers.js.map +1 -0
  52. package/lib/module/utils/index.js +9 -19
  53. package/lib/module/utils/index.js.map +1 -1
  54. package/lib/typescript/src/Audio/index.d.ts.map +1 -0
  55. package/lib/typescript/src/Image/index.d.ts.map +1 -0
  56. package/lib/typescript/src/Main.d.ts.map +1 -0
  57. package/lib/typescript/src/Spec/NativeCompressor.d.ts.map +1 -0
  58. package/lib/typescript/src/Video/index.d.ts.map +1 -0
  59. package/lib/typescript/src/expo-plugin/compressor.d.ts.map +1 -0
  60. package/lib/typescript/{index.d.ts → src/index.d.ts} +7 -7
  61. package/lib/typescript/src/index.d.ts.map +1 -0
  62. package/lib/typescript/src/utils/Downloader.d.ts +2 -0
  63. package/lib/typescript/src/utils/Downloader.d.ts.map +1 -0
  64. package/lib/typescript/{utils → src/utils}/Uploader.d.ts +1 -1
  65. package/lib/typescript/src/utils/Uploader.d.ts.map +1 -0
  66. package/lib/typescript/src/utils/helpers.d.ts +2 -0
  67. package/lib/typescript/src/utils/helpers.d.ts.map +1 -0
  68. package/lib/typescript/{utils → src/utils}/index.d.ts +2 -2
  69. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  70. package/package.json +38 -95
  71. package/src/Image/index.tsx +5 -11
  72. package/src/Main.tsx +2 -4
  73. package/src/Spec/NativeCompressor.ts +1 -1
  74. package/src/Video/index.tsx +19 -43
  75. package/src/global.d.ts +8 -0
  76. package/src/utils/Downloader.tsx +6 -13
  77. package/src/utils/Uploader.tsx +7 -13
  78. package/src/utils/helpers.ts +8 -0
  79. package/src/utils/index.tsx +11 -45
  80. package/lib/typescript/Audio/index.d.ts.map +0 -1
  81. package/lib/typescript/Image/index.d.ts.map +0 -1
  82. package/lib/typescript/Main.d.ts.map +0 -1
  83. package/lib/typescript/Spec/NativeCompressor.d.ts.map +0 -1
  84. package/lib/typescript/Video/index.d.ts.map +0 -1
  85. package/lib/typescript/expo-plugin/compressor.d.ts.map +0 -1
  86. package/lib/typescript/index.d.ts.map +0 -1
  87. package/lib/typescript/utils/Downloader.d.ts +0 -2
  88. package/lib/typescript/utils/Downloader.d.ts.map +0 -1
  89. package/lib/typescript/utils/Uploader.d.ts.map +0 -1
  90. package/lib/typescript/utils/index.d.ts.map +0 -1
  91. /package/lib/typescript/{Audio → src/Audio}/index.d.ts +0 -0
  92. /package/lib/typescript/{Image → src/Image}/index.d.ts +0 -0
  93. /package/lib/typescript/{Main.d.ts → src/Main.d.ts} +0 -0
  94. /package/lib/typescript/{Spec → src/Spec}/NativeCompressor.d.ts +0 -0
  95. /package/lib/typescript/{Video → src/Video}/index.d.ts +0 -0
  96. /package/lib/typescript/{expo-plugin → src/expo-plugin}/compressor.d.ts +0 -0
@@ -0,0 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAMhC,CAAC;;;;;;;;;;;;;;;AALL,wBAiBE"}
@@ -0,0 +1,2 @@
1
+ export declare const download: (fileUrl: string, downloadProgress?: (progress: number) => void, progressDivider?: number) => Promise<any>;
2
+ //# sourceMappingURL=Downloader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Downloader.d.ts","sourceRoot":"","sources":["../../../../src/utils/Downloader.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,GAAU,SAAS,MAAM,EAAE,mBAAmB,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAAE,kBAAkB,MAAM,KAAG,OAAO,CAAC,GAAG,CAyBpI,CAAC"}
@@ -27,5 +27,5 @@ export declare type UploaderOptions = ({
27
27
  getCancellationId?: (cancellationId: string) => void;
28
28
  };
29
29
  export declare const cancelUpload: (uuid?: string, shouldCancelAll?: boolean) => void;
30
- export declare const backgroundUpload: (url: string, fileUrl: string, options: UploaderOptions, onProgress?: ((writtem: number, total: number) => void) | undefined, abortSignal?: AbortSignal) => Promise<any>;
30
+ export declare const backgroundUpload: (url: string, fileUrl: string, options: UploaderOptions, onProgress?: (writtem: number, total: number) => void, abortSignal?: AbortSignal) => Promise<any>;
31
31
  //# sourceMappingURL=Uploader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uploader.d.ts","sourceRoot":"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EACrD,cAAc,WAAW,KACxB,OAAO,CAAC,GAAG,CAqCb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const uuidv4: () => string;
2
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,cAOlB,CAAC"}
@@ -49,9 +49,9 @@ export declare const getVideoMetaData: getVideoMetaDataType;
49
49
  export declare const getImageMetaData: getImageMetaDataType;
50
50
  export declare const createVideoThumbnail: createVideoThumbnailType;
51
51
  export declare const clearCache: clearCacheType;
52
- export declare const getDetails: (mediaFullPath: string, extesnion?: 'mp3' | 'mp4') => Promise<any | null>;
52
+ export declare const getDetails: (mediaFullPath: string, extesnion?: "mp3" | "mp4") => Promise<any | null>;
53
53
  export declare const getFileSize: (filePath: string) => Promise<string>;
54
- export declare const uuidv4: () => string;
55
54
  export * from './Downloader';
56
55
  export * from './Uploader';
56
+ export * from './helpers';
57
57
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.tsx"],"names":[],"mappings":"AAEA,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,M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,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAEzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,oBAE9B,CAAC;AAiBF,eAAO,MAAM,gBAAgB,EAAE,oBAG9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,wBAElC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,cAExB,CAAC;AAuCF,eAAO,MAAM,UAAU,GAAI,eAAe,MAAM,EAAE,YAAW,KAAK,GAAG,KAAa,KAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CA6BtG,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAElE,CAAC;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "react-native-compressor",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "description": "Compress Image, Video, and Audio same like Whatsapp & Auto/Manual Compression | Background Upload | Download File | Create Video Thumbnail",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
7
+ "types": "lib/typescript/src/index.d.ts",
8
8
  "react-native": "src/index",
9
9
  "source": "src/index",
10
10
  "files": [
@@ -33,11 +33,11 @@
33
33
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
34
34
  "prepack": "bob build",
35
35
  "release": "release-it",
36
- "example": "yarn --cwd example",
37
- "build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
38
- "build:ios": "cd example/ios && xcodebuild -workspace CompressorExample.xcworkspace -scheme CompressorExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
39
- "bootstrap": "yarn example && yarn install && yarn example pods-newarch",
40
- "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
36
+ "example:bare": "yarn workspace react-native-compressor-bare-example",
37
+ "example:expo": "yarn workspace react-native-compressor-expo-example",
38
+ "build:android": "cd examples/bare/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
39
+ "build:ios": "cd examples/bare/ios && xcodebuild -workspace BareExample.xcworkspace -scheme BareExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
40
+ "clean": "del-cli android/build examples/bare/android/build examples/bare/android/app/build examples/bare/ios/build"
41
41
  },
42
42
  "keywords": [
43
43
  "react-native",
@@ -82,99 +82,39 @@
82
82
  "registry": "https://registry.npmjs.org/"
83
83
  },
84
84
  "devDependencies": {
85
- "@commitlint/config-conventional": "^17.0.2",
86
- "@evilmartians/lefthook": "^1.2.2",
87
- "@expo/config-plugins": "^7.2.5",
88
- "@jamesacarr/eslint-formatter-github-actions": "^0.2.0",
89
- "@react-native-community/eslint-config": "^3.0.2",
90
- "@release-it/conventional-changelog": "^5.0.0",
91
- "@types/jest": "^28.1.2",
92
- "@types/react": "~17.0.21",
93
- "@types/react-native": "0.70.0",
94
- "commitlint": "^17.0.2",
95
- "del-cli": "^5.0.0",
96
- "eslint": "^8.46.0",
97
- "eslint-config-prettier": "^8.5.0",
98
- "eslint-plugin-ft-flow": "^3.0.0",
99
- "eslint-plugin-prettier": "^5.0.0",
100
- "jest": "^28.1.1",
101
- "pod-install": "^0.1.0",
102
- "prettier": "^3.0.1",
103
- "react": "18.2.0",
104
- "react-native": "0.72.4",
105
- "react-native-builder-bob": "^0.20.0",
106
- "release-it": "^15.0.0",
107
- "turbo": "^1.10.7",
108
- "typescript": "^5.0.2"
109
- },
110
- "resolutions": {
111
- "@types/react": "17.0.21"
85
+ "@commitlint/config-conventional": "^20.5.0",
86
+ "@eslint/compat": "^2.0.3",
87
+ "@eslint/eslintrc": "^3.3.5",
88
+ "@eslint/js": "^10.0.1",
89
+ "@expo/config-plugins": "^55.0.8",
90
+ "@jest/globals": "^30.0.0",
91
+ "@react-native/babel-preset": "0.85.0",
92
+ "@react-native/eslint-config": "0.85.0",
93
+ "@react-native/jest-preset": "0.85.0",
94
+ "@release-it/conventional-changelog": "^10.0.6",
95
+ "@types/react": "^19.2.0",
96
+ "commitlint": "^20.5.0",
97
+ "del-cli": "^7.0.0",
98
+ "eslint": "^9.39.4",
99
+ "eslint-config-prettier": "^10.1.8",
100
+ "eslint-plugin-ft-flow": "^3.0.11",
101
+ "eslint-plugin-prettier": "^5.5.5",
102
+ "jest": "^30.3.0",
103
+ "lefthook": "^2.1.4",
104
+ "prettier": "^3.8.1",
105
+ "react": "19.2.3",
106
+ "react-native": "0.85.0",
107
+ "react-native-builder-bob": "^0.41.0",
108
+ "release-it": "^19.2.4",
109
+ "turbo": "^2.8.21",
110
+ "typescript": "^6.0.2"
112
111
  },
113
112
  "peerDependencies": {
114
113
  "react": "*",
115
114
  "react-native": "*"
116
115
  },
117
116
  "engines": {
118
- "node": ">= 16.0.0"
119
- },
120
- "jest": {
121
- "preset": "react-native",
122
- "modulePathIgnorePatterns": [
123
- "<rootDir>/example/node_modules",
124
- "<rootDir>/lib/"
125
- ]
126
- },
127
- "commitlint": {
128
- "extends": [
129
- "@commitlint/config-conventional"
130
- ]
131
- },
132
- "release-it": {
133
- "git": {
134
- "commitMessage": "chore: release ${version}",
135
- "tagName": "v${version}"
136
- },
137
- "npm": {
138
- "publish": true
139
- },
140
- "github": {
141
- "release": true
142
- },
143
- "plugins": {
144
- "@release-it/conventional-changelog": {
145
- "preset": "angular"
146
- }
147
- }
148
- },
149
- "eslintConfig": {
150
- "root": true,
151
- "extends": [
152
- "@react-native-community",
153
- "prettier"
154
- ],
155
- "rules": {
156
- "prettier/prettier": [
157
- "error",
158
- {
159
- "quoteProps": "consistent",
160
- "singleQuote": true,
161
- "tabWidth": 2,
162
- "trailingComma": "es5",
163
- "useTabs": false
164
- }
165
- ]
166
- }
167
- },
168
- "eslintIgnore": [
169
- "node_modules/",
170
- "lib/"
171
- ],
172
- "prettier": {
173
- "quoteProps": "consistent",
174
- "singleQuote": true,
175
- "tabWidth": 2,
176
- "trailingComma": "es5",
177
- "useTabs": false
117
+ "node": ">= 22.11.0"
178
118
  },
179
119
  "react-native-builder-bob": {
180
120
  "source": "src",
@@ -199,5 +139,8 @@
199
139
  }
200
140
  ]
201
141
  },
202
- "packageManager": "yarn@4.5.3+sha512.3003a14012e2987072d244c720506549c1aab73ee728208f1b2580a9fd67b92d61ba6b08fe93f6dce68fd771e3af1e59a0afa28dd242dd0940d73b95fedd4e90"
142
+ "workspaces": [
143
+ "examples/*"
144
+ ],
145
+ "packageManager": "yarn@4.14.1"
203
146
  }
@@ -66,9 +66,7 @@ type ImageType = {
66
66
  const Image: ImageType = {
67
67
  compress: async (value, options = {}) => {
68
68
  if (!value) {
69
- throw new Error(
70
- 'Compression value is empty, please provide a value for compression.'
71
- );
69
+ throw new Error('Compression value is empty, please provide a value for compression.');
72
70
  }
73
71
 
74
72
  let subscription: NativeEventSubscription;
@@ -77,15 +75,11 @@ const Image: ImageType = {
77
75
  const uuid = uuidv4();
78
76
  //@ts-ignore
79
77
  options.uuid = uuid;
80
- subscription = ImageCompressEventEmitter.addListener(
81
- 'downloadProgress',
82
- (event: any) => {
83
- if (event.uuid === uuid) {
84
- options.downloadProgress &&
85
- options.downloadProgress(event.data.progress);
86
- }
78
+ subscription = ImageCompressEventEmitter.addListener('downloadProgress', (event: any) => {
79
+ if (event.uuid === uuid) {
80
+ options.downloadProgress && options.downloadProgress(event.data.progress);
87
81
  }
88
- );
82
+ });
89
83
  }
90
84
 
91
85
  const cleanData = value.replace(base64UrlRegex, '');
package/src/Main.tsx CHANGED
@@ -9,9 +9,7 @@ const LINKING_ERROR =
9
9
  // @ts-expect-error
10
10
  const isTurboModuleEnabled = global.__turboModuleProxy != null;
11
11
 
12
- const CompressorModule = isTurboModuleEnabled
13
- ? require('./Spec/NativeCompressor').default
14
- : NativeModules.Compressor;
12
+ const CompressorModule = isTurboModuleEnabled ? require('./Spec/NativeCompressor').default : NativeModules.Compressor;
15
13
 
16
14
  const Compressor = CompressorModule
17
15
  ? CompressorModule
@@ -21,7 +19,7 @@ const Compressor = CompressorModule
21
19
  get() {
22
20
  throw new Error(LINKING_ERROR);
23
21
  },
24
- }
22
+ },
25
23
  );
26
24
 
27
25
  export { Compressor };
@@ -27,7 +27,7 @@ export interface Spec extends TurboModule {
27
27
  removeListeners(count: number): void;
28
28
  createVideoThumbnail(
29
29
  fileUrl: string,
30
- options: Object
30
+ options: Object,
31
31
  ): Promise<{
32
32
  path: string;
33
33
  size: number;
@@ -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
- 'videoCompressProgress',
53
- (event: any) => {
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
- 'downloadProgress',
65
- (event: any) => {
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
- VideoCompressEventEmitter.addListener(
124
- 'backgroundTaskExpired',
125
- (event: any) => {
126
- onExpired(event);
127
- if (subscription) {
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
  },
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ interface AbortSignal {
3
+ addEventListener(type: 'abort', listener: () => void): void;
4
+ removeEventListener(type: 'abort', listener: () => void): void;
5
+ }
6
+ }
7
+
8
+ export {};
@@ -2,24 +2,17 @@ import { NativeEventEmitter, Platform } from 'react-native';
2
2
  import type { NativeEventSubscription } from 'react-native';
3
3
  import { Compressor } from '../Main';
4
4
  const CompressEventEmitter = new NativeEventEmitter(Compressor);
5
- import { uuidv4 } from './index';
6
- export const download = async (
7
- fileUrl: string,
8
- downloadProgress?: (progress: number) => void,
9
- progressDivider?: number
10
- ): Promise<any> => {
5
+ import { uuidv4 } from './helpers';
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
- 'downloadProgress',
17
- (event: any) => {
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://', '');
@@ -2,7 +2,7 @@ import { NativeEventEmitter, Platform } from 'react-native';
2
2
  import type { NativeEventSubscription } from 'react-native';
3
3
  import { Compressor } from '../Main';
4
4
  const CompressEventEmitter = new NativeEventEmitter(Compressor);
5
- import { uuidv4 } from './index';
5
+ import { uuidv4 } from './helpers';
6
6
  export enum UploadType {
7
7
  BINARY_CONTENT = 0,
8
8
  MULTIPART = 1,
@@ -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
- 'uploadProgress',
62
- (event: any) => {
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://', '');
@@ -0,0 +1,8 @@
1
+ export const uuidv4 = () => {
2
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
3
+ const r = (parseFloat('0.' + Math.random().toString().replace('0.', '') + new Date().getTime()) * 16) | 0,
4
+ // eslint-disable-next-line eqeqeq
5
+ v = c == 'x' ? r : (r & 0x3) | 0x8;
6
+ return v.toString(16);
7
+ });
8
+ };
@@ -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
@@ -194,20 +174,6 @@ export const getFileSize = async (filePath: string): Promise<string> => {
194
174
  return Compressor.getFileSize(filePath);
195
175
  };
196
176
 
197
- export const uuidv4 = () => {
198
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
199
- const r =
200
- (parseFloat(
201
- '0.' +
202
- Math.random().toString().replace('0.', '') +
203
- new Date().getTime()
204
- ) *
205
- 16) |
206
- 0,
207
- // eslint-disable-next-line eqeqeq
208
- v = c == 'x' ? r : (r & 0x3) | 0x8;
209
- return v.toString(16);
210
- });
211
- };
212
177
  export * from './Downloader';
213
178
  export * from './Uploader';
179
+ export * from './helpers';
@@ -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,Q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QAAA,MAAM,KAAK,EAAE,mBAoGW,CAAC;AAEzB,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"}