Socket
Socket
Sign inDemoInstall

normalize-package-data

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-package-data - npm Package Compare versions

Comparing version 0.2.13 to 0.3.0

4

lib/fixer.js

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

if (githubUserRepo(data[deps][d])) {
data[deps][d] = githubUserRepo(data[deps][d])
data[deps][d] = 'git+' + githubUserRepo(data[deps][d])
}

@@ -383,2 +383,2 @@ }, this)

})
}
}
{
"name": "normalize-package-data",
"version": "0.2.13",
"version": "0.3.0",
"author": "Meryn Stol <merynstol@gmail.com>",

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

"github-url-from-git": "~1.1.1",
"github-url-from-username-repo": "^0.1.0",
"github-url-from-username-repo": "^0.2.0",
"semver": "2"

@@ -19,0 +19,0 @@ },

@@ -161,3 +161,3 @@ var tap = require("tap")

normalize(d)
t.same(d.repository, { type: "git", url: "git://github.com/visionmedia/express" })
t.same(d.repository, { type: "git", url: "https://github.com/visionmedia/express" })
t.end()

@@ -169,3 +169,3 @@ });

normalize(d)
t.same(d.repository, { type: "git", url: "git://github.com/isaacs/node-graceful-fs" })
t.same(d.repository, { type: "git", url: "https://github.com/isaacs/node-graceful-fs" })
t.end()

@@ -177,3 +177,3 @@ });

normalize(a={
repository: { type: "git", url: "git://github.com/isaacs/node-graceful-fs" }
repository: { type: "git", url: "https://github.com/isaacs/node-graceful-fs" }
})

@@ -205,3 +205,3 @@ t.same(a.homepage, 'https://github.com/isaacs/node-graceful-fs')

normalize(d)
t.same(d.dependencies, {"node-graceful-fs": "git://github.com/isaacs/node-graceful-fs" })
t.same(d.dependencies, {"node-graceful-fs": "git+https://github.com/isaacs/node-graceful-fs" })
t.end()

@@ -208,0 +208,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc