1 | 'use strict';
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.deprecated = deprecated;
|
5 | exports.warning = warning;
|
6 |
|
7 | var _env = require('./env');
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | function deprecated(props, instead, component) {
|
22 |
|
23 | if (!(0, _env.isProduction)() && typeof console !== 'undefined' && console.error) {
|
24 | return console.error('Warning: [ ' + props + ' ] is deprecated at [ ' + component + ' ], ' + ('use [ ' + instead + ' ] instead of it.'));
|
25 | }
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | function warning(msg) {
|
34 |
|
35 | if (!(0, _env.isProduction)() && typeof console !== 'undefined' && console.error) {
|
36 | return console.error('Warning: ' + msg);
|
37 | }
|
38 | } |
\ | No newline at end of file |