|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
551 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /* eslint-disable no-var, comma-dangle */
|
|---|
| 2 | var Reflect; // eslint-disable-line no-unused-vars
|
|---|
| 3 | var idObj;
|
|---|
| 4 |
|
|---|
| 5 | function checkIsNodeV6OrAbove() {
|
|---|
| 6 | if (typeof process === 'undefined') {
|
|---|
| 7 | return false;
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | return parseInt(process.versions.node.split('.')[0], 10) >= 6;
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | if (!checkIsNodeV6OrAbove()) {
|
|---|
| 14 | Reflect = require('harmony-reflect'); // eslint-disable-line global-require
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | idObj = new Proxy({}, {
|
|---|
| 18 | get: function getter(target, key) {
|
|---|
| 19 | if (key === '__esModule') {
|
|---|
| 20 | return false;
|
|---|
| 21 | }
|
|---|
| 22 | return key;
|
|---|
| 23 | }
|
|---|
| 24 | });
|
|---|
| 25 |
|
|---|
| 26 | module.exports = idObj;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.