Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | var BrowserslistError = require('./error')
|
---|
2 |
|
---|
3 | function noop () { }
|
---|
4 |
|
---|
5 | module.exports = {
|
---|
6 | loadQueries: function loadQueries () {
|
---|
7 | throw new BrowserslistError(
|
---|
8 | 'Sharable configs are not supported in client-side build of Browserslist')
|
---|
9 | },
|
---|
10 |
|
---|
11 | getStat: function getStat (opts) {
|
---|
12 | return opts.stats
|
---|
13 | },
|
---|
14 |
|
---|
15 | loadConfig: function loadConfig (opts) {
|
---|
16 | if (opts.config) {
|
---|
17 | throw new BrowserslistError(
|
---|
18 | 'Browserslist config are not supported in client-side build')
|
---|
19 | }
|
---|
20 | },
|
---|
21 |
|
---|
22 | loadCountry: function loadCountry () {
|
---|
23 | throw new BrowserslistError(
|
---|
24 | 'Country statistics are not supported ' +
|
---|
25 | 'in client-side build of Browserslist')
|
---|
26 | },
|
---|
27 |
|
---|
28 | loadFeature: function loadFeature () {
|
---|
29 | throw new BrowserslistError(
|
---|
30 | 'Supports queries are not available in client-side build of Browserslist')
|
---|
31 | },
|
---|
32 |
|
---|
33 | currentNode: function currentNode (resolve, context) {
|
---|
34 | return resolve(['maintained node versions'], context)[0]
|
---|
35 | },
|
---|
36 |
|
---|
37 | parseConfig: noop,
|
---|
38 |
|
---|
39 | readConfig: noop,
|
---|
40 |
|
---|
41 | findConfig: noop,
|
---|
42 |
|
---|
43 | clearCaches: noop,
|
---|
44 |
|
---|
45 | oldDataWarning: noop
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.