@rpcbase/client 0.68.0 → 0.71.0

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/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.68.0",
3
+ "version": "0.71.0",
4
4
  "scripts": {
5
5
  "test": "jest"
6
6
  },
7
7
  "dependencies": {
8
8
  "axios": "1.4.0",
9
- "i18next": "23.4.2",
9
+ "i18next": "23.4.4",
10
10
  "i18next-chained-backend": "4.4.0",
11
11
  "i18next-resources-to-backend": "1.1.4",
12
12
  "lodash": "4.17.21",
13
- "posthog-js": "1.75.3",
13
+ "posthog-js": "1.77.0",
14
14
  "pouchdb-adapter-indexeddb": "8.0.1",
15
15
  "pouchdb-core": "8.0.1",
16
16
  "pouchdb-find": "8.0.1",
17
- "react-i18next": "13.0.3",
17
+ "react-i18next": "13.1.2",
18
18
  "socket.io-client": "4.7.2"
19
19
  },
20
20
  "devDependencies": {
21
- "jest": "29.6.2"
21
+ "jest": "29.6.3"
22
22
  }
23
23
  }
@@ -46,6 +46,7 @@ const run_query = async({model_name, query, query_key, options}, callback) => {
46
46
  // TODO: we should prefix model_name with tenant_prefix + env_id
47
47
  const col = get_collection(model_name)
48
48
 
49
+ console.time(`query-${model_name}`)
49
50
  // https://github.com/pouchdb/pouchdb/tree/master/packages/node_modules/pouchdb-find#dbcreateindexindex--callback
50
51
  const {docs} = await col.find({
51
52
  // TODO: we should check if the selectors are compatible here
@@ -54,6 +55,7 @@ const run_query = async({model_name, query, query_key, options}, callback) => {
54
55
  // https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-find/src/adapters/local/find/index.js
55
56
  // fields: [""]
56
57
  })
58
+ console.timeEnd(`query-${model_name}`)
57
59
 
58
60
  let mapped_docs = docs
59
61
  .map(({_rev, ...doc}) => {