Socket
Socket
Sign inDemoInstall

about-this-app

Package Overview
Dependencies
36
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

.prettierrc

10

index.js

@@ -7,3 +7,2 @@ // @flow

const readPkgUp = require('read-pkg-up');
const _ = require('lodash');

@@ -17,4 +16,11 @@ const { path: packageJson, pkg } = readPkgUp.sync({

const has = (obj, path) => {
// Regex explained: https://regexr.com/58j0k
const pathArray = Array.isArray(path) ? path : path.match(/([^[.\]])+/g);
return !!pathArray.reduce((prevObj, key) => prevObj && prevObj[key], obj);
};
const hasFile = (f /*: string */) => fs.existsSync(resolve(f));
const hasPkgProp = props => arrify(props).some(prop => _.has(pkg, prop));
const hasPkgProp = props => arrify(props).some(prop => has(pkg, prop));

@@ -21,0 +27,0 @@ const hasPkgSubProp = (pkgProp /*: string */) => (...props /*: string[] */) =>

7

package.json
{
"name": "about-this-app",
"version": "1.1.0",
"version": "1.1.1",
"description": "Utility functions to query package.json",
"author": "Felix Gnass <fgnass@cellular.de>",
"repository": "fgnass/about-this-app",
"repository": "cellular/about-this-app",
"license": "MIT",

@@ -17,3 +17,2 @@ "main": "index.js",

"arrify": "^1.0.1",
"lodash": "^4.17.5",
"read-pkg-up": "^3.0.0"

@@ -23,3 +22,3 @@ },

"eslint": "^4.17.0",
"eslint-config-cellular": "^1.0.0",
"eslint-config-cellular": "^2.0.1",
"flow-bin": "^0.65.0",

@@ -26,0 +25,0 @@ "jest": "^22.2.1"

# about-this-app
[![Build Status](https://travis-ci.org/fgnass/about-this-app.svg?branch=master)](https://travis-ci.org/fgnass/about-this-app)
[![Greenkeeper badge](https://badges.greenkeeper.io/cellular/about-this-app.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/cellular/about-this-app.svg?branch=master)](https://travis-ci.org/cellular/about-this-app)
Utility functions to query a project's package.json file.

@@ -6,0 +8,0 @@

Sorry, the diff of this file is not supported yet

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