fix: update missed depts

This commit is contained in:
cudr
2019-10-28 09:28:37 +03:00
parent afaff1f80a
commit dc65376a37
7 changed files with 15 additions and 22 deletions

View File

@@ -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",

View File

@@ -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"
},

View File

@@ -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

View File

@@ -6,6 +6,7 @@
"rootDir": "src",
"baseUrl": "src",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"lib": ["dom", "dom.iterable", "esnext"]
}
}