@cryptexlabs/codex-nodejs-common 0.16.4 → 0.16.6
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/WARP.md +28 -0
- package/coverage/clover.xml +102 -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/client/client.ts.html +121 -0
- package/coverage/lcov-report/client/index.html +116 -0
- package/coverage/lcov-report/context/context.builder.ts.html +685 -0
- package/coverage/lcov-report/context/index.html +116 -0
- package/coverage/lcov-report/favicon.png +0 -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.info +160 -0
- package/lib/package.json +2 -2
- package/lib/src/auth/authf.guard.d.ts +1 -0
- package/lib/src/auth/authf.guard.js +22 -11
- package/lib/src/auth/authf.guard.js.map +1 -1
- package/lib/src/client/client.d.ts +1 -0
- package/lib/src/client/client.js.map +1 -1
- package/lib/src/config/default-config.d.ts +1 -0
- package/lib/src/config/default-config.js +5 -0
- package/lib/src/config/default-config.js.map +1 -1
- package/lib/src/context/context.builder.d.ts +1 -0
- package/lib/src/context/context.builder.js +12 -0
- package/lib/src/context/context.builder.js.map +1 -1
- package/lib/src/filter/app-http-exception-filter.d.ts +4 -1
- package/lib/src/filter/app-http-exception-filter.js +51 -29
- package/lib/src/filter/app-http-exception-filter.js.map +1 -1
- package/package.json +2 -2
- package/src/auth/authf.guard.ts +26 -11
- package/src/client/client.spec.ts +17 -0
- package/src/client/client.ts +2 -0
- package/src/config/default-config.ts +6 -0
- package/src/context/context.builder.spec.ts +231 -0
- package/src/context/context.builder.ts +13 -0
- package/src/filter/app-http-exception-filter.ts +67 -36
package/WARP.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# WARP.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to WARP (warp.dev) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
- Use Node `20.11.1` from `.nvmrc` (`nvm use`).
|
|
7
|
+
- Install deps: `yarn install` (postinstall runs `install-peers` to align peer deps).
|
|
8
|
+
- Lint: `yarn lint`; format check/fix: `yarn prettier`, `yarn prettier:fix`.
|
|
9
|
+
- Tests: `yarn test`; single test: `yarn test --testPathPattern=src/auth/authf.guard.spec.ts`; watch: `yarn test --watch`; coverage: `yarn test --coverage`.
|
|
10
|
+
- Build: `yarn build` (cleans `lib/src`, emits CJS + d.ts to `lib/src`); clean: `yarn clean`.
|
|
11
|
+
- Husky pre-commit runs prettier → lint → test → build; expect the hook to be slow on cold installs.
|
|
12
|
+
|
|
13
|
+
## Repository structure & architecture
|
|
14
|
+
- TypeScript library compiled to `lib/src`; entry point is `src/index.ts` exporting modules for auth, config, context, logging, messaging, middleware, services, and utilities.
|
|
15
|
+
- Configuration core (`src/config`): `DefaultConfig` loads `.env` plus YAML config (`config/server.yaml`, `SERVER_CONFIG_PATH`, or `SERVER_CONFIG_PATTERN`), merges with `merge-anything`, and optionally hot-reloads via filesystem watchers (`SERVER_CONFIG_HOT_RELOAD`). Exposes typed configs for Kafka, JWT, Redis, SQL, telemetry, logging, metrics, pagination, and xray; DI token `"CONFIG"` is consumed across guards/services and also supplies client identity fields (`appName`, `appVersion`, `environmentName`, `clientId`).
|
|
16
|
+
- Context & logging (`src/context`, `src/logger`, `src/message`): `ContextBuilder` assembles per-request `Context` with correlation ID, locale (`src/locales`), client info via `ServiceClient`, and `MessageMeta` creation. Logging flows through `ContextLogger` and `CustomLogger`, which wrap NestJS `Logger` with context filtering and correlation metadata. `JsonSerializableInterface` standardizes serialization for config- and client-aware objects.
|
|
17
|
+
- Authentication/authorization (`src/auth`): `AuthfGuard` (Nest `CanActivate`) validates JWTs against the Authf service by periodically refreshing JWK→PEM keys and polling a subject blacklist; HTTP authz helpers manage attach/detach/list object relations. Includes authenticator interfaces and a `FakeAuthenticator` for tests. Guard toggles respect `DefaultConfig.authEnabled` and `authfUrl`.
|
|
18
|
+
- Services layer (`src/service`): reusable infrastructure blocks—`kafka` (producer/consumer wrapper, logger, replay support, stubs), `consumer` (delegate interfaces, WebSocket consumer, helper utils), `elasticsearch` (initializer, pinger, health checks), `healthz` (component registry and aggregator), plus socket/data abstractions.
|
|
19
|
+
- HTTP integration (`src/middleware`, `src/filter`, `src/pipe`, `src/exception`, `src/response`, `src/result`): middleware for API header validation and query authorization; exception/filters adapt domain errors to HTTP responses; pipes/validators; response helpers for uniform REST payloads including meta/pagination (`rest.response`, `rest.paginated.response`, interceptors) with pagination helpers in `src/result`.
|
|
20
|
+
- Internationalization (`src/locales`): default `en-US` strings plus language/country enums; leveraged by `Context`/`MessageMeta` to stamp locale-aware metadata.
|
|
21
|
+
|
|
22
|
+
## Testing notes
|
|
23
|
+
- Jest config lives in `package.json` (rootDir `src`, `*.spec.ts`, `ts-jest`). Specs sit beside sources (e.g., `src/auth/http-authz.*.spec.ts`, `src/service/healthz/healthz.service.spec.ts`). `tsconfig.json` excludes specs from the build output.
|
|
24
|
+
- Tests commonly mock collaborators with `ts-mockito`; follow existing patterns when adding new specs.
|
|
25
|
+
|
|
26
|
+
## Misc
|
|
27
|
+
- Module resolution base is `src` (tsconfig `baseUrl`), so prefer absolute imports from the repo root over long relative paths.
|
|
28
|
+
- Build artifacts (`lib/src`) provide both JS and d.ts; `package.json` `main`/`types` point there, so run `yarn build` before publishing or linking locally.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<coverage generated="1769081976865" clover="3.2.0">
|
|
3
|
+
<project timestamp="1769081976865" name="All files">
|
|
4
|
+
<metrics statements="84" coveredstatements="84" conditionals="24" coveredconditionals="24" methods="17" coveredmethods="17" elements="125" coveredelements="125" complexity="0" loc="84" ncloc="84" packages="2" files="2" classes="2"/>
|
|
5
|
+
<package name="client">
|
|
6
|
+
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
7
|
+
<file name="client.ts" path="/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/client/client.ts">
|
|
8
|
+
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
9
|
+
<line num="3" count="3" type="stmt"/>
|
|
10
|
+
<line num="7" count="1" type="stmt"/>
|
|
11
|
+
<line num="8" count="1" type="stmt"/>
|
|
12
|
+
<line num="9" count="1" type="stmt"/>
|
|
13
|
+
<line num="10" count="1" type="stmt"/>
|
|
14
|
+
</file>
|
|
15
|
+
</package>
|
|
16
|
+
<package name="context">
|
|
17
|
+
<metrics statements="79" coveredstatements="79" conditionals="24" coveredconditionals="24" methods="16" coveredmethods="16"/>
|
|
18
|
+
<file name="context.builder.ts" path="/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/context/context.builder.ts">
|
|
19
|
+
<metrics statements="79" coveredstatements="79" conditionals="24" coveredconditionals="24" methods="16" coveredmethods="16"/>
|
|
20
|
+
<line num="1" count="2" type="stmt"/>
|
|
21
|
+
<line num="2" count="2" type="stmt"/>
|
|
22
|
+
<line num="11" count="2" type="stmt"/>
|
|
23
|
+
<line num="12" count="2" type="stmt"/>
|
|
24
|
+
<line num="13" count="2" type="stmt"/>
|
|
25
|
+
<line num="14" count="2" type="stmt"/>
|
|
26
|
+
<line num="15" count="2" type="stmt"/>
|
|
27
|
+
<line num="18" count="2" type="stmt"/>
|
|
28
|
+
<line num="27" count="11" type="stmt"/>
|
|
29
|
+
<line num="28" count="11" type="stmt"/>
|
|
30
|
+
<line num="29" count="11" type="stmt"/>
|
|
31
|
+
<line num="30" count="11" type="stmt"/>
|
|
32
|
+
<line num="31" count="11" type="stmt"/>
|
|
33
|
+
<line num="35" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
34
|
+
<line num="36" count="1" type="stmt"/>
|
|
35
|
+
<line num="38" count="2" type="stmt"/>
|
|
36
|
+
<line num="42" count="2" type="stmt"/>
|
|
37
|
+
<line num="46" count="1" type="stmt"/>
|
|
38
|
+
<line num="65" count="1" type="stmt"/>
|
|
39
|
+
<line num="66" count="1" type="stmt"/>
|
|
40
|
+
<line num="72" count="2" type="stmt"/>
|
|
41
|
+
<line num="73" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
42
|
+
<line num="74" count="2" type="stmt"/>
|
|
43
|
+
<line num="76" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
44
|
+
<line num="77" count="2" type="stmt"/>
|
|
45
|
+
<line num="79" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
46
|
+
<line num="80" count="2" type="stmt"/>
|
|
47
|
+
<line num="82" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
48
|
+
<line num="83" count="2" type="stmt"/>
|
|
49
|
+
<line num="86" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
50
|
+
<line num="88" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
51
|
+
<line num="89" count="1" type="stmt"/>
|
|
52
|
+
<line num="91" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
53
|
+
<line num="92" count="1" type="stmt"/>
|
|
54
|
+
<line num="94" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
55
|
+
<line num="95" count="1" type="stmt"/>
|
|
56
|
+
<line num="97" count="2" type="cond" truecount="1" falsecount="0"/>
|
|
57
|
+
<line num="98" count="1" type="stmt"/>
|
|
58
|
+
<line num="101" count="2" type="stmt"/>
|
|
59
|
+
<line num="107" count="3" type="stmt"/>
|
|
60
|
+
<line num="108" count="3" type="stmt"/>
|
|
61
|
+
<line num="109" count="3" type="stmt"/>
|
|
62
|
+
<line num="110" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
63
|
+
<line num="111" count="3" type="stmt"/>
|
|
64
|
+
<line num="113" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
65
|
+
<line num="114" count="3" type="stmt"/>
|
|
66
|
+
<line num="116" count="3" type="cond" truecount="1" falsecount="0"/>
|
|
67
|
+
<line num="117" count="2" type="stmt"/>
|
|
68
|
+
<line num="119" count="3" type="stmt"/>
|
|
69
|
+
<line num="123" count="1" type="stmt"/>
|
|
70
|
+
<line num="124" count="1" type="stmt"/>
|
|
71
|
+
<line num="125" count="1" type="stmt"/>
|
|
72
|
+
<line num="126" count="1" type="stmt"/>
|
|
73
|
+
<line num="127" count="1" type="stmt"/>
|
|
74
|
+
<line num="128" count="1" type="stmt"/>
|
|
75
|
+
<line num="132" count="1" type="stmt"/>
|
|
76
|
+
<line num="133" count="1" type="stmt"/>
|
|
77
|
+
<line num="134" count="1" type="stmt"/>
|
|
78
|
+
<line num="135" count="1" type="stmt"/>
|
|
79
|
+
<line num="139" count="6" type="stmt"/>
|
|
80
|
+
<line num="140" count="6" type="stmt"/>
|
|
81
|
+
<line num="144" count="6" type="stmt"/>
|
|
82
|
+
<line num="145" count="6" type="stmt"/>
|
|
83
|
+
<line num="149" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
84
|
+
<line num="150" count="5" type="stmt"/>
|
|
85
|
+
<line num="152" count="1" type="stmt"/>
|
|
86
|
+
<line num="154" count="6" type="stmt"/>
|
|
87
|
+
<line num="158" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
88
|
+
<line num="162" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
89
|
+
<line num="166" count="22" type="cond" truecount="2" falsecount="0"/>
|
|
90
|
+
<line num="170" count="11" type="stmt"/>
|
|
91
|
+
<line num="171" count="11" type="stmt"/>
|
|
92
|
+
<line num="172" count="11" type="stmt"/>
|
|
93
|
+
<line num="178" count="11" type="stmt"/>
|
|
94
|
+
<line num="190" count="11" type="cond" truecount="1" falsecount="0"/>
|
|
95
|
+
<line num="191" count="2" type="stmt"/>
|
|
96
|
+
<line num="194" count="11" type="cond" truecount="1" falsecount="0"/>
|
|
97
|
+
<line num="195" count="1" type="stmt"/>
|
|
98
|
+
<line num="198" count="11" type="stmt"/>
|
|
99
|
+
</file>
|
|
100
|
+
</package>
|
|
101
|
+
</project>
|
|
102
|
+
</coverage>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/client/client.ts": {"path":"/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/client/client.ts","statementMap":{"0":{"start":{"line":7,"column":20},"end":{"line":7,"column":30}},"1":{"start":{"line":8,"column":20},"end":{"line":8,"column":35}},"2":{"start":{"line":9,"column":20},"end":{"line":9,"column":32}},"3":{"start":{"line":10,"column":20},"end":{"line":10,"column":35}},"4":{"start":{"line":3,"column":0},"end":{"line":3,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":null}},"loc":{"start":{"line":10,"column":35},"end":{"line":11,"column":6}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":3},"f":{"0":1},"b":{}}
|
|
2
|
+
,"/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/context/context.builder.ts": {"path":"/Users/b.woodcock/Projects/OpenSource/CryptexLabs/codex-nodejs-common/src/context/context.builder.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":null}},"2":{"start":{"line":11,"column":0},"end":{"line":11,"column":42}},"3":{"start":{"line":12,"column":0},"end":{"line":12,"column":36}},"4":{"start":{"line":13,"column":0},"end":{"line":13,"column":36}},"5":{"start":{"line":14,"column":0},"end":{"line":14,"column":37}},"6":{"start":{"line":15,"column":0},"end":{"line":15,"column":28}},"7":{"start":{"line":18,"column":27},"end":{"line":200,"column":null}},"8":{"start":{"line":27,"column":21},"end":{"line":27,"column":42}},"9":{"start":{"line":28,"column":21},"end":{"line":28,"column":29}},"10":{"start":{"line":29,"column":11},"end":{"line":29,"column":19}},"11":{"start":{"line":30,"column":21},"end":{"line":30,"column":60}},"12":{"start":{"line":31,"column":12},"end":{"line":31,"column":30}},"13":{"start":{"line":35,"column":4},"end":{"line":37,"column":5}},"14":{"start":{"line":36,"column":6},"end":{"line":36,"column":23}},"15":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"16":{"start":{"line":42,"column":4},"end":{"line":42,"column":20}},"17":{"start":{"line":46,"column":4},"end":{"line":61,"column":6}},"18":{"start":{"line":65,"column":4},"end":{"line":65,"column":29}},"19":{"start":{"line":66,"column":4},"end":{"line":66,"column":16}},"20":{"start":{"line":72,"column":4},"end":{"line":72,"column":50}},"21":{"start":{"line":73,"column":4},"end":{"line":75,"column":5}},"22":{"start":{"line":74,"column":6},"end":{"line":74,"column":56}},"23":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"24":{"start":{"line":77,"column":6},"end":{"line":77,"column":46}},"25":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"26":{"start":{"line":80,"column":6},"end":{"line":80,"column":50}},"27":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"28":{"start":{"line":83,"column":6},"end":{"line":83,"column":56}},"29":{"start":{"line":86,"column":6},"end":{"line":87,"column":78}},"30":{"start":{"line":88,"column":4},"end":{"line":90,"column":5}},"31":{"start":{"line":89,"column":6},"end":{"line":89,"column":36}},"32":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"33":{"start":{"line":92,"column":6},"end":{"line":92,"column":46}},"34":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"35":{"start":{"line":95,"column":6},"end":{"line":95,"column":45}},"36":{"start":{"line":97,"column":4},"end":{"line":99,"column":5}},"37":{"start":{"line":98,"column":6},"end":{"line":98,"column":45}},"38":{"start":{"line":101,"column":4},"end":{"line":101,"column":16}},"39":{"start":{"line":107,"column":4},"end":{"line":107,"column":55}},"40":{"start":{"line":108,"column":4},"end":{"line":108,"column":79}},"41":{"start":{"line":109,"column":4},"end":{"line":109,"column":42}},"42":{"start":{"line":110,"column":4},"end":{"line":112,"column":5}},"43":{"start":{"line":111,"column":6},"end":{"line":111,"column":67}},"44":{"start":{"line":113,"column":4},"end":{"line":115,"column":5}},"45":{"start":{"line":114,"column":6},"end":{"line":114,"column":55}},"46":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"47":{"start":{"line":117,"column":6},"end":{"line":117,"column":46}},"48":{"start":{"line":119,"column":4},"end":{"line":119,"column":16}},"49":{"start":{"line":123,"column":4},"end":{"line":123,"column":49}},"50":{"start":{"line":124,"column":4},"end":{"line":124,"column":35}},"51":{"start":{"line":125,"column":4},"end":{"line":125,"column":37}},"52":{"start":{"line":126,"column":4},"end":{"line":126,"column":67}},"53":{"start":{"line":127,"column":4},"end":{"line":127,"column":55}},"54":{"start":{"line":128,"column":4},"end":{"line":128,"column":16}},"55":{"start":{"line":132,"column":4},"end":{"line":132,"column":46}},"56":{"start":{"line":133,"column":4},"end":{"line":133,"column":74}},"57":{"start":{"line":134,"column":4},"end":{"line":134,"column":39}},"58":{"start":{"line":135,"column":4},"end":{"line":135,"column":16}},"59":{"start":{"line":139,"column":4},"end":{"line":139,"column":39}},"60":{"start":{"line":140,"column":4},"end":{"line":140,"column":16}},"61":{"start":{"line":144,"column":4},"end":{"line":144,"column":62}},"62":{"start":{"line":145,"column":4},"end":{"line":145,"column":16}},"63":{"start":{"line":149,"column":4},"end":{"line":153,"column":5}},"64":{"start":{"line":150,"column":6},"end":{"line":150,"column":36}},"65":{"start":{"line":152,"column":6},"end":{"line":152,"column":26}},"66":{"start":{"line":154,"column":4},"end":{"line":154,"column":16}},"67":{"start":{"line":158,"column":4},"end":{"line":158,"column":38}},"68":{"start":{"line":162,"column":4},"end":{"line":162,"column":42}},"69":{"start":{"line":166,"column":4},"end":{"line":166,"column":49}},"70":{"start":{"line":170,"column":25},"end":{"line":170,"column":35}},"71":{"start":{"line":171,"column":18},"end":{"line":171,"column":35}},"72":{"start":{"line":172,"column":4},"end":{"line":176,"column":7}},"73":{"start":{"line":178,"column":20},"end":{"line":187,"column":null}},"74":{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},"75":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"76":{"start":{"line":194,"column":4},"end":{"line":196,"column":5}},"77":{"start":{"line":195,"column":6},"end":{"line":195,"column":42}},"78":{"start":{"line":198,"column":4},"end":{"line":198,"column":19}},"79":{"start":{"line":18,"column":13},"end":{"line":18,"column":27}},"80":{"start":{"line":18,"column":13},"end":{"line":200,"column":null}}},"fnMap":{"0":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":null}},"loc":{"start":{"line":31,"column":30},"end":{"line":32,"column":6}}},"1":{"name":"(anonymous_3)","decl":{"start":{"line":34,"column":9},"end":{"line":34,"column":12}},"loc":{"start":{"line":34,"column":12},"end":{"line":39,"column":3}}},"2":{"name":"(anonymous_4)","decl":{"start":{"line":41,"column":9},"end":{"line":41,"column":15}},"loc":{"start":{"line":41,"column":25},"end":{"line":43,"column":3}}},"3":{"name":"(anonymous_5)","decl":{"start":{"line":45,"column":9},"end":{"line":45,"column":14}},"loc":{"start":{"line":45,"column":14},"end":{"line":62,"column":3}}},"4":{"name":"(anonymous_6)","decl":{"start":{"line":64,"column":9},"end":{"line":64,"column":20}},"loc":{"start":{"line":64,"column":38},"end":{"line":67,"column":3}}},"5":{"name":"(anonymous_7)","decl":{"start":{"line":69,"column":9},"end":{"line":69,"column":27}},"loc":{"start":{"line":70,"column":69},"end":{"line":102,"column":3}}},"6":{"name":"(anonymous_8)","decl":{"start":{"line":104,"column":9},"end":{"line":104,"column":40}},"loc":{"start":{"line":105,"column":69},"end":{"line":120,"column":3}}},"7":{"name":"(anonymous_9)","decl":{"start":{"line":122,"column":9},"end":{"line":122,"column":27}},"loc":{"start":{"line":122,"column":44},"end":{"line":129,"column":3}}},"8":{"name":"(anonymous_10)","decl":{"start":{"line":131,"column":9},"end":{"line":131,"column":16}},"loc":{"start":{"line":131,"column":43},"end":{"line":136,"column":3}}},"9":{"name":"(anonymous_11)","decl":{"start":{"line":138,"column":9},"end":{"line":138,"column":25}},"loc":{"start":{"line":138,"column":47},"end":{"line":141,"column":3}}},"10":{"name":"(anonymous_12)","decl":{"start":{"line":143,"column":9},"end":{"line":143,"column":18}},"loc":{"start":{"line":143,"column":42},"end":{"line":146,"column":3}}},"11":{"name":"(anonymous_13)","decl":{"start":{"line":148,"column":9},"end":{"line":148,"column":19}},"loc":{"start":{"line":148,"column":39},"end":{"line":155,"column":3}}},"12":{"name":"(anonymous_14)","decl":{"start":{"line":157,"column":10},"end":{"line":157,"column":21}},"loc":{"start":{"line":157,"column":21},"end":{"line":159,"column":3}}},"13":{"name":"(anonymous_15)","decl":{"start":{"line":161,"column":10},"end":{"line":161,"column":27}},"loc":{"start":{"line":161,"column":27},"end":{"line":163,"column":3}}},"14":{"name":"(anonymous_16)","decl":{"start":{"line":165,"column":10},"end":{"line":165,"column":20}},"loc":{"start":{"line":165,"column":20},"end":{"line":167,"column":3}}},"15":{"name":"(anonymous_17)","decl":{"start":{"line":169,"column":9},"end":{"line":169,"column":18}},"loc":{"start":{"line":169,"column":18},"end":{"line":199,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":35,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":37,"column":5}}]},"1":{"loc":{"start":{"line":73,"column":4},"end":{"line":75,"column":5}},"type":"if","locations":[{"start":{"line":73,"column":4},"end":{"line":75,"column":5}}]},"2":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":5}}]},"3":{"loc":{"start":{"line":79,"column":4},"end":{"line":81,"column":5}},"type":"if","locations":[{"start":{"line":79,"column":4},"end":{"line":81,"column":5}}]},"4":{"loc":{"start":{"line":82,"column":4},"end":{"line":84,"column":5}},"type":"if","locations":[{"start":{"line":82,"column":4},"end":{"line":84,"column":5}}]},"5":{"loc":{"start":{"line":86,"column":6},"end":{"line":87,"column":78}},"type":"binary-expr","locations":[{"start":{"line":86,"column":6},"end":{"line":86,"column":27}},{"start":{"line":87,"column":7},"end":{"line":87,"column":78}}]},"6":{"loc":{"start":{"line":88,"column":4},"end":{"line":90,"column":5}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":90,"column":5}}]},"7":{"loc":{"start":{"line":91,"column":4},"end":{"line":93,"column":5}},"type":"if","locations":[{"start":{"line":91,"column":4},"end":{"line":93,"column":5}}]},"8":{"loc":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"type":"if","locations":[{"start":{"line":94,"column":4},"end":{"line":96,"column":5}}]},"9":{"loc":{"start":{"line":97,"column":4},"end":{"line":99,"column":5}},"type":"if","locations":[{"start":{"line":97,"column":4},"end":{"line":99,"column":5}}]},"10":{"loc":{"start":{"line":110,"column":4},"end":{"line":112,"column":5}},"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":112,"column":5}}]},"11":{"loc":{"start":{"line":113,"column":4},"end":{"line":115,"column":5}},"type":"if","locations":[{"start":{"line":113,"column":4},"end":{"line":115,"column":5}}]},"12":{"loc":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":118,"column":5}}]},"13":{"loc":{"start":{"line":149,"column":4},"end":{"line":153,"column":5}},"type":"if","locations":[{"start":{"line":149,"column":4},"end":{"line":153,"column":5}},{"start":{"line":151,"column":11},"end":{"line":153,"column":5}}]},"14":{"loc":{"start":{"line":158,"column":11},"end":{"line":158,"column":37}},"type":"binary-expr","locations":[{"start":{"line":158,"column":11},"end":{"line":158,"column":23}},{"start":{"line":158,"column":27},"end":{"line":158,"column":37}}]},"15":{"loc":{"start":{"line":162,"column":11},"end":{"line":162,"column":41}},"type":"binary-expr","locations":[{"start":{"line":162,"column":11},"end":{"line":162,"column":29}},{"start":{"line":162,"column":33},"end":{"line":162,"column":41}}]},"16":{"loc":{"start":{"line":166,"column":11},"end":{"line":166,"column":48}},"type":"binary-expr","locations":[{"start":{"line":166,"column":11},"end":{"line":166,"column":22}},{"start":{"line":166,"column":26},"end":{"line":166,"column":48}}]},"17":{"loc":{"start":{"line":190,"column":4},"end":{"line":192,"column":5}},"type":"if","locations":[{"start":{"line":190,"column":4},"end":{"line":192,"column":5}}]},"18":{"loc":{"start":{"line":194,"column":4},"end":{"line":196,"column":5}},"type":"if","locations":[{"start":{"line":194,"column":4},"end":{"line":196,"column":5}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":11,"9":11,"10":11,"11":11,"12":11,"13":3,"14":1,"15":2,"16":2,"17":1,"18":1,"19":1,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":2,"29":2,"30":2,"31":1,"32":2,"33":1,"34":2,"35":1,"36":2,"37":1,"38":2,"39":3,"40":3,"41":3,"42":3,"43":3,"44":3,"45":3,"46":3,"47":2,"48":3,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":6,"60":6,"61":6,"62":6,"63":6,"64":5,"65":1,"66":6,"67":11,"68":11,"69":22,"70":11,"71":11,"72":11,"73":11,"74":11,"75":2,"76":11,"77":1,"78":11,"79":2,"80":2},"f":{"0":11,"1":3,"2":2,"3":1,"4":1,"5":2,"6":3,"7":1,"8":1,"9":6,"10":6,"11":6,"12":11,"13":11,"14":22,"15":11},"b":{"0":[1],"1":[2],"2":[2],"3":[2],"4":[2],"5":[2,1],"6":[1],"7":[1],"8":[1],"9":[1],"10":[3],"11":[3],"12":[2],"13":[5,1],"14":[11,5],"15":[11,2],"16":[22,10],"17":[2],"18":[1]}}
|
|
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);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for client/client.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> / <a href="index.html">client</a> client.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'>5/5</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'>1/1</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'>5/5</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>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
79
|
+
<span class="cline-any cline-neutral"> </span>
|
|
80
|
+
<span class="cline-any cline-yes">3x</span>
|
|
81
|
+
<span class="cline-any cline-neutral"> </span>
|
|
82
|
+
<span class="cline-any cline-neutral"> </span>
|
|
83
|
+
<span class="cline-any cline-neutral"> </span>
|
|
84
|
+
<span class="cline-any cline-yes">1x</span>
|
|
85
|
+
<span class="cline-any cline-yes">1x</span>
|
|
86
|
+
<span class="cline-any cline-yes">1x</span>
|
|
87
|
+
<span class="cline-any cline-yes">1x</span>
|
|
88
|
+
<span class="cline-any cline-neutral"> </span>
|
|
89
|
+
<span class="cline-any cline-neutral"> </span>
|
|
90
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { ClientInterface } from "@cryptexlabs/codex-data-model";
|
|
91
|
+
|
|
92
|
+
export class Client implements ClientInterface {
|
|
93
|
+
public agent?: string;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
public readonly id: string,
|
|
97
|
+
public readonly version: string,
|
|
98
|
+
public readonly name: string,
|
|
99
|
+
public readonly variant: string
|
|
100
|
+
) {}
|
|
101
|
+
}
|
|
102
|
+
</pre></td></tr></table></pre>
|
|
103
|
+
|
|
104
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
105
|
+
</div><!-- /wrapper -->
|
|
106
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
107
|
+
Code coverage generated by
|
|
108
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
109
|
+
at 2026-01-22T11:39:36.855Z
|
|
110
|
+
</div>
|
|
111
|
+
<script src="../prettify.js"></script>
|
|
112
|
+
<script>
|
|
113
|
+
window.onload = function () {
|
|
114
|
+
prettyPrint();
|
|
115
|
+
};
|
|
116
|
+
</script>
|
|
117
|
+
<script src="../sorter.js"></script>
|
|
118
|
+
<script src="../block-navigation.js"></script>
|
|
119
|
+
</body>
|
|
120
|
+
</html>
|
|
121
|
+
|