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

abt

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abt - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

32

bin/utilities/find.js

@@ -26,20 +26,22 @@ 'use strict'

try {
const json = readJsonFile(filePath)
return _prettyjson.default.render(json[jsonPath])
var _filePath, _json$jsonPath
const json = ((_filePath = filePath), readJsonFile(_filePath))
return (_json$jsonPath = json[jsonPath]), _prettyjson.default.render(_json$jsonPath)
} catch (error) {
console.log(`\nabt -> ERROR:\n\n`, {
error
})
setTimeout(() => process.exit(0), 100)
if (String(error).includes('Cannot convert undefined or null to object')) {
return "abt: jsonPath doesn't exist in package.json"
} else {
console.log(
`\nabt -> ERROR:\n\n`,
{
error
},
'\n\n\nabt -> END_ERROR'
)
setTimeout(() => process.exit(0), 250)
}
}
} // export const find = async (filePath, jsonPath, settings = { sort: true }) => {
// try {
// const json = await jq.run(jsonPath, filePath, settings)
// return json
// } catch(error) {
// console.log(`abt -> ERROR:`, { error })
// setTimeout(() => process.exit(0), 100)
// }
// }
}
exports.find = find
{
"name": "abt",
"version": "0.0.7",
"version": "0.0.8",
"description": "A CLI tool to get easy info from your package.json.",

@@ -5,0 +5,0 @@ "main": "./code/index.js",

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