@jsreport/jsreport-scripts
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -6,20 +6,2 @@ | ||
worker: 'lib/worker.js', | ||
optionsSchema: { | ||
extensions: { | ||
scripts: { | ||
type: 'object', | ||
properties: { | ||
allowedModules: { | ||
anyOf: [{ | ||
type: 'string', | ||
'$jsreport-constantOrArray': ['*'] | ||
}, { | ||
type: 'array', | ||
items: { type: 'string' } | ||
}] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
dependencies: ['data'], | ||
@@ -29,4 +11,3 @@ requires: { | ||
studio: '3.x.x' | ||
}, | ||
embeddedSupport: true | ||
} | ||
} |
@@ -122,3 +122,3 @@ const extend = require('node.extend.without.arrays') | ||
propertiesConfig: Object.keys(requestContextMetaConfig).reduce((acu, prop) => { | ||
// configure properties inside the context of sandbox | ||
// configure properties inside the context of sandbox | ||
acu[`__request.context.${prop}`] = requestContextMetaConfig[prop] | ||
@@ -125,0 +125,0 @@ return acu |
@@ -8,9 +8,2 @@ /*! | ||
module.exports = function (reporter, definition) { | ||
if (reporter.options.allowLocalFilesAccess === true && !definition.options.allowedModules) { | ||
definition.options.allowedModules = '*' | ||
} | ||
definition.options.allowedModules = definition.options.allowedModules || [] | ||
reporter.options.scripts = definition.options | ||
reporter.documentStore.registerEntityType('ScriptType', { | ||
@@ -17,0 +10,0 @@ content: { type: 'Edm.String', document: { extension: 'js' } }, |
{ | ||
"name": "@jsreport/jsreport-scripts", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "jsreport extension capable of running custom javascript functions during the rendering process", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@jsreport/jsreport-assets": "3.0.1", | ||
"@jsreport/jsreport-core": "3.1.0", | ||
"@jsreport/jsreport-assets": "3.1.0", | ||
"@jsreport/jsreport-core": "3.2.0", | ||
"@jsreport/jsreport-jsrender": "3.0.0", | ||
@@ -40,3 +40,3 @@ "@jsreport/studio-dev": "3.0.1", | ||
"should": "13.2.3", | ||
"standard": "16.0.3" | ||
"standard": "16.0.4" | ||
}, | ||
@@ -43,0 +43,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63804
898