Skip to content

Commit

Permalink
fix: ignorer formatting, bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Nov 20, 2024
1 parent 328abb8 commit 526074b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
19 changes: 13 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@filen/sync",
"version": "0.1.80",
"version": "0.1.81",
"description": "Filen Sync",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -54,7 +54,7 @@
"wait-on": "^7.2.0"
},
"dependencies": {
"@filen/sdk": "^0.1.176",
"@filen/sdk": "^0.1.181",
"@parcel/watcher": "^2.5.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/ignorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Ignorer {
this.sync.localFileSystem.ignoredCache.clear()
this.sync.remoteFileSystem.ignoredCache.clear()

let content: string = ""
let content: string[] = []
const filePath = pathModule.join(this.sync.dbPath, this.name, `v${IGNORER_VERSION}`, this.sync.syncPair.uuid, "filenIgnore")

await fs.ensureDir(pathModule.dirname(filePath))
Expand All @@ -58,9 +58,9 @@ export class Ignorer {
encoding: "utf-8"
})

content = passedContent
content = passedContent.split("\n").map(line => line.trim())
} else {
content = await this.fetch()
content = (await this.fetch()).split("\n").map(line => line.trim())
}

this.instance = ignore()
Expand Down

0 comments on commit 526074b

Please sign in to comment.