@hubspot/local-dev-lib 5.8.0 → 5.8.1

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.
Files changed (2) hide show
  1. package/lib/archive.js +3 -2
  2. package/package.json +4 -3
package/lib/archive.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs-extra';
2
2
  import path, { join } from 'path';
3
3
  import { tmpdir } from 'os';
4
- import extract from 'extract-zip';
4
+ import unzipper from 'unzipper';
5
5
  import { logger } from './logger.js';
6
6
  import { i18n } from '../utils/lang.js';
7
7
  import { FileSystemError } from '../models/FileSystemError.js';
@@ -39,7 +39,8 @@ async function extractZip(name, zip, hideLogs = false) {
39
39
  // Extract zip
40
40
  try {
41
41
  const tmpExtractPath = join(result.tmpDir, 'extracted');
42
- await extract(tmpZipPath, { dir: tmpExtractPath });
42
+ const directory = await unzipper.Open.file(tmpZipPath);
43
+ await directory.extract({ path: tmpExtractPath });
43
44
  result.extractDir = tmpExtractPath;
44
45
  }
45
46
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "5.8.0",
3
+ "version": "5.8.1",
4
4
  "type": "module",
5
5
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
6
6
  "files": [
@@ -37,6 +37,7 @@
37
37
  "@types/js-yaml": "^4.0.5",
38
38
  "@types/node": "^20.14.8",
39
39
  "@types/unixify": "^1.0.0",
40
+ "@types/unzipper": "^0.10.11",
40
41
  "@typescript-eslint/eslint-plugin": "^8.30.1",
41
42
  "@typescript-eslint/parser": "^8.11.0",
42
43
  "eslint": "^9.38.0",
@@ -78,7 +79,6 @@
78
79
  "cors": "2.8.5",
79
80
  "debounce": "1.2.1",
80
81
  "express": "4.22.1",
81
- "extract-zip": "2.0.1",
82
82
  "findup-sync": "5.0.0",
83
83
  "form-data": "^4.0.4",
84
84
  "fs-extra": "11.2.0",
@@ -90,7 +90,8 @@
90
90
  "p-queue": "^7.0.0",
91
91
  "prettier": "^3.6.2",
92
92
  "semver": "6.3.1",
93
- "unixify": "1.0.0"
93
+ "unixify": "1.0.0",
94
+ "unzipper": "0.12.3"
94
95
  },
95
96
  "engines": {
96
97
  "node": ">=20.0.0"