normalize-package-data icon indicating copy to clipboard operation
normalize-package-data copied to clipboard

Do something sensible with schemeless URLs

Open zeke opened this issue 10 years ago • 3 comments

https://github.com/npm/newww/issues/840

Somehow the mobile-detect package made it through the publish process (3 weeks ago) without its broken repository value getting discarded or repaired:

repository: {
  type: "git",
  url: "github.com/hgoebl/mobile-detect.js"
}

http://registry.npmjs.org/mobile-detect

zeke avatar Apr 09 '15 17:04 zeke

@zeke do you think I should publish a new version now? Thanks for contributing BTW.

hgoebl avatar Apr 09 '15 19:04 hgoebl

@hgoebl yeah go for it.

For the record, 1.0.0 is a version with the not-fully-qualified URL.

zeke avatar Apr 09 '15 23:04 zeke

I would also like to see the author.url field normalized to have http:// prepended if missing: https://github.com/sindresorhus/debug-log/blob/fb9e716cd288846df5dca4c37baea7c49e8351ec/package.json#L10

sindresorhus avatar May 01 '15 00:05 sindresorhus