@capgo/capacitor-file-compressor 8.1.11 → 8.1.13
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
CHANGED
|
@@ -5,7 +5,7 @@ Compress and resize images on the device before upload, and convert between JPEG
|
|
|
5
5
|
<a href="https://capgo.app/?ref=plugin_file-compressor"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-file-compressor" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
|
-
<p><b>Capgo</b>:
|
|
8
|
+
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
|
|
9
9
|
<h2><a href="https://capgo.app/register/?ref=plugin_file-compressor">➡️ Get started for free</a></h2>
|
|
10
10
|
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
11
|
<p><a href="https://capgo.app/consulting/?ref=plugin_file-compressor">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
@@ -20,7 +20,7 @@ import java.util.UUID;
|
|
|
20
20
|
@CapacitorPlugin(name = "FileCompressor")
|
|
21
21
|
public class FileCompressorPlugin extends Plugin {
|
|
22
22
|
|
|
23
|
-
private final String pluginVersion = "8.1.
|
|
23
|
+
private final String pluginVersion = "8.1.13";
|
|
24
24
|
private static final float MIN_QUALITY = 0.1f;
|
|
25
25
|
private static final float QUALITY_STEP = 0.05f;
|
|
26
26
|
private static final List<String> SUPPORTED_OUTPUT_MIME_TYPES = Arrays.asList("image/jpeg", "image/png", "image/webp");
|
|
@@ -6,7 +6,7 @@ import UniformTypeIdentifiers
|
|
|
6
6
|
|
|
7
7
|
@objc(FileCompressorPlugin)
|
|
8
8
|
public class FileCompressorPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
9
|
-
private let pluginVersion: String = "8.1.
|
|
9
|
+
private let pluginVersion: String = "8.1.13"
|
|
10
10
|
private let minimumQuality: CGFloat = 0.1
|
|
11
11
|
private let qualityStep: CGFloat = 0.05
|
|
12
12
|
public let identifier = "FileCompressorPlugin"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-file-compressor",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.13",
|
|
4
4
|
"description": "Capacitor plugin for efficient image compression supporting PNG, JPEG, and WebP formats across iOS, Android, and Web platforms",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@ionic/eslint-config": "^0.5.0",
|
|
60
60
|
"@ionic/prettier-config": "^4.0.0",
|
|
61
61
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
62
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^26.0.0",
|
|
63
63
|
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
|
64
64
|
"@typescript-eslint/parser": "^8.70.0",
|
|
65
65
|
"eslint": "^10.0.0",
|