Skip to content

Commit

Permalink
0.0.415
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Aug 4, 2024
1 parent 5c59e41 commit 46a99bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2454,9 +2454,9 @@ export function useDeepSubscription<Table extends 'links'|'numbers'|'strings'|'o
name: miniName,
};
const { data: minilinksResults } = useMinilinksApply(deep.minilinks, miniName, toReturn);
const mini = deep.useMinilinksSubscription(options?.aggregate ? { limit: 0 } : { id: { _in: toReturn?.data?.map(l => l.id) } }, options);
toReturn.data = options?.aggregate || options?.table !== 'links' ? toReturn.data || [] : minilinksResults;
toReturn.links = minilinksResults;
console.log('useDeepSubscription', toReturn);
return toReturn;
}

Expand Down
2 changes: 1 addition & 1 deletion imports/minilinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ export class MinilinkCollection<MGO extends MinilinksGeneratorOptions = typeof M
return {
errors: [...r1.errors, ...a1.errors, ...r2.errors, ...a2.errors],
anomalies: [...r1.anomalies, ...a1.anomalies, ...r2.anomalies, ...a2.anomalies],
data: input.map(i => this.byId[i]),
data: input.map(i => this.byId[i?.id]),
};
}
update(linksArray: any[]): {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.414",
"version": "0.0.415",
"license": "Unlicense",
"type": "module",
"scripts": {
Expand All @@ -15,7 +15,7 @@
"package:refresh": "rm -rf node_modules; rm -f package-lock.json; npm i --workspaces false",
"package:build": "tsc --project tsconfig.json",
"package:watch": "tsc -w --project tsconfig.json",
"package:unbuild": "rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && (cd ./migrations && rimraf ./*.js -g ./!(engine-server).js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../) && (cd ./imports && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../) && (cd ./imports/gql && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../..) && (cd ./benchmarks && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts && cd ..) && (cd ./imports/router && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../..) && (cd ./tests && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../)",
"package:unbuild": "rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && (cd ./migrations && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../) && (cd ./imports && rimraf \"./!(engine-server).js\" -g && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../) && (cd ./imports/gql && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../..) && (cd ./benchmarks && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts && cd ..) && (cd ./imports/router && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../..) && (cd ./tests && rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts && cd ../)",
"package:publish": "npm run package:build && npm publish --access public && npm run package:unbuild",
"package:release": "npm version patch && git push",
"test": "npm run package:build && cross-env DEEPLINKS_HASURA_PATH=localhost:8080 DEEPLINKS_HASURA_SSL=0 DEEPLINKS_HASURA_SECRET=myadminsecretkey DOCKER_DEEPLINKS_URL=http://localhost:3006 NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.js *.js --testTimeout=50000",
Expand Down

0 comments on commit 46a99bf

Please sign in to comment.