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

parse-git-config

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-git-config - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

22

index.js

@@ -12,9 +12,9 @@ /*!

const path = require('path');
const util = require('util');
const ini = require('ini');
const configPath = require('git-config-path');
const expand = require('expand-tilde');
const read = util.promisify(fs.readFile);
const stat = util.promisify(fs.stat);
const read = promisify(fs.readFile);
const stat = promisify(fs.stat);
/**

@@ -199,2 +199,18 @@ * Asynchronously parse a `.git/config` file. If only the callback is passed,

/**
* Wraps an arbitrary function in a Promise.
*
* @param {Function} `fn` The function to be wrapped.
*/
function promisify(fn) {
return (...args) => {
return new Promise((resolve, reject) => {
fn(...args, (err, res) => {
err ? reject(err) : resolve(res);
});
});
};
}
/**
* Expose `parse`

@@ -201,0 +217,0 @@ */

8

package.json
{
"name": "parse-git-config",
"description": "Parse `.git/config` into a JavaScript object. sync or async.",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/jonschlinkert/parse-git-config",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
"j. suárez (http://suarez.systems)",
"Jon Schlinkert (http://twitter.com/jonschlinkert)",
"Sam Holmes (https://samholmes.net)",
"(https://github.com/js-n)"
"Sam Holmes (https://samholmes.net)"
],

@@ -22,3 +22,3 @@ "repository": "jonschlinkert/parse-git-config",

"engines": {
"node": ">=8"
"node": ">=6"
},

@@ -25,0 +25,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