expo-iap 3.1.6 → 3.1.8
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/CLAUDE.md +92 -0
- package/build/helpers/subscription.d.ts.map +1 -1
- package/build/helpers/subscription.js +2 -1
- package/build/helpers/subscription.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +5 -3
- package/build/index.js.map +1 -1
- package/build/useIAP.d.ts.map +1 -1
- package/build/useIAP.js +10 -9
- package/build/useIAP.js.map +1 -1
- package/build/utils/debug.d.ts +13 -0
- package/build/utils/debug.d.ts.map +1 -0
- package/build/utils/debug.js +53 -0
- package/build/utils/debug.js.map +1 -0
- package/bun.lockb +0 -0
- package/coverage/clover.xml +229 -207
- package/coverage/coverage-final.json +3 -2
- package/coverage/lcov-report/block-navigation.js +1 -1
- package/coverage/lcov-report/index.html +31 -31
- package/coverage/lcov-report/sorter.js +21 -7
- package/coverage/lcov-report/src/helpers/index.html +10 -10
- package/coverage/lcov-report/src/helpers/subscription.ts.html +10 -7
- package/coverage/lcov-report/src/index.html +14 -14
- package/coverage/lcov-report/src/index.ts.html +18 -12
- package/coverage/lcov-report/src/modules/android.ts.html +1 -1
- package/coverage/lcov-report/src/modules/index.html +1 -1
- package/coverage/lcov-report/src/modules/ios.ts.html +1 -1
- package/coverage/lcov-report/src/utils/debug.ts.html +283 -0
- package/coverage/lcov-report/src/utils/errorMapping.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +24 -9
- package/coverage/lcov.info +415 -362
- package/ios/ExpoIapModule.swift +1 -1
- package/openiap-versions.json +2 -2
- package/package.json +1 -1
- package/plugin/tsconfig.tsbuildinfo +1 -1
- package/src/helpers/subscription.ts +2 -1
- package/src/index.ts +6 -4
- package/src/useIAP.ts +12 -9
- package/src/utils/debug.ts +66 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug logger for Expo IAP
|
|
3
|
+
* Only logs when explicitly enabled for library development
|
|
4
|
+
* Silent for all library users (even in their dev mode)
|
|
5
|
+
*/
|
|
6
|
+
// Check if we're in library development mode
|
|
7
|
+
// This will be false for library users, even in their dev environment
|
|
8
|
+
const isLibraryDevelopment = () => {
|
|
9
|
+
// Only show logs if explicitly enabled via environment variable
|
|
10
|
+
// Library developers can set: EXPO_IAP_DEV_MODE=true
|
|
11
|
+
// Handle both Node.js and React Native environments
|
|
12
|
+
if (typeof process !== 'undefined' &&
|
|
13
|
+
process.env?.EXPO_IAP_DEV_MODE === 'true') {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
// Check global object (works in both environments)
|
|
17
|
+
if (typeof globalThis !== 'undefined' &&
|
|
18
|
+
globalThis.EXPO_IAP_DEV_MODE === true) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
return false;
|
|
22
|
+
};
|
|
23
|
+
const createConsole = () => ({
|
|
24
|
+
log: (...args) => {
|
|
25
|
+
if (isLibraryDevelopment()) {
|
|
26
|
+
console.log('[Expo-IAP]', ...args);
|
|
27
|
+
}
|
|
28
|
+
// Silent for library users
|
|
29
|
+
},
|
|
30
|
+
debug: (...args) => {
|
|
31
|
+
if (isLibraryDevelopment()) {
|
|
32
|
+
console.debug('[Expo-IAP Debug]', ...args);
|
|
33
|
+
}
|
|
34
|
+
// Silent for library users
|
|
35
|
+
},
|
|
36
|
+
warn: (...args) => {
|
|
37
|
+
// Warnings are always shown
|
|
38
|
+
console.warn('[Expo-IAP]', ...args);
|
|
39
|
+
},
|
|
40
|
+
error: (...args) => {
|
|
41
|
+
// Errors are always shown
|
|
42
|
+
console.error('[Expo-IAP]', ...args);
|
|
43
|
+
},
|
|
44
|
+
info: (...args) => {
|
|
45
|
+
if (isLibraryDevelopment()) {
|
|
46
|
+
console.info('[Expo-IAP]', ...args);
|
|
47
|
+
}
|
|
48
|
+
// Silent for library users
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
// Export a singleton instance
|
|
52
|
+
export const ExpoIapConsole = createConsole();
|
|
53
|
+
//# sourceMappingURL=debug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/utils/debug.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,6CAA6C;AAC7C,sEAAsE;AACtE,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAChC,gEAAgE;IAChE,qDAAqD;IAErD,oDAAoD;IACpD,IACE,OAAO,OAAO,KAAK,WAAW;QAC9B,OAAO,CAAC,GAAG,EAAE,iBAAiB,KAAK,MAAM,EACzC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mDAAmD;IACnD,IACE,OAAO,UAAU,KAAK,WAAW;QAChC,UAAkB,CAAC,iBAAiB,KAAK,IAAI,EAC9C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,CAAC;IAC3B,GAAG,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE;QACtB,IAAI,oBAAoB,EAAE,EAAE,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;QACrC,CAAC;QACD,2BAA2B;IAC7B,CAAC;IAED,KAAK,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,IAAI,oBAAoB,EAAE,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,GAAG,IAAI,CAAC,CAAC;QAC7C,CAAC;QACD,2BAA2B;IAC7B,CAAC;IAED,IAAI,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE;QACvB,4BAA4B;QAC5B,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,0BAA0B;QAC1B,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE;QACvB,IAAI,oBAAoB,EAAE,EAAE,CAAC;YAC3B,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAAC;QACtC,CAAC;QACD,2BAA2B;IAC7B,CAAC;CACF,CAAC,CAAC;AAEH,8BAA8B;AAC9B,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,EAAE,CAAC","sourcesContent":["/**\n * Debug logger for Expo IAP\n * Only logs when explicitly enabled for library development\n * Silent for all library users (even in their dev mode)\n */\n\n// Check if we're in library development mode\n// This will be false for library users, even in their dev environment\nconst isLibraryDevelopment = () => {\n // Only show logs if explicitly enabled via environment variable\n // Library developers can set: EXPO_IAP_DEV_MODE=true\n\n // Handle both Node.js and React Native environments\n if (\n typeof process !== 'undefined' &&\n process.env?.EXPO_IAP_DEV_MODE === 'true'\n ) {\n return true;\n }\n\n // Check global object (works in both environments)\n if (\n typeof globalThis !== 'undefined' &&\n (globalThis as any).EXPO_IAP_DEV_MODE === true\n ) {\n return true;\n }\n\n return false;\n};\n\nconst createConsole = () => ({\n log: (...args: any[]) => {\n if (isLibraryDevelopment()) {\n console.log('[Expo-IAP]', ...args);\n }\n // Silent for library users\n },\n\n debug: (...args: any[]) => {\n if (isLibraryDevelopment()) {\n console.debug('[Expo-IAP Debug]', ...args);\n }\n // Silent for library users\n },\n\n warn: (...args: any[]) => {\n // Warnings are always shown\n console.warn('[Expo-IAP]', ...args);\n },\n\n error: (...args: any[]) => {\n // Errors are always shown\n console.error('[Expo-IAP]', ...args);\n },\n\n info: (...args: any[]) => {\n if (isLibraryDevelopment()) {\n console.info('[Expo-IAP]', ...args);\n }\n // Silent for library users\n },\n});\n\n// Export a singleton instance\nexport const ExpoIapConsole = createConsole();\n"]}
|
package/bun.lockb
ADDED
|
Binary file
|
package/coverage/clover.xml
CHANGED
|
@@ -1,259 +1,262 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1759407275851" clover="3.2.0">
|
|
3
|
+
<project timestamp="1759407275851" name="All files">
|
|
4
|
+
<metrics statements="486" coveredstatements="470" conditionals="282" coveredconditionals="246" methods="91" coveredmethods="78" elements="859" coveredelements="794" complexity="0" loc="486" ncloc="486" packages="4" files="6" classes="6"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="188" coveredstatements="186" conditionals="89" coveredconditionals="80" methods="39" coveredmethods="30"/>
|
|
7
7
|
<file name="index.ts" path="/home/runner/work/expo-iap/expo-iap/src/index.ts">
|
|
8
|
-
<metrics statements="
|
|
8
|
+
<metrics statements="188" coveredstatements="186" conditionals="89" coveredconditionals="80" methods="39" coveredmethods="30"/>
|
|
9
9
|
<line num="2" count="1" type="stmt"/>
|
|
10
10
|
<line num="3" count="1" type="stmt"/>
|
|
11
11
|
<line num="6" count="1" type="stmt"/>
|
|
12
12
|
<line num="7" count="1" type="stmt"/>
|
|
13
13
|
<line num="13" count="1" type="stmt"/>
|
|
14
|
-
<line num="
|
|
14
|
+
<line num="18" count="1" type="stmt"/>
|
|
15
15
|
<line num="41" count="1" type="stmt"/>
|
|
16
|
-
<line num="
|
|
16
|
+
<line num="42" count="1" type="stmt"/>
|
|
17
17
|
<line num="45" count="1" type="stmt"/>
|
|
18
18
|
<line num="46" count="1" type="stmt"/>
|
|
19
|
-
<line num="
|
|
19
|
+
<line num="47" count="1" type="stmt"/>
|
|
20
20
|
<line num="50" count="1" type="stmt"/>
|
|
21
21
|
<line num="51" count="1" type="stmt"/>
|
|
22
|
-
<line num="
|
|
23
|
-
<line num="56" count="1" type="
|
|
22
|
+
<line num="52" count="1" type="stmt"/>
|
|
23
|
+
<line num="56" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
24
24
|
<line num="57" count="1" type="stmt"/>
|
|
25
25
|
<line num="58" count="1" type="stmt"/>
|
|
26
|
-
<line num="
|
|
27
|
-
<line num="
|
|
28
|
-
<line num="92" count="
|
|
29
|
-
<line num="93" count="
|
|
30
|
-
<line num="
|
|
31
|
-
<line num="99" count="
|
|
32
|
-
<line num="
|
|
33
|
-
<line num="105" count="
|
|
34
|
-
<line num="
|
|
35
|
-
<line num="111" count="
|
|
36
|
-
<line num="
|
|
37
|
-
<line num="
|
|
38
|
-
<line num="120" count="
|
|
39
|
-
<line num="121" count="7" type="
|
|
40
|
-
<line num="122" count="
|
|
41
|
-
<line num="
|
|
42
|
-
<line num="126" count="2" type="
|
|
43
|
-
<line num="127" count="
|
|
44
|
-
<line num="
|
|
45
|
-
<line num="
|
|
46
|
-
<line num="134" count="
|
|
47
|
-
<line num="
|
|
48
|
-
<line num="
|
|
26
|
+
<line num="59" count="1" type="stmt"/>
|
|
27
|
+
<line num="84" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
28
|
+
<line num="92" count="1" type="stmt"/>
|
|
29
|
+
<line num="93" count="18" type="cond" truecount="1" falsecount="0"/>
|
|
30
|
+
<line num="94" count="1" type="stmt"/>
|
|
31
|
+
<line num="99" count="18" type="cond" truecount="4" falsecount="0"/>
|
|
32
|
+
<line num="100" count="9" type="stmt"/>
|
|
33
|
+
<line num="105" count="9" type="cond" truecount="1" falsecount="0"/>
|
|
34
|
+
<line num="106" count="5" type="stmt"/>
|
|
35
|
+
<line num="111" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
36
|
+
<line num="112" count="3" type="stmt"/>
|
|
37
|
+
<line num="117" count="1" type="stmt"/>
|
|
38
|
+
<line num="120" count="1" type="stmt"/>
|
|
39
|
+
<line num="121" count="7" type="stmt"/>
|
|
40
|
+
<line num="122" count="7" type="cond" truecount="1" falsecount="0"/>
|
|
41
|
+
<line num="123" count="5" type="stmt"/>
|
|
42
|
+
<line num="126" count="2" type="stmt"/>
|
|
43
|
+
<line num="127" count="2" type="cond" truecount="2" falsecount="2"/>
|
|
44
|
+
<line num="128" count="0" type="stmt"/>
|
|
45
|
+
<line num="131" count="2" type="stmt"/>
|
|
46
|
+
<line num="134" count="1" type="stmt"/>
|
|
47
|
+
<line num="135" count="7" type="stmt"/>
|
|
48
|
+
<line num="137" count="1" type="stmt"/>
|
|
49
49
|
<line num="140" count="1" type="stmt"/>
|
|
50
50
|
<line num="141" count="1" type="stmt"/>
|
|
51
|
-
<line num="
|
|
52
|
-
<line num="
|
|
53
|
-
<line num="
|
|
54
|
-
<line num="
|
|
51
|
+
<line num="142" count="1" type="stmt"/>
|
|
52
|
+
<line num="144" count="1" type="stmt"/>
|
|
53
|
+
<line num="148" count="1" type="stmt"/>
|
|
54
|
+
<line num="151" count="1" type="stmt"/>
|
|
55
55
|
<line num="154" count="1" type="stmt"/>
|
|
56
|
-
<line num="
|
|
57
|
-
<line num="
|
|
58
|
-
<line num="
|
|
59
|
-
<line num="
|
|
60
|
-
<line num="187" count="
|
|
61
|
-
<line num="
|
|
62
|
-
<line num="
|
|
63
|
-
<line num="
|
|
56
|
+
<line num="155" count="1" type="stmt"/>
|
|
57
|
+
<line num="157" count="1" type="stmt"/>
|
|
58
|
+
<line num="161" count="1" type="stmt"/>
|
|
59
|
+
<line num="184" count="1" type="stmt"/>
|
|
60
|
+
<line num="187" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
61
|
+
<line num="188" count="1" type="stmt"/>
|
|
62
|
+
<line num="191" count="1" type="stmt"/>
|
|
63
|
+
<line num="193" count="1" type="stmt"/>
|
|
64
64
|
<line num="196" count="1" type="stmt"/>
|
|
65
|
-
<line num="
|
|
65
|
+
<line num="197" count="1" type="stmt"/>
|
|
66
66
|
<line num="199" count="1" type="stmt"/>
|
|
67
|
-
<line num="
|
|
68
|
-
<line num="209" count="
|
|
69
|
-
<line num="210" count="6" type="
|
|
70
|
-
<line num="
|
|
71
|
-
<line num="213" count="
|
|
72
|
-
<line num="
|
|
73
|
-
<line num="
|
|
74
|
-
<line num="
|
|
75
|
-
<line num="
|
|
76
|
-
<line num="228" count="
|
|
77
|
-
<line num="229" count="
|
|
78
|
-
<line num="
|
|
79
|
-
<line num="232" count="5" type="
|
|
80
|
-
<line num="
|
|
81
|
-
<line num="
|
|
82
|
-
<line num="239" count="
|
|
83
|
-
<line num="240" count="
|
|
84
|
-
<line num="
|
|
85
|
-
<line num="243" count="2" type="
|
|
86
|
-
<line num="
|
|
87
|
-
<line num="
|
|
88
|
-
<line num="250" count="
|
|
89
|
-
<line num="
|
|
90
|
-
<line num="253" count="
|
|
91
|
-
<line num="
|
|
92
|
-
<line num="
|
|
93
|
-
<line num="259" count="
|
|
67
|
+
<line num="200" count="1" type="stmt"/>
|
|
68
|
+
<line num="209" count="1" type="stmt"/>
|
|
69
|
+
<line num="210" count="6" type="stmt"/>
|
|
70
|
+
<line num="211" count="6" type="cond" truecount="1" falsecount="1"/>
|
|
71
|
+
<line num="213" count="6" type="cond" truecount="3" falsecount="0"/>
|
|
72
|
+
<line num="214" count="1" type="stmt"/>
|
|
73
|
+
<line num="220" count="5" type="stmt"/>
|
|
74
|
+
<line num="223" count="5" type="stmt"/>
|
|
75
|
+
<line num="225" count="5" type="stmt"/>
|
|
76
|
+
<line num="228" count="3" type="stmt"/>
|
|
77
|
+
<line num="229" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
78
|
+
<line num="230" count="1" type="stmt"/>
|
|
79
|
+
<line num="232" count="5" type="stmt"/>
|
|
80
|
+
<line num="233" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
81
|
+
<line num="236" count="5" type="stmt"/>
|
|
82
|
+
<line num="239" count="1" type="stmt"/>
|
|
83
|
+
<line num="240" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
84
|
+
<line num="241" count="1" type="stmt"/>
|
|
85
|
+
<line num="243" count="2" type="stmt"/>
|
|
86
|
+
<line num="244" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
87
|
+
<line num="247" count="5" type="stmt"/>
|
|
88
|
+
<line num="250" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
89
|
+
<line num="251" count="2" type="stmt"/>
|
|
90
|
+
<line num="253" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
91
|
+
<line num="254" count="1" type="stmt"/>
|
|
92
|
+
<line num="256" count="1" type="stmt"/>
|
|
93
|
+
<line num="259" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
94
94
|
<line num="260" count="3" type="stmt"/>
|
|
95
|
-
<line num="
|
|
96
|
-
<line num="264" count="
|
|
95
|
+
<line num="261" count="3" type="stmt"/>
|
|
96
|
+
<line num="264" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
97
97
|
<line num="265" count="1" type="stmt"/>
|
|
98
|
-
<line num="
|
|
99
|
-
<line num="
|
|
100
|
-
<line num="
|
|
101
|
-
<line num="274" count="
|
|
102
|
-
<line num="
|
|
103
|
-
<line num="
|
|
104
|
-
<line num="
|
|
98
|
+
<line num="266" count="1" type="stmt"/>
|
|
99
|
+
<line num="269" count="1" type="stmt"/>
|
|
100
|
+
<line num="272" count="1" type="stmt"/>
|
|
101
|
+
<line num="274" count="1" type="stmt"/>
|
|
102
|
+
<line num="275" count="4" type="stmt"/>
|
|
103
|
+
<line num="282" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
104
|
+
<line num="284" count="2" type="stmt"/>
|
|
105
105
|
<line num="288" count="1" type="stmt"/>
|
|
106
|
-
<line num="
|
|
106
|
+
<line num="289" count="1" type="stmt"/>
|
|
107
107
|
<line num="291" count="4" type="stmt"/>
|
|
108
|
-
<line num="
|
|
109
|
-
<line num="295" count="
|
|
110
|
-
<line num="296" count="
|
|
111
|
-
<line num="
|
|
112
|
-
<line num="
|
|
113
|
-
<line num="
|
|
114
|
-
<line num="
|
|
108
|
+
<line num="292" count="4" type="stmt"/>
|
|
109
|
+
<line num="295" count="1" type="stmt"/>
|
|
110
|
+
<line num="296" count="2" type="cond" truecount="2" falsecount="1"/>
|
|
111
|
+
<line num="297" count="0" type="stmt"/>
|
|
112
|
+
<line num="299" count="2" type="stmt"/>
|
|
113
|
+
<line num="328" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
114
|
+
<line num="362" count="1" type="stmt"/>
|
|
115
115
|
<line num="365" count="13" type="stmt"/>
|
|
116
|
-
<line num="366" count="
|
|
117
|
-
<line num="
|
|
118
|
-
<line num="369" count="
|
|
119
|
-
<line num="
|
|
120
|
-
<line num="372" count="
|
|
121
|
-
<line num="
|
|
122
|
-
<line num="379" count="
|
|
123
|
-
<line num="
|
|
124
|
-
<line num="384" count="
|
|
125
|
-
<line num="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="
|
|
128
|
-
<line num="398" count="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="402" count="
|
|
131
|
-
<line num="
|
|
132
|
-
<line num="
|
|
133
|
-
<line num="409" count="
|
|
134
|
-
<line num="410" count="
|
|
135
|
-
<line num="
|
|
136
|
-
<line num="416" count="
|
|
137
|
-
<line num="
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="
|
|
141
|
-
<line num="443" count="
|
|
142
|
-
<line num="
|
|
143
|
-
<line num="449" count="
|
|
144
|
-
<line num="
|
|
145
|
-
<line num="
|
|
146
|
-
<line num="465" count="1" type="cond" truecount="
|
|
116
|
+
<line num="366" count="13" type="stmt"/>
|
|
117
|
+
<line num="367" count="12" type="stmt"/>
|
|
118
|
+
<line num="369" count="12" type="cond" truecount="1" falsecount="0"/>
|
|
119
|
+
<line num="370" count="6" type="stmt"/>
|
|
120
|
+
<line num="372" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
121
|
+
<line num="373" count="1" type="stmt"/>
|
|
122
|
+
<line num="379" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
123
|
+
<line num="380" count="2" type="stmt"/>
|
|
124
|
+
<line num="384" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
125
|
+
<line num="385" count="2" type="stmt"/>
|
|
126
|
+
<line num="390" count="1" type="stmt"/>
|
|
127
|
+
<line num="393" count="4" type="stmt"/>
|
|
128
|
+
<line num="398" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
129
|
+
<line num="399" count="1" type="stmt"/>
|
|
130
|
+
<line num="402" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
131
|
+
<line num="403" count="2" type="stmt"/>
|
|
132
|
+
<line num="406" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
133
|
+
<line num="409" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
134
|
+
<line num="410" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
135
|
+
<line num="411" count="2" type="stmt"/>
|
|
136
|
+
<line num="416" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
137
|
+
<line num="417" count="1" type="stmt"/>
|
|
138
|
+
<line num="427" count="1" type="stmt"/>
|
|
139
|
+
<line num="429" count="1" type="stmt"/>
|
|
140
|
+
<line num="440" count="1" type="stmt"/>
|
|
141
|
+
<line num="443" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
142
|
+
<line num="444" count="2" type="stmt"/>
|
|
143
|
+
<line num="449" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
144
|
+
<line num="450" count="1" type="stmt"/>
|
|
145
|
+
<line num="463" count="1" type="stmt"/>
|
|
146
|
+
<line num="465" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
147
147
|
<line num="466" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
148
|
-
<line num="
|
|
149
|
-
<line num="
|
|
150
|
-
<line num="
|
|
151
|
-
<line num="
|
|
152
|
-
<line num="
|
|
153
|
-
<line num="
|
|
154
|
-
<line num="
|
|
155
|
-
<line num="498" count="
|
|
148
|
+
<line num="467" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
149
|
+
<line num="469" count="1" type="stmt"/>
|
|
150
|
+
<line num="477" count="1" type="stmt"/>
|
|
151
|
+
<line num="483" count="1" type="stmt"/>
|
|
152
|
+
<line num="486" count="1" type="stmt"/>
|
|
153
|
+
<line num="491" count="1" type="stmt"/>
|
|
154
|
+
<line num="494" count="1" type="stmt"/>
|
|
155
|
+
<line num="498" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
156
156
|
<line num="499" count="2" type="stmt"/>
|
|
157
|
-
<line num="
|
|
158
|
-
<line num="503" count="
|
|
159
|
-
<line num="
|
|
160
|
-
<line num="506" count="
|
|
161
|
-
<line num="
|
|
162
|
-
<line num="515" count="
|
|
157
|
+
<line num="500" count="2" type="stmt"/>
|
|
158
|
+
<line num="503" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
159
|
+
<line num="504" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
160
|
+
<line num="506" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
161
|
+
<line num="507" count="1" type="stmt"/>
|
|
162
|
+
<line num="515" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
163
163
|
<line num="516" count="1" type="stmt"/>
|
|
164
|
-
<line num="
|
|
164
|
+
<line num="517" count="1" type="stmt"/>
|
|
165
165
|
<line num="520" count="1" type="stmt"/>
|
|
166
|
-
<line num="
|
|
167
|
-
<line num="
|
|
168
|
-
<line num="537" count="1" type="
|
|
169
|
-
<line num="538" count="1" type="
|
|
170
|
-
<line num="
|
|
171
|
-
<line num="
|
|
172
|
-
<line num="
|
|
173
|
-
<line num="568" count="
|
|
174
|
-
<line num="569" count="
|
|
166
|
+
<line num="521" count="1" type="stmt"/>
|
|
167
|
+
<line num="524" count="1" type="stmt"/>
|
|
168
|
+
<line num="537" count="1" type="stmt"/>
|
|
169
|
+
<line num="538" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
170
|
+
<line num="539" count="1" type="stmt"/>
|
|
171
|
+
<line num="542" count="1" type="stmt"/>
|
|
172
|
+
<line num="566" count="1" type="stmt"/>
|
|
173
|
+
<line num="568" count="1" type="stmt"/>
|
|
174
|
+
<line num="569" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
175
175
|
<line num="570" count="1" type="stmt"/>
|
|
176
|
-
<line num="
|
|
177
|
-
<line num="574" count="
|
|
178
|
-
<line num="575" count="
|
|
179
|
-
<line num="
|
|
180
|
-
<line num="
|
|
181
|
-
<line num="
|
|
182
|
-
<line num="
|
|
183
|
-
<line num="595" count="
|
|
184
|
-
<line num="
|
|
185
|
-
<line num="599" count="
|
|
186
|
-
<line num="
|
|
187
|
-
<line num="
|
|
188
|
-
<line num="
|
|
189
|
-
<line num="
|
|
176
|
+
<line num="571" count="1" type="stmt"/>
|
|
177
|
+
<line num="574" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
178
|
+
<line num="575" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
179
|
+
<line num="576" count="1" type="stmt"/>
|
|
180
|
+
<line num="579" count="1" type="stmt"/>
|
|
181
|
+
<line num="590" count="1" type="stmt"/>
|
|
182
|
+
<line num="593" count="4" type="stmt"/>
|
|
183
|
+
<line num="595" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
184
|
+
<line num="596" count="1" type="stmt"/>
|
|
185
|
+
<line num="599" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
186
|
+
<line num="600" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
187
|
+
<line num="606" count="1" type="stmt"/>
|
|
188
|
+
<line num="610" count="1" type="stmt"/>
|
|
189
|
+
<line num="619" count="1" type="stmt"/>
|
|
190
190
|
<line num="622" count="1" type="stmt"/>
|
|
191
191
|
<line num="623" count="1" type="stmt"/>
|
|
192
192
|
<line num="624" count="1" type="stmt"/>
|
|
193
193
|
<line num="625" count="1" type="stmt"/>
|
|
194
194
|
<line num="626" count="1" type="stmt"/>
|
|
195
|
+
<line num="627" count="1" type="stmt"/>
|
|
196
|
+
<line num="633" count="1" type="stmt"/>
|
|
195
197
|
</file>
|
|
196
198
|
</package>
|
|
197
199
|
<package name="src.helpers">
|
|
198
|
-
<metrics statements="
|
|
200
|
+
<metrics statements="57" coveredstatements="56" conditionals="41" coveredconditionals="38" methods="4" coveredmethods="4"/>
|
|
199
201
|
<file name="subscription.ts" path="/home/runner/work/expo-iap/expo-iap/src/helpers/subscription.ts">
|
|
200
|
-
<metrics statements="
|
|
202
|
+
<metrics statements="57" coveredstatements="56" conditionals="41" coveredconditionals="38" methods="4" coveredmethods="4"/>
|
|
201
203
|
<line num="1" count="2" type="stmt"/>
|
|
202
204
|
<line num="2" count="2" type="stmt"/>
|
|
203
|
-
<line num="
|
|
204
|
-
<line num="
|
|
205
|
+
<line num="4" count="2" type="stmt"/>
|
|
206
|
+
<line num="11" count="2" type="stmt"/>
|
|
205
207
|
<line num="14" count="18" type="stmt"/>
|
|
206
|
-
<line num="15" count="
|
|
208
|
+
<line num="15" count="18" type="stmt"/>
|
|
207
209
|
<line num="16" count="17" type="stmt"/>
|
|
208
|
-
<line num="
|
|
209
|
-
<line num="
|
|
210
|
-
<line num="22" count="
|
|
211
|
-
<line num="23" count="
|
|
212
|
-
<line num="
|
|
213
|
-
<line num="
|
|
214
|
-
<line num="34" count="
|
|
215
|
-
<line num="
|
|
216
|
-
<line num="39" count="
|
|
217
|
-
<line num="40" count="
|
|
218
|
-
<line num="
|
|
219
|
-
<line num="45" count="1" type="
|
|
220
|
-
<line num="
|
|
221
|
-
<line num="
|
|
222
|
-
<line num="
|
|
223
|
-
<line num="
|
|
224
|
-
<line num="
|
|
225
|
-
<line num="
|
|
226
|
-
<line num="
|
|
210
|
+
<line num="17" count="17" type="stmt"/>
|
|
211
|
+
<line num="20" count="17" type="stmt"/>
|
|
212
|
+
<line num="22" count="18" type="cond" truecount="3" falsecount="0"/>
|
|
213
|
+
<line num="23" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
214
|
+
<line num="24" count="3" type="stmt"/>
|
|
215
|
+
<line num="30" count="15" type="cond" truecount="5" falsecount="0"/>
|
|
216
|
+
<line num="34" count="15" type="cond" truecount="1" falsecount="0"/>
|
|
217
|
+
<line num="35" count="1" type="stmt"/>
|
|
218
|
+
<line num="39" count="14" type="cond" truecount="2" falsecount="0"/>
|
|
219
|
+
<line num="40" count="11" type="cond" truecount="3" falsecount="0"/>
|
|
220
|
+
<line num="41" count="10" type="stmt"/>
|
|
221
|
+
<line num="45" count="1" type="cond" truecount="3" falsecount="0"/>
|
|
222
|
+
<line num="46" count="1" type="stmt"/>
|
|
223
|
+
<line num="48" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
224
|
+
<line num="52" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
225
|
+
<line num="57" count="1" type="stmt"/>
|
|
226
|
+
<line num="61" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
227
|
+
<line num="63" count="3" type="stmt"/>
|
|
228
|
+
<line num="66" count="0" type="stmt"/>
|
|
227
229
|
<line num="70" count="17" type="stmt"/>
|
|
228
|
-
<line num="71" count="
|
|
229
|
-
<line num="72" count="13" type="
|
|
230
|
-
<line num="73" count="13" type="
|
|
230
|
+
<line num="71" count="17" type="stmt"/>
|
|
231
|
+
<line num="72" count="13" type="stmt"/>
|
|
232
|
+
<line num="73" count="13" type="cond" truecount="0" falsecount="1"/>
|
|
231
233
|
<line num="74" count="13" type="stmt"/>
|
|
232
|
-
<line num="
|
|
233
|
-
<line num="79" count="
|
|
234
|
-
<line num="
|
|
235
|
-
<line num="89" count="
|
|
236
|
-
<line num="90" count="
|
|
237
|
-
<line num="
|
|
238
|
-
<line num="
|
|
234
|
+
<line num="75" count="13" type="stmt"/>
|
|
235
|
+
<line num="79" count="17" type="stmt"/>
|
|
236
|
+
<line num="80" count="13" type="stmt"/>
|
|
237
|
+
<line num="89" count="13" type="cond" truecount="2" falsecount="0"/>
|
|
238
|
+
<line num="90" count="10" type="cond" truecount="3" falsecount="0"/>
|
|
239
|
+
<line num="91" count="9" type="stmt"/>
|
|
240
|
+
<line num="94" count="9" type="stmt"/>
|
|
239
241
|
<line num="97" count="9" type="stmt"/>
|
|
240
|
-
<line num="
|
|
241
|
-
<line num="101" count="
|
|
242
|
-
<line num="
|
|
242
|
+
<line num="98" count="9" type="stmt"/>
|
|
243
|
+
<line num="101" count="10" type="cond" truecount="1" falsecount="0"/>
|
|
244
|
+
<line num="102" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
243
245
|
<line num="104" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
244
246
|
<line num="105" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
245
|
-
<line num="106" count="3" type="
|
|
246
|
-
<line num="
|
|
247
|
-
<line num="110" count="
|
|
248
|
-
<line num="111" count="
|
|
249
|
-
<line num="112" count="2" type="
|
|
250
|
-
<line num="
|
|
251
|
-
<line num="
|
|
252
|
-
<line num="
|
|
247
|
+
<line num="106" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
248
|
+
<line num="107" count="3" type="stmt"/>
|
|
249
|
+
<line num="110" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
250
|
+
<line num="111" count="1" type="stmt"/>
|
|
251
|
+
<line num="112" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
252
|
+
<line num="113" count="2" type="stmt"/>
|
|
253
|
+
<line num="118" count="13" type="stmt"/>
|
|
254
|
+
<line num="121" count="17" type="stmt"/>
|
|
253
255
|
<line num="123" count="1" type="stmt"/>
|
|
254
|
-
<line num="
|
|
255
|
-
<line num="
|
|
256
|
+
<line num="124" count="1" type="stmt"/>
|
|
257
|
+
<line num="133" count="2" type="stmt"/>
|
|
256
258
|
<line num="136" count="4" type="stmt"/>
|
|
259
|
+
<line num="137" count="4" type="stmt"/>
|
|
257
260
|
</file>
|
|
258
261
|
</package>
|
|
259
262
|
<package name="src.modules">
|
|
@@ -382,7 +385,26 @@
|
|
|
382
385
|
</file>
|
|
383
386
|
</package>
|
|
384
387
|
<package name="src.utils">
|
|
385
|
-
<metrics statements="
|
|
388
|
+
<metrics statements="125" coveredstatements="112" conditionals="97" coveredconditionals="74" methods="24" coveredmethods="20"/>
|
|
389
|
+
<file name="debug.ts" path="/home/runner/work/expo-iap/expo-iap/src/utils/debug.ts">
|
|
390
|
+
<metrics statements="16" coveredstatements="9" conditionals="9" coveredconditionals="4" methods="7" coveredmethods="5"/>
|
|
391
|
+
<line num="9" count="2" type="stmt"/>
|
|
392
|
+
<line num="14" count="6" type="cond" truecount="0" falsecount="1"/>
|
|
393
|
+
<line num="18" count="0" type="stmt"/>
|
|
394
|
+
<line num="22" count="6" type="cond" truecount="0" falsecount="1"/>
|
|
395
|
+
<line num="26" count="0" type="stmt"/>
|
|
396
|
+
<line num="29" count="6" type="stmt"/>
|
|
397
|
+
<line num="32" count="2" type="stmt"/>
|
|
398
|
+
<line num="34" count="0" type="cond" truecount="0" falsecount="1"/>
|
|
399
|
+
<line num="35" count="0" type="stmt"/>
|
|
400
|
+
<line num="41" count="6" type="cond" truecount="0" falsecount="1"/>
|
|
401
|
+
<line num="42" count="0" type="stmt"/>
|
|
402
|
+
<line num="49" count="2" type="stmt"/>
|
|
403
|
+
<line num="54" count="1" type="stmt"/>
|
|
404
|
+
<line num="58" count="0" type="cond" truecount="0" falsecount="1"/>
|
|
405
|
+
<line num="59" count="0" type="stmt"/>
|
|
406
|
+
<line num="66" count="2" type="stmt"/>
|
|
407
|
+
</file>
|
|
386
408
|
<file name="errorMapping.ts" path="/home/runner/work/expo-iap/expo-iap/src/utils/errorMapping.ts">
|
|
387
409
|
<metrics statements="109" coveredstatements="103" conditionals="88" coveredconditionals="70" methods="17" coveredmethods="15"/>
|
|
388
410
|
<line num="7" count="3" type="stmt"/>
|