From df266d77604fad9ac76c813480acee4d5151ec3d Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 26 Jul 2022 21:17:53 -0500 Subject: [PATCH] Use native BigInt # Conflicts: # helpers/scanner/parsers/plist.js --- helpers/scanner/parsers/plist.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpers/scanner/parsers/plist.js b/helpers/scanner/parsers/plist.js index 24088ff..cccc303 100644 --- a/helpers/scanner/parsers/plist.js +++ b/helpers/scanner/parsers/plist.js @@ -5,7 +5,6 @@ import { Buffer } from 'buffer/' // const fs = require('fs'); -// const bigInt = require('big-integer') // const bufferApi = require('buffer') const debug = false @@ -188,7 +187,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;