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": [ "presets": ["@babel/preset-env", "@babel/typescript"],
[
"@babel/preset-env",
{
"targets": {
"esmodules": false
}
}
],
"@babel/typescript"
],
"plugins": [ "plugins": [
"@babel/plugin-transform-runtime", "@babel/plugin-transform-runtime",
"@babel/proposal-class-properties", "@babel/proposal-class-properties",

View File

@ -1,11 +1,11 @@
{ {
"name": "@slate-collaborative/backend", "name": "@slate-collaborative/backend",
"version": "0.0.2", "version": "0.0.3",
"files": [ "files": [
"lib" "lib"
], ],
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/model.d.ts",
"description": "slate-collaborative bridge", "description": "slate-collaborative bridge",
"repository": { "repository": {
"type": "git", "type": "git",
@ -25,9 +25,11 @@
"watch": "yarn build:js -w" "watch": "yarn build:js -w"
}, },
"dependencies": { "dependencies": {
"@slate-collaborative/bridge": "^0.0.2", "@babel/runtime": "^7.6.3",
"@slate-collaborative/bridge": "^0.0.3",
"automerge": "^0.12.1", "automerge": "^0.12.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"slate": "^0.47.8",
"socket.io": "^2.2.0", "socket.io": "^2.2.0",
"typescript": "^3.6.3" "typescript": "^3.6.3"
}, },

View File

@ -9,7 +9,7 @@ import { toSync, toJS } from '@slate-collaborative/bridge'
import { getClients, defaultValue, defaultOptions } from './utils' import { getClients, defaultValue, defaultOptions } from './utils'
import { ConnectionOptions } from './model' import { ConnectionOptions } from './model'
class Connection { export default class Connection {
private io: any private io: any
private docSet: any private docSet: any
private connections: { [key: string]: Automerge.Connection<any> } private connections: { [key: string]: Automerge.Connection<any> }
@ -194,5 +194,3 @@ class Connection {
this.io.close() this.io.close()
} }
} }
export default Connection

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "@slate-collaborative/bridge", "name": "@slate-collaborative/bridge",
"version": "0.0.2", "version": "0.0.3",
"files": [ "files": [
"lib" "lib"
], ],
@ -25,6 +25,8 @@
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"automerge": "^0.12.1",
"slate": "^0.47.8",
"typescript": "^3.6.3" "typescript": "^3.6.3"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@slate-collaborative/client", "name": "@slate-collaborative/client",
"version": "0.0.2", "version": "0.0.3",
"files": [ "files": [
"lib" "lib"
], ],
@ -25,7 +25,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@slate-collaborative/bridge": "^0.0.2", "@slate-collaborative/bridge": "^0.0.3",
"automerge": "^0.12.1", "automerge": "^0.12.1",
"immutable": "^4.0.0-rc.12", "immutable": "^4.0.0-rc.12",
"react": "^16.9.0", "react": "^16.9.0",

View File

@ -5,8 +5,8 @@
"dependencies": { "dependencies": {
"@emotion/core": "^10.0.17", "@emotion/core": "^10.0.17",
"@emotion/styled": "^10.0.17", "@emotion/styled": "^10.0.17",
"@slate-collaborative/backend": "^0.0.2", "@slate-collaborative/backend": "^0.0.3",
"@slate-collaborative/client": "^0.0.2", "@slate-collaborative/client": "^0.0.3",
"@types/faker": "^4.1.5", "@types/faker": "^4.1.5",
"@types/jest": "24.0.18", "@types/jest": "24.0.18",
"@types/node": "12.7.5", "@types/node": "12.7.5",