@capgo/capacitor-webview-version-checker 8.2.12 → 8.2.14
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 +20 -4
- package/android/src/main/java/app/capgo/webviewversionchecker/GeneratedVersionShareData.java +2 -2
- package/dist/esm/generated-version-share.d.ts +2 -2
- package/dist/esm/generated-version-share.js +87 -85
- package/dist/esm/generated-version-share.js.map +1 -1
- package/dist/plugin.cjs.js +86 -84
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +86 -84
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -1
- package/src/generated-version-share.ts +87 -85
package/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-webview-version-checker
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Detect outdated WebView engines in your Capacitor app and prompt users to update, before old Android System WebView versions break your UI.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_webview_version_checker"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-webview-version-checker" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_webview_version_checker">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_webview_version_checker">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-webview-version-checker/main/assets/github-social-preview.png" alt="@capgo/capacitor-webview-version-checker for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Check**: `check()` returns whether the WebView is up to date or outdated.
|
|
21
|
+
- **Monitoring**: `startMonitoring()` with `statusChanged`, `webViewLatest` and `webViewOutdated` events.
|
|
22
|
+
- **Update prompt**: `showUpdatePrompt()` shows a native prompt, `openUpdatePage()` opens the right update page.
|
|
23
|
+
- **Policies**: minimum version rules, with `latestVersion` for an explicit target.
|
|
24
|
+
- **Last status**: `getLastStatus()` returns the latest result.
|
|
25
|
+
- **Platforms**: iOS, Android and Web. Built for Android System WebView. On iOS the WebView follows the OS version and the prompt links to Apple's update help.
|
|
10
26
|
|
|
11
27
|
## Install
|
|
12
28
|
|
package/android/src/main/java/app/capgo/webviewversionchecker/GeneratedVersionShareData.java
CHANGED
|
@@ -4,9 +4,9 @@ import org.json.JSONObject;
|
|
|
4
4
|
|
|
5
5
|
final class GeneratedVersionShareData {
|
|
6
6
|
|
|
7
|
-
private static final String GENERATED_AT = "2026-
|
|
7
|
+
private static final String GENERATED_AT = "2026-10-07T23:02:02.368Z";
|
|
8
8
|
private static final String DATA_SOURCE = "generatedVersionShareByMajor";
|
|
9
|
-
private static final String JSON_DATA = "{\"4\":0.000003,\"39\":0.
|
|
9
|
+
private static final String JSON_DATA = "{\"4\":0.000003,\"39\":0.019652,\"40\":0.019652,\"41\":0.019652,\"42\":0.019652,\"43\":0.019652,\"44\":0.019652,\"45\":0.019652,\"46\":0.019652,\"47\":0.019652,\"48\":0.024565,\"49\":0.024565,\"50\":0.019652,\"51\":0.019652,\"52\":0.024565,\"53\":0.024565,\"54\":0.019652,\"55\":0.019652,\"56\":0.019652,\"57\":0.019652,\"58\":0.019652,\"59\":0.019652,\"60\":0.019652,\"69\":0.044217,\"70\":0.058956,\"79\":0.019652,\"86\":0.004913,\"87\":0.019652,\"91\":0.004913,\"93\":0.009826,\"97\":0.004913,\"98\":0.019652,\"99\":0.004913,\"101\":0.009826,\"102\":0.009826,\"103\":0.108086,\"104\":0.054043,\"105\":0.054043,\"106\":0.054043,\"107\":0.054043,\"108\":0.058956,\"109\":0.555169,\"110\":0.054043,\"111\":0.078608,\"112\":0.054043,\"114\":0.014739,\"115\":0.009826,\"116\":0.137564,\"117\":0.058956,\"118\":0.225998,\"119\":0.422518,\"120\":0.515865,\"121\":0.024565,\"122\":0.039304,\"123\":0.024565,\"124\":0.142477,\"125\":0.19652,\"126\":0.039304,\"127\":0.014739,\"128\":0.04913,\"129\":0.009826,\"130\":0.029478,\"131\":0.191607,\"132\":0.171955,\"133\":0.137564,\"134\":0.034391,\"135\":0.039304,\"136\":0.117912,\"137\":0.14739,\"138\":0.117912,\"139\":0.058956,\"140\":0.044217,\"141\":0.044217,\"142\":0.235824,\"143\":0.044217,\"144\":0.329171,\"145\":4.05814,\"146\":0.108086,\"147\":0.181781,\"148\":0.338997,\"149\":1.57707,\"150\":3.84688,\"151\":9.34944,\"152\":0.481474,\"153\":0.014739,\"154\":44.0186}";
|
|
10
10
|
|
|
11
11
|
private GeneratedVersionShareData() {}
|
|
12
12
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* AUTO-GENERATED FILE. DO NOT EDIT.
|
|
3
3
|
* Generated by: scripts/generate-version-share-data.mjs
|
|
4
4
|
* Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
|
|
5
|
-
* Generated at: 2026-
|
|
5
|
+
* Generated at: 2026-10-07T23:02:02.368Z
|
|
6
6
|
*/
|
|
7
7
|
export declare const DEFAULT_VERSION_SHARE_DATA_SOURCE = "generatedVersionShareByMajor";
|
|
8
|
-
export declare const DEFAULT_VERSION_SHARE_GENERATED_AT = "2026-
|
|
8
|
+
export declare const DEFAULT_VERSION_SHARE_GENERATED_AT = "2026-10-07T23:02:02.368Z";
|
|
9
9
|
export declare const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number>;
|
|
@@ -3,94 +3,96 @@
|
|
|
3
3
|
* AUTO-GENERATED FILE. DO NOT EDIT.
|
|
4
4
|
* Generated by: scripts/generate-version-share-data.mjs
|
|
5
5
|
* Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
|
|
6
|
-
* Generated at: 2026-
|
|
6
|
+
* Generated at: 2026-10-07T23:02:02.368Z
|
|
7
7
|
*/
|
|
8
8
|
export const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
|
|
9
|
-
export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-
|
|
9
|
+
export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-10-07T23:02:02.368Z';
|
|
10
10
|
export const DEFAULT_VERSION_SHARE_BY_MAJOR = {
|
|
11
11
|
"4": 0.000003,
|
|
12
|
-
"39": 0.
|
|
13
|
-
"40": 0.
|
|
14
|
-
"41": 0.
|
|
15
|
-
"42": 0.
|
|
16
|
-
"43": 0.
|
|
17
|
-
"44": 0.
|
|
18
|
-
"45": 0.
|
|
19
|
-
"46": 0.
|
|
20
|
-
"47": 0.
|
|
21
|
-
"48": 0.
|
|
22
|
-
"49": 0.
|
|
23
|
-
"50": 0.
|
|
24
|
-
"51": 0.
|
|
25
|
-
"52": 0.
|
|
26
|
-
"53": 0.
|
|
27
|
-
"54": 0.
|
|
28
|
-
"55": 0.
|
|
29
|
-
"56": 0.
|
|
30
|
-
"57": 0.
|
|
31
|
-
"58": 0.
|
|
32
|
-
"59": 0.
|
|
33
|
-
"60": 0.
|
|
34
|
-
"69": 0.
|
|
35
|
-
"70": 0.
|
|
36
|
-
"79": 0.
|
|
37
|
-
"86": 0.
|
|
38
|
-
"87": 0.
|
|
39
|
-
"91": 0.
|
|
40
|
-
"93": 0.
|
|
41
|
-
"97": 0.
|
|
42
|
-
"98": 0.
|
|
43
|
-
"99": 0.
|
|
44
|
-
"101": 0.
|
|
45
|
-
"102": 0.
|
|
46
|
-
"103": 0.
|
|
47
|
-
"104": 0.
|
|
48
|
-
"105": 0.
|
|
49
|
-
"106": 0.
|
|
50
|
-
"107": 0.
|
|
51
|
-
"108": 0.
|
|
52
|
-
"109": 0.
|
|
53
|
-
"110": 0.
|
|
54
|
-
"111": 0.
|
|
55
|
-
"112": 0.
|
|
56
|
-
"114": 0.
|
|
57
|
-
"115": 0.
|
|
58
|
-
"116": 0.
|
|
59
|
-
"117": 0.
|
|
60
|
-
"118": 0.
|
|
61
|
-
"119": 0.
|
|
62
|
-
"120": 0.
|
|
63
|
-
"121": 0.
|
|
64
|
-
"122": 0.
|
|
65
|
-
"123": 0.
|
|
66
|
-
"124": 0.
|
|
67
|
-
"125": 0.
|
|
68
|
-
"126": 0.
|
|
69
|
-
"127": 0.
|
|
70
|
-
"128": 0.
|
|
71
|
-
"129": 0.
|
|
72
|
-
"130": 0.
|
|
73
|
-
"131": 0.
|
|
74
|
-
"132": 0.
|
|
75
|
-
"133": 0.
|
|
76
|
-
"134": 0.
|
|
77
|
-
"135": 0.
|
|
78
|
-
"136": 0.
|
|
79
|
-
"137": 0.
|
|
80
|
-
"138": 0.
|
|
81
|
-
"139": 0.
|
|
82
|
-
"140": 0.
|
|
83
|
-
"141": 0.
|
|
84
|
-
"142": 0.
|
|
85
|
-
"143": 0.
|
|
86
|
-
"144": 0.
|
|
87
|
-
"145":
|
|
88
|
-
"146": 0.
|
|
89
|
-
"147": 0.
|
|
90
|
-
"148": 0.
|
|
91
|
-
"149":
|
|
92
|
-
"150":
|
|
93
|
-
"151":
|
|
94
|
-
"152": 0.
|
|
12
|
+
"39": 0.019652,
|
|
13
|
+
"40": 0.019652,
|
|
14
|
+
"41": 0.019652,
|
|
15
|
+
"42": 0.019652,
|
|
16
|
+
"43": 0.019652,
|
|
17
|
+
"44": 0.019652,
|
|
18
|
+
"45": 0.019652,
|
|
19
|
+
"46": 0.019652,
|
|
20
|
+
"47": 0.019652,
|
|
21
|
+
"48": 0.024565,
|
|
22
|
+
"49": 0.024565,
|
|
23
|
+
"50": 0.019652,
|
|
24
|
+
"51": 0.019652,
|
|
25
|
+
"52": 0.024565,
|
|
26
|
+
"53": 0.024565,
|
|
27
|
+
"54": 0.019652,
|
|
28
|
+
"55": 0.019652,
|
|
29
|
+
"56": 0.019652,
|
|
30
|
+
"57": 0.019652,
|
|
31
|
+
"58": 0.019652,
|
|
32
|
+
"59": 0.019652,
|
|
33
|
+
"60": 0.019652,
|
|
34
|
+
"69": 0.044217,
|
|
35
|
+
"70": 0.058956,
|
|
36
|
+
"79": 0.019652,
|
|
37
|
+
"86": 0.004913,
|
|
38
|
+
"87": 0.019652,
|
|
39
|
+
"91": 0.004913,
|
|
40
|
+
"93": 0.009826,
|
|
41
|
+
"97": 0.004913,
|
|
42
|
+
"98": 0.019652,
|
|
43
|
+
"99": 0.004913,
|
|
44
|
+
"101": 0.009826,
|
|
45
|
+
"102": 0.009826,
|
|
46
|
+
"103": 0.108086,
|
|
47
|
+
"104": 0.054043,
|
|
48
|
+
"105": 0.054043,
|
|
49
|
+
"106": 0.054043,
|
|
50
|
+
"107": 0.054043,
|
|
51
|
+
"108": 0.058956,
|
|
52
|
+
"109": 0.555169,
|
|
53
|
+
"110": 0.054043,
|
|
54
|
+
"111": 0.078608,
|
|
55
|
+
"112": 0.054043,
|
|
56
|
+
"114": 0.014739,
|
|
57
|
+
"115": 0.009826,
|
|
58
|
+
"116": 0.137564,
|
|
59
|
+
"117": 0.058956,
|
|
60
|
+
"118": 0.225998,
|
|
61
|
+
"119": 0.422518,
|
|
62
|
+
"120": 0.515865,
|
|
63
|
+
"121": 0.024565,
|
|
64
|
+
"122": 0.039304,
|
|
65
|
+
"123": 0.024565,
|
|
66
|
+
"124": 0.142477,
|
|
67
|
+
"125": 0.19652,
|
|
68
|
+
"126": 0.039304,
|
|
69
|
+
"127": 0.014739,
|
|
70
|
+
"128": 0.04913,
|
|
71
|
+
"129": 0.009826,
|
|
72
|
+
"130": 0.029478,
|
|
73
|
+
"131": 0.191607,
|
|
74
|
+
"132": 0.171955,
|
|
75
|
+
"133": 0.137564,
|
|
76
|
+
"134": 0.034391,
|
|
77
|
+
"135": 0.039304,
|
|
78
|
+
"136": 0.117912,
|
|
79
|
+
"137": 0.14739,
|
|
80
|
+
"138": 0.117912,
|
|
81
|
+
"139": 0.058956,
|
|
82
|
+
"140": 0.044217,
|
|
83
|
+
"141": 0.044217,
|
|
84
|
+
"142": 0.235824,
|
|
85
|
+
"143": 0.044217,
|
|
86
|
+
"144": 0.329171,
|
|
87
|
+
"145": 4.05814,
|
|
88
|
+
"146": 0.108086,
|
|
89
|
+
"147": 0.181781,
|
|
90
|
+
"148": 0.338997,
|
|
91
|
+
"149": 1.57707,
|
|
92
|
+
"150": 3.84688,
|
|
93
|
+
"151": 9.34944,
|
|
94
|
+
"152": 0.481474,
|
|
95
|
+
"153": 0.014739,
|
|
96
|
+
"154": 44.0186
|
|
95
97
|
};
|
|
96
98
|
//# sourceMappingURL=generated-version-share.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-version-share.js","sourceRoot":"","sources":["../../src/generated-version-share.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAChF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAA2B;IACpE,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"generated-version-share.js","sourceRoot":"","sources":["../../src/generated-version-share.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAChF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAA2B;IACpE,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,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,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;CACf,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-10-07T23:02:02.368Z\n */\n\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-10-07T23:02:02.368Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number> = {\n \"4\": 0.000003,\n \"39\": 0.019652,\n \"40\": 0.019652,\n \"41\": 0.019652,\n \"42\": 0.019652,\n \"43\": 0.019652,\n \"44\": 0.019652,\n \"45\": 0.019652,\n \"46\": 0.019652,\n \"47\": 0.019652,\n \"48\": 0.024565,\n \"49\": 0.024565,\n \"50\": 0.019652,\n \"51\": 0.019652,\n \"52\": 0.024565,\n \"53\": 0.024565,\n \"54\": 0.019652,\n \"55\": 0.019652,\n \"56\": 0.019652,\n \"57\": 0.019652,\n \"58\": 0.019652,\n \"59\": 0.019652,\n \"60\": 0.019652,\n \"69\": 0.044217,\n \"70\": 0.058956,\n \"79\": 0.019652,\n \"86\": 0.004913,\n \"87\": 0.019652,\n \"91\": 0.004913,\n \"93\": 0.009826,\n \"97\": 0.004913,\n \"98\": 0.019652,\n \"99\": 0.004913,\n \"101\": 0.009826,\n \"102\": 0.009826,\n \"103\": 0.108086,\n \"104\": 0.054043,\n \"105\": 0.054043,\n \"106\": 0.054043,\n \"107\": 0.054043,\n \"108\": 0.058956,\n \"109\": 0.555169,\n \"110\": 0.054043,\n \"111\": 0.078608,\n \"112\": 0.054043,\n \"114\": 0.014739,\n \"115\": 0.009826,\n \"116\": 0.137564,\n \"117\": 0.058956,\n \"118\": 0.225998,\n \"119\": 0.422518,\n \"120\": 0.515865,\n \"121\": 0.024565,\n \"122\": 0.039304,\n \"123\": 0.024565,\n \"124\": 0.142477,\n \"125\": 0.19652,\n \"126\": 0.039304,\n \"127\": 0.014739,\n \"128\": 0.04913,\n \"129\": 0.009826,\n \"130\": 0.029478,\n \"131\": 0.191607,\n \"132\": 0.171955,\n \"133\": 0.137564,\n \"134\": 0.034391,\n \"135\": 0.039304,\n \"136\": 0.117912,\n \"137\": 0.14739,\n \"138\": 0.117912,\n \"139\": 0.058956,\n \"140\": 0.044217,\n \"141\": 0.044217,\n \"142\": 0.235824,\n \"143\": 0.044217,\n \"144\": 0.329171,\n \"145\": 4.05814,\n \"146\": 0.108086,\n \"147\": 0.181781,\n \"148\": 0.338997,\n \"149\": 1.57707,\n \"150\": 3.84688,\n \"151\": 9.34944,\n \"152\": 0.481474,\n \"153\": 0.014739,\n \"154\": 44.0186\n};\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -11,94 +11,96 @@ const WebviewVersionChecker = core.registerPlugin('WebviewVersionChecker', {
|
|
|
11
11
|
* AUTO-GENERATED FILE. DO NOT EDIT.
|
|
12
12
|
* Generated by: scripts/generate-version-share-data.mjs
|
|
13
13
|
* Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
|
|
14
|
-
* Generated at: 2026-
|
|
14
|
+
* Generated at: 2026-10-07T23:02:02.368Z
|
|
15
15
|
*/
|
|
16
16
|
const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
|
|
17
17
|
const DEFAULT_VERSION_SHARE_BY_MAJOR = {
|
|
18
18
|
"4": 0.000003,
|
|
19
|
-
"39": 0.
|
|
20
|
-
"40": 0.
|
|
21
|
-
"41": 0.
|
|
22
|
-
"42": 0.
|
|
23
|
-
"43": 0.
|
|
24
|
-
"44": 0.
|
|
25
|
-
"45": 0.
|
|
26
|
-
"46": 0.
|
|
27
|
-
"47": 0.
|
|
28
|
-
"48": 0.
|
|
29
|
-
"49": 0.
|
|
30
|
-
"50": 0.
|
|
31
|
-
"51": 0.
|
|
32
|
-
"52": 0.
|
|
33
|
-
"53": 0.
|
|
34
|
-
"54": 0.
|
|
35
|
-
"55": 0.
|
|
36
|
-
"56": 0.
|
|
37
|
-
"57": 0.
|
|
38
|
-
"58": 0.
|
|
39
|
-
"59": 0.
|
|
40
|
-
"60": 0.
|
|
41
|
-
"69": 0.
|
|
42
|
-
"70": 0.
|
|
43
|
-
"79": 0.
|
|
44
|
-
"86": 0.
|
|
45
|
-
"87": 0.
|
|
46
|
-
"91": 0.
|
|
47
|
-
"93": 0.
|
|
48
|
-
"97": 0.
|
|
49
|
-
"98": 0.
|
|
50
|
-
"99": 0.
|
|
51
|
-
"101": 0.
|
|
52
|
-
"102": 0.
|
|
53
|
-
"103": 0.
|
|
54
|
-
"104": 0.
|
|
55
|
-
"105": 0.
|
|
56
|
-
"106": 0.
|
|
57
|
-
"107": 0.
|
|
58
|
-
"108": 0.
|
|
59
|
-
"109": 0.
|
|
60
|
-
"110": 0.
|
|
61
|
-
"111": 0.
|
|
62
|
-
"112": 0.
|
|
63
|
-
"114": 0.
|
|
64
|
-
"115": 0.
|
|
65
|
-
"116": 0.
|
|
66
|
-
"117": 0.
|
|
67
|
-
"118": 0.
|
|
68
|
-
"119": 0.
|
|
69
|
-
"120": 0.
|
|
70
|
-
"121": 0.
|
|
71
|
-
"122": 0.
|
|
72
|
-
"123": 0.
|
|
73
|
-
"124": 0.
|
|
74
|
-
"125": 0.
|
|
75
|
-
"126": 0.
|
|
76
|
-
"127": 0.
|
|
77
|
-
"128": 0.
|
|
78
|
-
"129": 0.
|
|
79
|
-
"130": 0.
|
|
80
|
-
"131": 0.
|
|
81
|
-
"132": 0.
|
|
82
|
-
"133": 0.
|
|
83
|
-
"134": 0.
|
|
84
|
-
"135": 0.
|
|
85
|
-
"136": 0.
|
|
86
|
-
"137": 0.
|
|
87
|
-
"138": 0.
|
|
88
|
-
"139": 0.
|
|
89
|
-
"140": 0.
|
|
90
|
-
"141": 0.
|
|
91
|
-
"142": 0.
|
|
92
|
-
"143": 0.
|
|
93
|
-
"144": 0.
|
|
94
|
-
"145":
|
|
95
|
-
"146": 0.
|
|
96
|
-
"147": 0.
|
|
97
|
-
"148": 0.
|
|
98
|
-
"149":
|
|
99
|
-
"150":
|
|
100
|
-
"151":
|
|
101
|
-
"152": 0.
|
|
19
|
+
"39": 0.019652,
|
|
20
|
+
"40": 0.019652,
|
|
21
|
+
"41": 0.019652,
|
|
22
|
+
"42": 0.019652,
|
|
23
|
+
"43": 0.019652,
|
|
24
|
+
"44": 0.019652,
|
|
25
|
+
"45": 0.019652,
|
|
26
|
+
"46": 0.019652,
|
|
27
|
+
"47": 0.019652,
|
|
28
|
+
"48": 0.024565,
|
|
29
|
+
"49": 0.024565,
|
|
30
|
+
"50": 0.019652,
|
|
31
|
+
"51": 0.019652,
|
|
32
|
+
"52": 0.024565,
|
|
33
|
+
"53": 0.024565,
|
|
34
|
+
"54": 0.019652,
|
|
35
|
+
"55": 0.019652,
|
|
36
|
+
"56": 0.019652,
|
|
37
|
+
"57": 0.019652,
|
|
38
|
+
"58": 0.019652,
|
|
39
|
+
"59": 0.019652,
|
|
40
|
+
"60": 0.019652,
|
|
41
|
+
"69": 0.044217,
|
|
42
|
+
"70": 0.058956,
|
|
43
|
+
"79": 0.019652,
|
|
44
|
+
"86": 0.004913,
|
|
45
|
+
"87": 0.019652,
|
|
46
|
+
"91": 0.004913,
|
|
47
|
+
"93": 0.009826,
|
|
48
|
+
"97": 0.004913,
|
|
49
|
+
"98": 0.019652,
|
|
50
|
+
"99": 0.004913,
|
|
51
|
+
"101": 0.009826,
|
|
52
|
+
"102": 0.009826,
|
|
53
|
+
"103": 0.108086,
|
|
54
|
+
"104": 0.054043,
|
|
55
|
+
"105": 0.054043,
|
|
56
|
+
"106": 0.054043,
|
|
57
|
+
"107": 0.054043,
|
|
58
|
+
"108": 0.058956,
|
|
59
|
+
"109": 0.555169,
|
|
60
|
+
"110": 0.054043,
|
|
61
|
+
"111": 0.078608,
|
|
62
|
+
"112": 0.054043,
|
|
63
|
+
"114": 0.014739,
|
|
64
|
+
"115": 0.009826,
|
|
65
|
+
"116": 0.137564,
|
|
66
|
+
"117": 0.058956,
|
|
67
|
+
"118": 0.225998,
|
|
68
|
+
"119": 0.422518,
|
|
69
|
+
"120": 0.515865,
|
|
70
|
+
"121": 0.024565,
|
|
71
|
+
"122": 0.039304,
|
|
72
|
+
"123": 0.024565,
|
|
73
|
+
"124": 0.142477,
|
|
74
|
+
"125": 0.19652,
|
|
75
|
+
"126": 0.039304,
|
|
76
|
+
"127": 0.014739,
|
|
77
|
+
"128": 0.04913,
|
|
78
|
+
"129": 0.009826,
|
|
79
|
+
"130": 0.029478,
|
|
80
|
+
"131": 0.191607,
|
|
81
|
+
"132": 0.171955,
|
|
82
|
+
"133": 0.137564,
|
|
83
|
+
"134": 0.034391,
|
|
84
|
+
"135": 0.039304,
|
|
85
|
+
"136": 0.117912,
|
|
86
|
+
"137": 0.14739,
|
|
87
|
+
"138": 0.117912,
|
|
88
|
+
"139": 0.058956,
|
|
89
|
+
"140": 0.044217,
|
|
90
|
+
"141": 0.044217,
|
|
91
|
+
"142": 0.235824,
|
|
92
|
+
"143": 0.044217,
|
|
93
|
+
"144": 0.329171,
|
|
94
|
+
"145": 4.05814,
|
|
95
|
+
"146": 0.108086,
|
|
96
|
+
"147": 0.181781,
|
|
97
|
+
"148": 0.338997,
|
|
98
|
+
"149": 1.57707,
|
|
99
|
+
"150": 3.84688,
|
|
100
|
+
"151": 9.34944,
|
|
101
|
+
"152": 0.481474,
|
|
102
|
+
"153": 0.014739,
|
|
103
|
+
"154": 44.0186
|
|
102
104
|
};
|
|
103
105
|
|
|
104
106
|
const UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-09-14T15:40:29.409Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-09-14T15:40:29.409Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000003,\n \"39\": 0.02296,\n \"40\": 0.02296,\n \"41\": 0.02296,\n \"42\": 0.02296,\n \"43\": 0.02296,\n \"44\": 0.02296,\n \"45\": 0.02296,\n \"46\": 0.02296,\n \"47\": 0.02296,\n \"48\": 0.027552,\n \"49\": 0.027552,\n \"50\": 0.02296,\n \"51\": 0.02296,\n \"52\": 0.027552,\n \"53\": 0.02296,\n \"54\": 0.02296,\n \"55\": 0.02296,\n \"56\": 0.02296,\n \"57\": 0.02296,\n \"58\": 0.02296,\n \"59\": 0.02296,\n \"60\": 0.02296,\n \"69\": 0.009184,\n \"70\": 0.06888,\n \"79\": 0.018368,\n \"86\": 0.004592,\n \"87\": 0.02296,\n \"91\": 0.009184,\n \"93\": 0.009184,\n \"97\": 0.004592,\n \"98\": 0.02296,\n \"99\": 0.004592,\n \"101\": 0.009184,\n \"102\": 0.009184,\n \"103\": 0.146944,\n \"104\": 0.087248,\n \"105\": 0.087248,\n \"106\": 0.09184,\n \"107\": 0.09184,\n \"108\": 0.096432,\n \"109\": 0.583184,\n \"110\": 0.09184,\n \"111\": 0.101024,\n \"112\": 0.09184,\n \"114\": 0.018368,\n \"115\": 0.009184,\n \"116\": 0.20664,\n \"117\": 0.09184,\n \"118\": 0.211232,\n \"119\": 0.36736,\n \"120\": 0.509712,\n \"121\": 0.013776,\n \"122\": 0.036736,\n \"123\": 0.018368,\n \"124\": 0.174496,\n \"125\": 0.087248,\n \"126\": 0.036736,\n \"127\": 0.013776,\n \"128\": 0.064288,\n \"129\": 0.013776,\n \"130\": 0.027552,\n \"131\": 0.270928,\n \"132\": 0.073472,\n \"133\": 0.211232,\n \"134\": 0.04592,\n \"135\": 0.036736,\n \"136\": 0.247968,\n \"137\": 0.073472,\n \"138\": 0.123984,\n \"139\": 0.188272,\n \"140\": 0.036736,\n \"141\": 0.04592,\n \"142\": 0.257152,\n \"143\": 0.073472,\n \"144\": 0.101024,\n \"145\": 0.904624,\n \"146\": 0.110208,\n \"147\": 0.220416,\n \"148\": 0.716352,\n \"149\": 5.04202,\n \"150\": 9.15645,\n \"151\": 46.3251,\n \"152\": 0.009184\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n if (typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number' &&\n currentMajorVersion < options.minimumMajorVersion) {\n state = 'outdated';\n reason = 'Current browser engine major version is below the minimum requirement.';\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;AACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,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Y,OAAO,SAAS;AAC5B,QAAQ;AACR,QAAQ,MAAM,UAAU,GAAG,EAAE;AAC7B,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;AACvE,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;AACxD,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;AACzD,YAAY,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACxE,gBAAgB,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK;AACzC,YAAY;AACZ,QAAQ;AACR,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,SAAS;AAC1E,IAAI;AACJ,IAAI,iCAAiC,CAAC,mBAAmB,EAAE,sBAAsB,EAAE;AACnF,QAAQ,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,CAAC,sBAAsB,EAAE;AAChF,YAAY,OAAO,SAAS;AAC5B,QAAQ;AACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;AAC1D,IAAI;AACJ;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-10-07T23:02:02.368Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-10-07T23:02:02.368Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000003,\n \"39\": 0.019652,\n \"40\": 0.019652,\n \"41\": 0.019652,\n \"42\": 0.019652,\n \"43\": 0.019652,\n \"44\": 0.019652,\n \"45\": 0.019652,\n \"46\": 0.019652,\n \"47\": 0.019652,\n \"48\": 0.024565,\n \"49\": 0.024565,\n \"50\": 0.019652,\n \"51\": 0.019652,\n \"52\": 0.024565,\n \"53\": 0.024565,\n \"54\": 0.019652,\n \"55\": 0.019652,\n \"56\": 0.019652,\n \"57\": 0.019652,\n \"58\": 0.019652,\n \"59\": 0.019652,\n \"60\": 0.019652,\n \"69\": 0.044217,\n \"70\": 0.058956,\n \"79\": 0.019652,\n \"86\": 0.004913,\n \"87\": 0.019652,\n \"91\": 0.004913,\n \"93\": 0.009826,\n \"97\": 0.004913,\n \"98\": 0.019652,\n \"99\": 0.004913,\n \"101\": 0.009826,\n \"102\": 0.009826,\n \"103\": 0.108086,\n \"104\": 0.054043,\n \"105\": 0.054043,\n \"106\": 0.054043,\n \"107\": 0.054043,\n \"108\": 0.058956,\n \"109\": 0.555169,\n \"110\": 0.054043,\n \"111\": 0.078608,\n \"112\": 0.054043,\n \"114\": 0.014739,\n \"115\": 0.009826,\n \"116\": 0.137564,\n \"117\": 0.058956,\n \"118\": 0.225998,\n \"119\": 0.422518,\n \"120\": 0.515865,\n \"121\": 0.024565,\n \"122\": 0.039304,\n \"123\": 0.024565,\n \"124\": 0.142477,\n \"125\": 0.19652,\n \"126\": 0.039304,\n \"127\": 0.014739,\n \"128\": 0.04913,\n \"129\": 0.009826,\n \"130\": 0.029478,\n \"131\": 0.191607,\n \"132\": 0.171955,\n \"133\": 0.137564,\n \"134\": 0.034391,\n \"135\": 0.039304,\n \"136\": 0.117912,\n \"137\": 0.14739,\n \"138\": 0.117912,\n \"139\": 0.058956,\n \"140\": 0.044217,\n \"141\": 0.044217,\n \"142\": 0.235824,\n \"143\": 0.044217,\n \"144\": 0.329171,\n \"145\": 4.05814,\n \"146\": 0.108086,\n \"147\": 0.181781,\n \"148\": 0.338997,\n \"149\": 1.57707,\n \"150\": 3.84688,\n \"151\": 9.34944,\n \"152\": 0.481474,\n \"153\": 0.014739,\n \"154\": 44.0186\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n if (typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number' &&\n currentMajorVersion < options.minimumMajorVersion) {\n state = 'outdated';\n reason = 'Current browser engine major version is below the minimum requirement.';\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;AACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;AAC5E,CAAC;;ACHD;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,iCAAiC,GAAG,8BAA8B;AAExE,MAAM,8BAA8B,GAAG;AAC9C,IAAI,GAAG,EAAE,QAAQ;AACjB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,IAAI,EAA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10,96 @@ var capacitorWebviewVersionChecker = (function (exports, core) {
|
|
|
10
10
|
* AUTO-GENERATED FILE. DO NOT EDIT.
|
|
11
11
|
* Generated by: scripts/generate-version-share-data.mjs
|
|
12
12
|
* Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
|
|
13
|
-
* Generated at: 2026-
|
|
13
|
+
* Generated at: 2026-10-07T23:02:02.368Z
|
|
14
14
|
*/
|
|
15
15
|
const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
|
|
16
16
|
const DEFAULT_VERSION_SHARE_BY_MAJOR = {
|
|
17
17
|
"4": 0.000003,
|
|
18
|
-
"39": 0.
|
|
19
|
-
"40": 0.
|
|
20
|
-
"41": 0.
|
|
21
|
-
"42": 0.
|
|
22
|
-
"43": 0.
|
|
23
|
-
"44": 0.
|
|
24
|
-
"45": 0.
|
|
25
|
-
"46": 0.
|
|
26
|
-
"47": 0.
|
|
27
|
-
"48": 0.
|
|
28
|
-
"49": 0.
|
|
29
|
-
"50": 0.
|
|
30
|
-
"51": 0.
|
|
31
|
-
"52": 0.
|
|
32
|
-
"53": 0.
|
|
33
|
-
"54": 0.
|
|
34
|
-
"55": 0.
|
|
35
|
-
"56": 0.
|
|
36
|
-
"57": 0.
|
|
37
|
-
"58": 0.
|
|
38
|
-
"59": 0.
|
|
39
|
-
"60": 0.
|
|
40
|
-
"69": 0.
|
|
41
|
-
"70": 0.
|
|
42
|
-
"79": 0.
|
|
43
|
-
"86": 0.
|
|
44
|
-
"87": 0.
|
|
45
|
-
"91": 0.
|
|
46
|
-
"93": 0.
|
|
47
|
-
"97": 0.
|
|
48
|
-
"98": 0.
|
|
49
|
-
"99": 0.
|
|
50
|
-
"101": 0.
|
|
51
|
-
"102": 0.
|
|
52
|
-
"103": 0.
|
|
53
|
-
"104": 0.
|
|
54
|
-
"105": 0.
|
|
55
|
-
"106": 0.
|
|
56
|
-
"107": 0.
|
|
57
|
-
"108": 0.
|
|
58
|
-
"109": 0.
|
|
59
|
-
"110": 0.
|
|
60
|
-
"111": 0.
|
|
61
|
-
"112": 0.
|
|
62
|
-
"114": 0.
|
|
63
|
-
"115": 0.
|
|
64
|
-
"116": 0.
|
|
65
|
-
"117": 0.
|
|
66
|
-
"118": 0.
|
|
67
|
-
"119": 0.
|
|
68
|
-
"120": 0.
|
|
69
|
-
"121": 0.
|
|
70
|
-
"122": 0.
|
|
71
|
-
"123": 0.
|
|
72
|
-
"124": 0.
|
|
73
|
-
"125": 0.
|
|
74
|
-
"126": 0.
|
|
75
|
-
"127": 0.
|
|
76
|
-
"128": 0.
|
|
77
|
-
"129": 0.
|
|
78
|
-
"130": 0.
|
|
79
|
-
"131": 0.
|
|
80
|
-
"132": 0.
|
|
81
|
-
"133": 0.
|
|
82
|
-
"134": 0.
|
|
83
|
-
"135": 0.
|
|
84
|
-
"136": 0.
|
|
85
|
-
"137": 0.
|
|
86
|
-
"138": 0.
|
|
87
|
-
"139": 0.
|
|
88
|
-
"140": 0.
|
|
89
|
-
"141": 0.
|
|
90
|
-
"142": 0.
|
|
91
|
-
"143": 0.
|
|
92
|
-
"144": 0.
|
|
93
|
-
"145":
|
|
94
|
-
"146": 0.
|
|
95
|
-
"147": 0.
|
|
96
|
-
"148": 0.
|
|
97
|
-
"149":
|
|
98
|
-
"150":
|
|
99
|
-
"151":
|
|
100
|
-
"152": 0.
|
|
18
|
+
"39": 0.019652,
|
|
19
|
+
"40": 0.019652,
|
|
20
|
+
"41": 0.019652,
|
|
21
|
+
"42": 0.019652,
|
|
22
|
+
"43": 0.019652,
|
|
23
|
+
"44": 0.019652,
|
|
24
|
+
"45": 0.019652,
|
|
25
|
+
"46": 0.019652,
|
|
26
|
+
"47": 0.019652,
|
|
27
|
+
"48": 0.024565,
|
|
28
|
+
"49": 0.024565,
|
|
29
|
+
"50": 0.019652,
|
|
30
|
+
"51": 0.019652,
|
|
31
|
+
"52": 0.024565,
|
|
32
|
+
"53": 0.024565,
|
|
33
|
+
"54": 0.019652,
|
|
34
|
+
"55": 0.019652,
|
|
35
|
+
"56": 0.019652,
|
|
36
|
+
"57": 0.019652,
|
|
37
|
+
"58": 0.019652,
|
|
38
|
+
"59": 0.019652,
|
|
39
|
+
"60": 0.019652,
|
|
40
|
+
"69": 0.044217,
|
|
41
|
+
"70": 0.058956,
|
|
42
|
+
"79": 0.019652,
|
|
43
|
+
"86": 0.004913,
|
|
44
|
+
"87": 0.019652,
|
|
45
|
+
"91": 0.004913,
|
|
46
|
+
"93": 0.009826,
|
|
47
|
+
"97": 0.004913,
|
|
48
|
+
"98": 0.019652,
|
|
49
|
+
"99": 0.004913,
|
|
50
|
+
"101": 0.009826,
|
|
51
|
+
"102": 0.009826,
|
|
52
|
+
"103": 0.108086,
|
|
53
|
+
"104": 0.054043,
|
|
54
|
+
"105": 0.054043,
|
|
55
|
+
"106": 0.054043,
|
|
56
|
+
"107": 0.054043,
|
|
57
|
+
"108": 0.058956,
|
|
58
|
+
"109": 0.555169,
|
|
59
|
+
"110": 0.054043,
|
|
60
|
+
"111": 0.078608,
|
|
61
|
+
"112": 0.054043,
|
|
62
|
+
"114": 0.014739,
|
|
63
|
+
"115": 0.009826,
|
|
64
|
+
"116": 0.137564,
|
|
65
|
+
"117": 0.058956,
|
|
66
|
+
"118": 0.225998,
|
|
67
|
+
"119": 0.422518,
|
|
68
|
+
"120": 0.515865,
|
|
69
|
+
"121": 0.024565,
|
|
70
|
+
"122": 0.039304,
|
|
71
|
+
"123": 0.024565,
|
|
72
|
+
"124": 0.142477,
|
|
73
|
+
"125": 0.19652,
|
|
74
|
+
"126": 0.039304,
|
|
75
|
+
"127": 0.014739,
|
|
76
|
+
"128": 0.04913,
|
|
77
|
+
"129": 0.009826,
|
|
78
|
+
"130": 0.029478,
|
|
79
|
+
"131": 0.191607,
|
|
80
|
+
"132": 0.171955,
|
|
81
|
+
"133": 0.137564,
|
|
82
|
+
"134": 0.034391,
|
|
83
|
+
"135": 0.039304,
|
|
84
|
+
"136": 0.117912,
|
|
85
|
+
"137": 0.14739,
|
|
86
|
+
"138": 0.117912,
|
|
87
|
+
"139": 0.058956,
|
|
88
|
+
"140": 0.044217,
|
|
89
|
+
"141": 0.044217,
|
|
90
|
+
"142": 0.235824,
|
|
91
|
+
"143": 0.044217,
|
|
92
|
+
"144": 0.329171,
|
|
93
|
+
"145": 4.05814,
|
|
94
|
+
"146": 0.108086,
|
|
95
|
+
"147": 0.181781,
|
|
96
|
+
"148": 0.338997,
|
|
97
|
+
"149": 1.57707,
|
|
98
|
+
"150": 3.84688,
|
|
99
|
+
"151": 9.34944,
|
|
100
|
+
"152": 0.481474,
|
|
101
|
+
"153": 0.014739,
|
|
102
|
+
"154": 44.0186
|
|
101
103
|
};
|
|
102
104
|
|
|
103
105
|
const UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-09-14T15:40:29.409Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-09-14T15:40:29.409Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000003,\n \"39\": 0.02296,\n \"40\": 0.02296,\n \"41\": 0.02296,\n \"42\": 0.02296,\n \"43\": 0.02296,\n \"44\": 0.02296,\n \"45\": 0.02296,\n \"46\": 0.02296,\n \"47\": 0.02296,\n \"48\": 0.027552,\n \"49\": 0.027552,\n \"50\": 0.02296,\n \"51\": 0.02296,\n \"52\": 0.027552,\n \"53\": 0.02296,\n \"54\": 0.02296,\n \"55\": 0.02296,\n \"56\": 0.02296,\n \"57\": 0.02296,\n \"58\": 0.02296,\n \"59\": 0.02296,\n \"60\": 0.02296,\n \"69\": 0.009184,\n \"70\": 0.06888,\n \"79\": 0.018368,\n \"86\": 0.004592,\n \"87\": 0.02296,\n \"91\": 0.009184,\n \"93\": 0.009184,\n \"97\": 0.004592,\n \"98\": 0.02296,\n \"99\": 0.004592,\n \"101\": 0.009184,\n \"102\": 0.009184,\n \"103\": 0.146944,\n \"104\": 0.087248,\n \"105\": 0.087248,\n \"106\": 0.09184,\n \"107\": 0.09184,\n \"108\": 0.096432,\n \"109\": 0.583184,\n \"110\": 0.09184,\n \"111\": 0.101024,\n \"112\": 0.09184,\n \"114\": 0.018368,\n \"115\": 0.009184,\n \"116\": 0.20664,\n \"117\": 0.09184,\n \"118\": 0.211232,\n \"119\": 0.36736,\n \"120\": 0.509712,\n \"121\": 0.013776,\n \"122\": 0.036736,\n \"123\": 0.018368,\n \"124\": 0.174496,\n \"125\": 0.087248,\n \"126\": 0.036736,\n \"127\": 0.013776,\n \"128\": 0.064288,\n \"129\": 0.013776,\n \"130\": 0.027552,\n \"131\": 0.270928,\n \"132\": 0.073472,\n \"133\": 0.211232,\n \"134\": 0.04592,\n \"135\": 0.036736,\n \"136\": 0.247968,\n \"137\": 0.073472,\n \"138\": 0.123984,\n \"139\": 0.188272,\n \"140\": 0.036736,\n \"141\": 0.04592,\n \"142\": 0.257152,\n \"143\": 0.073472,\n \"144\": 0.101024,\n \"145\": 0.904624,\n \"146\": 0.110208,\n \"147\": 0.220416,\n \"148\": 0.716352,\n \"149\": 5.04202,\n \"150\": 9.15645,\n \"151\": 46.3251,\n \"152\": 0.009184\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n if (typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number' &&\n currentMajorVersion < options.minimumMajorVersion) {\n state = 'outdated';\n reason = 'Current browser engine major version is below the minimum requirement.';\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,C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B,QAAQ;IACR,QAAQ,MAAM,UAAU,GAAG,EAAE;IAC7B,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;IACvE,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;IACxD,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;IACzD,YAAY,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IACxE,gBAAgB,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK;IACzC,YAAY;IACZ,QAAQ;IACR,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,SAAS;IAC1E,IAAI;IACJ,IAAI,iCAAiC,CAAC,mBAAmB,EAAE,sBAAsB,EAAE;IACnF,QAAQ,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,CAAC,sBAAsB,EAAE;IAChF,YAAY,OAAO,SAAS;IAC5B,QAAQ;IACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;IAC1D,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-10-07T23:02:02.368Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-10-07T23:02:02.368Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000003,\n \"39\": 0.019652,\n \"40\": 0.019652,\n \"41\": 0.019652,\n \"42\": 0.019652,\n \"43\": 0.019652,\n \"44\": 0.019652,\n \"45\": 0.019652,\n \"46\": 0.019652,\n \"47\": 0.019652,\n \"48\": 0.024565,\n \"49\": 0.024565,\n \"50\": 0.019652,\n \"51\": 0.019652,\n \"52\": 0.024565,\n \"53\": 0.024565,\n \"54\": 0.019652,\n \"55\": 0.019652,\n \"56\": 0.019652,\n \"57\": 0.019652,\n \"58\": 0.019652,\n \"59\": 0.019652,\n \"60\": 0.019652,\n \"69\": 0.044217,\n \"70\": 0.058956,\n \"79\": 0.019652,\n \"86\": 0.004913,\n \"87\": 0.019652,\n \"91\": 0.004913,\n \"93\": 0.009826,\n \"97\": 0.004913,\n \"98\": 0.019652,\n \"99\": 0.004913,\n \"101\": 0.009826,\n \"102\": 0.009826,\n \"103\": 0.108086,\n \"104\": 0.054043,\n \"105\": 0.054043,\n \"106\": 0.054043,\n \"107\": 0.054043,\n \"108\": 0.058956,\n \"109\": 0.555169,\n \"110\": 0.054043,\n \"111\": 0.078608,\n \"112\": 0.054043,\n \"114\": 0.014739,\n \"115\": 0.009826,\n \"116\": 0.137564,\n \"117\": 0.058956,\n \"118\": 0.225998,\n \"119\": 0.422518,\n \"120\": 0.515865,\n \"121\": 0.024565,\n \"122\": 0.039304,\n \"123\": 0.024565,\n \"124\": 0.142477,\n \"125\": 0.19652,\n \"126\": 0.039304,\n \"127\": 0.014739,\n \"128\": 0.04913,\n \"129\": 0.009826,\n \"130\": 0.029478,\n \"131\": 0.191607,\n \"132\": 0.171955,\n \"133\": 0.137564,\n \"134\": 0.034391,\n \"135\": 0.039304,\n \"136\": 0.117912,\n \"137\": 0.14739,\n \"138\": 0.117912,\n \"139\": 0.058956,\n \"140\": 0.044217,\n \"141\": 0.044217,\n \"142\": 0.235824,\n \"143\": 0.044217,\n \"144\": 0.329171,\n \"145\": 4.05814,\n \"146\": 0.108086,\n \"147\": 0.181781,\n \"148\": 0.338997,\n \"149\": 1.57707,\n \"150\": 3.84688,\n \"151\": 9.34944,\n \"152\": 0.481474,\n \"153\": 0.014739,\n \"154\": 44.0186\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n if (typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number' &&\n currentMajorVersion < options.minimumMajorVersion) {\n state = 'outdated';\n reason = 'Current browser engine major version is below the minimum requirement.';\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC5E,CAAC;;ICHD;IACA;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,iCAAiC,GAAG,8BAA8B;IAExE,MAAM,8BAA8B,GAAG;IAC9C,IAAI,GAAG,EAAE,QAAQ;IACjB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IA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
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-webview-version-checker",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.14",
|
|
4
4
|
"description": "Capacitor plugin for checking outdated Android WebView engines, emitting status events, and presenting native update prompts.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"capacitor:sync:before": "node scripts/generate-version-share-data.mjs",
|
|
54
54
|
"capacitor:update:before": "node scripts/generate-version-share-data.mjs",
|
|
55
55
|
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
56
|
+
"check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
|
|
56
57
|
"example:install": "bun run build && bun scripts/install-packed-example.mjs",
|
|
57
58
|
"example:build": "bun run example:install && cd example-app && bun run build",
|
|
58
59
|
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
|
|
@@ -3,94 +3,96 @@
|
|
|
3
3
|
* AUTO-GENERATED FILE. DO NOT EDIT.
|
|
4
4
|
* Generated by: scripts/generate-version-share-data.mjs
|
|
5
5
|
* Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
|
|
6
|
-
* Generated at: 2026-
|
|
6
|
+
* Generated at: 2026-10-07T23:02:02.368Z
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
|
|
10
|
-
export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-
|
|
10
|
+
export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-10-07T23:02:02.368Z';
|
|
11
11
|
export const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number> = {
|
|
12
12
|
"4": 0.000003,
|
|
13
|
-
"39": 0.
|
|
14
|
-
"40": 0.
|
|
15
|
-
"41": 0.
|
|
16
|
-
"42": 0.
|
|
17
|
-
"43": 0.
|
|
18
|
-
"44": 0.
|
|
19
|
-
"45": 0.
|
|
20
|
-
"46": 0.
|
|
21
|
-
"47": 0.
|
|
22
|
-
"48": 0.
|
|
23
|
-
"49": 0.
|
|
24
|
-
"50": 0.
|
|
25
|
-
"51": 0.
|
|
26
|
-
"52": 0.
|
|
27
|
-
"53": 0.
|
|
28
|
-
"54": 0.
|
|
29
|
-
"55": 0.
|
|
30
|
-
"56": 0.
|
|
31
|
-
"57": 0.
|
|
32
|
-
"58": 0.
|
|
33
|
-
"59": 0.
|
|
34
|
-
"60": 0.
|
|
35
|
-
"69": 0.
|
|
36
|
-
"70": 0.
|
|
37
|
-
"79": 0.
|
|
38
|
-
"86": 0.
|
|
39
|
-
"87": 0.
|
|
40
|
-
"91": 0.
|
|
41
|
-
"93": 0.
|
|
42
|
-
"97": 0.
|
|
43
|
-
"98": 0.
|
|
44
|
-
"99": 0.
|
|
45
|
-
"101": 0.
|
|
46
|
-
"102": 0.
|
|
47
|
-
"103": 0.
|
|
48
|
-
"104": 0.
|
|
49
|
-
"105": 0.
|
|
50
|
-
"106": 0.
|
|
51
|
-
"107": 0.
|
|
52
|
-
"108": 0.
|
|
53
|
-
"109": 0.
|
|
54
|
-
"110": 0.
|
|
55
|
-
"111": 0.
|
|
56
|
-
"112": 0.
|
|
57
|
-
"114": 0.
|
|
58
|
-
"115": 0.
|
|
59
|
-
"116": 0.
|
|
60
|
-
"117": 0.
|
|
61
|
-
"118": 0.
|
|
62
|
-
"119": 0.
|
|
63
|
-
"120": 0.
|
|
64
|
-
"121": 0.
|
|
65
|
-
"122": 0.
|
|
66
|
-
"123": 0.
|
|
67
|
-
"124": 0.
|
|
68
|
-
"125": 0.
|
|
69
|
-
"126": 0.
|
|
70
|
-
"127": 0.
|
|
71
|
-
"128": 0.
|
|
72
|
-
"129": 0.
|
|
73
|
-
"130": 0.
|
|
74
|
-
"131": 0.
|
|
75
|
-
"132": 0.
|
|
76
|
-
"133": 0.
|
|
77
|
-
"134": 0.
|
|
78
|
-
"135": 0.
|
|
79
|
-
"136": 0.
|
|
80
|
-
"137": 0.
|
|
81
|
-
"138": 0.
|
|
82
|
-
"139": 0.
|
|
83
|
-
"140": 0.
|
|
84
|
-
"141": 0.
|
|
85
|
-
"142": 0.
|
|
86
|
-
"143": 0.
|
|
87
|
-
"144": 0.
|
|
88
|
-
"145":
|
|
89
|
-
"146": 0.
|
|
90
|
-
"147": 0.
|
|
91
|
-
"148": 0.
|
|
92
|
-
"149":
|
|
93
|
-
"150":
|
|
94
|
-
"151":
|
|
95
|
-
"152": 0.
|
|
13
|
+
"39": 0.019652,
|
|
14
|
+
"40": 0.019652,
|
|
15
|
+
"41": 0.019652,
|
|
16
|
+
"42": 0.019652,
|
|
17
|
+
"43": 0.019652,
|
|
18
|
+
"44": 0.019652,
|
|
19
|
+
"45": 0.019652,
|
|
20
|
+
"46": 0.019652,
|
|
21
|
+
"47": 0.019652,
|
|
22
|
+
"48": 0.024565,
|
|
23
|
+
"49": 0.024565,
|
|
24
|
+
"50": 0.019652,
|
|
25
|
+
"51": 0.019652,
|
|
26
|
+
"52": 0.024565,
|
|
27
|
+
"53": 0.024565,
|
|
28
|
+
"54": 0.019652,
|
|
29
|
+
"55": 0.019652,
|
|
30
|
+
"56": 0.019652,
|
|
31
|
+
"57": 0.019652,
|
|
32
|
+
"58": 0.019652,
|
|
33
|
+
"59": 0.019652,
|
|
34
|
+
"60": 0.019652,
|
|
35
|
+
"69": 0.044217,
|
|
36
|
+
"70": 0.058956,
|
|
37
|
+
"79": 0.019652,
|
|
38
|
+
"86": 0.004913,
|
|
39
|
+
"87": 0.019652,
|
|
40
|
+
"91": 0.004913,
|
|
41
|
+
"93": 0.009826,
|
|
42
|
+
"97": 0.004913,
|
|
43
|
+
"98": 0.019652,
|
|
44
|
+
"99": 0.004913,
|
|
45
|
+
"101": 0.009826,
|
|
46
|
+
"102": 0.009826,
|
|
47
|
+
"103": 0.108086,
|
|
48
|
+
"104": 0.054043,
|
|
49
|
+
"105": 0.054043,
|
|
50
|
+
"106": 0.054043,
|
|
51
|
+
"107": 0.054043,
|
|
52
|
+
"108": 0.058956,
|
|
53
|
+
"109": 0.555169,
|
|
54
|
+
"110": 0.054043,
|
|
55
|
+
"111": 0.078608,
|
|
56
|
+
"112": 0.054043,
|
|
57
|
+
"114": 0.014739,
|
|
58
|
+
"115": 0.009826,
|
|
59
|
+
"116": 0.137564,
|
|
60
|
+
"117": 0.058956,
|
|
61
|
+
"118": 0.225998,
|
|
62
|
+
"119": 0.422518,
|
|
63
|
+
"120": 0.515865,
|
|
64
|
+
"121": 0.024565,
|
|
65
|
+
"122": 0.039304,
|
|
66
|
+
"123": 0.024565,
|
|
67
|
+
"124": 0.142477,
|
|
68
|
+
"125": 0.19652,
|
|
69
|
+
"126": 0.039304,
|
|
70
|
+
"127": 0.014739,
|
|
71
|
+
"128": 0.04913,
|
|
72
|
+
"129": 0.009826,
|
|
73
|
+
"130": 0.029478,
|
|
74
|
+
"131": 0.191607,
|
|
75
|
+
"132": 0.171955,
|
|
76
|
+
"133": 0.137564,
|
|
77
|
+
"134": 0.034391,
|
|
78
|
+
"135": 0.039304,
|
|
79
|
+
"136": 0.117912,
|
|
80
|
+
"137": 0.14739,
|
|
81
|
+
"138": 0.117912,
|
|
82
|
+
"139": 0.058956,
|
|
83
|
+
"140": 0.044217,
|
|
84
|
+
"141": 0.044217,
|
|
85
|
+
"142": 0.235824,
|
|
86
|
+
"143": 0.044217,
|
|
87
|
+
"144": 0.329171,
|
|
88
|
+
"145": 4.05814,
|
|
89
|
+
"146": 0.108086,
|
|
90
|
+
"147": 0.181781,
|
|
91
|
+
"148": 0.338997,
|
|
92
|
+
"149": 1.57707,
|
|
93
|
+
"150": 3.84688,
|
|
94
|
+
"151": 9.34944,
|
|
95
|
+
"152": 0.481474,
|
|
96
|
+
"153": 0.014739,
|
|
97
|
+
"154": 44.0186
|
|
96
98
|
};
|