@bigcommerce/stencil-paper
Advanced tools
Comparing version 3.0.0-rc.37 to 3.0.0-rc.38
# Changelog | ||
## 3.0.0-rc.38 (2021-03-15) | ||
- Added public interface for handlebars to add templates and preprocess them [#228](https://github.com/bigcommerce/paper/pull/228) | ||
- Bumps paper-handlebars to 4.4.6 [#226](https://github.com/bigcommerce/paper/pull/229) | ||
## 3.0.0-rc.37 (2021-02-12) | ||
@@ -4,0 +8,0 @@ - Bumps paper-handlebars to 4.4.4 [#226](https://github.com/bigcommerce/paper/pull/226) |
17
index.js
@@ -274,4 +274,21 @@ 'use strict'; | ||
} | ||
/** | ||
* | ||
* @param {Object} templates | ||
*/ | ||
preprocess(templates) { | ||
return this.preProcessor(templates); | ||
} | ||
/** | ||
* Registers templates for the handlebars | ||
* | ||
* @param {Object} templats | ||
*/ | ||
addTemplates(templates) { | ||
this.renderer.addTemplates(templates); | ||
} | ||
} | ||
module.exports = Paper; |
{ | ||
"name": "@bigcommerce/stencil-paper", | ||
"version": "3.0.0-rc.37", | ||
"version": "3.0.0-rc.38", | ||
"description": "A Stencil plugin to load template files and render pages using backend renderer plugins.", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@bigcommerce/stencil-paper-handlebars": "4.4.4", | ||
"@bigcommerce/stencil-paper-handlebars": "4.4.6", | ||
"accept-language-parser": "~1.4.1", | ||
@@ -30,0 +30,0 @@ "messageformat": "~0.2.2" |
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
50634
921
1
+ Added@bigcommerce/stencil-paper-handlebars@4.4.6(transitive)
- Removed@bigcommerce/stencil-paper-handlebars@4.4.4(transitive)