Skip to content

Commit

Permalink
0.0.584
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 30, 2024
1 parent e9cb4a5 commit 2beb114
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions imports/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ export class Packages {
constructor(deep) {
this.deep = deep;
}
async select() {
async select(query) {
const deep = this.deep;
return await deep.select({
const _or = [{
type_id: deep.idLocal('@deep-foundation/core', 'Package'),
string: { value: { _neq: 'deep' } },
}];
if (query) _or.push(query);
return await deep.select({
_or,
});
}
async export(): Promise<{ [name: string]: Package }> {
async export(query): Promise<{ [name: string]: Package }> {
const deep = this.deep;
const packager = deep.Packager();
const { data: packages } = await this.select();
const { data: packages } = await this.select(query);
console.log('export packages', packages.map(p => p.id).join(', '));
const results = {};
for (let i = 0; i < packages.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.583",
"version": "0.0.584",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit 2beb114

Please sign in to comment.