mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Use standard import for zip.js
This commit is contained in:
parent
ca58913ccc
commit
4004ac2002
1 changed files with 2 additions and 10 deletions
|
|
@ -1,20 +1,12 @@
|
|||
// import { Buffer, Blob } from 'buffer'
|
||||
import { Buffer } from 'buffer/'
|
||||
import prettyBytes from 'pretty-bytes'
|
||||
// import zip from '@zip.js/zip.js'
|
||||
// import FileApi from 'file-api'
|
||||
import * as zip from '@zip.js/zip.js'
|
||||
|
||||
import * as FileApi from '~/helpers/scanner/file-api.js'
|
||||
import { isString, isNonEmptyString } from '~/helpers/check-types.js'
|
||||
import { parsePlistBuffer } from '~/helpers/scanner/parsers/plist.js'
|
||||
import { extractMachoMeta } from '~/helpers/scanner/parsers/macho.js'
|
||||
import { Buffer } from 'buffer/'
|
||||
|
||||
// For some reason inline 'import()' works better than 'import from'
|
||||
// https://gildas-lormeau.github.io/zip.js/
|
||||
const zip = await import('@zip.js/zip.js')
|
||||
|
||||
// const FileApi = await import('file-api')
|
||||
// const { parse: plistParse } = await import('simple-plist/dist/index.js')
|
||||
|
||||
// https://gildas-lormeau.github.io/zip.js/core-api.html#configuration
|
||||
zip.configure({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue