-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move createPacketBuffer and parsePacketData functions to serializer, …
…also move protocol's exports to serializer
- Loading branch information
Showing
14 changed files
with
253 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
module.exports = { | ||
Client: require('./dist/client'), | ||
protocol: require('./dist/protocol') | ||
}; | ||
module.exports = require('./dist/browser.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var packets = require("../protocol/protocol"); | ||
var readPackets = require("./packets").readPackets; | ||
var packetIndexes = readPackets(packets, states); | ||
var utils = require("./utils"); | ||
var serializer = require("./transforms/serializer"); | ||
|
||
module.exports = { | ||
Client: require('./client'), | ||
protocol: require('./protocol'), | ||
createPacketBuffer: serializer.createPacketBuffer, | ||
parsePacketData: serializer.parsePacketData, | ||
packetFields: packetIndexes.packetFields, | ||
packetNames: packetIndexes.packetNames, | ||
packetIds: packetIndexes.packetIds, | ||
packetStates: packetIndexes.packetStates, | ||
types: serializer.types, | ||
get: serializer.get, | ||
evalCondition: utils.evalCondition, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.