diff --git a/package-lock.json b/package-lock.json index 6421d34..a04e0ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@filen/sync", - "version": "0.1.80", + "version": "0.1.81", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@filen/sync", - "version": "0.1.80", + "version": "0.1.81", "license": "AGPLv3", "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", @@ -1053,15 +1053,16 @@ } }, "node_modules/@filen/sdk": { - "version": "0.1.176", - "resolved": "https://registry.npmjs.org/@filen/sdk/-/sdk-0.1.176.tgz", - "integrity": "sha512-sFWDsIjyN0owV4a+fq4cMunHCJZ8BdPwpYwjFhwXE/jSs96V0EFZ4z9FzJ2oZS1kiVMFLvRKevGwPLzYTvAWGw==", + "version": "0.1.181", + "resolved": "https://registry.npmjs.org/@filen/sdk/-/sdk-0.1.181.tgz", + "integrity": "sha512-ufHa+8hSVq+U/Fy0nYQy3CLeXRkLxrHZ5QWy1DoejP+kFUf1oWt7d0zGaQJHDHEicG/s/YvrUbhjQPRKG/6OAw==", "license": "AGPLv3", "dependencies": { "agentkeepalive": "^4.5.0", "axios": "^0.28.1", "crypto-api-v1": "^1.0.0", "crypto-js": "^4.2.0", + "eventemitter3": "^5.0.1", "fs-extra": "^11.2.0", "js-crypto-key-utils": "^1.0.7", "js-xxhash": "^4.0.0", @@ -4375,6 +4376,12 @@ "node": ">=0.10.0" } }, + "node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "license": "MIT" + }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", diff --git a/package.json b/package.json index c840618..b65bdc3 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/ignorer.ts b/src/ignorer.ts index 9b0097b..c88f4df 100644 --- a/src/ignorer.ts +++ b/src/ignorer.ts @@ -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)) @@ -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()