mongodb-livedata-server 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -1
  2. package/package.json +6 -7
package/README.md CHANGED
@@ -8,12 +8,18 @@ Live data is one of the root concepts of Meteor. Data is served via WebSockets v
8
8
 
9
9
  Using Meteor locks you into the Meteor ecosystem, which has some problems (mostly for historical reasons). Using live data as a separate npm package might be preferable in many scenarios. Also, people who are trying to migrate from Meteor, might find this package useful as an intermediate step.
10
10
 
11
+ ### Installation
12
+
13
+ ```
14
+ npm i mongodb-livedata-server
15
+ ```
16
+
11
17
  ### Usage
12
18
 
13
19
  As a most common example, this is how you can use livedata with Express.js:
14
20
 
15
21
  ```js
16
- const { DDPServer, LiveCursor, LiveMongoConnection } = require('livedata-server')
22
+ const { DDPServer, LiveCursor, LiveMongoConnection } = require('mongodb-livedata-server')
17
23
  const express = require('express')
18
24
  const app = express()
19
25
  const port = 3000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongodb-livedata-server",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "MongoDB live data server, extracted from Meteor, Fibers removed and converted to TypeScript",
5
5
  "main": "dist/livedata_server.js",
6
6
  "types": "livedata_server.ts",
@@ -11,20 +11,19 @@
11
11
  "author": "Andrei Markeev",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "compression": "^1.7.4",
15
- "connect": "^3.7.0",
16
- "cookie-parser": "^1.4.6",
17
14
  "double-ended-queue": "^2.1.0-0",
18
15
  "mongodb": "^4.11.0",
19
16
  "permessage-deflate": "^0.1.7",
20
- "send": "^0.18.0",
21
- "sockjs": "^0.3.24",
22
- "useragent": "^2.3.0"
17
+ "sockjs": "^0.3.24"
23
18
  },
24
19
  "devDependencies": {
25
20
  "@types/connect": "^3.4.35",
26
21
  "@types/double-ended-queue": "^2.1.1",
27
22
  "@types/node": "^18.11.9",
28
23
  "@types/sockjs": "^0.3.33"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git://github.com/andrei-markeev/mongodb-livedata-server.git"
29
28
  }
30
29
  }