From a1b4e89e9c47294b69781fa2bdc1ea11dc338497 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 26 Jul 2022 21:17:53 -0500 Subject: [PATCH] Use native BigInt --- helpers/scanner/parsers/plist.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helpers/scanner/parsers/plist.js b/helpers/scanner/parsers/plist.js index 0b85082..9286c5a 100644 --- a/helpers/scanner/parsers/plist.js +++ b/helpers/scanner/parsers/plist.js @@ -1,11 +1,9 @@ // Adpapted for browser+node from https://github.com/joeferner/node-bplist-parser/blob/master/bplistParser.js import plainTextPlist from 'plist' -import bigInt from 'big-integer' import bufferApi from 'buffer' // const fs = require('fs'); -// const bigInt = require('big-integer') // const bufferApi = require('buffer') const debug = false @@ -186,7 +184,7 @@ function parseBuffer ( buffer ) { const data = buffer.slice(offset + 1, offset + 1 + length); if (length === 16) { const str = bufferToHexString(data); - return bigInt(str, 16); + return BigInt(str, 16); } return data.reduce((acc, curr) => { acc <<= 8;