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

diff2html-cli

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diff2html-cli - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

4

package.json
{
"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

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