git-commit-file
Advanced tools
Comparing version 1.1.2 to 1.1.3
const chalk = require('chalk') | ||
const exec = require('shelljs.exec') | ||
const findUp = require('find-up') | ||
const testing = process.env.NODE_ENV === 'test' | ||
@@ -8,6 +9,6 @@ | ||
getWebpackOutputFilename() { | ||
const webpackConfigPath = findUp.sync('webpack.config') | ||
/* istanbul ignore next */ | ||
try { | ||
// noinspection JSFileReferences | ||
const webpackConfig = require('../../../webpack.config') | ||
const webpackConfig = require(webpackConfigPath) | ||
return webpackConfig.output.filename | ||
@@ -14,0 +15,0 @@ } catch (e) { |
{ | ||
"name": "git-commit-file", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Git add and commit a single file in a single command", | ||
@@ -21,2 +21,3 @@ "author": "danday74", | ||
"chalk": "^2.3.2", | ||
"find-up": "^2.1.0", | ||
"shelljs.exec": "^1.1.7", | ||
@@ -32,3 +33,3 @@ "yargs": "^11.0.0" | ||
"mocha": "^5.0.4", | ||
"sinon": "^4.4.5", | ||
"sinon": "^4.4.6", | ||
"sinon-chai": "^3.0.0" | ||
@@ -35,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
73395
184
4
6
+ Addedfind-up@^2.1.0