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

@jsreport/office

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/office - npm Package Compare versions

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

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