topkat-utils 1.3.7 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -226,6 +226,7 @@ urlPathJoin('https://api.example.com//v1', '/users/', 'userId') // => 'https://a
226
226
  - `readOnly(obj)`: Lock all 1st level props of an object to read only (not rewritable / modifiable)
227
227
  - `reassignForbidden(obj)`: Fields of the object can be created BUT NOT reassignated
228
228
  - `readOnlyRecursive(obj)`: All fields and subFields of the object will be readOnly
229
+ - `createProxy(obj)`: replace `new Proxy(...)` from javascript with correct handling for JSON.stringify and a `__isProxy: true` helper prop
229
230
 
230
231
  ### Typescript equivalent of Js functions (Fix types)
231
232
  - `lowerCase(str)`: `lowerCase('HelloWorld' as const) // type: 'helloworld'` (Equivalent of type `LowerCase<MyString>`)
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1742329822473" clover="3.2.0">
3
- <project timestamp="1742329822473" name="All files">
4
- <metrics statements="1917" coveredstatements="757" conditionals="58" coveredconditionals="36" methods="135" coveredmethods="13" elements="2110" coveredelements="806" complexity="0" loc="1917" ncloc="1917" packages="1" files="16" classes="16"/>
2
+ <coverage generated="1742335290069" clover="3.2.0">
3
+ <project timestamp="1742335290069" name="All files">
4
+ <metrics statements="1936" coveredstatements="764" conditionals="52" coveredconditionals="30" methods="137" coveredmethods="13" elements="2125" coveredelements="807" complexity="0" loc="1936" ncloc="1936" packages="1" files="16" classes="16"/>
5
5
  <file name="clean-stack-trace.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/clean-stack-trace.ts">
6
- <metrics statements="38" coveredstatements="38" conditionals="10" coveredconditionals="9" methods="1" coveredmethods="1"/>
6
+ <metrics statements="38" coveredstatements="38" conditionals="7" coveredconditionals="6" methods="1" coveredmethods="1"/>
7
7
  <line num="1" count="2" type="stmt"/>
8
8
  <line num="2" count="2" type="cond" truecount="1" falsecount="0"/>
9
9
  <line num="3" count="2" type="cond" truecount="0" falsecount="1"/>
@@ -35,13 +35,13 @@
35
35
  <line num="29" count="2" type="stmt"/>
36
36
  <line num="30" count="2" type="stmt"/>
37
37
  <line num="31" count="2" type="cond" truecount="2" falsecount="0"/>
38
- <line num="32" count="2" type="cond" truecount="2" falsecount="0"/>
39
- <line num="33" count="8" type="cond" truecount="4" falsecount="0"/>
38
+ <line num="32" count="2" type="cond" truecount="1" falsecount="0"/>
39
+ <line num="33" count="8" type="cond" truecount="2" falsecount="0"/>
40
40
  <line num="34" count="6" type="stmt"/>
41
- <line num="35" count="4" type="stmt"/>
42
- <line num="36" count="4" type="stmt"/>
43
- <line num="37" count="5" type="stmt"/>
44
- <line num="38" count="5" type="stmt"/>
41
+ <line num="35" count="2" type="stmt"/>
42
+ <line num="36" count="2" type="stmt"/>
43
+ <line num="37" count="2" type="stmt"/>
44
+ <line num="38" count="2" type="stmt"/>
45
45
  </file>
46
46
  <file name="config.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/config.ts">
47
47
  <metrics statements="94" coveredstatements="68" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="1"/>
@@ -394,7 +394,7 @@
394
394
  <line num="3" count="38" type="stmt"/>
395
395
  </file>
396
396
  <file name="logger-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/logger-utils.ts">
397
- <metrics statements="364" coveredstatements="150" conditionals="25" coveredconditionals="9" methods="40" coveredmethods="5"/>
397
+ <metrics statements="364" coveredstatements="150" conditionals="22" coveredconditionals="6" methods="40" coveredmethods="5"/>
398
398
  <line num="1" count="2" type="stmt"/>
399
399
  <line num="2" count="2" type="stmt"/>
400
400
  <line num="3" count="2" type="stmt"/>
@@ -598,12 +598,12 @@
598
598
  <line num="201" count="2" type="cond" truecount="1" falsecount="0"/>
599
599
  <line num="202" count="2" type="stmt"/>
600
600
  <line num="203" count="2" type="stmt"/>
601
- <line num="204" count="2" type="cond" truecount="1" falsecount="1"/>
601
+ <line num="204" count="2" type="cond" truecount="0" falsecount="1"/>
602
602
  <line num="205" count="2" type="stmt"/>
603
603
  <line num="206" count="2" type="cond" truecount="0" falsecount="1"/>
604
604
  <line num="207" count="2" type="cond" truecount="0" falsecount="1"/>
605
605
  <line num="208" count="2" type="cond" truecount="0" falsecount="1"/>
606
- <line num="209" count="2" type="cond" truecount="1" falsecount="2"/>
606
+ <line num="209" count="2" type="cond" truecount="0" falsecount="2"/>
607
607
  <line num="210" count="2" type="stmt"/>
608
608
  <line num="211" count="2" type="cond" truecount="1" falsecount="0"/>
609
609
  <line num="212" count="2" type="cond" truecount="0" falsecount="1"/>
@@ -626,7 +626,7 @@
626
626
  <line num="229" count="2" type="stmt"/>
627
627
  <line num="230" count="2" type="stmt"/>
628
628
  <line num="231" count="2" type="cond" truecount="1" falsecount="0"/>
629
- <line num="232" count="2" type="cond" truecount="1" falsecount="1"/>
629
+ <line num="232" count="2" type="cond" truecount="0" falsecount="1"/>
630
630
  <line num="233" count="0" type="stmt"/>
631
631
  <line num="234" count="0" type="stmt"/>
632
632
  <line num="235" count="2" type="stmt"/>
@@ -989,7 +989,7 @@
989
989
  <line num="59" count="0" type="stmt"/>
990
990
  </file>
991
991
  <file name="object-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/object-utils.ts">
992
- <metrics statements="444" coveredstatements="129" conditionals="0" coveredconditionals="0" methods="27" coveredmethods="0"/>
992
+ <metrics statements="463" coveredstatements="136" conditionals="0" coveredconditionals="0" methods="29" coveredmethods="0"/>
993
993
  <line num="1" count="2" type="stmt"/>
994
994
  <line num="2" count="2" type="stmt"/>
995
995
  <line num="3" count="2" type="stmt"/>
@@ -1434,6 +1434,25 @@
1434
1434
  <line num="442" count="2" type="stmt"/>
1435
1435
  <line num="443" count="2" type="stmt"/>
1436
1436
  <line num="444" count="2" type="stmt"/>
1437
+ <line num="445" count="2" type="stmt"/>
1438
+ <line num="446" count="2" type="stmt"/>
1439
+ <line num="447" count="2" type="stmt"/>
1440
+ <line num="448" count="2" type="stmt"/>
1441
+ <line num="449" count="0" type="stmt"/>
1442
+ <line num="450" count="0" type="stmt"/>
1443
+ <line num="451" count="0" type="stmt"/>
1444
+ <line num="452" count="0" type="stmt"/>
1445
+ <line num="453" count="0" type="stmt"/>
1446
+ <line num="454" count="0" type="stmt"/>
1447
+ <line num="455" count="0" type="stmt"/>
1448
+ <line num="456" count="0" type="stmt"/>
1449
+ <line num="457" count="0" type="stmt"/>
1450
+ <line num="458" count="0" type="stmt"/>
1451
+ <line num="459" count="0" type="stmt"/>
1452
+ <line num="460" count="0" type="stmt"/>
1453
+ <line num="461" count="1" type="stmt"/>
1454
+ <line num="462" count="1" type="stmt"/>
1455
+ <line num="463" count="1" type="stmt"/>
1437
1456
  </file>
1438
1457
  <file name="regexp-utils.ts" path="/Users/garcias/DEV/modules/topkat-utils/src/regexp-utils.ts">
1439
1458
  <metrics statements="52" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>