Comparing version 0.7.0 to 0.8.0
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="0.8.0"></a> | ||
# [0.8.0](https://github.com/untool/untool/compare/v0.7.0...v0.8.0) (2018-06-13) | ||
**Note:** Version bump only for package untool | ||
<a name="0.7.0"></a> | ||
@@ -8,0 +16,0 @@ # [0.7.0](https://github.com/untool/untool/compare/v0.4.0...v0.7.0) (2018-06-05) |
23
index.js
#!/usr/bin/env node | ||
'use strict'; | ||
const { promisify } = require('util'); | ||
const { dirname } = require('path'); | ||
const findUp = require('find-up'); | ||
const resolve = promisify(require('enhanced-resolve')); | ||
const { sync: findUp } = require('find-up'); | ||
const { sync: resolve } = require('enhanced-resolve'); | ||
findUp('package.json') | ||
.then(pkgFile => | ||
resolve(dirname(pkgFile), '@untool/yargs').then(path => require(path).run()) | ||
) | ||
.catch(error => { | ||
// eslint-disable-next-line no-console | ||
console.error(error.stack ? error.stack.toString() : error.toString()); | ||
process.exit(1); | ||
}); | ||
try { | ||
const pkgFile = findUp('package.json'); | ||
const yargsPath = resolve(dirname(pkgFile), '@untool/yargs'); | ||
require(yargsPath).run(); | ||
} catch (_) { | ||
// eslint-disable-next-line no-console | ||
console.error("Error: Can't find @untool/yargs \n"); | ||
process.exit(1); | ||
} |
{ | ||
"name": "untool", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "untool cli", | ||
@@ -5,0 +5,0 @@ "preferGlobal": true, |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4419
0
14