Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab1e83b8bf | |||
67980f9f41 | |||
2d34397b9b | |||
2744e1a92b |
5226
package-lock.json
generated
5226
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartnpm",
|
"name": "@pushrocks/smartnpm",
|
||||||
"version": "1.0.24",
|
"version": "1.0.26",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "interface with npm to retrieve package information",
|
"description": "interface with npm to retrieve package information",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -14,9 +14,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.12",
|
||||||
"@gitzone/tstest": "^1.0.52",
|
"@gitzone/tstest": "^1.0.54",
|
||||||
"@pushrocks/tapbundle": "^3.2.14",
|
"@pushrocks/tapbundle": "^3.2.14",
|
||||||
"@types/node": "^14.14.41",
|
"@types/node": "^15.0.1",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
|
@ -122,6 +122,9 @@ export class NpmPackage {
|
|||||||
// lets find the best matching release
|
// lets find the best matching release
|
||||||
const versionStrings = this.allVersions.map((packageVersion) => packageVersion.version);
|
const versionStrings = this.allVersions.map((packageVersion) => packageVersion.version);
|
||||||
const bestMatchingVersion = targetVersion.getBestMatch(versionStrings);
|
const bestMatchingVersion = targetVersion.getBestMatch(versionStrings);
|
||||||
|
if (!bestMatchingVersion) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
tarballUrl = this.allVersions.find(
|
tarballUrl = this.allVersions.find(
|
||||||
(packageVersion) => packageVersion.version === bestMatchingVersion
|
(packageVersion) => packageVersion.version === bestMatchingVersion
|
||||||
).dist.tarball;
|
).dist.tarball;
|
||||||
@ -142,6 +145,7 @@ export class NpmPackage {
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
|
done.resolve(null);
|
||||||
subscription.unsubscribe();
|
subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user