@kosatyi/ejs 0.0.76 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -369,6 +369,7 @@ function Compiler(config) {
369
369
  this.compile = function (content, path) {
370
370
  const { SCOPE, SAFE, BUFFER, COMPONENT } = compiler.vars;
371
371
  const GLOBALS = compiler.globalHelpers;
372
+ content = String(content);
372
373
  if (compiler.rmWhitespace) {
373
374
  content = content
374
375
  .replace(/[\r\n]+/g, '\n')
package/dist/esm/index.js CHANGED
@@ -372,6 +372,7 @@ function Compiler(config) {
372
372
  this.compile = function (content, path) {
373
373
  const { SCOPE, SAFE, BUFFER, COMPONENT } = compiler.vars;
374
374
  const GLOBALS = compiler.globalHelpers;
375
+ content = String(content);
375
376
  if (compiler.rmWhitespace) {
376
377
  content = content
377
378
  .replace(/[\r\n]+/g, '\n')