@kosatyi/ejs 0.0.62 → 0.0.64

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.
@@ -0,0 +1 @@
1
+ function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e,o){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).ejsPrecompiled=o()}(this,(function(){return{}}));
@@ -36,8 +36,9 @@
36
36
  return htmlEntities[match];
37
37
  });
38
38
  };
39
- var safeValue = function safeValue(value, escape, check) {
40
- return (check = value) == null ? '' : escape ? entities(check) : check;
39
+ var safeValue = function safeValue(value, escape) {
40
+ var check = value;
41
+ return check == null ? '' : escape === true ? entities(check) : check;
41
42
  };
42
43
  var each = function each(object, callback) {
43
44
  var prop;
@@ -1 +1 @@
1
- !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).element={})}(this,(function(n){"use strict";Object.prototype.toString.call("undefined"!=typeof process?process:0);var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},t=function(n){return new RegExp(["[",Object.keys(n).join(""),"]"].join(""),"g")},o=t(e);t({"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"});var r=function(){return(""+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")).replace(o,(function(n){return e[n]}))},i=function(n,e,t){var o=[];return function(n,e){var t;for(t in n)u(n,t)&&e(n[t],t,n)}(n,(function(n,t,r){var i=e(n,t,r);!1==(void 0===i)&&o.push(i)})),o},u=function(n,e){return n&&n.hasOwnProperty(e)},f=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],c=" ",a='"',s="/",p="<",l=">";n.element=function(n,e,t){var o=[],u=-1===f.indexOf(n),d=i(e,(function(n,e){if(null!=n)return[r(e),[a,r(n),a].join("")].join("=")})).join(c);return o.push([p,n,c,d,l].join("")),t&&o.push(t instanceof Array?t.join(""):t),u&&o.push([p,s,n,l].join("")),o.join("")},n.safeValue=function(n,e,t){return null==(t=n)?"":e?r(t):t}}));
1
+ !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).element={})}(this,(function(n){"use strict";Object.prototype.toString.call("undefined"!=typeof process?process:0);var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},t=function(n){return new RegExp(["[",Object.keys(n).join(""),"]"].join(""),"g")},o=t(e);t({"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"});var r=function(){return(""+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")).replace(o,(function(n){return e[n]}))},i=function(n,e,t){var o=[];return function(n,e){var t;for(t in n)u(n,t)&&e(n[t],t,n)}(n,(function(n,t,r){var i=e(n,t,r);!1==(void 0===i)&&o.push(i)})),o},u=function(n,e){return n&&n.hasOwnProperty(e)},f=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],a=" ",c='"',s="/",p="<",l=">";n.element=function(n,e,t){var o=[],u=-1===f.indexOf(n),d=i(e,(function(n,e){if(null!=n)return[r(e),[c,r(n),c].join("")].join("=")})).join(a);return o.push([p,n,a,d,l].join("")),t&&o.push(t instanceof Array?t.join(""):t),u&&o.push([p,s,n,l].join("")),o.join("")},n.safeValue=function(n,e){var t=n;return null==t?"":!0===e?r(t):t}}));