@jsreport/jsreport-handlebars
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0
@@ -0,0 +0,0 @@ const config = require('./jsreport.config.js') |
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ /*! |
@@ -0,0 +0,0 @@ /*! |
const path = require('path') | ||
const createEngine = require('./handlebarsEngine') | ||
@@ -13,13 +12,20 @@ module.exports = (reporter, definition) => { | ||
const { compile, execute, createContext, onRequire } = createEngine({ | ||
handlebarsModulePath: hbPath | ||
}) | ||
let engine | ||
const lazyGetEngine = () => { | ||
if (engine) { | ||
return engine | ||
} | ||
engine = require('./handlebarsEngine')({ | ||
handlebarsModulePath: hbPath | ||
}) | ||
return engine | ||
} | ||
reporter.extensionsManager.engines.push({ | ||
name: 'handlebars', | ||
compile, | ||
execute, | ||
createContext, | ||
onRequire | ||
compile: (...args) => lazyGetEngine().compile(...args), | ||
execute: (...args) => lazyGetEngine().execute(...args), | ||
createContext: (...args) => lazyGetEngine().createContext(...args), | ||
onRequire: (...args) => lazyGetEngine().onRequire(...args) | ||
}) | ||
} |
{ | ||
"name": "@jsreport/jsreport-handlebars", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0", | ||
"description": "jsreport handlebars templating engine", | ||
@@ -27,4 +27,4 @@ "keywords": [ | ||
"handlebars": "4.7.7", | ||
"@jsreport/jsreport-core": "3.0.0-beta.1", | ||
"@jsreport/studio-dev": "3.0.0-beta.1", | ||
"@jsreport/jsreport-core": "3.0.0", | ||
"@jsreport/studio-dev": "3.0.0", | ||
"mocha": "5.0.1", | ||
@@ -38,3 +38,3 @@ "should": "13.2.3", | ||
"engines": { | ||
"node": ">=14.17.4" | ||
"node": ">=16.11" | ||
}, | ||
@@ -47,2 +47,2 @@ "standard": { | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ # @jsreport/jsreport-handlebars |
Sorry, the diff of this file is not supported yet
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
161
0
14275
2