chore: remove console logs

This commit is contained in:
Kacper Kula 2024-11-03 11:00:14 +00:00
parent 6fbcbd2157
commit 182ee4bc8b
4 changed files with 0 additions and 8 deletions

View file

@ -131,12 +131,8 @@ export class SealFileSync {
}
async getFileTags(file: TFile) {
console.log('file', file.basename)
console.log(this.app.metadataCache.getFileCache(file))
const t = ((this.app.metadataCache.getFileCache(file)?.frontmatter?.tags || []) as string[])
// .map(t => t.tag)
.map(t => ({ tag: t, fileId: file.path }))
console.log('FILE TAGS', t)
return t
}

View file

@ -10,7 +10,6 @@ export class FilesManager {
constructor(private vault: Vault) {
this.vault.on('modify', async (file) => {
if (this.files.has(file.path)) {
console.log(`Modified ${file.path}`)
this.inputFiles.get(file.path)!(await this.loadFile(file.path))
}
})

View file

@ -21,10 +21,8 @@ export class TablesManager {
if (this.tableLinks.has(tableName)) {
const { fileName: prevFileName, unlink } = this.tableLinks.get(tableName)!
if (prevFileName === fileName) {
console.log('Same filename', fileName)
return
}
console.log('Different Filename')
unlink()
this.tableLinks.delete(tableName)
}

View file

@ -9,7 +9,6 @@ describe('Data Transformer', () => {
s(`a,b,c
1,2,3
4,5,6`)
console.log(dt.value)
expect(dt.value.data).toHaveLength(2)
expect(dt.value.data[0]).toEqual({
a: 1,