@rpcbase/client 0.80.0 → 0.82.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.
@@ -27,7 +27,7 @@ const SignUp = ({
27
27
  setError("Passwords do not match")
28
28
  return
29
29
  }
30
- const res = await post("/api/v1/auth/sign_up", {email, password})
30
+ const res = await post("/public/v1/auth/sign_up", {email, password})
31
31
 
32
32
  if (res.status === "ok") {
33
33
  const {user_id} = res
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.80.0",
3
+ "version": "0.82.0",
4
4
  "scripts": {
5
5
  "build-firebase": "webpack -c firebase/webpack.config.js",
6
6
  "build": "yarn build-firebase",
@@ -46,7 +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
+ // console.time(`query-${model_name}`)
50
50
  // https://github.com/pouchdb/pouchdb/tree/master/packages/node_modules/pouchdb-find#dbcreateindexindex--callback
51
51
  const {docs} = await col.find({
52
52
  // TODO: we should check if the selectors are compatible here
@@ -55,7 +55,7 @@ const run_query = async({model_name, query, query_key, options}, callback) => {
55
55
  // https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-find/src/adapters/local/find/index.js
56
56
  // fields: [""]
57
57
  })
58
- console.timeEnd(`query-${model_name}`)
58
+ // console.timeEnd(`query-${model_name}`)
59
59
 
60
60
  let mapped_docs = docs
61
61
  .map(({_rev, ...doc}) => {