Socket
Socket
Sign inDemoInstall

@jsreport/jsreport-scripts

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/jsreport-scripts - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

9

lib/executeScript.js

@@ -12,3 +12,2 @@ const extend = require('node.extend.without.arrays')

const requestContextMetaConfig = reporter.getRequestContextMetaConfig() || {}
const originalData = req.data

@@ -159,9 +158,3 @@ const originalSharedContext = req.context.shared

function isObject (input) {
if (Object.prototype.toString.call(input) !== '[object Object]') {
return false
}
const prototype = Object.getPrototypeOf(input)
return prototype === null || prototype === Object.prototype
return Object.prototype.toString.call(input) === '[object Object]'
}

6

lib/worker.js

@@ -142,2 +142,8 @@ /*!

if (scriptExecResult.error) {
throw this.reporter.createError(scriptExecResult.error.message, {
weak: true
})
}
if (scriptExecResult.shouldRunAfterRender) {

@@ -144,0 +150,0 @@ script.shouldRunAfterRender = true

{
"name": "@jsreport/jsreport-scripts",
"version": "3.2.0",
"version": "3.2.1",
"description": "jsreport extension capable of running custom javascript functions during the rendering process",

@@ -32,6 +32,6 @@ "keywords": [

"devDependencies": {
"@jsreport/jsreport-assets": "3.2.0",
"@jsreport/jsreport-core": "3.3.0",
"@jsreport/jsreport-assets": "3.4.2",
"@jsreport/jsreport-core": "3.6.1",
"@jsreport/jsreport-jsrender": "3.0.0",
"@jsreport/studio-dev": "3.0.1",
"@jsreport/studio-dev": "3.1.0",
"bluebird": "3.7.2",

@@ -38,0 +38,0 @@ "mocha": "5.2.0",

@@ -10,2 +10,6 @@ # @jsreport/jsreport-scripts

### 3.2.1
- fix cannot propagate req.data object changes from sandbox when trustUserCode is true
### 3.0.1

@@ -12,0 +16,0 @@

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