Skip to content

Commit cadb8c3

Browse files
committed
fix: fix set npm tags
1 parent 570a7e6 commit cadb8c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/package/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default class Npm {
230230

231231
res = await this.api.getPackageTags( this.pkg.name );
232232
if ( !res.ok ) return res;
233-
const remoteTags = res.data;
233+
const remoteTags = res.data || {};
234234

235235
for ( const [ tag, version ] of Object.entries( tags ) ) {
236236

0 commit comments

Comments
 (0)