@biorate/axios 1.112.0 → 1.114.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/.nyc_output/7c77be4c-ce95-483a-8993-94b0625a1338.json +1 -0
- package/.nyc_output/processinfo/13d656b6-faa2-4680-988b-2510a5517bac.json +1 -0
- package/.nyc_output/processinfo/7c77be4c-ce95-483a-8993-94b0625a1338.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +6 -0
- package/coverage/lcov-report/index.html +49 -19
- package/coverage/lcov-report/index.ts.html +9 -9
- package/coverage/lcov-report/options.ts.html +118 -0
- package/coverage/lcov-report/stubs.ts.html +118 -0
- package/coverage/lcov.info +187 -140
- package/dist/src/index.js +13 -24
- package/dist/src/index.js.map +1 -1
- package/dist/src/options.js +13 -0
- package/dist/src/options.js.map +1 -0
- package/dist/src/stubs.js +47 -0
- package/dist/src/stubs.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/index.ts +18 -40
- package/src/interfaces.ts +9 -0
- package/src/options.ts +9 -0
- package/src/stubs.ts +46 -0
- package/.nyc_output/10ae1b07-527f-4873-be19-c6c2183d9d0a.json +0 -1
- package/.nyc_output/processinfo/10ae1b07-527f-4873-be19-c6c2183d9d0a.json +0 -1
- package/.nyc_output/processinfo/b20c7195-db29-40ac-bc5e-38caf37c0043.json +0 -1
- /package/.nyc_output/{b20c7195-db29-40ac-bc5e-38caf37c0043.json → 13d656b6-faa2-4680-988b-2510a5517bac.json} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"/www/biorate/core/packages/@biorate/axios/src/index.ts":{"path":"/www/biorate/core/packages/@biorate/axios/src/index.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":19},"end":{"line":15,"column":1}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":126}},"13":{"start":{"line":14,"column":21},"end":{"line":14,"column":126}},"14":{"start":{"line":14,"column":95},"end":{"line":14,"column":126}},"15":{"start":{"line":16,"column":29},"end":{"line":20,"column":1}},"16":{"start":{"line":17,"column":4},"end":{"line":17,"column":97}},"17":{"start":{"line":17,"column":28},"end":{"line":17,"column":97}},"18":{"start":{"line":18,"column":4},"end":{"line":18,"column":183}},"19":{"start":{"line":18,"column":87},"end":{"line":18,"column":183}},"20":{"start":{"line":19,"column":4},"end":{"line":19,"column":98}},"21":{"start":{"line":21,"column":29},"end":{"line":26,"column":1}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":76}},"23":{"start":{"line":22,"column":22},"end":{"line":22,"column":76}},"24":{"start":{"line":23,"column":4},"end":{"line":23,"column":97}},"25":{"start":{"line":23,"column":28},"end":{"line":23,"column":97}},"26":{"start":{"line":24,"column":4},"end":{"line":24,"column":182}},"27":{"start":{"line":24,"column":87},"end":{"line":24,"column":182}},"28":{"start":{"line":25,"column":4},"end":{"line":25,"column":110}},"29":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"30":{"start":{"line":29,"column":0},"end":{"line":29,"column":23}},"31":{"start":{"line":30,"column":17},"end":{"line":30,"column":34}},"32":{"start":{"line":31,"column":16},"end":{"line":31,"column":32}},"33":{"start":{"line":32,"column":22},"end":{"line":32,"column":44}},"34":{"start":{"line":33,"column":18},"end":{"line":33,"column":40}},"35":{"start":{"line":34,"column":20},"end":{"line":34,"column":49}},"36":{"start":{"line":35,"column":16},"end":{"line":35,"column":34}},"37":{"start":{"line":36,"column":0},"end":{"line":36,"column":40}},"38":{"start":{"line":37,"column":0},"end":{"line":37,"column":47}},"39":{"start":{"line":38,"column":29},"end":{"line":44,"column":1}},"40":{"start":{"line":45,"column":25},"end":{"line":45,"column":52}},"41":{"start":{"line":48,"column":8},"end":{"line":48,"column":28}},"42":{"start":{"line":49,"column":8},"end":{"line":49,"column":40}},"43":{"start":{"line":52,"column":8},"end":{"line":52,"column":39}},"44":{"start":{"line":55,"column":8},"end":{"line":55,"column":47}},"45":{"start":{"line":58,"column":8},"end":{"line":58,"column":36}},"46":{"start":{"line":61,"column":8},"end":{"line":61,"column":58}},"47":{"start":{"line":64,"column":8},"end":{"line":64,"column":28}},"48":{"start":{"line":67,"column":8},"end":{"line":67,"column":46}},"49":{"start":{"line":70,"column":8},"end":{"line":70,"column":40}},"50":{"start":{"line":73,"column":8},"end":{"line":73,"column":25}},"51":{"start":{"line":78,"column":25},"end":{"line":78,"column":40}},"52":{"start":{"line":79,"column":24},"end":{"line":79,"column":97}},"53":{"start":{"line":80,"column":8},"end":{"line":84,"column":9}},"54":{"start":{"line":81,"column":25},"end":{"line":81,"column":56}},"55":{"start":{"line":82,"column":12},"end":{"line":83,"column":28}},"56":{"start":{"line":83,"column":16},"end":{"line":83,"column":28}},"57":{"start":{"line":85,"column":23},"end":{"line":85,"column":52}},"58":{"start":{"line":86,"column":8},"end":{"line":87,"column":52}},"59":{"start":{"line":87,"column":12},"end":{"line":87,"column":52}},"60":{"start":{"line":88,"column":8},"end":{"line":88,"column":22}},"61":{"start":{"line":91,"column":25},"end":{"line":91,"column":78}},"62":{"start":{"line":92,"column":8},"end":{"line":96,"column":9}},"63":{"start":{"line":93,"column":12},"end":{"line":93,"column":87}},"64":{"start":{"line":94,"column":12},"end":{"line":95,"column":141}},"65":{"start":{"line":95,"column":16},"end":{"line":95,"column":141}},"66":{"start":{"line":97,"column":8},"end":{"line":98,"column":74}},"67":{"start":{"line":98,"column":12},"end":{"line":98,"column":74}},"68":{"start":{"line":99,"column":8},"end":{"line":100,"column":66}},"69":{"start":{"line":100,"column":12},"end":{"line":100,"column":66}},"70":{"start":{"line":101,"column":23},"end":{"line":101,"column":117}},"71":{"start":{"line":102,"column":8},"end":{"line":102,"column":34}},"72":{"start":{"line":103,"column":26},"end":{"line":103,"column":45}},"73":{"start":{"line":104,"column":8},"end":{"line":115,"column":9}},"74":{"start":{"line":105,"column":27},"end":{"line":105,"column":100}},"75":{"start":{"line":106,"column":12},"end":{"line":106,"column":56}},"76":{"start":{"line":107,"column":12},"end":{"line":107,"column":26}},"77":{"start":{"line":110,"column":12},"end":{"line":110,"column":51}},"78":{"start":{"line":111,"column":12},"end":{"line":111,"column":20}},"79":{"start":{"line":114,"column":12},"end":{"line":114,"column":50}},"80":{"start":{"line":118,"column":8},"end":{"line":118,"column":31}},"81":{"start":{"line":125,"column":0},"end":{"line":125,"column":30}},"82":{"start":{"line":126,"column":0},"end":{"line":126,"column":28}},"83":{"start":{"line":127,"column":0},"end":{"line":127,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":50},"end":{"line":13,"column":51}},"loc":{"start":{"line":13,"column":71},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":16,"column":70},"end":{"line":16,"column":71}},"loc":{"start":{"line":16,"column":106},"end":{"line":20,"column":1}},"line":16},"5":{"name":"(anonymous_5)","decl":{"start":{"line":21,"column":70},"end":{"line":21,"column":71}},"loc":{"start":{"line":21,"column":113},"end":{"line":26,"column":1}},"line":21},"6":{"name":"(anonymous_6)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":5}},"loc":{"start":{"line":47,"column":18},"end":{"line":50,"column":5}},"line":47},"7":{"name":"(anonymous_7)","decl":{"start":{"line":51,"column":4},"end":{"line":51,"column":5}},"loc":{"start":{"line":51,"column":23},"end":{"line":53,"column":5}},"line":51},"8":{"name":"(anonymous_8)","decl":{"start":{"line":54,"column":4},"end":{"line":54,"column":5}},"loc":{"start":{"line":54,"column":25},"end":{"line":56,"column":5}},"line":54},"9":{"name":"(anonymous_9)","decl":{"start":{"line":57,"column":4},"end":{"line":57,"column":5}},"loc":{"start":{"line":57,"column":26},"end":{"line":59,"column":5}},"line":57},"10":{"name":"(anonymous_10)","decl":{"start":{"line":60,"column":4},"end":{"line":60,"column":5}},"loc":{"start":{"line":60,"column":41},"end":{"line":62,"column":5}},"line":60},"11":{"name":"(anonymous_11)","decl":{"start":{"line":63,"column":4},"end":{"line":63,"column":5}},"loc":{"start":{"line":63,"column":20},"end":{"line":65,"column":5}},"line":63},"12":{"name":"(anonymous_12)","decl":{"start":{"line":66,"column":4},"end":{"line":66,"column":5}},"loc":{"start":{"line":66,"column":21},"end":{"line":68,"column":5}},"line":66},"13":{"name":"(anonymous_13)","decl":{"start":{"line":69,"column":4},"end":{"line":69,"column":5}},"loc":{"start":{"line":69,"column":26},"end":{"line":71,"column":5}},"line":69},"14":{"name":"(anonymous_14)","decl":{"start":{"line":72,"column":4},"end":{"line":72,"column":5}},"loc":{"start":{"line":72,"column":38},"end":{"line":74,"column":5}},"line":72},"15":{"name":"(anonymous_15)","decl":{"start":{"line":75,"column":4},"end":{"line":75,"column":5}},"loc":{"start":{"line":75,"column":46},"end":{"line":75,"column":49}},"line":75},"16":{"name":"(anonymous_16)","decl":{"start":{"line":76,"column":4},"end":{"line":76,"column":5}},"loc":{"start":{"line":76,"column":33},"end":{"line":89,"column":5}},"line":76},"17":{"name":"(anonymous_17)","decl":{"start":{"line":90,"column":4},"end":{"line":90,"column":5}},"loc":{"start":{"line":90,"column":25},"end":{"line":116,"column":5}},"line":90},"18":{"name":"(anonymous_18)","decl":{"start":{"line":117,"column":4},"end":{"line":117,"column":5}},"loc":{"start":{"line":117,"column":19},"end":{"line":119,"column":5}},"line":117},"19":{"name":"(anonymous_19)","decl":{"start":{"line":120,"column":4},"end":{"line":120,"column":5}},"loc":{"start":{"line":120,"column":25},"end":{"line":120,"column":28}},"line":120},"20":{"name":"(anonymous_20)","decl":{"start":{"line":121,"column":4},"end":{"line":121,"column":5}},"loc":{"start":{"line":121,"column":43},"end":{"line":121,"column":46}},"line":121},"21":{"name":"(anonymous_21)","decl":{"start":{"line":122,"column":4},"end":{"line":122,"column":5}},"loc":{"start":{"line":122,"column":38},"end":{"line":122,"column":41}},"line":122},"22":{"name":"(anonymous_22)","decl":{"start":{"line":123,"column":4},"end":{"line":123,"column":5}},"loc":{"start":{"line":123,"column":37},"end":{"line":123,"column":40}},"line":123}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":19},"end":{"line":15,"column":1}},"type":"binary-expr","locations":[{"start":{"line":13,"column":20},"end":{"line":13,"column":24}},{"start":{"line":13,"column":28},"end":{"line":13,"column":45}},{"start":{"line":13,"column":50},"end":{"line":15,"column":1}}],"line":13},"9":{"loc":{"start":{"line":14,"column":21},"end":{"line":14,"column":126}},"type":"if","locations":[{"start":{"line":14,"column":21},"end":{"line":14,"column":126}},{"start":{"line":14,"column":21},"end":{"line":14,"column":126}}],"line":14},"10":{"loc":{"start":{"line":14,"column":25},"end":{"line":14,"column":93}},"type":"binary-expr","locations":[{"start":{"line":14,"column":25},"end":{"line":14,"column":40}},{"start":{"line":14,"column":44},"end":{"line":14,"column":93}}],"line":14},"11":{"loc":{"start":{"line":16,"column":29},"end":{"line":20,"column":1}},"type":"binary-expr","locations":[{"start":{"line":16,"column":30},"end":{"line":16,"column":34}},{"start":{"line":16,"column":38},"end":{"line":16,"column":65}},{"start":{"line":16,"column":70},"end":{"line":20,"column":1}}],"line":16},"12":{"loc":{"start":{"line":17,"column":4},"end":{"line":17,"column":97}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":17,"column":97}},{"start":{"line":17,"column":4},"end":{"line":17,"column":97}}],"line":17},"13":{"loc":{"start":{"line":17,"column":8},"end":{"line":17,"column":26}},"type":"binary-expr","locations":[{"start":{"line":17,"column":8},"end":{"line":17,"column":20}},{"start":{"line":17,"column":24},"end":{"line":17,"column":26}}],"line":17},"14":{"loc":{"start":{"line":18,"column":4},"end":{"line":18,"column":183}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":183}},{"start":{"line":18,"column":4},"end":{"line":18,"column":183}}],"line":18},"15":{"loc":{"start":{"line":18,"column":8},"end":{"line":18,"column":85}},"type":"cond-expr","locations":[{"start":{"line":18,"column":38},"end":{"line":18,"column":62}},{"start":{"line":18,"column":65},"end":{"line":18,"column":85}}],"line":18},"16":{"loc":{"start":{"line":18,"column":38},"end":{"line":18,"column":62}},"type":"binary-expr","locations":[{"start":{"line":18,"column":38},"end":{"line":18,"column":56}},{"start":{"line":18,"column":60},"end":{"line":18,"column":62}}],"line":18},"17":{"loc":{"start":{"line":19,"column":11},"end":{"line":19,"column":97}},"type":"cond-expr","locations":[{"start":{"line":19,"column":26},"end":{"line":19,"column":27}},{"start":{"line":19,"column":30},"end":{"line":19,"column":97}}],"line":19},"18":{"loc":{"start":{"line":19,"column":30},"end":{"line":19,"column":97}},"type":"cond-expr","locations":[{"start":{"line":19,"column":45},"end":{"line":19,"column":61}},{"start":{"line":19,"column":64},"end":{"line":19,"column":97}}],"line":19},"19":{"loc":{"start":{"line":19,"column":64},"end":{"line":19,"column":97}},"type":"cond-expr","locations":[{"start":{"line":19,"column":68},"end":{"line":19,"column":75}},{"start":{"line":19,"column":78},"end":{"line":19,"column":97}}],"line":19},"20":{"loc":{"start":{"line":21,"column":29},"end":{"line":26,"column":1}},"type":"binary-expr","locations":[{"start":{"line":21,"column":30},"end":{"line":21,"column":34}},{"start":{"line":21,"column":38},"end":{"line":21,"column":65}},{"start":{"line":21,"column":70},"end":{"line":26,"column":1}}],"line":21},"21":{"loc":{"start":{"line":22,"column":4},"end":{"line":22,"column":76}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":76}},{"start":{"line":22,"column":4},"end":{"line":22,"column":76}}],"line":22},"22":{"loc":{"start":{"line":23,"column":4},"end":{"line":23,"column":97}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":97}},{"start":{"line":23,"column":4},"end":{"line":23,"column":97}}],"line":23},"23":{"loc":{"start":{"line":23,"column":8},"end":{"line":23,"column":26}},"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":20}},{"start":{"line":23,"column":24},"end":{"line":23,"column":26}}],"line":23},"24":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":182}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":182}},{"start":{"line":24,"column":4},"end":{"line":24,"column":182}}],"line":24},"25":{"loc":{"start":{"line":24,"column":8},"end":{"line":24,"column":85}},"type":"cond-expr","locations":[{"start":{"line":24,"column":38},"end":{"line":24,"column":62}},{"start":{"line":24,"column":65},"end":{"line":24,"column":85}}],"line":24},"26":{"loc":{"start":{"line":24,"column":38},"end":{"line":24,"column":62}},"type":"binary-expr","locations":[{"start":{"line":24,"column":38},"end":{"line":24,"column":56}},{"start":{"line":24,"column":60},"end":{"line":24,"column":62}}],"line":24},"27":{"loc":{"start":{"line":25,"column":12},"end":{"line":25,"column":101}},"type":"cond-expr","locations":[{"start":{"line":25,"column":27},"end":{"line":25,"column":50}},{"start":{"line":25,"column":53},"end":{"line":25,"column":101}}],"line":25},"28":{"loc":{"start":{"line":25,"column":53},"end":{"line":25,"column":101}},"type":"cond-expr","locations":[{"start":{"line":25,"column":57},"end":{"line":25,"column":72}},{"start":{"line":25,"column":75},"end":{"line":25,"column":101}}],"line":25},"29":{"loc":{"start":{"line":60,"column":24},"end":{"line":60,"column":39}},"type":"default-arg","locations":[{"start":{"line":60,"column":34},"end":{"line":60,"column":39}}],"line":60},"30":{"loc":{"start":{"line":79,"column":24},"end":{"line":79,"column":97}},"type":"cond-expr","locations":[{"start":{"line":79,"column":80},"end":{"line":79,"column":86}},{"start":{"line":79,"column":89},"end":{"line":79,"column":97}}],"line":79},"31":{"loc":{"start":{"line":79,"column":24},"end":{"line":79,"column":77}},"type":"binary-expr","locations":[{"start":{"line":79,"column":24},"end":{"line":79,"column":60}},{"start":{"line":79,"column":64},"end":{"line":79,"column":77}}],"line":79},"32":{"loc":{"start":{"line":80,"column":8},"end":{"line":84,"column":9}},"type":"if","locations":[{"start":{"line":80,"column":8},"end":{"line":84,"column":9}},{"start":{"line":80,"column":8},"end":{"line":84,"column":9}}],"line":80},"33":{"loc":{"start":{"line":82,"column":12},"end":{"line":83,"column":28}},"type":"if","locations":[{"start":{"line":82,"column":12},"end":{"line":83,"column":28}},{"start":{"line":82,"column":12},"end":{"line":83,"column":28}}],"line":82},"34":{"loc":{"start":{"line":86,"column":8},"end":{"line":87,"column":52}},"type":"if","locations":[{"start":{"line":86,"column":8},"end":{"line":87,"column":52}},{"start":{"line":86,"column":8},"end":{"line":87,"column":52}}],"line":86},"35":{"loc":{"start":{"line":92,"column":8},"end":{"line":96,"column":9}},"type":"if","locations":[{"start":{"line":92,"column":8},"end":{"line":96,"column":9}},{"start":{"line":92,"column":8},"end":{"line":96,"column":9}}],"line":92},"36":{"loc":{"start":{"line":94,"column":12},"end":{"line":95,"column":141}},"type":"if","locations":[{"start":{"line":94,"column":12},"end":{"line":95,"column":141}},{"start":{"line":94,"column":12},"end":{"line":95,"column":141}}],"line":94},"37":{"loc":{"start":{"line":97,"column":8},"end":{"line":98,"column":74}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":98,"column":74}},{"start":{"line":97,"column":8},"end":{"line":98,"column":74}}],"line":97},"38":{"loc":{"start":{"line":97,"column":12},"end":{"line":97,"column":45}},"type":"binary-expr","locations":[{"start":{"line":97,"column":12},"end":{"line":97,"column":28}},{"start":{"line":97,"column":32},"end":{"line":97,"column":45}}],"line":97},"39":{"loc":{"start":{"line":99,"column":8},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":99,"column":8},"end":{"line":100,"column":66}},{"start":{"line":99,"column":8},"end":{"line":100,"column":66}}],"line":99},"40":{"loc":{"start":{"line":99,"column":12},"end":{"line":99,"column":41}},"type":"binary-expr","locations":[{"start":{"line":99,"column":12},"end":{"line":99,"column":24}},{"start":{"line":99,"column":28},"end":{"line":99,"column":41}}],"line":99}},"s":{"0":1,"1":25,"2":25,"3":25,"4":25,"5":25,"6":1,"7":25,"8":0,"9":0,"10":0,"11":1,"12":2,"13":27,"14":25,"15":1,"16":19,"17":0,"18":19,"19":0,"20":19,"21":1,"22":9,"23":0,"24":9,"25":0,"26":9,"27":0,"28":9,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":14,"42":14,"43":8,"44":4,"45":11,"46":7,"47":1,"48":2,"49":1,"50":0,"51":11,"52":11,"53":11,"54":4,"55":4,"56":2,"57":9,"58":6,"59":2,"60":6,"61":9,"62":9,"63":9,"64":9,"65":1,"66":9,"67":0,"68":9,"69":0,"70":9,"71":9,"72":9,"73":9,"74":9,"75":6,"76":6,"77":3,"78":3,"79":9,"80":9,"81":1,"82":1,"83":1},"f":{"0":25,"1":1,"2":0,"3":2,"4":19,"5":9,"6":14,"7":8,"8":4,"9":11,"10":7,"11":1,"12":2,"13":1,"14":0,"15":0,"16":11,"17":9,"18":9,"19":9,"20":6,"21":2,"22":8},"b":{"0":[1,1,1],"1":[1,0],"2":[25,0],"3":[25,0],"4":[25,25],"5":[0,25],"6":[25,0],"7":[0,0],"8":[1,1,1],"9":[25,2],"10":[27,26],"11":[1,1,1],"12":[0,19],"13":[19,0],"14":[0,19],"15":[0,19],"16":[0,0],"17":[0,19],"18":[0,19],"19":[0,19],"20":[1,1,1],"21":[0,9],"22":[0,9],"23":[9,0],"24":[0,9],"25":[0,9],"26":[0,0],"27":[0,9],"28":[0,9],"29":[1],"30":[7,4],"31":[11,11],"32":[4,7],"33":[2,2],"34":[2,4],"35":[9,0],"36":[1,8],"37":[0,9],"38":[9,9],"39":[0,9],"40":[9,0]},"inputSourceMap":{"version":3,"file":"file:///www/biorate/core/packages/@biorate/axios/src/index.ts","sources":["file:///www/biorate/core/packages/@biorate/axios/src/index.ts"],"names":[],"mappings":"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","sourcesContent":["import { omit, pick, merge } from 'lodash';\nimport axios, { AxiosResponse, AxiosInstance } from 'axios';\nimport retry from 'axios-retry';\nimport { IAxiosRetryConfig } from 'axios-retry/dist/esm';\n// @ts-ignore\nimport * as pathToUrl from 'path-to-url';\nimport { Singleton } from '@biorate/singleton';\nimport { Stubs } from './stubs';\nimport { IAxiosFetchOptions, IStubParam } from './interfaces';\n\nexport * from 'axios';\nexport * from './interfaces';\n\nconst axiosRetryConfigKeys = [\n 'retries',\n 'retryDelay',\n 'shouldResetTimeout',\n 'retryCondition',\n 'onRetry',\n];\n\nconst axiosExcludeKeys = ['path', 'config', 'retry'];\n\n/**\n * @description\n * Axios OOP static interface\n *\n * ### Features:\n * - OOP\n * - DI\n *\n * @example\n * ```\n * import { Axios } from '@biorate/axios';\n *\n * class Yandex extends Axios {\n * public baseURL = 'https://yandex.ru';\n * }\n *\n * (async () => {\n * const response = await Yandex.fetch<string>();\n * console.log(response.status); // 200\n * console.log(response.data); // <!DOCTYPE html><html ...\n * })();\n * ```\n */\nexport class Axios extends Singleton {\n /**\n * @description Axios instance cache\n */\n protected static mocks = new WeakMap<typeof Axios, { value: boolean }>();\n /**\n * @description Stubs instance cache\n */\n protected static get stubs() {\n return Stubs.get(this);\n }\n /**\n * @description Stubs options cache\n */\n public static get options() {\n return Stubs.get(this).options;\n }\n /**\n * @description Fetch static method\n */\n public static fetch(options?: any) {\n return this._fetch(options);\n }\n /**\n * @description Stub static method\n */\n public static stub(params: IStubParam, persist = false) {\n this.stubs.stub(this.instance<Axios>(), params, persist);\n }\n /**\n * @description Unstub static method\n */\n public static unstub() {\n this.stubs.unstub();\n }\n /**\n * @description Use mock static method\n */\n public static useMock() {\n this.mocks.set(this, { value: true });\n }\n /**\n * @description Set defaults\n */\n public static get defaults() {\n return axios.defaults;\n }\n /**\n * @description Get mock static method\n */\n protected static getMock<T = any, D = any>(\n instance: Axios,\n options?: IAxiosFetchOptions,\n ): undefined | AxiosResponse<T, D> {\n return undefined;\n }\n /**\n * @description Set mock static method\n */\n protected static setMock<T = any, D = any>(\n instance: Axios,\n result: AxiosResponse<T, D>,\n options?: IAxiosFetchOptions,\n ) {}\n /**\n * @description Protected fetch static method\n */\n protected static async _fetch<T = any, D = any>(\n options?: IAxiosFetchOptions,\n ): Promise<AxiosResponse<T, D>> {\n const instance = this.instance<Axios>();\n const useMock = this.mocks.get(this)?.value;\n if (useMock) {\n const mock = this.getMock<T, D>(instance, options);\n if (mock) return mock;\n }\n const result = await instance.fetch<T, D>(options);\n if (useMock) this.setMock<T, D>(instance, result, options);\n return result;\n }\n /**\n * @description Axios client cache\n */\n #client: AxiosInstance;\n /**\n * @description Fetch method\n */\n protected async fetch<T, D>(\n options?: IAxiosFetchOptions,\n ): Promise<AxiosResponse<T, D>> {\n const settings = merge({ ...this }, options);\n if (!this.#client) {\n this.#client = axios.create();\n if (settings.retry)\n // @ts-ignore: TODO: Stranger Things\n retry(this.#client, <IAxiosRetryConfig>pick(this, axiosRetryConfigKeys));\n }\n if (settings.baseURL && settings.path)\n settings.baseURL = pathToUrl(settings.baseURL, settings.path);\n if (settings.url && settings.path)\n settings.url = pathToUrl(settings.url, settings.path);\n const params = {\n ...omit(settings, axiosRetryConfigKeys.concat(axiosExcludeKeys)),\n };\n await this.before(params);\n const startTime = this.getStartTime();\n try {\n const result = await this.#client(params);\n await this.after<T>(result, startTime, params);\n return result;\n } catch (e: unknown) {\n await this.catch(<Error>e, startTime, params);\n throw e;\n } finally {\n await this.finally(startTime, params);\n }\n }\n /**\n * @description Get start time method\n */\n protected getStartTime(): [number, number] {\n return [Date.now(), 0];\n }\n /**\n * @description Before hook\n */\n protected async before(params?: IAxiosFetchOptions) {}\n /**\n * @description After hook\n */\n protected async after<T = any, D = any>(\n result: AxiosResponse<T, D>,\n startTime: [number, number],\n params?: IAxiosFetchOptions,\n ) {}\n /**\n * @description Catch hook\n */\n protected async catch(\n e: Error,\n startTime: [number, number],\n params?: IAxiosFetchOptions,\n ) {}\n /**\n * @description Finally hook\n */\n protected async finally(startTime: [number, number], params?: IAxiosFetchOptions) {}\n}\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"16edc083fcf6d540db6c8a72d6e3f8a8e8639b2c","contentHash":"aa3f65b8ac99f31ec2714d136aa006133cf3da84f7a9475cbf98f6f44409fe2c"},"/www/biorate/core/packages/@biorate/axios/src/stubs.ts":{"path":"/www/biorate/core/packages/@biorate/axios/src/stubs.ts","statementMap":{"0":{"start":{"line":2,"column":29},"end":{"line":6,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":97}},"2":{"start":{"line":3,"column":28},"end":{"line":3,"column":97}},"3":{"start":{"line":4,"column":4},"end":{"line":4,"column":183}},"4":{"start":{"line":4,"column":87},"end":{"line":4,"column":183}},"5":{"start":{"line":5,"column":4},"end":{"line":5,"column":98}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":62}},"7":{"start":{"line":9,"column":0},"end":{"line":9,"column":23}},"8":{"start":{"line":10,"column":18},"end":{"line":10,"column":38}},"9":{"start":{"line":11,"column":16},"end":{"line":11,"column":32}},"10":{"start":{"line":14,"column":8},"end":{"line":15,"column":92}},"11":{"start":{"line":15,"column":12},"end":{"line":15,"column":92}},"12":{"start":{"line":16,"column":8},"end":{"line":16,"column":78}},"13":{"start":{"line":19,"column":8},"end":{"line":19,"column":27}},"14":{"start":{"line":20,"column":8},"end":{"line":20,"column":47}},"15":{"start":{"line":21,"column":8},"end":{"line":21,"column":35}},"16":{"start":{"line":25,"column":23},"end":{"line":25,"column":128}},"17":{"start":{"line":26,"column":8},"end":{"line":26,"column":53}},"18":{"start":{"line":27,"column":8},"end":{"line":36,"column":10}},"19":{"start":{"line":29,"column":12},"end":{"line":29,"column":39}},"20":{"start":{"line":30,"column":12},"end":{"line":31,"column":30}},"21":{"start":{"line":31,"column":16},"end":{"line":31,"column":30}},"22":{"start":{"line":32,"column":12},"end":{"line":34,"column":147}},"23":{"start":{"line":34,"column":16},"end":{"line":34,"column":147}},"24":{"start":{"line":35,"column":12},"end":{"line":35,"column":94}},"25":{"start":{"line":39,"column":8},"end":{"line":40,"column":19}},"26":{"start":{"line":40,"column":12},"end":{"line":40,"column":19}},"27":{"start":{"line":41,"column":8},"end":{"line":41,"column":54}},"28":{"start":{"line":44,"column":0},"end":{"line":44,"column":11}},"29":{"start":{"line":45,"column":0},"end":{"line":45,"column":40}},"30":{"start":{"line":46,"column":0},"end":{"line":46,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":70},"end":{"line":2,"column":71}},"loc":{"start":{"line":2,"column":106},"end":{"line":6,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":4},"end":{"line":13,"column":5}},"loc":{"start":{"line":13,"column":22},"end":{"line":17,"column":5}},"line":13},"2":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":4},"end":{"line":18,"column":5}},"loc":{"start":{"line":18,"column":23},"end":{"line":22,"column":5}},"line":18},"3":{"name":"(anonymous_3)","decl":{"start":{"line":23,"column":4},"end":{"line":23,"column":5}},"loc":{"start":{"line":23,"column":44},"end":{"line":37,"column":5}},"line":23},"4":{"name":"(anonymous_4)","decl":{"start":{"line":27,"column":27},"end":{"line":27,"column":28}},"loc":{"start":{"line":27,"column":46},"end":{"line":36,"column":9}},"line":27},"5":{"name":"(anonymous_5)","decl":{"start":{"line":38,"column":4},"end":{"line":38,"column":5}},"loc":{"start":{"line":38,"column":13},"end":{"line":42,"column":5}},"line":38}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":29},"end":{"line":6,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":30},"end":{"line":2,"column":34}},{"start":{"line":2,"column":38},"end":{"line":2,"column":65}},{"start":{"line":2,"column":70},"end":{"line":6,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":97}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":97}},{"start":{"line":3,"column":4},"end":{"line":3,"column":97}}],"line":3},"2":{"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":26}},"type":"binary-expr","locations":[{"start":{"line":3,"column":8},"end":{"line":3,"column":20}},{"start":{"line":3,"column":24},"end":{"line":3,"column":26}}],"line":3},"3":{"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":183}},"type":"if","locations":[{"start":{"line":4,"column":4},"end":{"line":4,"column":183}},{"start":{"line":4,"column":4},"end":{"line":4,"column":183}}],"line":4},"4":{"loc":{"start":{"line":4,"column":8},"end":{"line":4,"column":85}},"type":"cond-expr","locations":[{"start":{"line":4,"column":38},"end":{"line":4,"column":62}},{"start":{"line":4,"column":65},"end":{"line":4,"column":85}}],"line":4},"5":{"loc":{"start":{"line":4,"column":38},"end":{"line":4,"column":62}},"type":"binary-expr","locations":[{"start":{"line":4,"column":38},"end":{"line":4,"column":56}},{"start":{"line":4,"column":60},"end":{"line":4,"column":62}}],"line":4},"6":{"loc":{"start":{"line":5,"column":11},"end":{"line":5,"column":97}},"type":"cond-expr","locations":[{"start":{"line":5,"column":26},"end":{"line":5,"column":27}},{"start":{"line":5,"column":30},"end":{"line":5,"column":97}}],"line":5},"7":{"loc":{"start":{"line":5,"column":30},"end":{"line":5,"column":97}},"type":"cond-expr","locations":[{"start":{"line":5,"column":45},"end":{"line":5,"column":61}},{"start":{"line":5,"column":64},"end":{"line":5,"column":97}}],"line":5},"8":{"loc":{"start":{"line":5,"column":64},"end":{"line":5,"column":97}},"type":"cond-expr","locations":[{"start":{"line":5,"column":68},"end":{"line":5,"column":75}},{"start":{"line":5,"column":78},"end":{"line":5,"column":97}}],"line":5},"9":{"loc":{"start":{"line":14,"column":8},"end":{"line":15,"column":92}},"type":"if","locations":[{"start":{"line":14,"column":8},"end":{"line":15,"column":92}},{"start":{"line":14,"column":8},"end":{"line":15,"column":92}}],"line":14},"10":{"loc":{"start":{"line":23,"column":27},"end":{"line":23,"column":42}},"type":"default-arg","locations":[{"start":{"line":23,"column":37},"end":{"line":23,"column":42}}],"line":23},"11":{"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":128}},"type":"cond-expr","locations":[{"start":{"line":25,"column":120},"end":{"line":25,"column":122}},{"start":{"line":25,"column":125},"end":{"line":25,"column":128}}],"line":25},"12":{"loc":{"start":{"line":25,"column":23},"end":{"line":25,"column":117}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":100}},{"start":{"line":25,"column":104},"end":{"line":25,"column":117}}],"line":25},"13":{"loc":{"start":{"line":25,"column":29},"end":{"line":25,"column":90}},"type":"cond-expr","locations":[{"start":{"line":25,"column":68},"end":{"line":25,"column":74}},{"start":{"line":25,"column":77},"end":{"line":25,"column":90}}],"line":25},"14":{"loc":{"start":{"line":25,"column":29},"end":{"line":25,"column":65}},"type":"binary-expr","locations":[{"start":{"line":25,"column":29},"end":{"line":25,"column":44}},{"start":{"line":25,"column":48},"end":{"line":25,"column":65}}],"line":25},"15":{"loc":{"start":{"line":30,"column":12},"end":{"line":31,"column":30}},"type":"if","locations":[{"start":{"line":30,"column":12},"end":{"line":31,"column":30}},{"start":{"line":30,"column":12},"end":{"line":31,"column":30}}],"line":30},"16":{"loc":{"start":{"line":32,"column":12},"end":{"line":34,"column":147}},"type":"if","locations":[{"start":{"line":32,"column":12},"end":{"line":34,"column":147}},{"start":{"line":32,"column":12},"end":{"line":34,"column":147}}],"line":32},"17":{"loc":{"start":{"line":32,"column":16},"end":{"line":33,"column":173}},"type":"binary-expr","locations":[{"start":{"line":32,"column":16},"end":{"line":32,"column":54}},{"start":{"line":33,"column":16},"end":{"line":33,"column":173}}],"line":32},"18":{"loc":{"start":{"line":33,"column":17},"end":{"line":33,"column":162}},"type":"cond-expr","locations":[{"start":{"line":33,"column":128},"end":{"line":33,"column":134}},{"start":{"line":33,"column":137},"end":{"line":33,"column":162}}],"line":33},"19":{"loc":{"start":{"line":33,"column":17},"end":{"line":33,"column":125}},"type":"binary-expr","locations":[{"start":{"line":33,"column":17},"end":{"line":33,"column":108}},{"start":{"line":33,"column":112},"end":{"line":33,"column":125}}],"line":33},"20":{"loc":{"start":{"line":33,"column":23},"end":{"line":33,"column":98}},"type":"cond-expr","locations":[{"start":{"line":33,"column":66},"end":{"line":33,"column":72}},{"start":{"line":33,"column":75},"end":{"line":33,"column":98}}],"line":33},"21":{"loc":{"start":{"line":33,"column":23},"end":{"line":33,"column":63}},"type":"binary-expr","locations":[{"start":{"line":33,"column":23},"end":{"line":33,"column":40}},{"start":{"line":33,"column":44},"end":{"line":33,"column":63}}],"line":33},"22":{"loc":{"start":{"line":34,"column":23},"end":{"line":34,"column":145}},"type":"cond-expr","locations":[{"start":{"line":34,"column":71},"end":{"line":34,"column":73}},{"start":{"line":34,"column":76},"end":{"line":34,"column":145}}],"line":34},"23":{"loc":{"start":{"line":34,"column":23},"end":{"line":34,"column":68}},"type":"binary-expr","locations":[{"start":{"line":34,"column":23},"end":{"line":34,"column":51}},{"start":{"line":34,"column":55},"end":{"line":34,"column":68}}],"line":34},"24":{"loc":{"start":{"line":39,"column":8},"end":{"line":40,"column":19}},"type":"if","locations":[{"start":{"line":39,"column":8},"end":{"line":40,"column":19}},{"start":{"line":39,"column":8},"end":{"line":40,"column":19}}],"line":39}},"s":{"0":1,"1":31,"2":0,"3":31,"4":0,"5":31,"6":1,"7":1,"8":1,"9":1,"10":12,"11":7,"12":12,"13":7,"14":7,"15":7,"16":7,"17":7,"18":7,"19":10,"20":10,"21":1,"22":10,"23":2,"24":8,"25":2,"26":0,"27":2,"28":1,"29":1,"30":1},"f":{"0":31,"1":12,"2":7,"3":7,"4":10,"5":2},"b":{"0":[1,1,1],"1":[0,31],"2":[31,0],"3":[0,31],"4":[31,0],"5":[31,31],"6":[0,31],"7":[0,31],"8":[31,0],"9":[7,5],"10":[0],"11":[4,3],"12":[7,7],"13":[0,7],"14":[7,7],"15":[1,9],"16":[2,8],"17":[10,8],"18":[8,0],"19":[8,8],"20":[0,8],"21":[8,8],"22":[1,1],"23":[2,2],"24":[0,2]},"inputSourceMap":{"version":3,"file":"file:///www/biorate/core/packages/@biorate/axios/src/stubs.ts","sources":["file:///www/biorate/core/packages/@biorate/axios/src/stubs.ts"],"names":[],"mappings":";;;;;;;;;AACA,uCAAoC;AACpC,iCAAmC;AAEnC,MAAa,KAAK;IAGT,MAAM,CAAC,GAAG,CAAC,KAAmB;QACnC,IAAI,CAAC,uBAAA,IAAI,wBAAO,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,uBAAA,IAAI,wBAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QACrE,OAAO,uBAAA,IAAI,wBAAO,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC;IACjC,CAAC;IAMD,YAAgC,KAAmB;QAAnB,UAAK,GAAL,KAAK,CAAc;QAJnC,YAAO,GAAY,IAAI,iBAAO,EAAE,CAAC;QAEvC,UAAK,GAAG,IAAI,OAAO,EAAoC,CAAC;IAEZ,CAAC;IAEhD,IAAI,CACT,QAEC,EACD,MAAkB,EAClB,OAAO,GAAG,KAAK;;QAEf,MAAM,MAAM,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,GAAG,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,EAAE,OAAa,EAAE,EAAE;;YACzC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3B,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,MAAM,EAAE,CAAC;YAC5B,IACE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtC,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,cAAc,yDAAG,MAAM,CAAC,MAAK,KAAK;gBAE5C,MAAM,CACJ,MAAA,MAAM,CAAC,KAAK,mCAAI,IAAI,kBAAU,CAAC,uBAAuB,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAC9E,CAAC;YACJ,uBAAS,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,IAAK,MAAM,EAAG;QACxE,CAAC,CAAC;IACJ,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO;QACxC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC;IACjD,CAAC;;;AAvCM,wBAAS,IAAI,OAAO,EAAuB,EAArC,CAAsC;AADxC,sBAAK","sourcesContent":["import { Axios, IStubParam } from './index';\nimport { Options } from './options';\nimport { AxiosError } from 'axios';\n\nexport class Stubs {\n static #cache = new WeakMap<typeof Axios, Stubs>();\n\n public static get(Class: typeof Axios) {\n if (!this.#cache.has(Class)) this.#cache.set(Class, new this(Class));\n return this.#cache.get(Class)!;\n }\n\n public readonly options: Options = new Options();\n\n protected fetch = new WeakMap<typeof Axios, typeof Axios.fetch>();\n\n protected constructor(protected Class: typeof Axios) {}\n\n public stub(\n instance: Axios & {\n validateStatus?: (status: number) => boolean;\n },\n params: IStubParam,\n persist = false,\n ) {\n const status = params?.status ?? 200;\n this.fetch.set(this.Class, this.Class.fetch);\n this.Class.fetch = async (options?: any) => {\n this.options.push(options);\n if (!persist) this.unstub();\n if (\n ['4', '5'].includes(String(status)[0]) ||\n instance?.validateStatus?.(status) === false\n )\n throw (\n params.error ?? new AxiosError('Internal Server Error', '500', params.config)\n );\n return { config: {}, headers: {}, statusText: '', status, ...params };\n };\n }\n\n public unstub() {\n if (!this.fetch.has(this.Class)) return;\n this.Class.fetch = this.fetch.get(this.Class)!;\n }\n}\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d773eed75a24c7f2a0132f0360cf92d8b64f04c4","contentHash":"a9ac8c5089d297123b444cb31ebed7a175c5ccbf8168f564cebb1c6c2fb98ced"},"/www/biorate/core/packages/@biorate/axios/src/options.ts":{"path":"/www/biorate/core/packages/@biorate/axios/src/options.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":25}},"2":{"start":{"line":6,"column":8},"end":{"line":6,"column":23}},"3":{"start":{"line":9,"column":8},"end":{"line":9,"column":37}},"4":{"start":{"line":12,"column":0},"end":{"line":12,"column":26}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":4},"end":{"line":5,"column":5}},"loc":{"start":{"line":5,"column":16},"end":{"line":7,"column":5}},"line":5},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":4},"end":{"line":8,"column":5}},"loc":{"start":{"line":8,"column":15},"end":{"line":10,"column":5}},"line":8}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{"0":1,"1":1},"b":{},"inputSourceMap":{"version":3,"file":"file:///www/biorate/core/packages/@biorate/axios/src/options.ts","sources":["file:///www/biorate/core/packages/@biorate/axios/src/options.ts"],"names":[],"mappings":";;;AAAA,MAAa,OAAQ,SAAQ,KAAU;IACrC,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/B,CAAC;CACF;AARD,0BAQC","sourcesContent":["export class Options extends Array<any> {\n public get first() {\n return this[0];\n }\n\n public get last() {\n return this[this.length - 1];\n }\n}\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9aa5ebb8c8a7fd0f0ec69869dc59668a1c1b5ba0","contentHash":"28f52b0b0e740257108442df35bc7c425145eb8b744cea27a53abcfc72b452e3"},"/www/biorate/core/packages/@biorate/axios/src/interfaces.ts":{"path":"/www/biorate/core/packages/@biorate/axios/src/interfaces.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"file:///www/biorate/core/packages/@biorate/axios/src/interfaces.ts","sources":["file:///www/biorate/core/packages/@biorate/axios/src/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import { AxiosRequestConfig } from 'axios';\n\nexport type IAxiosFetchOptions = AxiosRequestConfig & {\n path?: Record<string, string | number>;\n retry?: boolean;\n};\n\nexport type IStubParam = {\n data: Record<string, any> | string;\n status?: number;\n statusText?: string;\n headers?: Record<string, any>;\n config?: Record<string, any>;\n error?: Error;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f89af87284b84889fb8445ee384fd464993ffa9d","contentHash":"dab40405f4da663e1f726e1312ced88e2d6968706b375a1394ced32d52c1b873"}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":null,"pid":33253,"argv":["/home/llevkin/.nvm/versions/node/v20.17.0/bin/node","/www/biorate/core/node_modules/npx/index.js","mocha","-r","ts-node/register","tests/**/*.spec.ts"],"execArgv":[],"cwd":"/www/biorate/core/packages/@biorate/axios","time":1744712479487,"ppid":33237,"coverageFilename":"/www/biorate/core/packages/@biorate/axios/.nyc_output/13d656b6-faa2-4680-988b-2510a5517bac.json","externalId":"","uuid":"13d656b6-faa2-4680-988b-2510a5517bac","files":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"parent":"13d656b6-faa2-4680-988b-2510a5517bac","pid":33269,"argv":["/home/llevkin/.nvm/versions/node/v20.17.0/bin/node","/www/biorate/core/node_modules/mocha/bin/mocha.js","-r","ts-node/register","tests/**/*.spec.ts"],"execArgv":[],"cwd":"/www/biorate/core/packages/@biorate/axios","time":1744712479668,"ppid":33253,"coverageFilename":"/www/biorate/core/packages/@biorate/axios/.nyc_output/7c77be4c-ce95-483a-8993-94b0625a1338.json","externalId":"","uuid":"7c77be4c-ce95-483a-8993-94b0625a1338","files":["/www/biorate/core/packages/@biorate/axios/src/index.ts","/www/biorate/core/packages/@biorate/axios/src/stubs.ts","/www/biorate/core/packages/@biorate/axios/src/options.ts","/www/biorate/core/packages/@biorate/axios/src/interfaces.ts"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"processes":{"
|
1
|
+
{"processes":{"13d656b6-faa2-4680-988b-2510a5517bac":{"parent":null,"children":["7c77be4c-ce95-483a-8993-94b0625a1338"]},"7c77be4c-ce95-483a-8993-94b0625a1338":{"parent":"13d656b6-faa2-4680-988b-2510a5517bac","children":[]}},"files":{"/www/biorate/core/packages/@biorate/axios/src/index.ts":["7c77be4c-ce95-483a-8993-94b0625a1338"],"/www/biorate/core/packages/@biorate/axios/src/stubs.ts":["7c77be4c-ce95-483a-8993-94b0625a1338"],"/www/biorate/core/packages/@biorate/axios/src/options.ts":["7c77be4c-ce95-483a-8993-94b0625a1338"],"/www/biorate/core/packages/@biorate/axios/src/interfaces.ts":["7c77be4c-ce95-483a-8993-94b0625a1338"]},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
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
|
+
# [1.114.0](https://github.com/biorate/core/compare/v1.113.0...v1.114.0) (2025-04-15)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **axios:** options in stubs ([9ee3c4a](https://github.com/biorate/core/commit/9ee3c4acfc8c023371a9fc379e17c280432caae1))
|
11
|
+
|
6
12
|
# [1.112.0](https://github.com/biorate/core/compare/v1.111.0...v1.112.0) (2025-04-14)
|
7
13
|
|
8
14
|
### Features
|
@@ -23,30 +23,30 @@
|
|
23
23
|
<div class='clearfix'>
|
24
24
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
26
|
-
<span class="strong">
|
26
|
+
<span class="strong">94.73% </span>
|
27
27
|
<span class="quiet">Statements</span>
|
28
|
-
<span class='fraction'>
|
28
|
+
<span class='fraction'>72/76</span>
|
29
29
|
</div>
|
30
30
|
|
31
31
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
33
|
-
<span class="strong">83.
|
33
|
+
<span class="strong">83.33% </span>
|
34
34
|
<span class="quiet">Branches</span>
|
35
|
-
<span class='fraction'>
|
35
|
+
<span class='fraction'>45/54</span>
|
36
36
|
</div>
|
37
37
|
|
38
38
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
40
|
-
<span class="strong">
|
40
|
+
<span class="strong">91.66% </span>
|
41
41
|
<span class="quiet">Functions</span>
|
42
|
-
<span class='fraction'>
|
42
|
+
<span class='fraction'>22/24</span>
|
43
43
|
</div>
|
44
44
|
|
45
45
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
47
|
-
<span class="strong">
|
47
|
+
<span class="strong">95.77% </span>
|
48
48
|
<span class="quiet">Lines</span>
|
49
|
-
<span class='fraction'>
|
49
|
+
<span class='fraction'>68/71</span>
|
50
50
|
</div>
|
51
51
|
|
52
52
|
|
@@ -80,17 +80,47 @@
|
|
80
80
|
</thead>
|
81
81
|
<tbody><tr>
|
82
82
|
<td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
|
83
|
-
<td data-value="
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
83
|
+
<td data-value="94.11" class="pic high">
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 94%"></div><div class="cover-empty" style="width: 6%"></div></div>
|
85
|
+
</td>
|
86
|
+
<td data-value="94.11" class="pct high">94.11%</td>
|
87
|
+
<td data-value="51" class="abs high">48/51</td>
|
88
|
+
<td data-value="82.6" class="pct high">82.6%</td>
|
89
|
+
<td data-value="23" class="abs high">19/23</td>
|
90
|
+
<td data-value="88.23" class="pct high">88.23%</td>
|
91
|
+
<td data-value="17" class="abs high">15/17</td>
|
92
|
+
<td data-value="93.87" class="pct high">93.87%</td>
|
93
|
+
<td data-value="49" class="abs high">46/49</td>
|
94
|
+
</tr>
|
95
|
+
|
96
|
+
<tr>
|
97
|
+
<td class="file high" data-value="options.ts"><a href="options.ts.html">options.ts</a></td>
|
98
|
+
<td data-value="100" class="pic high">
|
99
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
100
|
+
</td>
|
101
|
+
<td data-value="100" class="pct high">100%</td>
|
102
|
+
<td data-value="3" class="abs high">3/3</td>
|
103
|
+
<td data-value="100" class="pct high">100%</td>
|
104
|
+
<td data-value="0" class="abs high">0/0</td>
|
105
|
+
<td data-value="100" class="pct high">100%</td>
|
106
|
+
<td data-value="2" class="abs high">2/2</td>
|
107
|
+
<td data-value="100" class="pct high">100%</td>
|
108
|
+
<td data-value="3" class="abs high">3/3</td>
|
109
|
+
</tr>
|
110
|
+
|
111
|
+
<tr>
|
112
|
+
<td class="file high" data-value="stubs.ts"><a href="stubs.ts.html">stubs.ts</a></td>
|
113
|
+
<td data-value="95.45" class="pic high">
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 95%"></div><div class="cover-empty" style="width: 5%"></div></div>
|
85
115
|
</td>
|
86
|
-
<td data-value="
|
87
|
-
<td data-value="
|
88
|
-
<td data-value="83.
|
89
|
-
<td data-value="
|
90
|
-
<td data-value="
|
91
|
-
<td data-value="
|
92
|
-
<td data-value="
|
93
|
-
<td data-value="
|
116
|
+
<td data-value="95.45" class="pct high">95.45%</td>
|
117
|
+
<td data-value="22" class="abs high">21/22</td>
|
118
|
+
<td data-value="83.87" class="pct high">83.87%</td>
|
119
|
+
<td data-value="31" class="abs high">26/31</td>
|
120
|
+
<td data-value="100" class="pct high">100%</td>
|
121
|
+
<td data-value="5" class="abs high">5/5</td>
|
122
|
+
<td data-value="100" class="pct high">100%</td>
|
123
|
+
<td data-value="19" class="abs high">19/19</td>
|
94
124
|
</tr>
|
95
125
|
|
96
126
|
</tbody>
|
@@ -101,7 +131,7 @@
|
|
101
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
102
132
|
Code coverage generated by
|
103
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
104
|
-
at 2025-04-
|
134
|
+
at 2025-04-15T10:21:23.410Z
|
105
135
|
</div>
|
106
136
|
<script src="prettify.js"></script>
|
107
137
|
<script>
|
@@ -23,30 +23,30 @@
|
|
23
23
|
<div class='clearfix'>
|
24
24
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
26
|
-
<span class="strong">
|
26
|
+
<span class="strong">94.11% </span>
|
27
27
|
<span class="quiet">Statements</span>
|
28
|
-
<span class='fraction'>
|
28
|
+
<span class='fraction'>48/51</span>
|
29
29
|
</div>
|
30
30
|
|
31
31
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
33
|
-
<span class="strong">
|
33
|
+
<span class="strong">82.6% </span>
|
34
34
|
<span class="quiet">Branches</span>
|
35
|
-
<span class='fraction'>
|
35
|
+
<span class='fraction'>19/23</span>
|
36
36
|
</div>
|
37
37
|
|
38
38
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
40
|
-
<span class="strong">
|
40
|
+
<span class="strong">88.23% </span>
|
41
41
|
<span class="quiet">Functions</span>
|
42
|
-
<span class='fraction'>
|
42
|
+
<span class='fraction'>15/17</span>
|
43
43
|
</div>
|
44
44
|
|
45
45
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
47
|
-
<span class="strong">
|
47
|
+
<span class="strong">93.87% </span>
|
48
48
|
<span class="quiet">Lines</span>
|
49
|
-
<span class='fraction'>
|
49
|
+
<span class='fraction'>46/49</span>
|
50
50
|
</div>
|
51
51
|
|
52
52
|
|
@@ -103,7 +103,7 @@ Error: Unable to lookup source: /www/biorate/core/packages/@biorate/axios/src/fi
|
|
103
103
|
<div class='footer quiet pad2 space-top1 center small'>
|
104
104
|
Code coverage generated by
|
105
105
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
-
at 2025-04-
|
106
|
+
at 2025-04-15T10:21:23.410Z
|
107
107
|
</div>
|
108
108
|
<script src="prettify.js"></script>
|
109
109
|
<script>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for options.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="prettify.css" />
|
9
|
+
<link rel="stylesheet" href="base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="index.html">All files</a> options.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">100% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>3/3</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>2/2</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>3/3</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line high'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
78
|
+
<span class="cline-any cline-no">0</span>
|
79
|
+
<span class="cline-any cline-no">0</span>
|
80
|
+
<span class="cline-any cline-no">0</span>
|
81
|
+
<span class="cline-any cline-no">0</span>
|
82
|
+
<span class="cline-any cline-no">0</span>
|
83
|
+
<span class="cline-any cline-no">0</span>
|
84
|
+
<span class="cline-any cline-no">0</span>
|
85
|
+
<span class="cline-any cline-no">0</span>
|
86
|
+
<span class="cline-any cline-no">0</span>
|
87
|
+
<span class="cline-any cline-no">0</span>
|
88
|
+
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/options.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/options.ts')
|
89
|
+
Error: Unable to lookup source: /www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/options.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/options.ts')
|
90
|
+
at Context.defaultSourceLookup [as sourceFinder] (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/context.js:17:15)
|
91
|
+
at Context.getSource (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/context.js:71:21)
|
92
|
+
at annotateSourceCode (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/html/annotator.js:249:40)
|
93
|
+
at HtmlReport.onDetail (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/html/index.js:414:33)
|
94
|
+
at LcovReport.<computed> [as onDetail] (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/lcov/index.js:28:23)
|
95
|
+
at Visitor.value (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:38:38)
|
96
|
+
at ReportNode.visit (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:88:21)
|
97
|
+
at /www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:92:19
|
98
|
+
at Array.forEach (<anonymous>)
|
99
|
+
at ReportNode.visit (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:91:28)</pre></td></tr></table></pre>
|
100
|
+
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
102
|
+
</div><!-- /wrapper -->
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
104
|
+
Code coverage generated by
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
+
at 2025-04-15T10:21:23.410Z
|
107
|
+
</div>
|
108
|
+
<script src="prettify.js"></script>
|
109
|
+
<script>
|
110
|
+
window.onload = function () {
|
111
|
+
prettyPrint();
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script src="sorter.js"></script>
|
115
|
+
<script src="block-navigation.js"></script>
|
116
|
+
</body>
|
117
|
+
</html>
|
118
|
+
|
@@ -0,0 +1,118 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for stubs.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="prettify.css" />
|
9
|
+
<link rel="stylesheet" href="base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="index.html">All files</a> stubs.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">95.45% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>21/22</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">83.87% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>26/31</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>5/5</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>19/19</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
<template id="filterTemplate">
|
58
|
+
<div class="quiet">
|
59
|
+
Filter:
|
60
|
+
<input type="search" id="fileSearch">
|
61
|
+
</div>
|
62
|
+
</template>
|
63
|
+
</div>
|
64
|
+
<div class='status-line high'></div>
|
65
|
+
<pre><table class="coverage">
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
78
|
+
<span class="cline-any cline-no">0</span>
|
79
|
+
<span class="cline-any cline-no">0</span>
|
80
|
+
<span class="cline-any cline-no">0</span>
|
81
|
+
<span class="cline-any cline-no">0</span>
|
82
|
+
<span class="cline-any cline-no">0</span>
|
83
|
+
<span class="cline-any cline-no">0</span>
|
84
|
+
<span class="cline-any cline-no">0</span>
|
85
|
+
<span class="cline-any cline-no">0</span>
|
86
|
+
<span class="cline-any cline-no">0</span>
|
87
|
+
<span class="cline-any cline-no">0</span>
|
88
|
+
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/stubs.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/stubs.ts')
|
89
|
+
Error: Unable to lookup source: /www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/stubs.ts (ENOENT: no such file or directory, open '/www/biorate/core/packages/@biorate/axios/src/file:/www/biorate/core/packages/@biorate/axios/src/stubs.ts')
|
90
|
+
at Context.defaultSourceLookup [as sourceFinder] (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/context.js:17:15)
|
91
|
+
at Context.getSource (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/context.js:71:21)
|
92
|
+
at annotateSourceCode (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/html/annotator.js:249:40)
|
93
|
+
at HtmlReport.onDetail (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/html/index.js:414:33)
|
94
|
+
at LcovReport.<computed> [as onDetail] (/www/biorate/core/node_modules/.pnpm/istanbul-reports@3.1.7/node_modules/istanbul-reports/lib/lcov/index.js:28:23)
|
95
|
+
at Visitor.value (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:38:38)
|
96
|
+
at ReportNode.visit (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:88:21)
|
97
|
+
at /www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:92:19
|
98
|
+
at Array.forEach (<anonymous>)
|
99
|
+
at ReportNode.visit (/www/biorate/core/node_modules/.pnpm/istanbul-lib-report@3.0.1/node_modules/istanbul-lib-report/lib/tree.js:91:28)</pre></td></tr></table></pre>
|
100
|
+
|
101
|
+
<div class='push'></div><!-- for sticky footer -->
|
102
|
+
</div><!-- /wrapper -->
|
103
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
104
|
+
Code coverage generated by
|
105
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
106
|
+
at 2025-04-15T10:21:23.410Z
|
107
|
+
</div>
|
108
|
+
<script src="prettify.js"></script>
|
109
|
+
<script>
|
110
|
+
window.onload = function () {
|
111
|
+
prettyPrint();
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script src="sorter.js"></script>
|
115
|
+
<script src="block-navigation.js"></script>
|
116
|
+
</body>
|
117
|
+
</html>
|
118
|
+
|