|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
875 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.warn = void 0;
|
|---|
| 7 | /* eslint no-console: 0 */
|
|---|
| 8 | var isDev = true;
|
|---|
| 9 | var warn = exports.warn = function warn(condition, format) {
|
|---|
| 10 | for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|---|
| 11 | args[_key - 2] = arguments[_key];
|
|---|
| 12 | }
|
|---|
| 13 | if (isDev && typeof console !== 'undefined' && console.warn) {
|
|---|
| 14 | if (format === undefined) {
|
|---|
| 15 | console.warn('LogUtils requires an error message argument');
|
|---|
| 16 | }
|
|---|
| 17 | if (!condition) {
|
|---|
| 18 | if (format === undefined) {
|
|---|
| 19 | console.warn('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
|---|
| 20 | } else {
|
|---|
| 21 | var argIndex = 0;
|
|---|
| 22 | console.warn(format.replace(/%s/g, () => args[argIndex++]));
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
| 26 | }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.