expo-iap 3.3.2 → 3.3.4
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/build/modules/android.d.ts +5 -5
- package/build/modules/android.d.ts.map +1 -1
- package/build/modules/android.js +1 -1
- package/build/modules/android.js.map +1 -1
- package/build/modules/ios.d.ts +4 -1
- package/build/modules/ios.d.ts.map +1 -1
- package/build/modules/ios.js +5 -2
- package/build/modules/ios.js.map +1 -1
- package/build/types.d.ts +56 -2
- package/build/types.d.ts.map +1 -1
- package/build/types.js.map +1 -1
- package/build/useIAP.d.ts +4 -0
- package/build/useIAP.d.ts.map +1 -1
- package/build/useIAP.js.map +1 -1
- package/coverage/clover.xml +104 -101
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/src/index.html +14 -14
- package/coverage/lcov-report/src/index.ts.html +35 -35
- package/coverage/lcov-report/src/modules/android.ts.html +17 -29
- package/coverage/lcov-report/src/modules/index.html +8 -8
- package/coverage/lcov-report/src/modules/ios.ts.html +18 -12
- package/coverage/lcov-report/src/utils/debug.ts.html +1 -1
- package/coverage/lcov-report/src/utils/errorMapping.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov.info +169 -164
- package/openiap-versions.json +3 -3
- package/package.json +1 -1
- package/src/modules/android.ts +10 -14
- package/src/modules/ios.ts +8 -6
- package/src/types.ts +59 -2
- package/src/useIAP.ts +4 -0
package/coverage/clover.xml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1766524614076" clover="3.2.0">
|
|
3
|
+
<project timestamp="1766524614076" name="All files">
|
|
4
|
+
<metrics statements="486" coveredstatements="453" conditionals="269" coveredconditionals="234" methods="101" coveredmethods="80" elements="856" coveredelements="767" complexity="0" loc="486" ncloc="486" packages="3" files="5" classes="5"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="216" coveredstatements="
|
|
6
|
+
<metrics statements="216" coveredstatements="205" conditionals="115" coveredconditionals="104" methods="44" coveredmethods="34"/>
|
|
7
7
|
<file name="index.ts" path="/home/runner/work/expo-iap/expo-iap/src/index.ts">
|
|
8
|
-
<metrics statements="216" coveredstatements="
|
|
8
|
+
<metrics statements="216" coveredstatements="205" conditionals="115" coveredconditionals="104" methods="44" coveredmethods="34"/>
|
|
9
9
|
<line num="2" count="2" type="stmt"/>
|
|
10
10
|
<line num="3" count="2" type="stmt"/>
|
|
11
11
|
<line num="6" count="2" type="stmt"/>
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
<line num="55" count="2" type="stmt"/>
|
|
25
25
|
<line num="81" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
26
26
|
<line num="89" count="2" type="stmt"/>
|
|
27
|
-
<line num="90" count="
|
|
27
|
+
<line num="90" count="24" type="cond" truecount="1" falsecount="0"/>
|
|
28
28
|
<line num="91" count="1" type="stmt"/>
|
|
29
|
-
<line num="96" count="
|
|
30
|
-
<line num="97" count="
|
|
31
|
-
<line num="102" count="
|
|
32
|
-
<line num="103" count="
|
|
29
|
+
<line num="96" count="24" type="cond" truecount="4" falsecount="0"/>
|
|
30
|
+
<line num="97" count="12" type="stmt"/>
|
|
31
|
+
<line num="102" count="12" type="cond" truecount="1" falsecount="0"/>
|
|
32
|
+
<line num="103" count="7" type="stmt"/>
|
|
33
33
|
<line num="108" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
34
34
|
<line num="109" count="4" type="stmt"/>
|
|
35
35
|
<line num="114" count="1" type="stmt"/>
|
|
36
36
|
<line num="117" count="2" type="stmt"/>
|
|
37
|
-
<line num="118" count="
|
|
38
|
-
<line num="119" count="
|
|
39
|
-
<line num="120" count="
|
|
40
|
-
<line num="123" count="
|
|
41
|
-
<line num="124" count="
|
|
42
|
-
<line num="125" count="
|
|
37
|
+
<line num="118" count="10" type="stmt"/>
|
|
38
|
+
<line num="119" count="10" type="cond" truecount="1" falsecount="0"/>
|
|
39
|
+
<line num="120" count="7" type="stmt"/>
|
|
40
|
+
<line num="123" count="3" type="stmt"/>
|
|
41
|
+
<line num="124" count="3" type="cond" truecount="3" falsecount="1"/>
|
|
42
|
+
<line num="125" count="1" type="stmt"/>
|
|
43
43
|
<line num="128" count="2" type="stmt"/>
|
|
44
44
|
<line num="131" count="2" type="stmt"/>
|
|
45
|
-
<line num="132" count="
|
|
45
|
+
<line num="132" count="8" type="stmt"/>
|
|
46
46
|
<line num="134" count="2" type="stmt"/>
|
|
47
47
|
<line num="137" count="1" type="stmt"/>
|
|
48
48
|
<line num="138" count="1" type="stmt"/>
|
|
@@ -120,25 +120,25 @@
|
|
|
120
120
|
<line num="396" count="2" type="cond" truecount="2" falsecount="1"/>
|
|
121
121
|
<line num="397" count="0" type="stmt"/>
|
|
122
122
|
<line num="399" count="2" type="stmt"/>
|
|
123
|
-
<line num="429" count="
|
|
124
|
-
<line num="430" count="
|
|
123
|
+
<line num="429" count="13" type="cond" truecount="1" falsecount="0"/>
|
|
124
|
+
<line num="430" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
125
125
|
<line num="432" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
126
126
|
<line num="475" count="2" type="stmt"/>
|
|
127
|
-
<line num="478" count="
|
|
128
|
-
<line num="479" count="
|
|
129
|
-
<line num="480" count="
|
|
130
|
-
<line num="482" count="
|
|
131
|
-
<line num="483" count="
|
|
132
|
-
<line num="485" count="
|
|
127
|
+
<line num="478" count="16" type="stmt"/>
|
|
128
|
+
<line num="479" count="16" type="stmt"/>
|
|
129
|
+
<line num="480" count="15" type="stmt"/>
|
|
130
|
+
<line num="482" count="15" type="cond" truecount="1" falsecount="0"/>
|
|
131
|
+
<line num="483" count="9" type="stmt"/>
|
|
132
|
+
<line num="485" count="9" type="cond" truecount="1" falsecount="0"/>
|
|
133
133
|
<line num="486" count="1" type="stmt"/>
|
|
134
|
-
<line num="500" count="
|
|
134
|
+
<line num="500" count="8" type="cond" truecount="3" falsecount="0"/>
|
|
135
135
|
<line num="501" count="1" type="stmt"/>
|
|
136
|
-
<line num="504" count="
|
|
137
|
-
<line num="510" count="
|
|
138
|
-
<line num="515" count="
|
|
139
|
-
<line num="516" count="
|
|
140
|
-
<line num="519" count="
|
|
141
|
-
<line num="520" count="
|
|
136
|
+
<line num="504" count="7" type="stmt"/>
|
|
137
|
+
<line num="510" count="7" type="stmt"/>
|
|
138
|
+
<line num="515" count="7" type="cond" truecount="1" falsecount="0"/>
|
|
139
|
+
<line num="516" count="2" type="stmt"/>
|
|
140
|
+
<line num="519" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
141
|
+
<line num="520" count="4" type="stmt"/>
|
|
142
142
|
<line num="523" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
143
143
|
<line num="526" count="6" type="cond" truecount="1" falsecount="0"/>
|
|
144
144
|
<line num="527" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
@@ -225,63 +225,66 @@
|
|
|
225
225
|
</file>
|
|
226
226
|
</package>
|
|
227
227
|
<package name="src.modules">
|
|
228
|
-
<metrics statements="
|
|
228
|
+
<metrics statements="145" coveredstatements="137" conditionals="57" coveredconditionals="56" methods="33" coveredmethods="27"/>
|
|
229
229
|
<file name="android.ts" path="/home/runner/work/expo-iap/expo-iap/src/modules/android.ts">
|
|
230
|
-
<metrics statements="
|
|
230
|
+
<metrics statements="54" coveredstatements="51" conditionals="22" coveredconditionals="21" methods="11" coveredmethods="8"/>
|
|
231
231
|
<line num="2" count="3" type="stmt"/>
|
|
232
232
|
<line num="5" count="3" type="stmt"/>
|
|
233
|
-
<line num="
|
|
234
|
-
<line num="
|
|
235
|
-
<line num="
|
|
236
|
-
<line num="
|
|
237
|
-
<line num="
|
|
238
|
-
<line num="
|
|
239
|
-
<line num="
|
|
240
|
-
<line num="
|
|
241
|
-
<line num="
|
|
242
|
-
<line num="
|
|
233
|
+
<line num="22" count="3" type="stmt"/>
|
|
234
|
+
<line num="25" count="3" type="stmt"/>
|
|
235
|
+
<line num="28" count="8" type="stmt"/>
|
|
236
|
+
<line num="52" count="3" type="stmt"/>
|
|
237
|
+
<line num="55" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
238
|
+
<line num="56" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
239
|
+
<line num="59" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
240
|
+
<line num="60" count="1" type="stmt"/>
|
|
241
|
+
<line num="67" count="4" type="cond" truecount="1" falsecount="0"/>
|
|
242
|
+
<line num="68" count="3" type="stmt"/>
|
|
243
|
+
<line num="72" count="1" type="stmt"/>
|
|
244
|
+
<line num="75" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
243
245
|
<line num="76" count="1" type="stmt"/>
|
|
244
|
-
<line num="
|
|
245
|
-
<line num="
|
|
246
|
-
<line num="
|
|
247
|
-
<line num="110" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
246
|
+
<line num="93" count="3" type="stmt"/>
|
|
247
|
+
<line num="106" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
248
|
+
<line num="109" count="2" type="stmt"/>
|
|
248
249
|
<line num="113" count="2" type="stmt"/>
|
|
249
|
-
<line num="
|
|
250
|
-
<line num="
|
|
251
|
-
<line num="
|
|
252
|
-
<line num="
|
|
253
|
-
<line num="
|
|
254
|
-
<line num="
|
|
255
|
-
<line num="
|
|
256
|
-
<line num="
|
|
257
|
-
<line num="
|
|
258
|
-
<line num="
|
|
259
|
-
<line num="
|
|
260
|
-
<line num="
|
|
261
|
-
<line num="
|
|
262
|
-
<line num="
|
|
263
|
-
<line num="155" count="
|
|
264
|
-
<line num="
|
|
265
|
-
<line num="
|
|
266
|
-
<line num="
|
|
267
|
-
<line num="
|
|
268
|
-
<line num="
|
|
269
|
-
<line num="
|
|
270
|
-
<line num="
|
|
271
|
-
<line num="
|
|
272
|
-
<line num="
|
|
273
|
-
<line num="
|
|
274
|
-
<line num="
|
|
275
|
-
<line num="
|
|
276
|
-
<line num="
|
|
277
|
-
<line num="
|
|
278
|
-
<line num="
|
|
279
|
-
<line num="
|
|
280
|
-
<line num="
|
|
281
|
-
<line num="
|
|
250
|
+
<line num="121" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
251
|
+
<line num="122" count="1" type="stmt"/>
|
|
252
|
+
<line num="127" count="1" type="stmt"/>
|
|
253
|
+
<line num="136" count="3" type="stmt"/>
|
|
254
|
+
<line num="138" count="3" type="stmt"/>
|
|
255
|
+
<line num="139" count="5" type="stmt"/>
|
|
256
|
+
<line num="141" count="5" type="cond" truecount="1" falsecount="0"/>
|
|
257
|
+
<line num="142" count="1" type="stmt"/>
|
|
258
|
+
<line num="145" count="4" type="cond" truecount="3" falsecount="0"/>
|
|
259
|
+
<line num="146" count="3" type="stmt"/>
|
|
260
|
+
<line num="147" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
261
|
+
<line num="148" count="1" type="stmt"/>
|
|
262
|
+
<line num="150" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
263
|
+
<line num="151" count="2" type="stmt"/>
|
|
264
|
+
<line num="155" count="1" type="stmt"/>
|
|
265
|
+
<line num="165" count="3" type="stmt"/>
|
|
266
|
+
<line num="166" count="1" type="stmt"/>
|
|
267
|
+
<line num="186" count="3" type="stmt"/>
|
|
268
|
+
<line num="188" count="3" type="stmt"/>
|
|
269
|
+
<line num="189" count="0" type="stmt"/>
|
|
270
|
+
<line num="216" count="3" type="stmt"/>
|
|
271
|
+
<line num="218" count="3" type="stmt"/>
|
|
272
|
+
<line num="219" count="0" type="stmt"/>
|
|
273
|
+
<line num="246" count="3" type="stmt"/>
|
|
274
|
+
<line num="248" count="3" type="stmt"/>
|
|
275
|
+
<line num="249" count="0" type="stmt"/>
|
|
276
|
+
<line num="271" count="3" type="stmt"/>
|
|
277
|
+
<line num="273" count="3" type="stmt"/>
|
|
278
|
+
<line num="274" count="4" type="stmt"/>
|
|
279
|
+
<line num="294" count="3" type="stmt"/>
|
|
280
|
+
<line num="296" count="3" type="stmt"/>
|
|
281
|
+
<line num="297" count="5" type="stmt"/>
|
|
282
|
+
<line num="317" count="3" type="stmt"/>
|
|
283
|
+
<line num="319" count="3" type="stmt"/>
|
|
284
|
+
<line num="320" count="3" type="stmt"/>
|
|
282
285
|
</file>
|
|
283
286
|
<file name="ios.ts" path="/home/runner/work/expo-iap/expo-iap/src/modules/ios.ts">
|
|
284
|
-
<metrics statements="91" coveredstatements="86" conditionals="
|
|
287
|
+
<metrics statements="91" coveredstatements="86" conditionals="35" coveredconditionals="35" methods="22" coveredmethods="19"/>
|
|
285
288
|
<line num="5" count="3" type="stmt"/>
|
|
286
289
|
<line num="21" count="3" type="stmt"/>
|
|
287
290
|
<line num="31" count="3" type="stmt"/>
|
|
@@ -349,30 +352,30 @@
|
|
|
349
352
|
<line num="305" count="3" type="stmt"/>
|
|
350
353
|
<line num="306" count="2" type="stmt"/>
|
|
351
354
|
<line num="307" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
352
|
-
<line num="
|
|
353
|
-
<line num="
|
|
354
|
-
<line num="
|
|
355
|
-
<line num="
|
|
356
|
-
<line num="332" count="3" type="stmt"/>
|
|
355
|
+
<line num="322" count="3" type="stmt"/>
|
|
356
|
+
<line num="323" count="3" type="stmt"/>
|
|
357
|
+
<line num="324" count="3" type="stmt"/>
|
|
358
|
+
<line num="325" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
357
359
|
<line num="334" count="3" type="stmt"/>
|
|
358
|
-
<line num="
|
|
359
|
-
<line num="
|
|
360
|
-
<line num="
|
|
360
|
+
<line num="336" count="3" type="stmt"/>
|
|
361
|
+
<line num="337" count="2" type="stmt"/>
|
|
362
|
+
<line num="338" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
361
363
|
<line num="347" count="3" type="stmt"/>
|
|
362
|
-
<line num="
|
|
363
|
-
<line num="
|
|
364
|
-
<line num="
|
|
365
|
-
<line num="
|
|
364
|
+
<line num="349" count="3" type="stmt"/>
|
|
365
|
+
<line num="350" count="2" type="stmt"/>
|
|
366
|
+
<line num="359" count="3" type="stmt"/>
|
|
367
|
+
<line num="360" count="1" type="stmt"/>
|
|
366
368
|
<line num="368" count="3" type="stmt"/>
|
|
367
|
-
<line num="
|
|
368
|
-
<line num="
|
|
369
|
+
<line num="370" count="3" type="stmt"/>
|
|
370
|
+
<line num="371" count="0" type="stmt"/>
|
|
369
371
|
<line num="381" count="3" type="stmt"/>
|
|
370
|
-
<line num="
|
|
371
|
-
<line num="
|
|
372
|
-
<line num="
|
|
372
|
+
<line num="383" count="3" type="stmt"/>
|
|
373
|
+
<line num="384" count="0" type="stmt"/>
|
|
374
|
+
<line num="385" count="0" type="stmt"/>
|
|
373
375
|
<line num="395" count="3" type="stmt"/>
|
|
374
|
-
<line num="
|
|
375
|
-
<line num="
|
|
376
|
+
<line num="397" count="3" type="stmt"/>
|
|
377
|
+
<line num="398" count="0" type="stmt"/>
|
|
378
|
+
<line num="399" count="0" type="stmt"/>
|
|
376
379
|
</file>
|
|
377
380
|
</package>
|
|
378
381
|
<package name="src.utils">
|