Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsreport/jsreport-handlebars

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/jsreport-handlebars - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0

0

index.js

@@ -0,0 +0,0 @@ const config = require('./jsreport.config.js')

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ /*!

22

lib/worker.js
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

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