@live-change/db-server 0.8.30 → 0.8.32

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.
package/bin/server.js CHANGED
@@ -16,12 +16,13 @@ import {
16
16
  createLoopbackDao
17
17
  } from "@live-change/server"
18
18
 
19
- process.on('unhandledRejection', (reason, p) => {
20
- console.log('Unhandled Rejection at: Promise', p, 'reason:', reason)
19
+ process.on('unhandledRejection', (reason, promise) => {
20
+ console.error('Unhandled Promise Rejection', (reason && reason.stack) || reason, "Promise:", promise)
21
+ //process.exit(1) // TODO: database should not fail because of it, but it should be logged somewhere
21
22
  })
22
23
 
23
24
  process.on('uncaughtException', function (err) {
24
- console.error(err.stack)
25
+ console.error('uncaughtException', err)
25
26
  })
26
27
 
27
28
  function serverOptions(yargs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/db-server",
3
- "version": "0.8.30",
3
+ "version": "0.8.32",
4
4
  "description": "Database with observable data for live queries",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,17 +29,18 @@
29
29
  "tape": "^5.7.4"
30
30
  },
31
31
  "dependencies": {
32
- "@live-change/dao": "^0.8.30",
33
- "@live-change/dao-message": "^0.8.30",
34
- "@live-change/dao-sockjs": "^0.8.30",
35
- "@live-change/dao-websocket": "^0.8.30",
36
- "@live-change/db": "^0.8.30",
37
- "@live-change/db-admin": "^0.8.30",
38
- "@live-change/db-client": "^0.8.30",
39
- "@live-change/db-store-level": "^0.8.30",
40
- "@live-change/db-store-lmdb": "^0.8.30",
41
- "@live-change/db-store-observable-db": "^0.8.30",
42
- "@live-change/db-store-rbtree": "^0.8.30",
32
+ "@live-change/dao": "^0.8.32",
33
+ "@live-change/dao-message": "^0.8.32",
34
+ "@live-change/dao-sockjs": "^0.8.32",
35
+ "@live-change/dao-websocket": "^0.8.32",
36
+ "@live-change/db": "^0.8.32",
37
+ "@live-change/db-admin": "^0.8.32",
38
+ "@live-change/db-client": "^0.8.32",
39
+ "@live-change/db-store-level": "^0.8.32",
40
+ "@live-change/db-store-lmdb": "^0.8.32",
41
+ "@live-change/db-store-observable-db": "^0.8.32",
42
+ "@live-change/db-store-rbtree": "^0.8.32",
43
+ "@live-change/server": "^0.8.32",
43
44
  "@live-change/sockjs": "0.4.1",
44
45
  "express": "^4.18.2",
45
46
  "line-reader": "^0.4.0",
@@ -49,5 +50,5 @@
49
50
  "websocket": "^1.0.34",
50
51
  "yargs": "^17.7.2"
51
52
  },
52
- "gitHead": "aec2a3ede7fe490dcb7db40ee6c2963cd0c62af1"
53
+ "gitHead": "9ea7767670a99404794087726223064c45d798d3"
53
54
  }
@@ -0,0 +1,22 @@
1
+ FROM node:20
2
+ USER root
3
+
4
+ #RUN npm -g config set user root
5
+
6
+ #RUN npm install -g encoding-down leveldown levelupmemdown subleveldown
7
+ #RUN npm install -g node-lmdb
8
+ RUN npm install -g cross-env
9
+
10
+ # APP
11
+ RUN mkdir -p /app
12
+ WORKDIR /app
13
+ COPY package.json .
14
+ RUN yarn install
15
+
16
+ COPY index.js index.js
17
+ COPY lib lib
18
+ COPY bin bin
19
+
20
+ EXPOSE 8001
21
+
22
+ CMD bash