Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getRefreshBoundarySignature(exports) {
var signature = [];
signature.push(Refresh.getFamilyByType(exports));
if (exports == null || typeof exports !== 'object') {
// Exit if we can't iterate over exports.
// (This is important for legacy environments.)
return signature;
}
for (var key in exports) {
if (key === '__esModule') {
continue;
}
var desc = Object.getOwnPropertyDescriptor(exports, key);
if (desc && desc.get) {
continue;
}
var exportValue = exports[key];
signature.push(key);
signature.push(Refresh.getFamilyByType(exportValue));
function getReactRefreshBoundarySignature(moduleExports) {
const signature = [];
signature.push(Refresh.getFamilyByType(moduleExports));
if (moduleExports == null || typeof moduleExports !== 'object') {
// Exit if we can't iterate over exports.
return signature;
}
for (var key in moduleExports) {
if (key === '__esModule') {
continue;
}
signature.push(key);
signature.push(Refresh.getFamilyByType(moduleExports[key]));
}
return signature;
}
if (exports == null || typeof exports !== 'object') {
// Exit if we can't iterate over exports.
// (This is important for legacy environments.)
return signature;
}
for (var key in exports) {
if (key === '__esModule') {
continue;
}
var desc = Object.getOwnPropertyDescriptor(exports, key);
if (desc && desc.get) {
continue;
}
var exportValue = exports[key];
signature.push(key);
signature.push(Refresh.getFamilyByType(exportValue));
}
return signature;
}
function getReactRefreshBoundarySignature(moduleExports) {
const signature = [];
signature.push(Refresh.getFamilyByType(moduleExports));
if (moduleExports == null || typeof moduleExports !== 'object') {
// Exit if we can't iterate over exports.
return signature;
}
for (var key in moduleExports) {
if (key === '__esModule') {
continue;
}
signature.push(key);
signature.push(Refresh.getFamilyByType(moduleExports[key]));
}
return signature;