minor changes
This commit is contained in:
parent
38884ccbc0
commit
50414a3ebd
7
index.js
7
index.js
|
@ -1,13 +1,6 @@
|
|||
import { Server } from "@hocuspocus/server";
|
||||
|
||||
const server = Server.configure({
|
||||
async onAuthenticate(data) {
|
||||
const { token } = data;
|
||||
|
||||
if (token !== "hocuspocus-token") {
|
||||
throw new Error("Not authorized!");
|
||||
}
|
||||
},
|
||||
port: 4242,
|
||||
});
|
||||
|
||||
|
|
64
package-lock.json
generated
64
package-lock.json
generated
|
@ -9,23 +9,63 @@
|
|||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@hocuspocus/server": "^2.0.0"
|
||||
"@hocuspocus/server": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hocuspocus/provider": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@hocuspocus/common": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@hocuspocus/common/-/common-2.0.0.tgz",
|
||||
"integrity": "sha512-o+juw4gly9lp1vTTDHutndgbkXtlWlfzkVVW/+6ZgjLxHeYNZVZK+8uVN9zLwGhFSB4k9dRk1SUUbvi9hioJgQ==",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@hocuspocus/common/-/common-2.0.1.tgz",
|
||||
"integrity": "sha512-KHF/e4LgE5C+df0Jgo+nZz19vfS9pQ13lrWBeynxYzmcpMln++U4TUZeZMSqlSTS/njg/LwDN/KdRxw6MZeR/g==",
|
||||
"dependencies": {
|
||||
"lib0": "^0.2.47"
|
||||
}
|
||||
},
|
||||
"node_modules/@hocuspocus/server": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@hocuspocus/server/-/server-2.0.0.tgz",
|
||||
"integrity": "sha512-WLbudFqvD/URLGVBSSUx/NIc7wgPsGkRywcIv68NmcJyqOl5WWhUdhVMLV4OVhK0CyfzCRZRK3E1eZ/uJlB22Q==",
|
||||
"node_modules/@hocuspocus/provider": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@hocuspocus/provider/-/provider-2.0.1.tgz",
|
||||
"integrity": "sha512-3IFn8oFlGEPQhzswiCrMjuBa1+qKPphr2In8iSgkjZFfMiSDobAfYvQj281dZf7vuKZZ1rFn/s55TAWhDCAy0w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@hocuspocus/common": "^2.0.0",
|
||||
"@hocuspocus/common": "^2.0.1",
|
||||
"@lifeomic/attempt": "^3.0.2",
|
||||
"lib0": "^0.2.47",
|
||||
"ws": "^7.5.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"y-protocols": "^1.0.5",
|
||||
"yjs": "^13.5.29"
|
||||
}
|
||||
},
|
||||
"node_modules/@hocuspocus/provider/node_modules/ws": {
|
||||
"version": "7.5.9",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
|
||||
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": "^5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@hocuspocus/server": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@hocuspocus/server/-/server-2.0.1.tgz",
|
||||
"integrity": "sha512-ss1PwkWng87tdEIWGqhl1vW5G+5Md77+QHs/MEyTVoXekLeIw0Ftw8hLrZUm6Okxvb1IGe60JCm4CuVLdU33Vg==",
|
||||
"dependencies": {
|
||||
"@hocuspocus/common": "^2.0.1",
|
||||
"@types/async-lock": "^1.1.3",
|
||||
"@types/uuid": "^9.0.0",
|
||||
"@types/ws": "^8.5.3",
|
||||
|
@ -40,6 +80,12 @@
|
|||
"yjs": "^13.5.29"
|
||||
}
|
||||
},
|
||||
"node_modules/@lifeomic/attempt": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@lifeomic/attempt/-/attempt-3.0.3.tgz",
|
||||
"integrity": "sha512-GlM2AbzrErd/TmLL3E8hAHmb5Q7VhDJp35vIbyPVA5Rz55LZuRr8pwL3qrwwkVNo05gMX1J44gURKb4MHQZo7w==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/async-lock": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/async-lock/-/async-lock-1.4.0.tgz",
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
"type": "git",
|
||||
"url": "git+https://gitlab.com/discoursio/hocuspocus.git"
|
||||
},
|
||||
"author": "",
|
||||
"author": "Discours Dev Team",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/discoursio/hocuspocus/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/discoursio/hocuspocus#readme",
|
||||
"dependencies": {
|
||||
"@hocuspocus/server": "^2.0.0"
|
||||
"@hocuspocus/server": "2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user