mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
feat: update to slate 0.58 && fix site build
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slate-collaborative/backend",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
@@ -17,8 +17,8 @@
|
||||
"author": "cudr",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"prepublishOnly": "yarn run build",
|
||||
"build": "yarn run build:types && yarn run build:js",
|
||||
"prepublishOnly": "yarn run build:module",
|
||||
"build:module": "yarn run build:types && yarn run build:js",
|
||||
"build:types": "tsc --emitDeclarationOnly",
|
||||
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
|
||||
"watch": "yarn build:js -w"
|
||||
@@ -26,12 +26,12 @@
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
||||
"@babel/runtime": "^7.6.3",
|
||||
"@slate-collaborative/bridge": "^0.5.0",
|
||||
"@slate-collaborative/bridge": "0.6.0",
|
||||
"@types/lodash": "^4.14.150",
|
||||
"@types/socket.io": "^2.1.4",
|
||||
"automerge": "^0.14.0",
|
||||
"automerge": "0.14.0",
|
||||
"lodash": "^4.17.15",
|
||||
"slate": "^0.57.2",
|
||||
"slate": "0.58.0",
|
||||
"socket.io": "^2.3.0",
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
@@ -46,5 +46,6 @@
|
||||
},
|
||||
"directories": {
|
||||
"lib": "lib"
|
||||
}
|
||||
},
|
||||
"gitHead": "1a29cf0da2dc171c1fadd5c8e6eac2327b5b0241"
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ class AutomergeBackend {
|
||||
|
||||
if (!doc.cursors) return
|
||||
|
||||
const change = Automerge.change(doc, d => {
|
||||
const change = Automerge.change(doc, (d: any) => {
|
||||
delete d.cursors[id]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user