diff --git a/helpers/bundles.js b/helpers/bundles.js new file mode 100644 index 0000000..bb08733 --- /dev/null +++ b/helpers/bundles.js @@ -0,0 +1,13 @@ +export function supportedArchitectures ( appScan ) { + // if ( Array.isArray(appScan['Macho Meta']) ) { + // return appScan['Macho Meta'].map( architecture => architecture.processorType) + // } + + // console.log('meta', appScan['Macho Meta']) + + if ( appScan['Macho Meta'].architectures === undefined ) return [] + + return appScan['Macho Meta'].architectures + .map( architecture => architecture.processorType) + .filter(processorType => Number(processorType) !== 0) +}