1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

bumb dependencies

This commit is contained in:
Robin Appelman 2019-02-09 15:07:26 +01:00
commit 3142206d75
4 changed files with 291 additions and 566 deletions

838
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,18 +9,19 @@
"jsnext:main": "build/es6/index.js",
"module": "build/es6/index.js",
"dependencies": {
"bit-buffer": "^0.2.3",
"bit-buffer": "^0.2.4",
"snappyjs": "^0.6.0",
"text-encoding-shim": "git+https://gitlab.com/hongaar/text-encoding-shim.git#83ff0f77f48d05b8ce83ddc7ca49d8df61363b31"
},
"devDependencies": {
"@types/node": "^8.0.31",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.24",
"minimist": "^1.2.0",
"mocha": "^3.5.3",
"split2": "^2.2.0",
"ts-node": "^3.3.0",
"mocha": "^5.2.0",
"split2": "^3.1.0",
"ts-node": "^8.0.2",
"tsconfig": "^7.0.0",
"tslint": "^5.7.0",
"typescript": "^2.5.2"
"tslint": "^5.12.1",
"typescript": "^3.3.3"
}
}

View file

@ -5,7 +5,7 @@ import {ParserState} from '../../../../Data/ParserState';
import {PacketMessageHandler} from '../../../../Parser/Message/Packet';
import {assertEncoder, assertParser, assertReEncode, getStream} from '../Packet/PacketTest';
const data = Object.values(JSON.parse(readFileSync(__dirname + '/../../../data/packetMessageData.json', 'utf8')));
const data = Object.values(JSON.parse(readFileSync(__dirname + '/../../../data/packetMessageData.json', 'utf8'))) as number[];
const firstPacketData = readFileSync(__dirname + '/../../../data/packetMessageFirst.bin');
const expected = JSON.parse(readFileSync(__dirname + '/../../../data/packetMessageResult.json', 'utf8'));

View file

@ -7,7 +7,7 @@ import {deepEqual} from '../../deepEqual';
export function getStream(data: string | number[]) {
if (typeof data === 'string') {
const buffer = new Buffer(data + '\0remaining dummy data');
const buffer = Buffer.from(data + '\0remaining dummy data');
return new BitStream(buffer);
} else {
const array = new Uint8Array(data as number[]);