Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

init-package-json

Package Overview
Dependencies
Maintainers
6
Versions
69
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 7.0.1 to 7.0.2

7

lib/default-input.js

@@ -202,3 +202,4 @@ /* globals config, dirname, package, basename, yes, prompt */

exports.repository = async () => {
const gconf = await fs.readFile('.git/config', 'utf8').catch(() => '')
const gitConfigPath = path.resolve(dirname, '.git', 'config')
const gconf = await fs.readFile(gitConfigPath, 'utf8').catch(() => '')
const lines = gconf.split(/\r?\n/)

@@ -210,5 +211,5 @@

if (i !== -1) {
url = gconf[i + 1]
url = lines[i + 1]
if (!url.match(/^\s*url =/)) {
url = gconf[i + 2]
url = lines[i + 2]
}

@@ -215,0 +216,0 @@ if (!url.match(/^\s*url =/)) {

{
"name": "init-package-json",
"version": "7.0.1",
"version": "7.0.2",
"main": "lib/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