@jahed/terraform 1.8.1 → 1.8.2
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/lib/extractArchive.js +5 -1
- package/package.json +4 -4
package/lib/extractArchive.js
CHANGED
|
@@ -25,7 +25,8 @@ const extractArchive = ({ outputs, buffer, outdir }) => {
|
|
|
25
25
|
archive.on("error", (error) => reject(error));
|
|
26
26
|
archive.on("entry", (entry) => {
|
|
27
27
|
if (entry.fileName !== outputs.originalFilename) {
|
|
28
|
-
|
|
28
|
+
// ignore LICENSE.txt and any other additional files
|
|
29
|
+
archive.readEntry();
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
32
|
archive.openReadStream(entry, (err, readStream) => {
|
|
@@ -54,6 +55,9 @@ const extractArchive = ({ outputs, buffer, outdir }) => {
|
|
|
54
55
|
readStream.pipe(fileStream);
|
|
55
56
|
});
|
|
56
57
|
});
|
|
58
|
+
archive.on("end", () => {
|
|
59
|
+
reject((0, promises_1.reason)(`expected zip to contain a terraform executable. (${outputs.originalFilename})`));
|
|
60
|
+
});
|
|
57
61
|
archive.readEntry();
|
|
58
62
|
});
|
|
59
63
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jahed/terraform",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "A wrapper which downloads and runs Terraform locally via npm.",
|
|
5
5
|
"author": "Jahed Ahmed <jahed.public@gmail.com> (https://jahed.dev)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@jahed/promises": "^1.0.2",
|
|
36
36
|
"find-cache-dir": "^3.3.2",
|
|
37
|
-
"openpgp": "^5.11.
|
|
37
|
+
"openpgp": "^5.11.2",
|
|
38
38
|
"yauzl": "^2.10.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsconfig/node16": "^1.0.4",
|
|
42
42
|
"@types/find-cache-dir": "^3.2.1",
|
|
43
|
-
"@types/node": "^16.18.
|
|
43
|
+
"@types/node": "^16.18.101",
|
|
44
44
|
"@types/yauzl": "^2.10.3",
|
|
45
|
-
"npm-check-updates": "^16.14.
|
|
45
|
+
"npm-check-updates": "^16.14.20",
|
|
46
46
|
"prettier": "^2.8.8",
|
|
47
47
|
"typescript": "4.9.x"
|
|
48
48
|
}
|