@triplit/react 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{useEffect as y,useState as n}from"react";var m=e=>`http://localhost:3000/queryTriples?live=true&query=${encodeURIComponent(JSON.stringify(e))}`;function d(e,t){let[s,l]=n(void 0),[o,r]=n(!1),{selectStatements:c,whereStatements:i}=t,u=m({collection:t.collection.collectionName,select:c,where:i,clientId:e.clientId});return y(()=>{r(!0);let a=e.subscribe(t,f=>{r(!1),l(f)});return()=>{a()}},[u]),{fetchingLocal:o,results:s,error:null}}export{d as useQuery};
1
+ import{useEffect as y,useState as n}from"react";var m=e=>`http://localhost:3000/queryTriples?live=true&query=${encodeURIComponent(JSON.stringify(e))}`;function d(e,t){let[s,l]=n(void 0),[o,r]=n(!1),{selectStatements:c,whereStatements:i}=t,u=m({collection:t.collectionName,select:c,where:i,clientId:e.clientId});return y(()=>{r(!0);let a=e.subscribe(t,f=>{r(!1),l(f)});return()=>{a()}},[u]),{fetchingLocal:o,results:s,error:null}}export{d as useQuery};
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@triplit/react",
3
3
  "packageManager": "yarn@3.4.1",
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "build": "yarn build:code && yarn build:types",
10
10
  "build:code": "node build.cjs",
11
- "build:types": "tsc --noEmit false --emitDeclarationOnly --declaration --outDir dist",
11
+ "build:types": "tsc --noEmit false --emitDeclarationOnly --declaration --baseUrl . --outDir dist",
12
12
  "lint": "tsc"
13
13
  },
14
14
  "files": [
15
15
  "/dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@triplit/client": "^0.0.15"
18
+ "@triplit/client": "workspace:^"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/react": "^18.2.0",