@bigcommerce/stencil-paper-handlebars
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -388,2 +388,4 @@ 'use strict'; | ||
method = 'log'; | ||
} else if (this._overrideHandlebarsAccessDeniedToPropertyMessageLevel(...message)) { | ||
method = 'info'; | ||
} | ||
@@ -399,2 +401,3 @@ this.logger[method](...message); | ||
_overrideConsoleLog() { | ||
this.isLoggerOverriden = false; | ||
if (this.logger !== console) { | ||
@@ -405,5 +408,10 @@ console.log = this.logger.info.bind(this.logger); | ||
console.warn = this.logger.warn.bind(this.logger); | ||
this.isLoggerOverriden = true; | ||
} | ||
} | ||
_overrideHandlebarsAccessDeniedToPropertyMessageLevel(message) { | ||
return this.isLoggerOverriden && message.includes('Handlebars: Access has been denied to resolve the property'); | ||
} | ||
/** | ||
@@ -410,0 +418,0 @@ * |
{ | ||
"name": "@bigcommerce/stencil-paper-handlebars", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "A paper plugin to render pages using Handlebars.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
188319
6195