Skip to content

Commit a1ad0bc

Browse files
authored
Linting fixes, update readme (#850)
2 parents 2375b2c + 14b9e1a commit a1ad0bc

File tree

14 files changed

+26
-26
lines changed

14 files changed

+26
-26
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"type": "module",
88
"description": "CLI scaffolding tool for vue-skuilder projects",
99
"bin": {

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"license": "MIT",
88
"main": "dist/index.js",
99
"module": "dist/index.esm.js",

packages/common-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"main": "./dist/common-ui.umd.js",
88
"module": "./dist/common-ui.es.js",
99
"types": "./dist/index.d.ts",

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"type": "module",
88
"main": "dist/index.js",
99
"module": "dist/index.mjs",

packages/courseware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"type": "module",
88
"main": "./dist/index.cjs.js",
99
"module": "./dist/index.mjs",

packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"description": "Database layer for vue-skuilder",
88
"main": "dist/index.js",
99
"module": "dist/index.mjs",

packages/db/src/impl/couch/courseDB.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class CourseDB implements StudyContentSource, CourseDBInterface {
263263
limit: aboveLimit,
264264
startkey: elo + 1,
265265
});
266-
// console.log(JSON.stringify(below));
266+
// logger.log(JSON.stringify(below));
267267

268268
let cards = below.rows;
269269
cards = cards.concat(above.rows);
@@ -560,7 +560,7 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
560560
} else if (options.elo === 'random') {
561561
const bounds = await GET_CACHED(`elo-bounds-${this.id}`, () => this.getELOBounds());
562562
targetElo = Math.round(bounds.low + Math.random() * (bounds.high - bounds.low));
563-
// console.log(`Picked ${targetElo} from [${bounds.low}, ${bounds.high}]`);
563+
// logger.log(`Picked ${targetElo} from [${bounds.low}, ${bounds.high}]`);
564564
} else {
565565
targetElo = options.elo;
566566
}
@@ -608,7 +608,7 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
608608

609609
// Admin search methods
610610
public async searchCards(query: string): Promise<any[]> {
611-
console.log(`[CourseDB ${this.id}] Searching for: "${query}"`);
611+
logger.log(`[CourseDB ${this.id}] Searching for: "${query}"`);
612612

613613
// Try multiple search approaches
614614
let displayableData;
@@ -621,9 +621,9 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
621621
'data.0.data': { $regex: `.*${query}.*` },
622622
},
623623
});
624-
console.log(`[CourseDB ${this.id}] Regex search on data[0].data successful`);
624+
logger.log(`[CourseDB ${this.id}] Regex search on data[0].data successful`);
625625
} catch (regexError) {
626-
console.log(
626+
logger.log(
627627
`[CourseDB ${this.id}] Regex search failed, falling back to manual search:`,
628628
regexError
629629
);
@@ -635,7 +635,7 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
635635
},
636636
});
637637

638-
console.log(
638+
logger.log(
639639
`[CourseDB ${this.id}] Retrieved ${allDisplayable.docs.length} documents for manual filtering`
640640
);
641641

@@ -645,14 +645,14 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
645645
const docString = JSON.stringify(doc).toLowerCase();
646646
const match = docString.includes(query.toLowerCase());
647647
if (match) {
648-
console.log(`[CourseDB ${this.id}] Manual match found in document: ${doc._id}`);
648+
logger.log(`[CourseDB ${this.id}] Manual match found in document: ${doc._id}`);
649649
}
650650
return match;
651651
}),
652652
};
653653
}
654654

655-
console.log(
655+
logger.log(
656656
`[CourseDB ${this.id}] Found ${displayableData.docs.length} displayable data documents`
657657
);
658658

@@ -665,7 +665,7 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
665665
limit: 5, // Just sample a few
666666
});
667667

668-
console.log(
668+
logger.log(
669669
`[CourseDB ${this.id}] Sample displayable data:`,
670670
allDisplayableData.docs.map((d) => ({
671671
id: d._id,
@@ -687,13 +687,13 @@ above:\n${above.rows.map((r) => `\t${r.id}-${r.key}\n`)}`;
687687
},
688688
});
689689

690-
console.log(
690+
logger.log(
691691
`[CourseDB ${this.id}] Displayable data ${dd._id} linked to ${cards.docs.length} cards`
692692
);
693693
allResults.push(...cards.docs);
694694
}
695695

696-
console.log(`[CourseDB ${this.id}] Total cards found: ${allResults.length}`);
696+
logger.log(`[CourseDB ${this.id}] Total cards found: ${allResults.length}`);
697697
return allResults;
698698
}
699699

packages/edit-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"main": "./dist/edit-ui.umd.js",
88
"module": "./dist/edit-ui.es.js",
99
"types": "./dist/index.d.ts",

packages/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.1.11-20",
6+
"version": "0.1.11-22",
77
"description": "an API",
88
"main": "dist/index.js",
99
"type": "module",

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-skuilder/mcp",
3-
"version": "0.1.11-20",
3+
"version": "0.1.11-22",
44
"type": "module",
55
"exports": {
66
".": {

0 commit comments

Comments
 (0)