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

MrSwitch / dare / #77

14 Jun 2026 12:08PM UTC coverage: 69.246% (-30.8%) from 100.0%
#77

push

web-flow
Merge pull request #458 from MrSwitch/next

fix(release): Version 100

339 of 499 branches covered (67.94%)

Branch coverage included in aggregate %.

487 of 512 new or added lines in 6 files covered. (95.12%)

1492 existing lines in 23 files now uncovered.

3437 of 4954 relevant lines covered (69.38%)

4.29 hits per line

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

16.0
/src/utils/JSONparse.js
1
// Prevent a bad format from killing the service, instead return undefined
9✔
2
export default value => {
9✔
UNCOV
3
        try {
×
UNCOV
4
                // Ensure Buffers are converted..
×
UNCOV
5
                if (Buffer.isBuffer(value)) {
×
UNCOV
6
                        value = value.toString();
×
UNCOV
7
                }
×
UNCOV
8

×
UNCOV
9
                // TODO: @legacy versions do not use JSON_ARRAY and so we pass the version here...
×
UNCOV
10
                if (typeof value !== 'string') {
×
UNCOV
11
                        return value;
×
UNCOV
12
                }
×
UNCOV
13

×
UNCOV
14
                return JSON.parse(
×
UNCOV
15
                        value
×
UNCOV
16
                                .replace(/\t/g, '\\t')
×
UNCOV
17
                                .replace(/\n/g, '\\n')
×
UNCOV
18
                                .replace(/\r/g, '\\r')
×
UNCOV
19
                                .replace(/\f/g, '\\f')
×
UNCOV
20
                );
×
UNCOV
21
        } catch {
×
UNCOV
22
                // Continue
×
UNCOV
23
        }
×
24
};
9✔
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