diff2html-cli
Advanced tools
Comparing version 1.4.2 to 1.4.3
{ | ||
"name": "diff2html-cli", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"homepage": "https://www.github.com/rtfpessoa/diff2html-cli", | ||
@@ -49,3 +49,3 @@ "description": "Fast Diff to colorized HTML", | ||
"copy-paste": "^1.1.4", | ||
"diff2html": "~1.3.0", | ||
"diff2html": "~1.3.1", | ||
"extend": "^3.0.0", | ||
@@ -52,0 +52,0 @@ "open": "^0.0.5", |
@@ -95,12 +95,12 @@ /* | ||
var cssFilePath = path.resolve(__dirname, '..', 'node_modules', 'diff2html', 'css', 'diff2html.css'); | ||
var cssFallbackPath = path.resolve(__dirname, '..', 'dist', 'diff2html.css'); | ||
var cssFilePath = path.resolve(__dirname, '..', 'node_modules', 'diff2html', 'dist', 'diff2html.min.css'); | ||
var cssContent = utils.readFileSync(cssFilePath); | ||
if (!utils.existsSync(cssFilePath)) cssFilePath = cssFallbackPath; | ||
var jsUiFilePath = path.resolve(__dirname, '..', 'node_modules', 'diff2html', 'dist', 'diff2html-ui.min.js'); | ||
var jsUiContent = utils.readFileSync(jsUiFilePath); | ||
var cssContent = utils.readFileSync(cssFilePath); | ||
return template | ||
.replace('<!--css-->', '<style>\n' + cssContent + '\n</style>') | ||
.replace('<!--diff-->', content); | ||
.replace('<!--diff2html-css-->', '<style>\n' + cssContent + '\n</style>') | ||
.replace('<!--diff2html-js-ui-->', '<script>\n' + jsUiContent + '\n</script>') | ||
.replace('<!--diff2html-diff-->', content); | ||
}; | ||
@@ -107,0 +107,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
617
22966
Updateddiff2html@~1.3.1