mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01: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
30 lines
509 B
JavaScript
30 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;
|