@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 +1 -1
- package/dist/cjs/browser.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/worker.js +1205 -0
- package/dist/esm/browser.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/worker.js +966 -0
- package/dist/umd/browser.js +1 -0
- package/dist/umd/browser.min.js +1 -1
- package/dist/umd/index.js +1 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/worker.js +1211 -0
- package/dist/umd/worker.min.js +1 -0
- package/package.json +5 -1
- package/dist/cjs/package.json +0 -3
package/dist/esm/browser.js
CHANGED
|
@@ -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')
|