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

jsreport-public-reports

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsreport-public-reports - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

11

lib/main.js

@@ -31,9 +31,12 @@ /*!

}
const filedate = new Date();
const month = filedate.getMonth() + 1;
let filename = 'report-' + req.query.reportid.substring(0,5) + '-' + filedate.getFullYear() + month + filedate.getDate();
if (result[0].fileExtension) {
res.setHeader('File-Extension', result[0].fileExtension)
res.setHeader('File-Extension', result[0].fileExtension);
filename = filename + '.' + result[0].fileExtension.replace('.');
}
const filedate = new Date();
const month = filedate.getMonth() + 1;
const filename = 'report-' + req.query.reportid.substring(0,5) + '-' + filedate.getFullYear() + month + filedate.getDate();
res.setHeader('Content-Disposition', 'inline; filename="' + filename + '"');
const buffer = stream.read();

@@ -40,0 +43,0 @@

{
"name": "jsreport-public-reports",
"version": "1.2.0",
"version": "1.3.0",
"description": "jsreport extension for accessing reports with an access-token",

@@ -32,15 +32,15 @@ "scripts": {

"devDependencies": {
"babel-eslint": "9.0.0",
"eslint": "5.5.0",
"eslint-config-standard-jsx": "6.0.2",
"eslint-plugin-babel": "5.2.0",
"jsreport-authentication": "^2.2.2",
"jsreport-authorization": "^2.2.3",
"jsreport-core": "^2.4.3",
"jsreport-express": "^2.3.1",
"jsreport-templates": "^2.2.0",
"mocha": "5.2.0",
"babel-eslint": "10.0.3",
"eslint": "6.5.1",
"eslint-config-standard-jsx": "8.1.0",
"eslint-plugin-babel": "5.3.0",
"jsreport-authentication": "^2.3.0",
"jsreport-authorization": "^2.2.5",
"jsreport-core": "^2.6.2",
"jsreport-express": "^2.5.0",
"jsreport-templates": "^2.3.2",
"mocha": "6.2.1",
"should": "13.2.3",
"standard": "12.0.1",
"supertest": "3.2.0"
"standard": "14.3.1",
"supertest": "4.0.2"
},

@@ -47,0 +47,0 @@ "files": [

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