fix encoding and rb tree tests
This commit is contained in:
12
src/Y.js
12
src/Y.js
@@ -1,11 +1,3 @@
|
||||
|
||||
// import debug from 'debug'
|
||||
export function debug (namespace) {
|
||||
return function log (message) {
|
||||
console.log(namespace, message)
|
||||
}
|
||||
}
|
||||
|
||||
import DeleteStore from './Store/DeleteStore.js'
|
||||
import OperationStore from './Store/OperationStore.js'
|
||||
import StateStore from './Store/StateStore.js'
|
||||
@@ -21,6 +13,8 @@ import YMap from './Type/YMap.js'
|
||||
import YText from './Type/YText.js'
|
||||
import YXml from './Type/YXml.js'
|
||||
|
||||
import debug from 'debug'
|
||||
|
||||
export default class Y {
|
||||
constructor (opts) {
|
||||
this.userID = generateUserID()
|
||||
@@ -101,6 +95,8 @@ Y.Map = YMap
|
||||
Y.Text = YText
|
||||
Y.Xml = YXml
|
||||
|
||||
export { default as debug } from 'debug'
|
||||
|
||||
Y.debug = debug
|
||||
debug.formatters.Y = messageToString
|
||||
debug.formatters.y = messageToRoomname
|
||||
|
||||
Reference in New Issue
Block a user