mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
fix: update missed depts
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"esmodules": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/typescript"
|
||||
],
|
||||
"presets": ["@babel/preset-env", "@babel/typescript"],
|
||||
"plugins": [
|
||||
"@babel/plugin-transform-runtime",
|
||||
"@babel/proposal-class-properties",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "@slate-collaborative/backend",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"types": "lib/model.d.ts",
|
||||
"description": "slate-collaborative bridge",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -25,9 +25,11 @@
|
||||
"watch": "yarn build:js -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"@slate-collaborative/bridge": "^0.0.2",
|
||||
"@babel/runtime": "^7.6.3",
|
||||
"@slate-collaborative/bridge": "^0.0.3",
|
||||
"automerge": "^0.12.1",
|
||||
"lodash": "^4.17.15",
|
||||
"slate": "^0.47.8",
|
||||
"socket.io": "^2.2.0",
|
||||
"typescript": "^3.6.3"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ import { toSync, toJS } from '@slate-collaborative/bridge'
|
||||
import { getClients, defaultValue, defaultOptions } from './utils'
|
||||
import { ConnectionOptions } from './model'
|
||||
|
||||
class Connection {
|
||||
export default class Connection {
|
||||
private io: any
|
||||
private docSet: any
|
||||
private connections: { [key: string]: Automerge.Connection<any> }
|
||||
@@ -194,5 +194,3 @@ class Connection {
|
||||
this.io.close()
|
||||
}
|
||||
}
|
||||
|
||||
export default Connection
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"rootDir": "src",
|
||||
"baseUrl": "src",
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"lib": ["dom", "dom.iterable", "esnext"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user