fix checks
This commit is contained in:
Vendored
+2
-3
@@ -81,7 +81,7 @@ function finalIds(input) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rxjs_1.throwError(`no package id found`);
|
return rxjs_1.throwError("Could not get packageVersionIds. Explicitly specify using the 'package-version-ids' input");
|
||||||
}
|
}
|
||||||
exports.finalIds = finalIds;
|
exports.finalIds = finalIds;
|
||||||
function deleteVersions(input) {
|
function deleteVersions(input) {
|
||||||
@@ -137,8 +137,7 @@ class Input {
|
|||||||
return !!(this.owner &&
|
return !!(this.owner &&
|
||||||
this.repo &&
|
this.repo &&
|
||||||
this.packageName &&
|
this.packageName &&
|
||||||
this.numOldVersionsToDelete > 0 &&
|
this.numOldVersionsToDelete >= 0 &&
|
||||||
this.minVersionsToKeep >= 0 &&
|
|
||||||
this.token);
|
this.token);
|
||||||
}
|
}
|
||||||
checkInput() {
|
checkInput() {
|
||||||
|
|||||||
+3
-1
@@ -128,7 +128,9 @@ export function finalIds(input: Input): Observable<string[]> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return throwError(`no package id found`)
|
return throwError(
|
||||||
|
"Could not get packageVersionIds. Explicitly specify using the 'package-version-ids' input"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deleteVersions(input: Input): Observable<boolean> {
|
export function deleteVersions(input: Input): Observable<boolean> {
|
||||||
|
|||||||
+1
-2
@@ -54,8 +54,7 @@ export class Input {
|
|||||||
this.owner &&
|
this.owner &&
|
||||||
this.repo &&
|
this.repo &&
|
||||||
this.packageName &&
|
this.packageName &&
|
||||||
this.numOldVersionsToDelete > 0 &&
|
this.numOldVersionsToDelete >= 0 &&
|
||||||
this.minVersionsToKeep >= 0 &&
|
|
||||||
this.token
|
this.token
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user