We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1b4ca commit c89648aCopy full SHA for c89648a
1 file changed
lib/package/npm.js
@@ -64,6 +64,9 @@ export default class Npm {
64
}
65
66
async setTags ( { repeatOnError } = {} ) {
67
+ if ( this.pkg.isPrivate ) return result( [ 200, "Package is private" ] );
68
+ if ( !this.pkg.name ) return result( [ 500, "Package has no name" ] );
69
+
70
return repeatAction(
71
async () => {
72
const res = await this.#setTags();
@@ -81,6 +84,9 @@ export default class Npm {
81
84
82
85
83
86
async setAccessStatus ( accessStatus, { repeatOnError } = {} ) {
87
88
89
90
if ( accessStatus && this.pkg.name.startsWith( "@" ) ) {
91
const res = await repeatAction(
92
0 commit comments