Skip to content

Commit

Permalink
chore: use https for registry.npmjs.org (#656)
Browse files Browse the repository at this point in the history
# Motivation

Spotted an ugly typo used for comparing version when preparing next -
i.e. `http` instead of `https://`.

# Notes

I should probably create a library once with this script, we used it in
5 repo at the foundation and I use it in few in Juno as well.

# Changes

- Update `httpS://registry.npmjs.org`

Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker authored Jun 11, 2024
1 parent 37b02a2 commit c30cf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const nextVersion = async ({ project, currentVersion }) => {
.slice(0, 10)}`;

const { versions } = await (
await fetch(`http://registry.npmjs.org/@dfinity/${project}`)
await fetch(`https://registry.npmjs.org/@dfinity/${project}`)
).json();

// The wip version has never been published
Expand Down

0 comments on commit c30cf6e

Please sign in to comment.