neatnode 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neatnode",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Plug & Play Node.js backend starter templates — build REST APIs, socket servers, and more in seconds.",
5
5
  "bin": {
6
6
  "neatnode": "bin/index.js"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "axios": "^1.13.2",
48
- "extract-zip": "^2.0.1",
48
+ "decompress": "^4.2.1",
49
49
  "fs-extra": "^11.3.2",
50
50
  "inquirer": "^12.10.0"
51
51
  },
@@ -54,4 +54,4 @@
54
54
  "eslint": "^9.0.0",
55
55
  "globals": "^15.0.0"
56
56
  }
57
- }
57
+ }
@@ -1,9 +1,9 @@
1
1
  import axios from "axios";
2
- import extract from "extract-zip";
3
2
  import fs from "fs";
4
3
  import path from "path";
5
4
  import os from "os";
6
5
  import { fileURLToPath } from "url";
6
+ import decompress from "decompress";
7
7
 
8
8
  const __filename = fileURLToPath(import.meta.url);
9
9
  const __dirname = path.dirname(__filename);
@@ -56,8 +56,7 @@ const downloadFromRef = async ({ repoPath, ref, refType }) => {
56
56
  });
57
57
 
58
58
  fs.writeFileSync(tempZip, response.data);
59
- await extract(tempZip, { dir: tempExtractDir });
60
-
59
+ await decompress(tempZip, tempExtractDir);
61
60
  const extractedRootDir = fs
62
61
  .readdirSync(tempExtractDir, { withFileTypes: true })
63
62
  .find((entry) => entry.isDirectory());