Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function ensureOriginOnExports(executed, moduleId) {
let target = executed;
let key;
let exportedValue;
if (target.__useDefault) {
target = target.default;
}
Origin.set(target, new Origin(moduleId, 'default'));
if (typeof target === 'object') {
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
Origin.set(exportedValue, new Origin(moduleId, key));
}
}
}
return executed;
}
function ensureOriginOnExports(moduleExports, moduleId) {
var target = moduleExports;
var key;
var exportedValue;
if (target.__useDefault) {
target = target.default;
}
aurelia_metadata_1.Origin.set(target, new aurelia_metadata_1.Origin(moduleId, 'default'));
if (typeof target === 'object') {
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
aurelia_metadata_1.Origin.set(exportedValue, new aurelia_metadata_1.Origin(moduleId, key));
}
}
}
return moduleExports;
}
exports.ensureOriginOnExports = ensureOriginOnExports;
function ensureOriginOnExports(executed, name) {
var target = executed;
var key = void 0;
var exportedValue = void 0;
if (target.__useDefault) {
target = target['default'];
}
_aureliaMetadata.Origin.set(target, new _aureliaMetadata.Origin(name, 'default'));
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
_aureliaMetadata.Origin.set(exportedValue, new _aureliaMetadata.Origin(name, key));
}
}
return executed;
}
export function ensureOriginOnExports(moduleExports, moduleId) {
let target = moduleExports;
let key;
let exportedValue;
if (target.__useDefault) {
target = target.default;
}
Origin.set(target, new Origin(moduleId, 'default'));
if (typeof target === 'object') {
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
Origin.set(exportedValue, new Origin(moduleId, key));
}
}
}
return moduleExports;
}
/**
function ensureOriginOnExports(executed, name) {
var target = executed;
var key = void 0;
var exportedValue = void 0;
if (target.__useDefault) {
target = target['default'];
}
_aureliaMetadata.Origin.set(target, new _aureliaMetadata.Origin(name, 'default'));
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
_aureliaMetadata.Origin.set(exportedValue, new _aureliaMetadata.Origin(name, key));
}
}
return executed;
}
function ensureOriginOnExports(executed, name) {
let target = executed;
let key;
let exportedValue;
if (target.__useDefault) {
target = target['default'];
}
Origin.set(target, new Origin(name, 'default'));
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
Origin.set(exportedValue, new Origin(name, key));
}
}
return executed;
}
function ensureOriginOnExports(executed, name) {
let target = executed;
let key;
let exportedValue;
if (target.__useDefault) {
target = target['default'];
}
Origin.set(target, new Origin(name, 'default'));
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
Origin.set(exportedValue, new Origin(name, key));
}
}
return executed;
}
export function ensureOriginOnExports(moduleExports, moduleId) {
let target = moduleExports;
let key;
let exportedValue;
if (target.__useDefault) {
target = target.default;
}
Origin.set(target, new Origin(moduleId, 'default'));
if (typeof target === 'object') {
for (key in target) {
exportedValue = target[key];
if (typeof exportedValue === 'function') {
Origin.set(exportedValue, new Origin(moduleId, key));
}
}
}
return moduleExports;
}
/**