New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@daisy/ace-report

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daisy/ace-report - npm Package Compare versions

Comparing version 1.2.6-alpha.5 to 1.2.6

lib/report-template-assets/bootstrap.min.css

17

lib/report.js
'use strict';
const fs = require('fs-extra');
const fsNode = require('fs');
const path = require('path');

@@ -145,4 +146,18 @@ const winston = require('winston');

generateHtmlReport(this.json).then(result => fs.writeFileSync(path.join(outdir, 'report.html'), result, 'UTF-8')).catch(err => winston.error(err));
generateHtmlReport(this.json).then(result => {
fs.writeFileSync(path.join(outdir, 'report.html'), result, 'UTF-8');
const assetDirIn = path.join(__dirname, 'report-template-assets');
const assetDirOut = path.join(outdir, 'report-html-files');
if (!fsNode.existsSync(assetDirOut)) {
fs.ensureDirSync(assetDirOut);
}
fsNode.readdirSync(assetDirIn).map(file => path.resolve(assetDirIn, file)).filter(file => fsNode.lstatSync(file).isFile()).forEach(f => {
const dest = path.join(assetDirOut, path.basename(f));
fs.writeFileSync(dest, fsNode.readFileSync(f, { encoding: "utf8" }), { encoding: "utf8" });
// fsNode.createReadStream(f).pipe(
// fsNode.createWriteStream(dest)
// );
});
}).catch(err => winston.error(err));
}
};

8

package.json
{
"name": "@daisy/ace-report",
"version": "1.2.6-alpha.5",
"version": "1.2.6",
"engines": {

@@ -26,5 +26,5 @@ "node": ">=12.0.0",

"dependencies": {
"@daisy/ace-config": "^1.2.6-alpha.5",
"@daisy/ace-localize": "^1.2.6-alpha.5",
"@daisy/ace-meta": "^1.2.6-alpha.5",
"@daisy/ace-config": "^1.2.6",
"@daisy/ace-localize": "^1.2.6",
"@daisy/ace-meta": "^1.2.6",
"escape-html": "^1.0.3",

@@ -31,0 +31,0 @@ "fs-extra": "^10.0.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