diff --git a/manifest.json b/manifest.json index 497374a..2f47b20 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { "id": "hunchly", "name": "Hunchly", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "0.15.0", - "description": "Import notes and images from Hunchly.", + "description": "This plugin converts Hunchly's notes and captioned images into obsidian notes. Also adds selectors from hunchly as obsidian tags.", "author": "sapperlabs", "isDesktopOnly": true } diff --git a/package.json b/package.json index a0c448f..88f1851 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hunchly-obsidian-plugin", - "version": "1.0.0", - "description": "Import Hunchly notes and images into obsidian", + "version": "1.0.1", + "description": "This plugin converts Hunchly's notes and captioned images into obsidian notes. Also adds selectors from hunchly as obsidian tags.", "main": "main.js", "scripts": { "dev": "node esbuild.config.mjs", diff --git a/src/hunchly.ts b/src/hunchly.ts index e36cc1b..86aaf25 100644 --- a/src/hunchly.ts +++ b/src/hunchly.ts @@ -62,11 +62,8 @@ export class Hunchly{ const tempDir = tmp.dirSync({ unsafeCleanup: true }); const extractionPath = tempDir.name; - // Create a read stream for the zip file. - const readStream = fs.createReadStream(zipFilePath); - - // Pipe the read stream through unzipper to extract the contents. - await readStream.pipe(unzipper.Extract({ path: extractionPath })).promise(); + // unzip the file + await unzipper.Open.file(zipFilePath).then(d => d.extract({path: extractionPath, concurrency: 5})); if (!await this.checkFileOrFolderExistence(extractionPath, "case_data")){ new Notice("Not a valid hunchly case file. Use Export > Export Case in the hunchly dashboard.", 5000)