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

box / box-typescript-sdk-gen / 16225156987

11 Jul 2025 04:43PM UTC coverage: 42.399% (+0.3%) from 42.112%
16225156987

Pull #662

github

web-flow
Merge aa9b8a802 into 54c0f45aa
Pull Request #662: feat: Support common fields in Union in Java (box/box-codegen#758)

4430 of 18050 branches covered (24.54%)

Branch coverage included in aggregate %.

16152 of 30494 relevant lines covered (52.97%)

145.04 hits per line

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

66.67
/src/internal/logging.generated.ts
1
import { SerializedData } from '../serialization/json.js';
2
import { sanitizeMap } from './utils.js';
234✔
3
import { sanitizeSerializedData } from '../serialization/json.js';
234✔
4
export class DataSanitizer {
234✔
5
  private readonly keysToSanitize: {
40,057✔
6
    readonly [key: string]: string;
7
  } = {
8
    ['authorization']: '',
9
    ['access_token']: '',
10
    ['refresh_token']: '',
11
    ['subject_token']: '',
12
    ['token']: '',
13
    ['client_id']: '',
14
    ['client_secret']: '',
15
    ['shared_link']: '',
16
    ['download_url']: '',
17
    ['jwt_private_key']: '',
18
    ['jwt_private_key_passphrase']: '',
19
    ['password']: '',
20
  };
21
  constructor(
22
    fields: Omit<
23
      DataSanitizer,
24
      'keysToSanitize' | 'sanitizeHeaders' | 'sanitizeBody'
25
    >,
26
  ) {}
27
  /**
28
     * @param {{
29
        readonly [key: string]: string;
30
    }} headers
31
     * @returns {{
32
        readonly [key: string]: string;
33
    }}
34
     */
35
  sanitizeHeaders(headers: { readonly [key: string]: string }): {
36
    readonly [key: string]: string;
37
  } {
38
    return sanitizeMap(headers, this.keysToSanitize);
×
39
  }
40
  /**
41
   * @param {SerializedData} body
42
   * @returns {SerializedData}
43
   */
44
  sanitizeBody(body: SerializedData): SerializedData {
45
    return sanitizeSerializedData(body, this.keysToSanitize);
×
46
  }
47
}
48
export interface DataSanitizerInput {}
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

© 2026 Coveralls, Inc