@rpcbase/client 0.67.0 → 0.69.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/auth/index.js CHANGED
@@ -56,7 +56,6 @@ const run_session_check = async() => {
56
56
  __tenant_id = __user_id.slice(0, 8)
57
57
 
58
58
  // save tenant id
59
- // TODO: should we be using session storage here ?
60
59
  if (__tenant_id) {
61
60
  localStorage.setItem(LAST_TENANT_KEY, __tenant_id)
62
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.67.0",
3
+ "version": "0.69.0",
4
4
  "scripts": {
5
5
  "test": "jest"
6
6
  },
@@ -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}) => {