Socket
Socket
Sign inDemoInstall

normalize-package-data

Package Overview
Dependencies
2
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

2

lib/fixer.js

@@ -9,3 +9,3 @@ var semver = require("semver")

fixRepositoryField: function(data) {
if (data.repostories) {
if (data.repositories) {
this.warn("'repositories' (plural) Not supported.\n" +

@@ -12,0 +12,0 @@ "Please pick one as the 'repository' field");

{
"name": "normalize-package-data",
"version": "0.1.2",
"version": "0.1.3",
"author": "Meryn Stol <merynstol@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Normalizes data that can be found in package.json files.",

@@ -101,1 +101,8 @@ var tap = require("tap")

})
tap.test("singularize repositories", function(t) {
d = {repositories:["git@gist.github.com:123456.git"]}
normalize(d)
t.same(d.repository, { type: 'git', url: 'git@gist.github.com:123456.git' })
t.end()
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc