source: imaps-frontend/node_modules/browserslist/browser.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.1 KB
Line 
1var BrowserslistError = require('./error')
2
3function noop() {}
4
5module.exports = {
6 loadQueries: function loadQueries() {
7 throw new BrowserslistError(
8 'Sharable configs are not supported in client-side build of Browserslist'
9 )
10 },
11
12 getStat: function getStat(opts) {
13 return opts.stats
14 },
15
16 loadConfig: function loadConfig(opts) {
17 if (opts.config) {
18 throw new BrowserslistError(
19 'Browserslist config are not supported in client-side build'
20 )
21 }
22 },
23
24 loadCountry: function loadCountry() {
25 throw new BrowserslistError(
26 'Country statistics are not supported ' +
27 'in client-side build of Browserslist'
28 )
29 },
30
31 loadFeature: function loadFeature() {
32 throw new BrowserslistError(
33 'Supports queries are not available in client-side build of Browserslist'
34 )
35 },
36
37 currentNode: function currentNode(resolve, context) {
38 return resolve(['maintained node versions'], context)[0]
39 },
40
41 parseConfig: noop,
42
43 readConfig: noop,
44
45 findConfig: noop,
46
47 clearCaches: noop,
48
49 oldDataWarning: noop,
50
51 env: {}
52}
Note: See TracBrowser for help on using the repository browser.