@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.
package/README.md CHANGED
@@ -11,7 +11,7 @@ Embedded JavaScript templates with extend/block
11
11
  You can get EJS via [npm](http://npmjs.com).
12
12
 
13
13
  ```bash
14
- $ npm install @kosatyi/ejs --save
14
+ $ npm install @kosatyi/ejs
15
15
  ```
16
16
 
17
17
  ## Usage
@@ -308,6 +308,7 @@ function Compiler(config) {
308
308
  BUFFER = _compiler$vars.BUFFER,
309
309
  COMPONENT = _compiler$vars.COMPONENT;
310
310
  var GLOBALS = compiler.globalHelpers;
311
+ content = String(content);
311
312
  if (compiler.rmWhitespace) {
312
313
  content = content.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, '');
313
314
  }
package/dist/cjs/index.js CHANGED
@@ -311,6 +311,7 @@ function Compiler(config) {
311
311
  BUFFER = _compiler$vars.BUFFER,
312
312
  COMPONENT = _compiler$vars.COMPONENT;
313
313
  var GLOBALS = compiler.globalHelpers;
314
+ content = String(content);
314
315
  if (compiler.rmWhitespace) {
315
316
  content = content.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, '');
316
317
  }