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

GillianPerard / typescript-json-serializer / 10633419962

30 Aug 2024 01:19PM UTC coverage: 92.474%. Remained the same
10633419962

Pull #226

github

web-flow
build(deps): bump micromatch from 4.0.4 to 4.0.8

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.4...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #226: build(deps): bump micromatch from 4.0.4 to 4.0.8

325 of 360 branches covered (90.28%)

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