@jsreport/office
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0
10
index.js
module.exports = { | ||
extendSchema: require('./lib/extendSchema'), | ||
response: require('./lib/response'), | ||
decompress: require('./lib/decompress'), | ||
saveXmlsToOfficeFile: require('./lib/saveXmlsToOfficeFile'), | ||
serializeOfficeXmls: require('./lib/serializeOfficeXmls') | ||
extendSchema: (...args) => require('./lib/extendSchema')(...args), | ||
response: (...args) => require('./lib/response')(...args), | ||
decompress: (...args) => require('./lib/decompress')(...args), | ||
saveXmlsToOfficeFile: (...args) => require('./lib/saveXmlsToOfficeFile')(...args), | ||
serializeOfficeXmls: (...args) => require('./lib/serializeOfficeXmls')(...args) | ||
} |
@@ -0,0 +0,0 @@ // taken from https://github.com/kevva/decompress-unzip |
@@ -0,0 +0,0 @@ const extend = require('node.extend.without.arrays') |
@@ -37,5 +37,14 @@ const axios = require('axios') | ||
const isPreviewRequest = req.options.preview === true || req.options.preview === 'true' | ||
const isOfficePreviewRequest = req.options.office != null && (req.options.office.preview === true || req.options.office.preview === 'true') | ||
let isOfficePreviewRequest | ||
if (enabled === false || (!isPreviewRequest && !isOfficePreviewRequest)) { | ||
if ( | ||
req.options.office == null || | ||
req.options.office.preview == null | ||
) { | ||
isOfficePreviewRequest = isPreviewRequest | ||
} else { | ||
isOfficePreviewRequest = req.options.office.preview === true || req.options.office.preview === 'true' | ||
} | ||
if (enabled === false || !isOfficePreviewRequest) { | ||
res.meta.fileExtension = officeDocumentType | ||
@@ -42,0 +51,0 @@ res.meta.contentType = officeDocuments[officeDocumentType].contentType |
@@ -0,0 +0,0 @@ const fs = require('fs') |
@@ -0,0 +0,0 @@ const fs = require('fs') |
{ | ||
"name": "@jsreport/office", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0", | ||
"description": "Some helpers for office based jsreport recipes", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"archiver": "5.3.0", | ||
"axios": "0.21.1", | ||
"axios": "0.23.0", | ||
"form-data": "2.5.0", | ||
@@ -32,5 +32,5 @@ "get-stream": "5.1.0", | ||
"devDependencies": { | ||
"standard": "16.0.3", | ||
"mocha": "8.3.2", | ||
"should": "13.2.3" | ||
"should": "13.2.3", | ||
"standard": "16.0.3" | ||
}, | ||
@@ -46,2 +46,2 @@ "files": [ | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ # @jsreport/office |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
203
0
9034
1
+ Addedaxios@0.23.0(transitive)
- Removedaxios@0.21.1(transitive)
Updatedaxios@0.23.0