@thirstie/thirstieservices 0.1.0 → 0.2.0
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/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/coverage/clover.xml +120 -0
- package/coverage/coverage-final.json +3 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/geoservice/index.html +116 -0
- package/coverage/lcov-report/geoservice/index.js.html +781 -0
- package/coverage/lcov-report/index.html +131 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/thirstieapi/utils/environment.js.html +133 -0
- package/coverage/lcov-report/thirstieapi/utils/index.html +116 -0
- package/coverage/lcov.info +243 -0
- package/dist/bundle.cjs +14 -4
- package/dist/bundle.iife.js +1 -1
- package/dist/bundle.mjs +14 -4
- package/package.json +2 -2
- package/src/thirstieapi/index.js +2 -4
- package/src/thirstieapi/utils/environment.js +16 -0
- package/tests/unit/thirstieapiutils.unit.test.js +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.2.0 (2024-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add sandbox environment ([744f966](https://github.com/ThirstieAdmin/thirstiejs-monorepo/commit/744f966c1e9cc81c28d7668472b557e354186819))
|
|
12
|
+
* allow restoring age gate settings ([2030773](https://github.com/ThirstieAdmin/thirstiejs-monorepo/commit/2030773073df53b56a08a3dd5937afac63c87217))
|
|
13
|
+
* simplify saving session state ([fa0ba48](https://github.com/ThirstieAdmin/thirstiejs-monorepo/commit/fa0ba48d29140961e7c035605a0bee82ac7f0b17))
|
|
14
|
+
* update user actions ([2f8cf07](https://github.com/ThirstieAdmin/thirstiejs-monorepo/commit/2f8cf07f9bafbca4fd5d57435a37189541449ded))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
# 0.1.0 (2024-10-07)
|
|
7
21
|
|
|
8
22
|
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Thirstie
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<coverage generated="1728423963861" clover="3.2.0">
|
|
3
|
+
<project timestamp="1728423963861" name="All files">
|
|
4
|
+
<metrics statements="102" coveredstatements="48" conditionals="79" coveredconditionals="55" methods="22" coveredmethods="12" elements="203" coveredelements="115" complexity="0" loc="102" ncloc="102" packages="2" files="2" classes="2"/>
|
|
5
|
+
<package name="geoservice">
|
|
6
|
+
<metrics statements="94" coveredstatements="40" conditionals="77" coveredconditionals="53" methods="21" coveredmethods="11"/>
|
|
7
|
+
<file name="index.js" path="/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/geoservice/index.js">
|
|
8
|
+
<metrics statements="94" coveredstatements="40" conditionals="77" coveredconditionals="53" methods="21" coveredmethods="11"/>
|
|
9
|
+
<line num="4" count="1" type="stmt"/>
|
|
10
|
+
<line num="5" count="110" type="stmt"/>
|
|
11
|
+
<line num="6" count="25" type="stmt"/>
|
|
12
|
+
<line num="8" count="1" type="stmt"/>
|
|
13
|
+
<line num="10" count="1" type="cond" truecount="1" falsecount="0"/>
|
|
14
|
+
<line num="11" count="3" type="stmt"/>
|
|
15
|
+
<line num="13" count="3" type="stmt"/>
|
|
16
|
+
<line num="14" count="13" type="stmt"/>
|
|
17
|
+
<line num="17" count="3" type="stmt"/>
|
|
18
|
+
<line num="18" count="3" type="cond" truecount="5" falsecount="0"/>
|
|
19
|
+
<line num="19" count="1" type="stmt"/>
|
|
20
|
+
<line num="22" count="3" type="stmt"/>
|
|
21
|
+
<line num="23" count="11" type="stmt"/>
|
|
22
|
+
<line num="27" count="56" type="cond" truecount="2" falsecount="2"/>
|
|
23
|
+
<line num="28" count="56" type="cond" truecount="4" falsecount="0"/>
|
|
24
|
+
<line num="29" count="56" type="cond" truecount="4" falsecount="0"/>
|
|
25
|
+
<line num="31" count="11" type="stmt"/>
|
|
26
|
+
<line num="32" count="11" type="cond" truecount="3" falsecount="0"/>
|
|
27
|
+
<line num="33" count="11" type="cond" truecount="3" falsecount="0"/>
|
|
28
|
+
<line num="35" count="11" type="stmt"/>
|
|
29
|
+
<line num="37" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
30
|
+
<line num="39" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
31
|
+
<line num="40" count="5" type="stmt"/>
|
|
32
|
+
<line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
33
|
+
<line num="45" count="3" type="stmt"/>
|
|
34
|
+
<line num="48" count="1" type="stmt"/>
|
|
35
|
+
<line num="49" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
36
|
+
<line num="50" count="4" type="cond" truecount="3" falsecount="1"/>
|
|
37
|
+
<line num="51" count="0" type="stmt"/>
|
|
38
|
+
<line num="54" count="4" type="stmt"/>
|
|
39
|
+
<line num="55" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
40
|
+
<line num="56" count="3" type="stmt"/>
|
|
41
|
+
<line num="58" count="1" type="stmt"/>
|
|
42
|
+
<line num="61" count="4" type="stmt"/>
|
|
43
|
+
<line num="63" count="4" type="stmt"/>
|
|
44
|
+
<line num="65" count="4" type="cond" truecount="4" falsecount="1"/>
|
|
45
|
+
<line num="71" count="4" type="cond" truecount="4" falsecount="1"/>
|
|
46
|
+
<line num="77" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
47
|
+
<line num="78" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
48
|
+
<line num="80" count="4" type="cond" truecount="3" falsecount="0"/>
|
|
49
|
+
<line num="82" count="4" type="stmt"/>
|
|
50
|
+
<line num="97" count="4" type="stmt"/>
|
|
51
|
+
<line num="102" count="0" type="stmt"/>
|
|
52
|
+
<line num="106" count="0" type="stmt"/>
|
|
53
|
+
<line num="109" count="0" type="stmt"/>
|
|
54
|
+
<line num="110" count="0" type="stmt"/>
|
|
55
|
+
<line num="114" count="0" type="stmt"/>
|
|
56
|
+
<line num="117" count="0" type="stmt"/>
|
|
57
|
+
<line num="118" count="0" type="stmt"/>
|
|
58
|
+
<line num="122" count="0" type="stmt"/>
|
|
59
|
+
<line num="125" count="0" type="stmt"/>
|
|
60
|
+
<line num="126" count="0" type="stmt"/>
|
|
61
|
+
<line num="132" count="0" type="stmt"/>
|
|
62
|
+
<line num="133" count="0" type="stmt"/>
|
|
63
|
+
<line num="140" count="0" type="stmt"/>
|
|
64
|
+
<line num="141" count="0" type="stmt"/>
|
|
65
|
+
<line num="142" count="0" type="stmt"/>
|
|
66
|
+
<line num="143" count="0" type="stmt"/>
|
|
67
|
+
<line num="151" count="0" type="stmt"/>
|
|
68
|
+
<line num="152" count="0" type="stmt"/>
|
|
69
|
+
<line num="153" count="0" type="stmt"/>
|
|
70
|
+
<line num="155" count="0" type="stmt"/>
|
|
71
|
+
<line num="156" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
72
|
+
<line num="157" count="0" type="stmt"/>
|
|
73
|
+
<line num="160" count="0" type="stmt"/>
|
|
74
|
+
<line num="170" count="0" type="stmt"/>
|
|
75
|
+
<line num="171" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
76
|
+
<line num="172" count="0" type="stmt"/>
|
|
77
|
+
<line num="173" count="0" type="stmt"/>
|
|
78
|
+
<line num="176" count="0" type="stmt"/>
|
|
79
|
+
<line num="177" count="0" type="stmt"/>
|
|
80
|
+
<line num="183" count="0" type="stmt"/>
|
|
81
|
+
<line num="184" count="0" type="stmt"/>
|
|
82
|
+
<line num="186" count="0" type="stmt"/>
|
|
83
|
+
<line num="187" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
84
|
+
<line num="188" count="0" type="stmt"/>
|
|
85
|
+
<line num="189" count="0" type="stmt"/>
|
|
86
|
+
<line num="191" count="0" type="stmt"/>
|
|
87
|
+
<line num="195" count="0" type="stmt"/>
|
|
88
|
+
<line num="197" count="0" type="stmt"/>
|
|
89
|
+
<line num="202" count="0" type="stmt"/>
|
|
90
|
+
<line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
91
|
+
<line num="204" count="0" type="stmt"/>
|
|
92
|
+
<line num="205" count="0" type="stmt"/>
|
|
93
|
+
<line num="208" count="0" type="stmt"/>
|
|
94
|
+
<line num="209" count="0" type="stmt"/>
|
|
95
|
+
<line num="210" count="0" type="stmt"/>
|
|
96
|
+
<line num="211" count="0" type="stmt"/>
|
|
97
|
+
<line num="218" count="0" type="stmt"/>
|
|
98
|
+
<line num="219" count="0" type="stmt"/>
|
|
99
|
+
<line num="221" count="0" type="cond" truecount="0" falsecount="3"/>
|
|
100
|
+
<line num="223" count="0" type="stmt"/>
|
|
101
|
+
<line num="224" count="0" type="stmt"/>
|
|
102
|
+
<line num="225" count="0" type="stmt"/>
|
|
103
|
+
</file>
|
|
104
|
+
</package>
|
|
105
|
+
<package name="thirstieapi.utils">
|
|
106
|
+
<metrics statements="8" coveredstatements="8" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
|
|
107
|
+
<file name="environment.js" path="/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/thirstieapi/utils/environment.js">
|
|
108
|
+
<metrics statements="8" coveredstatements="8" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
|
|
109
|
+
<line num="1" count="1" type="stmt"/>
|
|
110
|
+
<line num="2" count="4" type="stmt"/>
|
|
111
|
+
<line num="3" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
112
|
+
<line num="5" count="1" type="stmt"/>
|
|
113
|
+
<line num="6" count="1" type="stmt"/>
|
|
114
|
+
<line num="8" count="1" type="stmt"/>
|
|
115
|
+
<line num="9" count="1" type="stmt"/>
|
|
116
|
+
<line num="11" count="4" type="stmt"/>
|
|
117
|
+
</file>
|
|
118
|
+
</package>
|
|
119
|
+
</project>
|
|
120
|
+
</coverage>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/geoservice/index.js": {"path":"/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/geoservice/index.js","statementMap":{"0":{"start":{"line":4,"column":20},"end":{"line":7,"column":2}},"1":{"start":{"line":5,"column":16},"end":{"line":5,"column":62}},"2":{"start":{"line":5,"column":25},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":52}},"4":{"start":{"line":8,"column":20},"end":{"line":8,"column":72}},"5":{"start":{"line":10,"column":43},"end":{"line":46,"column":1}},"6":{"start":{"line":11,"column":56},"end":{"line":11,"column":63}},"7":{"start":{"line":13,"column":28},"end":{"line":15,"column":3}},"8":{"start":{"line":14,"column":4},"end":{"line":14,"column":81}},"9":{"start":{"line":17,"column":26},"end":{"line":17,"column":30}},"10":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"11":{"start":{"line":19,"column":4},"end":{"line":19,"column":59}},"12":{"start":{"line":22,"column":2},"end":{"line":43,"column":28}},"13":{"start":{"line":23,"column":19},"end":{"line":26,"column":5}},"14":{"start":{"line":27,"column":22},"end":{"line":27,"column":110}},"15":{"start":{"line":27,"column":49},"end":{"line":27,"column":90}},"16":{"start":{"line":28,"column":23},"end":{"line":28,"column":113}},"17":{"start":{"line":28,"column":50},"end":{"line":28,"column":93}},"18":{"start":{"line":29,"column":21},"end":{"line":29,"column":115}},"19":{"start":{"line":29,"column":48},"end":{"line":29,"column":95}},"20":{"start":{"line":31,"column":4},"end":{"line":31,"column":53}},"21":{"start":{"line":32,"column":4},"end":{"line":32,"column":70}},"22":{"start":{"line":33,"column":4},"end":{"line":33,"column":74}},"23":{"start":{"line":35,"column":4},"end":{"line":35,"column":18}},"24":{"start":{"line":37,"column":11},"end":{"line":37,"column":49}},"25":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"26":{"start":{"line":40,"column":6},"end":{"line":40,"column":15}},"27":{"start":{"line":42,"column":4},"end":{"line":42,"column":38}},"28":{"start":{"line":45,"column":2},"end":{"line":45,"column":27}},"29":{"start":{"line":48,"column":34},"end":{"line":98,"column":1}},"30":{"start":{"line":49,"column":22},"end":{"line":49,"column":63}},"31":{"start":{"line":50,"column":2},"end":{"line":52,"column":3}},"32":{"start":{"line":51,"column":4},"end":{"line":51,"column":14}},"33":{"start":{"line":54,"column":26},"end":{"line":54,"column":30}},"34":{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},"35":{"start":{"line":56,"column":4},"end":{"line":56,"column":49}},"36":{"start":{"line":58,"column":4},"end":{"line":58,"column":55}},"37":{"start":{"line":61,"column":37},"end":{"line":61,"column":76}},"38":{"start":{"line":63,"column":27},"end":{"line":63,"column":56}},"39":{"start":{"line":65,"column":4},"end":{"line":69,"column":12}},"40":{"start":{"line":71,"column":4},"end":{"line":75,"column":12}},"41":{"start":{"line":77,"column":23},"end":{"line":77,"column":86}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":76}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":69}},"44":{"start":{"line":82,"column":18},"end":{"line":96,"column":3}},"45":{"start":{"line":97,"column":2},"end":{"line":97,"column":36}},"46":{"start":{"line":102,"column":4},"end":{"line":102,"column":27}},"47":{"start":{"line":106,"column":16},"end":{"line":108,"column":5}},"48":{"start":{"line":109,"column":21},"end":{"line":109,"column":37}},"49":{"start":{"line":110,"column":4},"end":{"line":110,"column":40}},"50":{"start":{"line":114,"column":16},"end":{"line":116,"column":5}},"51":{"start":{"line":117,"column":21},"end":{"line":117,"column":37}},"52":{"start":{"line":118,"column":4},"end":{"line":118,"column":40}},"53":{"start":{"line":122,"column":16},"end":{"line":124,"column":5}},"54":{"start":{"line":125,"column":21},"end":{"line":125,"column":37}},"55":{"start":{"line":126,"column":4},"end":{"line":126,"column":40}},"56":{"start":{"line":132,"column":16},"end":{"line":132,"column":89}},"57":{"start":{"line":133,"column":26},"end":{"line":139,"column":5}},"58":{"start":{"line":140,"column":20},"end":{"line":140,"column":51}},"59":{"start":{"line":141,"column":21},"end":{"line":141,"column":41}},"60":{"start":{"line":142,"column":25},"end":{"line":142,"column":42}},"61":{"start":{"line":143,"column":4},"end":{"line":143,"column":41}},"62":{"start":{"line":151,"column":51},"end":{"line":151,"column":58}},"63":{"start":{"line":152,"column":58},"end":{"line":152,"column":65}},"64":{"start":{"line":153,"column":21},"end":{"line":153,"column":76}},"65":{"start":{"line":155,"column":27},"end":{"line":155,"column":34}},"66":{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},"67":{"start":{"line":157,"column":6},"end":{"line":157,"column":61}},"68":{"start":{"line":160,"column":19},"end":{"line":168,"column":6}},"69":{"start":{"line":170,"column":22},"end":{"line":170,"column":24}},"70":{"start":{"line":171,"column":4},"end":{"line":174,"column":5}},"71":{"start":{"line":172,"column":27},"end":{"line":172,"column":54}},"72":{"start":{"line":173,"column":6},"end":{"line":173,"column":44}},"73":{"start":{"line":176,"column":16},"end":{"line":176,"column":93}},"74":{"start":{"line":177,"column":26},"end":{"line":182,"column":5}},"75":{"start":{"line":183,"column":20},"end":{"line":183,"column":51}},"76":{"start":{"line":184,"column":21},"end":{"line":184,"column":41}},"77":{"start":{"line":186,"column":34},"end":{"line":186,"column":36}},"78":{"start":{"line":187,"column":4},"end":{"line":190,"column":5}},"79":{"start":{"line":188,"column":22},"end":{"line":188,"column":67}},"80":{"start":{"line":189,"column":6},"end":{"line":189,"column":91}},"81":{"start":{"line":191,"column":4},"end":{"line":191,"column":53}},"82":{"start":{"line":195,"column":38},"end":{"line":195,"column":45}},"83":{"start":{"line":197,"column":19},"end":{"line":201,"column":6}},"84":{"start":{"line":202,"column":22},"end":{"line":202,"column":24}},"85":{"start":{"line":203,"column":4},"end":{"line":206,"column":5}},"86":{"start":{"line":204,"column":27},"end":{"line":204,"column":54}},"87":{"start":{"line":205,"column":6},"end":{"line":205,"column":44}},"88":{"start":{"line":208,"column":16},"end":{"line":208,"column":88}},"89":{"start":{"line":209,"column":16},"end":{"line":209,"column":32}},"90":{"start":{"line":210,"column":21},"end":{"line":210,"column":37}},"91":{"start":{"line":211,"column":4},"end":{"line":211,"column":40}},"92":{"start":{"line":218,"column":24},"end":{"line":220,"column":5}},"93":{"start":{"line":219,"column":6},"end":{"line":219,"column":27}},"94":{"start":{"line":221,"column":4},"end":{"line":228,"column":66}},"95":{"start":{"line":223,"column":20},"end":{"line":223,"column":44}},"96":{"start":{"line":224,"column":20},"end":{"line":224,"column":45}},"97":{"start":{"line":225,"column":8},"end":{"line":225,"column":45}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":28},"end":{"line":4,"column":29}},"loc":{"start":{"line":4,"column":64},"end":{"line":7,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":16},"end":{"line":5,"column":17}},"loc":{"start":{"line":5,"column":25},"end":{"line":5,"column":62}},"line":5},"2":{"name":"(anonymous_2)","decl":{"start":{"line":10,"column":43},"end":{"line":10,"column":44}},"loc":{"start":{"line":10,"column":74},"end":{"line":46,"column":1}},"line":10},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":28},"end":{"line":13,"column":29}},"loc":{"start":{"line":13,"column":44},"end":{"line":15,"column":3}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":22,"column":38},"end":{"line":22,"column":39}},"loc":{"start":{"line":22,"column":47},"end":{"line":36,"column":3}},"line":22},"5":{"name":"(anonymous_5)","decl":{"start":{"line":27,"column":39},"end":{"line":27,"column":40}},"loc":{"start":{"line":27,"column":49},"end":{"line":27,"column":90}},"line":27},"6":{"name":"(anonymous_6)","decl":{"start":{"line":28,"column":40},"end":{"line":28,"column":41}},"loc":{"start":{"line":28,"column":50},"end":{"line":28,"column":93}},"line":28},"7":{"name":"(anonymous_7)","decl":{"start":{"line":29,"column":38},"end":{"line":29,"column":39}},"loc":{"start":{"line":29,"column":48},"end":{"line":29,"column":95}},"line":29},"8":{"name":"(anonymous_8)","decl":{"start":{"line":37,"column":4},"end":{"line":37,"column":5}},"loc":{"start":{"line":37,"column":11},"end":{"line":37,"column":49}},"line":37},"9":{"name":"(anonymous_9)","decl":{"start":{"line":38,"column":9},"end":{"line":38,"column":10}},"loc":{"start":{"line":38,"column":19},"end":{"line":43,"column":3}},"line":38},"10":{"name":"(anonymous_10)","decl":{"start":{"line":48,"column":34},"end":{"line":48,"column":35}},"loc":{"start":{"line":48,"column":43},"end":{"line":98,"column":1}},"line":48},"11":{"name":"(anonymous_11)","decl":{"start":{"line":101,"column":2},"end":{"line":101,"column":3}},"loc":{"start":{"line":101,"column":24},"end":{"line":103,"column":3}},"line":101},"12":{"name":"(anonymous_12)","decl":{"start":{"line":105,"column":2},"end":{"line":105,"column":3}},"loc":{"start":{"line":105,"column":26},"end":{"line":111,"column":3}},"line":105},"13":{"name":"(anonymous_13)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":3}},"loc":{"start":{"line":113,"column":29},"end":{"line":119,"column":3}},"line":113},"14":{"name":"(anonymous_14)","decl":{"start":{"line":121,"column":2},"end":{"line":121,"column":3}},"loc":{"start":{"line":121,"column":34},"end":{"line":127,"column":3}},"line":121},"15":{"name":"(anonymous_15)","decl":{"start":{"line":129,"column":2},"end":{"line":129,"column":3}},"loc":{"start":{"line":129,"column":21},"end":{"line":144,"column":3}},"line":129},"16":{"name":"(anonymous_16)","decl":{"start":{"line":146,"column":2},"end":{"line":146,"column":3}},"loc":{"start":{"line":146,"column":41},"end":{"line":192,"column":3}},"line":146},"17":{"name":"(anonymous_17)","decl":{"start":{"line":194,"column":2},"end":{"line":194,"column":3}},"loc":{"start":{"line":194,"column":29},"end":{"line":212,"column":3}},"line":194},"18":{"name":"(anonymous_18)","decl":{"start":{"line":214,"column":2},"end":{"line":214,"column":3}},"loc":{"start":{"line":214,"column":32},"end":{"line":229,"column":3}},"line":214},"19":{"name":"(anonymous_19)","decl":{"start":{"line":218,"column":24},"end":{"line":218,"column":25}},"loc":{"start":{"line":218,"column":35},"end":{"line":220,"column":5}},"line":218},"20":{"name":"(anonymous_20)","decl":{"start":{"line":222,"column":6},"end":{"line":222,"column":7}},"loc":{"start":{"line":222,"column":20},"end":{"line":226,"column":7}},"line":222}},"branchMap":{"0":{"loc":{"start":{"line":10,"column":57},"end":{"line":10,"column":69}},"type":"default-arg","locations":[{"start":{"line":10,"column":67},"end":{"line":10,"column":69}}],"line":10},"1":{"loc":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},{"start":{},"end":{}}],"line":18},"2":{"loc":{"start":{"line":18,"column":8},"end":{"line":18,"column":53}},"type":"binary-expr","locations":[{"start":{"line":18,"column":8},"end":{"line":18,"column":19}},{"start":{"line":18,"column":23},"end":{"line":18,"column":35}},{"start":{"line":18,"column":39},"end":{"line":18,"column":53}}],"line":18},"3":{"loc":{"start":{"line":27,"column":22},"end":{"line":27,"column":110}},"type":"cond-expr","locations":[{"start":{"line":27,"column":105},"end":{"line":27,"column":106}},{"start":{"line":27,"column":109},"end":{"line":27,"column":110}}],"line":27},"4":{"loc":{"start":{"line":27,"column":49},"end":{"line":27,"column":90}},"type":"binary-expr","locations":[{"start":{"line":27,"column":49},"end":{"line":27,"column":60}},{"start":{"line":27,"column":64},"end":{"line":27,"column":90}}],"line":27},"5":{"loc":{"start":{"line":28,"column":23},"end":{"line":28,"column":113}},"type":"cond-expr","locations":[{"start":{"line":28,"column":108},"end":{"line":28,"column":109}},{"start":{"line":28,"column":112},"end":{"line":28,"column":113}}],"line":28},"6":{"loc":{"start":{"line":28,"column":50},"end":{"line":28,"column":93}},"type":"binary-expr","locations":[{"start":{"line":28,"column":50},"end":{"line":28,"column":62}},{"start":{"line":28,"column":66},"end":{"line":28,"column":93}}],"line":28},"7":{"loc":{"start":{"line":29,"column":21},"end":{"line":29,"column":115}},"type":"cond-expr","locations":[{"start":{"line":29,"column":110},"end":{"line":29,"column":111}},{"start":{"line":29,"column":114},"end":{"line":29,"column":115}}],"line":29},"8":{"loc":{"start":{"line":29,"column":48},"end":{"line":29,"column":95}},"type":"binary-expr","locations":[{"start":{"line":29,"column":48},"end":{"line":29,"column":62}},{"start":{"line":29,"column":66},"end":{"line":29,"column":95}}],"line":29},"9":{"loc":{"start":{"line":32,"column":24},"end":{"line":32,"column":69}},"type":"binary-expr","locations":[{"start":{"line":32,"column":24},"end":{"line":32,"column":37}},{"start":{"line":32,"column":42},"end":{"line":32,"column":54}},{"start":{"line":32,"column":58},"end":{"line":32,"column":68}}],"line":32},"10":{"loc":{"start":{"line":33,"column":26},"end":{"line":33,"column":73}},"type":"binary-expr","locations":[{"start":{"line":33,"column":26},"end":{"line":33,"column":41}},{"start":{"line":33,"column":46},"end":{"line":33,"column":60}},{"start":{"line":33,"column":64},"end":{"line":33,"column":72}}],"line":33},"11":{"loc":{"start":{"line":37,"column":11},"end":{"line":37,"column":49}},"type":"binary-expr","locations":[{"start":{"line":37,"column":11},"end":{"line":37,"column":27}},{"start":{"line":37,"column":31},"end":{"line":37,"column":49}}],"line":37},"12":{"loc":{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":39,"column":4},"end":{"line":41,"column":5}},{"start":{},"end":{}}],"line":39},"13":{"loc":{"start":{"line":42,"column":11},"end":{"line":42,"column":37}},"type":"cond-expr","locations":[{"start":{"line":42,"column":31},"end":{"line":42,"column":32}},{"start":{"line":42,"column":35},"end":{"line":42,"column":37}}],"line":42},"14":{"loc":{"start":{"line":49,"column":22},"end":{"line":49,"column":63}},"type":"cond-expr","locations":[{"start":{"line":49,"column":36},"end":{"line":49,"column":50}},{"start":{"line":49,"column":53},"end":{"line":49,"column":63}}],"line":49},"15":{"loc":{"start":{"line":50,"column":2},"end":{"line":52,"column":3}},"type":"if","locations":[{"start":{"line":50,"column":2},"end":{"line":52,"column":3}},{"start":{},"end":{}}],"line":50},"16":{"loc":{"start":{"line":50,"column":6},"end":{"line":50,"column":44}},"type":"binary-expr","locations":[{"start":{"line":50,"column":6},"end":{"line":50,"column":18}},{"start":{"line":50,"column":22},"end":{"line":50,"column":44}}],"line":50},"17":{"loc":{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},"type":"if","locations":[{"start":{"line":55,"column":2},"end":{"line":59,"column":3}},{"start":{"line":57,"column":9},"end":{"line":59,"column":3}}],"line":55},"18":{"loc":{"start":{"line":65,"column":4},"end":{"line":69,"column":12}},"type":"cond-expr","locations":[{"start":{"line":68,"column":8},"end":{"line":68,"column":41}},{"start":{"line":69,"column":8},"end":{"line":69,"column":12}}],"line":65},"19":{"loc":{"start":{"line":65,"column":4},"end":{"line":67,"column":37}},"type":"binary-expr","locations":[{"start":{"line":65,"column":4},"end":{"line":65,"column":24}},{"start":{"line":66,"column":4},"end":{"line":66,"column":33}},{"start":{"line":67,"column":4},"end":{"line":67,"column":37}}],"line":65},"20":{"loc":{"start":{"line":71,"column":4},"end":{"line":75,"column":12}},"type":"cond-expr","locations":[{"start":{"line":74,"column":8},"end":{"line":74,"column":41}},{"start":{"line":75,"column":8},"end":{"line":75,"column":12}}],"line":71},"21":{"loc":{"start":{"line":71,"column":4},"end":{"line":73,"column":37}},"type":"binary-expr","locations":[{"start":{"line":71,"column":4},"end":{"line":71,"column":24}},{"start":{"line":72,"column":4},"end":{"line":72,"column":33}},{"start":{"line":73,"column":4},"end":{"line":73,"column":37}}],"line":71},"22":{"loc":{"start":{"line":77,"column":23},"end":{"line":77,"column":86}},"type":"binary-expr","locations":[{"start":{"line":77,"column":23},"end":{"line":77,"column":80}},{"start":{"line":77,"column":84},"end":{"line":77,"column":86}}],"line":77},"23":{"loc":{"start":{"line":78,"column":22},"end":{"line":78,"column":76}},"type":"binary-expr","locations":[{"start":{"line":78,"column":22},"end":{"line":78,"column":70}},{"start":{"line":78,"column":74},"end":{"line":78,"column":76}}],"line":78},"24":{"loc":{"start":{"line":80,"column":4},"end":{"line":80,"column":69}},"type":"binary-expr","locations":[{"start":{"line":80,"column":5},"end":{"line":80,"column":17}},{"start":{"line":80,"column":21},"end":{"line":80,"column":32}},{"start":{"line":80,"column":37},"end":{"line":80,"column":69}}],"line":80},"25":{"loc":{"start":{"line":85,"column":6},"end":{"line":89,"column":77}},"type":"binary-expr","locations":[{"start":{"line":85,"column":6},"end":{"line":85,"column":58}},{"start":{"line":86,"column":6},"end":{"line":86,"column":61}},{"start":{"line":87,"column":6},"end":{"line":87,"column":61}},{"start":{"line":88,"column":6},"end":{"line":88,"column":76}},{"start":{"line":89,"column":6},"end":{"line":89,"column":77}}],"line":85},"26":{"loc":{"start":{"line":93,"column":14},"end":{"line":93,"column":42}},"type":"binary-expr","locations":[{"start":{"line":93,"column":14},"end":{"line":93,"column":22}},{"start":{"line":93,"column":26},"end":{"line":93,"column":42}}],"line":93},"27":{"loc":{"start":{"line":94,"column":15},"end":{"line":94,"column":45}},"type":"binary-expr","locations":[{"start":{"line":94,"column":15},"end":{"line":94,"column":24}},{"start":{"line":94,"column":28},"end":{"line":94,"column":45}}],"line":94},"28":{"loc":{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":158,"column":5}},{"start":{},"end":{}}],"line":156},"29":{"loc":{"start":{"line":171,"column":4},"end":{"line":174,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":4},"end":{"line":174,"column":5}},{"start":{},"end":{}}],"line":171},"30":{"loc":{"start":{"line":187,"column":4},"end":{"line":190,"column":5}},"type":"if","locations":[{"start":{"line":187,"column":4},"end":{"line":190,"column":5}},{"start":{},"end":{}}],"line":187},"31":{"loc":{"start":{"line":187,"column":8},"end":{"line":187,"column":56}},"type":"binary-expr","locations":[{"start":{"line":187,"column":8},"end":{"line":187,"column":28}},{"start":{"line":187,"column":32},"end":{"line":187,"column":56}}],"line":187},"32":{"loc":{"start":{"line":203,"column":4},"end":{"line":206,"column":5}},"type":"if","locations":[{"start":{"line":203,"column":4},"end":{"line":206,"column":5}},{"start":{},"end":{}}],"line":203},"33":{"loc":{"start":{"line":221,"column":4},"end":{"line":228,"column":65}},"type":"binary-expr","locations":[{"start":{"line":221,"column":5},"end":{"line":221,"column":26}},{"start":{"line":221,"column":30},"end":{"line":228,"column":5}},{"start":{"line":228,"column":10},"end":{"line":228,"column":65}}],"line":221}},"s":{"0":1,"1":25,"2":110,"3":25,"4":1,"5":1,"6":3,"7":3,"8":13,"9":3,"10":3,"11":1,"12":3,"13":11,"14":11,"15":56,"16":11,"17":56,"18":11,"19":56,"20":11,"21":11,"22":11,"23":11,"24":11,"25":5,"26":5,"27":0,"28":3,"29":1,"30":4,"31":4,"32":0,"33":4,"34":4,"35":3,"36":1,"37":4,"38":4,"39":4,"40":4,"41":4,"42":4,"43":4,"44":4,"45":4,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0},"f":{"0":25,"1":110,"2":3,"3":13,"4":11,"5":56,"6":56,"7":56,"8":11,"9":5,"10":4,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"b":{"0":[1],"1":[1,2],"2":[3,3,2],"3":[0,11],"4":[56,0],"5":[2,9],"6":[56,25],"7":[1,10],"8":[56,6],"9":[11,5,5],"10":[11,1,1],"11":[11,8],"12":[5,0],"13":[0,0],"14":[3,1],"15":[0,4],"16":[4,4],"17":[3,1],"18":[4,0],"19":[4,4,4],"20":[4,0],"21":[4,4,4],"22":[4,2],"23":[4,2],"24":[4,2,2],"25":[4,1,0,0,0],"26":[4,4],"27":[4,4],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0,0]},"inputSourceMap":null,"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ebd8b1772048c0d74308e98b6f5f0825d25171bd"}
|
|
2
|
+
,"/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/thirstieapi/utils/environment.js": {"path":"/home/circleci/thirstiejs-monorepo/packages/thirstieservices/src/thirstieapi/utils/environment.js","statementMap":{"0":{"start":{"line":1,"column":27},"end":{"line":12,"column":1}},"1":{"start":{"line":2,"column":12},"end":{"line":2,"column":43}},"2":{"start":{"line":3,"column":2},"end":{"line":10,"column":3}},"3":{"start":{"line":5,"column":6},"end":{"line":5,"column":39}},"4":{"start":{"line":6,"column":6},"end":{"line":6,"column":12}},"5":{"start":{"line":8,"column":6},"end":{"line":8,"column":47}},"6":{"start":{"line":9,"column":6},"end":{"line":9,"column":12}},"7":{"start":{"line":11,"column":2},"end":{"line":11,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":27},"end":{"line":1,"column":28}},"loc":{"start":{"line":1,"column":40},"end":{"line":12,"column":1}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":2},"end":{"line":10,"column":3}},"type":"switch","locations":[{"start":{"line":4,"column":4},"end":{"line":6,"column":12}},{"start":{"line":7,"column":4},"end":{"line":9,"column":12}}],"line":3}},"s":{"0":1,"1":4,"2":4,"3":1,"4":1,"5":1,"6":1,"7":4},"f":{"0":4},"b":{"0":[1,1]},"inputSourceMap":null,"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5bac7341ec785d445836181fee7c3c10f5e7d4e4"}
|
|
3
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
body, html {
|
|
2
|
+
margin:0; padding: 0;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
body {
|
|
6
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
color:#333;
|
|
9
|
+
}
|
|
10
|
+
.small { font-size: 12px; }
|
|
11
|
+
*, *:after, *:before {
|
|
12
|
+
-webkit-box-sizing:border-box;
|
|
13
|
+
-moz-box-sizing:border-box;
|
|
14
|
+
box-sizing:border-box;
|
|
15
|
+
}
|
|
16
|
+
h1 { font-size: 20px; margin: 0;}
|
|
17
|
+
h2 { font-size: 14px; }
|
|
18
|
+
pre {
|
|
19
|
+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
-moz-tab-size: 2;
|
|
23
|
+
-o-tab-size: 2;
|
|
24
|
+
tab-size: 2;
|
|
25
|
+
}
|
|
26
|
+
a { color:#0074D9; text-decoration:none; }
|
|
27
|
+
a:hover { text-decoration:underline; }
|
|
28
|
+
.strong { font-weight: bold; }
|
|
29
|
+
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
+
.pad2y { padding: 20px 0; }
|
|
31
|
+
.pad1y { padding: 10px 0; }
|
|
32
|
+
.pad2x { padding: 0 20px; }
|
|
33
|
+
.pad2 { padding: 20px; }
|
|
34
|
+
.pad1 { padding: 10px; }
|
|
35
|
+
.space-left2 { padding-left:55px; }
|
|
36
|
+
.space-right2 { padding-right:20px; }
|
|
37
|
+
.center { text-align:center; }
|
|
38
|
+
.clearfix { display:block; }
|
|
39
|
+
.clearfix:after {
|
|
40
|
+
content:'';
|
|
41
|
+
display:block;
|
|
42
|
+
height:0;
|
|
43
|
+
clear:both;
|
|
44
|
+
visibility:hidden;
|
|
45
|
+
}
|
|
46
|
+
.fl { float: left; }
|
|
47
|
+
@media only screen and (max-width:640px) {
|
|
48
|
+
.col3 { width:100%; max-width:100%; }
|
|
49
|
+
.hide-mobile { display:none!important; }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.quiet {
|
|
53
|
+
color: #7f7f7f;
|
|
54
|
+
color: rgba(0,0,0,0.5);
|
|
55
|
+
}
|
|
56
|
+
.quiet a { opacity: 0.7; }
|
|
57
|
+
|
|
58
|
+
.fraction {
|
|
59
|
+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
color: #555;
|
|
62
|
+
background: #E8E8E8;
|
|
63
|
+
padding: 4px 5px;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
+
table.coverage {
|
|
70
|
+
border-collapse: collapse;
|
|
71
|
+
margin: 10px 0 0 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
table.coverage td {
|
|
76
|
+
margin: 0;
|
|
77
|
+
padding: 0;
|
|
78
|
+
vertical-align: top;
|
|
79
|
+
}
|
|
80
|
+
table.coverage td.line-count {
|
|
81
|
+
text-align: right;
|
|
82
|
+
padding: 0 5px 0 20px;
|
|
83
|
+
}
|
|
84
|
+
table.coverage td.line-coverage {
|
|
85
|
+
text-align: right;
|
|
86
|
+
padding-right: 10px;
|
|
87
|
+
min-width:20px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
table.coverage td span.cline-any {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
padding: 0 5px;
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
.missing-if-branch {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
margin-right: 5px;
|
|
98
|
+
border-radius: 3px;
|
|
99
|
+
position: relative;
|
|
100
|
+
padding: 0 4px;
|
|
101
|
+
background: #333;
|
|
102
|
+
color: yellow;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.skip-if-branch {
|
|
106
|
+
display: none;
|
|
107
|
+
margin-right: 10px;
|
|
108
|
+
position: relative;
|
|
109
|
+
padding: 0 4px;
|
|
110
|
+
background: #ccc;
|
|
111
|
+
color: white;
|
|
112
|
+
}
|
|
113
|
+
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
+
color: inherit !important;
|
|
115
|
+
}
|
|
116
|
+
.coverage-summary {
|
|
117
|
+
border-collapse: collapse;
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
+
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
+
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
+
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
+
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
+
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
+
.coverage-summary th {
|
|
127
|
+
text-align: left;
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
+
.coverage-summary th.pct { }
|
|
133
|
+
.coverage-summary th.pic,
|
|
134
|
+
.coverage-summary th.abs,
|
|
135
|
+
.coverage-summary td.pct,
|
|
136
|
+
.coverage-summary td.abs { text-align: right; }
|
|
137
|
+
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
+
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
+
.coverage-summary tfoot td { }
|
|
140
|
+
|
|
141
|
+
.coverage-summary .sorter {
|
|
142
|
+
height: 10px;
|
|
143
|
+
width: 7px;
|
|
144
|
+
display: inline-block;
|
|
145
|
+
margin-left: 0.5em;
|
|
146
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
+
}
|
|
148
|
+
.coverage-summary .sorted .sorter {
|
|
149
|
+
background-position: 0 -20px;
|
|
150
|
+
}
|
|
151
|
+
.coverage-summary .sorted-desc .sorter {
|
|
152
|
+
background-position: 0 -10px;
|
|
153
|
+
}
|
|
154
|
+
.status-line { height: 10px; }
|
|
155
|
+
/* yellow */
|
|
156
|
+
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
+
/* dark red */
|
|
158
|
+
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
+
.low .chart { border:1px solid #C21F39 }
|
|
160
|
+
.highlighted,
|
|
161
|
+
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
+
background: #C21F39 !important;
|
|
163
|
+
}
|
|
164
|
+
/* medium red */
|
|
165
|
+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
+
/* light red */
|
|
167
|
+
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
+
/* light green */
|
|
169
|
+
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
+
/* medium green */
|
|
171
|
+
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
+
/* dark green */
|
|
173
|
+
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
+
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
+
/* dark yellow (gold) */
|
|
176
|
+
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
+
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
+
/* light yellow */
|
|
179
|
+
.medium { background: #fff4c2; }
|
|
180
|
+
|
|
181
|
+
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
+
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
+
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
+
|
|
185
|
+
span.cline-neutral { background: #eaeaea; }
|
|
186
|
+
|
|
187
|
+
.coverage-summary td.empty {
|
|
188
|
+
opacity: .5;
|
|
189
|
+
padding-top: 4px;
|
|
190
|
+
padding-bottom: 4px;
|
|
191
|
+
line-height: 1;
|
|
192
|
+
color: #888;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.cover-fill, .cover-empty {
|
|
196
|
+
display:inline-block;
|
|
197
|
+
height: 12px;
|
|
198
|
+
}
|
|
199
|
+
.chart {
|
|
200
|
+
line-height: 0;
|
|
201
|
+
}
|
|
202
|
+
.cover-empty {
|
|
203
|
+
background: white;
|
|
204
|
+
}
|
|
205
|
+
.cover-full {
|
|
206
|
+
border-right: none !important;
|
|
207
|
+
}
|
|
208
|
+
pre.prettyprint {
|
|
209
|
+
border: none !important;
|
|
210
|
+
padding: 0 !important;
|
|
211
|
+
margin: 0 !important;
|
|
212
|
+
}
|
|
213
|
+
.com { color: #999 !important; }
|
|
214
|
+
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
+
|
|
216
|
+
.wrapper {
|
|
217
|
+
min-height: 100%;
|
|
218
|
+
height: auto !important;
|
|
219
|
+
height: 100%;
|
|
220
|
+
margin: 0 auto -48px;
|
|
221
|
+
}
|
|
222
|
+
.footer, .push {
|
|
223
|
+
height: 48px;
|
|
224
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
})();
|
|
87
|
+
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|