New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

normalize-pkg

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-pkg - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

7

index.js

@@ -24,2 +24,3 @@ 'use strict';

var opts = utils.merge({}, defaults, options);
var resolve = utils.expand(opts);
var keys = Object.keys(opts);

@@ -65,3 +66,7 @@ var diff = utils.omit(pkg, keys);

if (pkg[key] && utils.typeOf(pkg[key]) !== val.type) {
throw new TypeError('expected ' + key + ' to be type: ' + val.type);
if (val.hasOwnProperty('template')) {
pkg[key] = resolve(val.template, pkg);
} else {
throw new TypeError('expected ' + key + ' to be type: ' + val.type);
}
}

@@ -68,0 +73,0 @@ }

@@ -28,2 +28,3 @@ 'use strict';

require('expand');
require('extend-shallow', 'extend');

@@ -30,0 +31,0 @@ require('mixin-deep', 'merge');

3

package.json
{
"name": "normalize-pkg",
"description": "Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.",
"version": "0.2.1",
"version": "0.2.2",
"homepage": "https://github.com/jonschlinkert/normalize-pkg/",

@@ -25,2 +25,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"define-property": "^0.2.5",
"expand": "^0.3.2",
"extend-shallow": "^2.0.1",

@@ -27,0 +28,0 @@ "get-value": "^2.0.0",

@@ -116,2 +116,2 @@ # normalize-pkg [![NPM version](https://badge.fury.io/js/normalize-pkg.svg)](http://badge.fury.io/js/normalize-pkg)

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 06, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 08, 2015._
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