Socket
Socket
Sign inDemoInstall

init-package-json

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

init-package-json - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

default-input.js

@@ -170,7 +170,7 @@ var fs = require('fs')

if (!package.author) {
exports.author = config['init.author.name']
exports.author = config.get('init.author.name')
? {
"name" : config['init.author.name'],
"email" : config['init.author.email'],
"url" : config['init.author.url']
"name" : config.get('init.author.name'),
"email" : config.get('init.author.email'),
"url" : config.get('init.author.url')
}

@@ -177,0 +177,0 @@ : prompt('author')

@@ -20,2 +20,17 @@

cb = config, config = {}
// accept either a plain-jane object, or a config object
// with a "get" method.
if (typeof config.get !== 'function') {
var data = config
config = {
get: function (k) {
return data[k]
},
toJSON: function () {
return data
}
}
}
var package = path.resolve(dir, 'package.json')

@@ -22,0 +37,0 @@ input = path.resolve(input)

{
"name": "init-package-json",
"version": "0.0.7",
"version": "0.0.8",
"main": "init-package-json.js",

@@ -5,0 +5,0 @@ "scripts": {

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