Skip to content

Update npm_utils.js#11

Open
amcereijo wants to merge 1 commit into
necccc:masterfrom
amcereijo:patch-1
Open

Update npm_utils.js#11
amcereijo wants to merge 1 commit into
necccc:masterfrom
amcereijo:patch-1

Conversation

@amcereijo

Copy link
Copy Markdown

Check if there is data in new registry. When no data, value is {} and a error is throw at

const latest = Object.keys(data)[0];
const newRegistryVersions = data[latest].versions;

Check if there is data in new registry. When no data, value is `{}` and a error is throw at 
```
const latest = Object.keys(data)[0];
const newRegistryVersions = data[latest].versions;
```
@prachikhadke

Copy link
Copy Markdown

Thanks for this fix. I ran into the exact same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants