Socket
Socket
Sign inDemoInstall

normalize-package-data

Package Overview
Dependencies
11
Maintainers
5
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.0.1

4

lib/fixer.js

@@ -142,3 +142,3 @@ var isValidSemver = require('semver/functions/valid')

fixDependencies: function (data, strict) {
fixDependencies: function (data) {
objectifyDeps(data, this.warn)

@@ -419,3 +419,3 @@ addOptionalDepsToDeps(data, this.warn)

function addOptionalDepsToDeps (data, warn) {
function addOptionalDepsToDeps (data) {
var o = data.optionalDependencies

@@ -422,0 +422,0 @@ if (!o) {

@@ -29,3 +29,3 @@ module.exports = normalize

if (!warn || data.private) {
warn = function (msg) { /* noop */ }
warn = function () { /* noop */ }
}

@@ -32,0 +32,0 @@

{
"name": "normalize-package-data",
"version": "6.0.0",
"version": "6.0.1",
"author": "GitHub Inc.",

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

"type": "git",
"url": "https://github.com/npm/normalize-package-data.git"
"url": "git+https://github.com/npm/normalize-package-data.git"
},

@@ -16,3 +16,3 @@ "main": "lib/normalize.js",

"npmclilint": "npmcli-lint",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",

@@ -33,3 +33,3 @@ "posttest": "npm run lint",

"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.18.0",
"@npmcli/template-oss": "4.22.0",
"tap": "^16.0.1"

@@ -46,10 +46,4 @@ },

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.18.0",
"publish": "true",
"ciVersions": [
"16.14.0",
"16.x",
"18.0.0",
"18.x"
]
"version": "4.22.0",
"publish": "true"
},

@@ -56,0 +50,0 @@ "tap": {

# normalize-package-data
[![Build Status](https://travis-ci.org/npm/normalize-package-data.svg?branch=master)](https://travis-ci.org/npm/normalize-package-data)
[![Build Status](https://img.shields.io/github/actions/workflow/status/npm/normalize-package-data/ci.yml?branch=main)](https://github.com/npm/normalize-package-data)

@@ -5,0 +5,0 @@ normalize-package-data exports a function that normalizes package metadata. This data is typically found in a package.json file, but in principle could come from any source - for example the npm registry.

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