mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
deps: Replace compressjs by seek-bzip (#349)
* Replace compressjs by seek-bzip * Update CHANGELOG
This commit is contained in:
parent
ff5f6ef2e2
commit
ca7f56c996
4 changed files with 42 additions and 69 deletions
|
|
@ -1,4 +1,4 @@
|
|||
const Bzip2 = require('compressjs').Bzip2;
|
||||
const Bzip2 = require('seek-bzip');
|
||||
const Core = require('./core');
|
||||
const Results = require('../lib/Results');
|
||||
const Reader = require('../lib/reader');
|
||||
|
|
@ -592,7 +592,7 @@ class Valve extends Core {
|
|||
if(bzip) {
|
||||
this.debugLog("BZIP DETECTED - Extracing packet...");
|
||||
try {
|
||||
assembled = Buffer.from(Bzip2.decompressFile(assembled));
|
||||
assembled = Bzip2.decode(assembled);
|
||||
} catch(e) {
|
||||
throw new Error('Invalid bzip packet');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue