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

visgl / loaders.gl / 24139120841

08 Apr 2026 01:53PM UTC coverage: 65.319% (+30.2%) from 35.137%
24139120841

push

github

web-flow
chore: Replace puppeteer with playwright (#3350)

14216 of 18890 branches covered (75.26%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

3248 existing lines in 369 files now uncovered.

73509 of 115413 relevant lines covered (63.69%)

5763.45 hits per line

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

83.78
/modules/loader-utils/src/json-loader.ts
1
import type {LoaderWithParser, LoaderOptions} from './loader-types';
1✔
2
import type {Table, TableBatch} from '@loaders.gl/schema';
1✔
3

1✔
4
// __VERSION__ is injected by babel-plugin-version-inline
1✔
UNCOV
5
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
×
6
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
1!
7

1✔
8
export type JSONLoaderOptions = LoaderOptions;
1✔
9

1✔
10
/**
1✔
11
 * A JSON Micro loader (minimal bundle size)
1✔
12
 * Alternative to `@loaders.gl/json`
1✔
13
 */
1✔
14
export const JSONLoader = {
1✔
15
  dataType: null as unknown as Table,
1✔
16
  batchType: null as unknown as TableBatch,
1✔
UNCOV
17
  name: 'JSON',
×
UNCOV
18
  id: 'json',
×
UNCOV
19
  module: 'json',
×
20
  version: VERSION,
1✔
21
  extensions: ['json', 'geojson'],
1✔
22
  mimeTypes: ['application/json'],
1✔
23
  category: 'json',
1✔
24
  text: true,
1✔
25
  parseTextSync,
1✔
26
  parse: async arrayBuffer => parseTextSync(new TextDecoder().decode(arrayBuffer)),
1✔
27
  options: {}
1✔
28
} as const satisfies LoaderWithParser<Table, TableBatch, JSONLoaderOptions>;
1✔
29

1✔
30
// TODO - Better error handling!
1✔
31
function parseTextSync(text) {
3✔
32
  return JSON.parse(text);
3✔
33
}
3✔
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