@badisi/latest-version 7.0.13 → 7.0.15
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/index.js +3 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -100,7 +100,6 @@ var downloadMetadata = (pkgName, options) => {
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
const abort = (error) => {
|
|
103
|
-
request.removeAllListeners();
|
|
104
103
|
request.destroy();
|
|
105
104
|
reject(error);
|
|
106
105
|
};
|
|
@@ -110,6 +109,9 @@ var downloadMetadata = (pkgName, options) => {
|
|
|
110
109
|
request.once("error", (err) => {
|
|
111
110
|
abort(err);
|
|
112
111
|
});
|
|
112
|
+
request.once("close", () => {
|
|
113
|
+
request.removeAllListeners();
|
|
114
|
+
});
|
|
113
115
|
});
|
|
114
116
|
};
|
|
115
117
|
var getCacheDir = (name = "@badisi/latest-version") => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@badisi/latest-version",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.15",
|
|
4
4
|
"description": "Get latest versions of packages",
|
|
5
5
|
"homepage": "https://github.com/badisi/latest-version",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
"global-dirs": "3.0.1",
|
|
49
49
|
"ora": "^8.2.0",
|
|
50
50
|
"registry-auth-token": "^5.1.0",
|
|
51
|
-
"semver": "^7.7.
|
|
51
|
+
"semver": "^7.7.2"
|
|
52
52
|
}
|
|
53
53
|
}
|