|
Last change
on this file since e4c61dd was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
1.1 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 |
|
|---|
| 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 | findConfigFile: noop,
|
|---|
| 48 |
|
|---|
| 49 | clearCaches: noop,
|
|---|
| 50 |
|
|---|
| 51 | oldDataWarning: noop,
|
|---|
| 52 |
|
|---|
| 53 | env: {}
|
|---|
| 54 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.