fix compiling issues

This commit is contained in:
Kevin Jahns
2017-10-14 23:03:24 +02:00
parent 82015d5a37
commit 0e426f8928
36 changed files with 192 additions and 309 deletions

View File

@@ -1,5 +1,5 @@
import { getStruct } from '../Util/StructReferences'
import BinaryDecoder from '../Util/Binary/Decoder'
import { getStruct } from '../Util/StructReferences.js'
import BinaryDecoder from '../Binary/Decoder.js'
class MissingEntry {
constructor (decoder, missing, struct) {
@@ -39,7 +39,7 @@ function _integrateRemoteStructHelper (y, struct) {
}
}
export default function integrateRemoteStructs (decoder, encoder, y) {
export function integrateRemoteStructs (decoder, encoder, y) {
while (decoder.length !== decoder.pos) {
let decoderPos = decoder.pos
let reference = decoder.readVarUint()

View File

@@ -1,7 +1,7 @@
import BinaryDecoder from '../Utily/Binary/Decoder'
import { stringifyUpdate } from './update'
import { stringifySyncStep1 } from './syncStep1'
import { stringifySyncStep2 } from './syncStep2'
import BinaryDecoder from '../Binary/Decoder.js'
import { stringifyUpdate } from './update.js'
import { stringifySyncStep1 } from './syncStep1.js'
import { stringifySyncStep2 } from './syncStep2.js'
export function messageToString (buffer) {
let decoder = new BinaryDecoder(buffer)

View File

@@ -1,4 +1,4 @@
import BinaryEncoder from './Util/Binary/Encoder.js'
import BinaryEncoder from '../Binary/Encoder.js'
export function stringifySyncStep1 (decoder, strBuilder) {
let auth = decoder.readVarString()

View File

@@ -1,6 +1,6 @@
import integrateRemoteStructs from './integrateRemoteStructs'
import { integrateRemoteStructs } from './integrateRemoteStructs.js'
import { stringifyUpdate } from './update.js'
import ID from '../Util/ID'
import ID from '../Util/ID.js'
export function stringifySyncStep2 (decoder, strBuilder) {
strBuilder.push(' - auth: ' + decoder.readVarString() + '\n')

View File

@@ -1,5 +1,5 @@
import { getStruct } from '../Util/StructReferences'
import { getStruct } from '../Util/StructReferences.js'
export function stringifyUpdate (decoder, strBuilder) {
while (decoder.length !== decoder.pos) {
@@ -16,4 +16,4 @@ export function stringifyUpdate (decoder, strBuilder) {
}
}
export { integrateRemoteStructs as readUpdate } from './integrateRemoteStructs'
export { integrateRemoteStructs as readUpdate } from './integrateRemoteStructs.js'