From b68d6f12f651be188036e85e365986a722ce2c1a Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 18 Jul 2022 18:05:44 -0500 Subject: [PATCH] Fix typo --- helpers/scanner/client.js | 7 ++++--- helpers/scanner/parsers/macho.js | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/helpers/scanner/client.js b/helpers/scanner/client.js index 7019692..3f13650 100644 --- a/helpers/scanner/client.js +++ b/helpers/scanner/client.js @@ -5,7 +5,7 @@ import prettyBytes from 'pretty-bytes' import FileApi, { File } from 'file-api' import { isString } from '~/helpers/check-types.js' -import { extraMachoMeta } from '~/helpers/scanner/parsers/macho.js' +import { extractMachoMeta } from '~/helpers/scanner/parsers/macho.js' // For some reason inline 'import()' works better than 'import from' // https://gildas-lormeau.github.io/zip.js/ @@ -250,8 +250,9 @@ export class AppScan { buffer: bundleExecutableBlob, }) - this.machoMeta = await extraMachoMeta({ machoFileInstance, FileApi }) //await this.parseMachOBlob( bundleExecutableBlob, file.name ) - // console.log( 'this.machoMeta', this.machoMeta ) + this.machoMeta = await extractMachoMeta({ machoFileInstance, FileApi }) //await this.parseMachOBlob( bundleExecutableBlob, file.name ) + console.log( 'this.machoMeta', this.machoMeta ) + } diff --git a/helpers/scanner/parsers/macho.js b/helpers/scanner/parsers/macho.js index 29b2475..8271bf2 100644 --- a/helpers/scanner/parsers/macho.js +++ b/helpers/scanner/parsers/macho.js @@ -15,7 +15,9 @@ export class MachoManiac { } -export async function extraMachoMeta ({ machoFileInstance, FileApi = null }) { + + +export async function extractMachoMeta ({ machoFileInstance, FileApi = null }) { const parsers = [ MachoManiac ]