• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GillianPerard / typescript-json-serializer / 7103250413

05 Dec 2023 03:55PM UTC coverage: 92.474%. Remained the same
7103250413

push

github

GillianPerard
build(deps): bump @babel/traverse from 7.14.7 to 7.23.2

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.14.7 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

325 of 360 branches covered (0.0%)

Branch coverage included in aggregate %.

1002 of 1075 relevant lines covered (93.21%)

237.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/json-object.ts
1
import { Reflection } from './reflection';
3✔
2

3✔
3
export interface JsonObjectMetadata {
3✔
4
    baseClassNames: Array<string>;
66✔
5
    constructorParams: Array<unknown>;
66✔
6
}
66✔
7

66✔
8
export interface JsonObjectOptions {
66✔
9
    constructorParams?: Array<unknown>;
3✔
10
}
3✔
11

3✔
12
const getBaseClassNames = (target: Object): Array<string> => {
3✔
13
    const baseClass = Reflection.getBaseClass(target);
3✔
14
    return baseClass && baseClass.name ? [...getBaseClassNames(baseClass), baseClass.name] : [];
3✔
15
};
67✔
16

67✔
17
export const JsonObject =
67✔
18
    (options?: JsonObjectOptions): Function =>
67✔
19
    (target: Object) => {
33✔
20
        const baseClassNames = getBaseClassNames(target);
3✔
21
        const constructorParams = options?.constructorParams ?? [];
34✔
22
        Reflection.setJsonObject({ baseClassNames, constructorParams }, target);
34✔
23
    };
34✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc