mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
e9e4552658
* refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * chore: fix lint * chore: add missing folder * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * chore: update scripts * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin * refactor: relocate theme-ui as plugin
29 lines
509 B
JavaScript
29 lines
509 B
JavaScript
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
let Reflect;
|
|
let idObj;
|
|
|
|
function checkIsNodeV6OrAbove() {
|
|
if (typeof process === 'undefined') {
|
|
return false;
|
|
}
|
|
|
|
return parseInt(process.versions.node.split('.')[0], 10) >= 6;
|
|
}
|
|
|
|
if (!checkIsNodeV6OrAbove()) {
|
|
Reflect = require('harmony-reflect');
|
|
}
|
|
|
|
idObj = new Proxy(
|
|
{},
|
|
{
|
|
get: function getter(target, key) {
|
|
if (key === '__esModule') {
|
|
return false;
|
|
}
|
|
return key;
|
|
},
|
|
}
|
|
);
|
|
|
|
module.exports = idObj;
|