Comparing version 1.5.0 to 1.6.0
@@ -355,3 +355,3 @@ (function (global, factory) { | ||
* compileToString("Hi <%= it.user %>", eta.config) | ||
* // "var tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* // "var tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* ``` | ||
@@ -361,3 +361,6 @@ */ | ||
var buffer = parse(str, config); | ||
var res = "var tR=''\n" + | ||
var res = "var tR=''" + | ||
(config.include ? ',include=E.include.bind(E)' : '') + | ||
(config.includeFile ? ',includeFile=E.includeFile.bind(E)' : '') + | ||
'\n' + | ||
(config.useWith ? 'with(' + config.varName + '||{}){' : '') + | ||
@@ -467,3 +470,3 @@ compileScope(buffer, config) + | ||
* | ||
* Called like `E.include(templateNameOrPath, data)` | ||
* Called like `include(templateNameOrPath, data)` | ||
*/ | ||
@@ -539,3 +542,3 @@ function includeHelper(templateNameOrPath, data) { | ||
* let compiledFnStr = compiledFn.toString() | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* ``` | ||
@@ -542,0 +545,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Eta={})}(this,(function(e){"use strict";function t(e){var n,r,a=new Error(e);return n=a,r=t.prototype,Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,a}function n(e,n,r){var a=n.slice(0,r).split(/\n/),i=a.length,o=a[i-1].length+1;throw t(e+=" at line "+i+" col "+o+":\n\n "+n.split(/\n/)[i-1]+"\n "+Array(o).join(" ")+"^")}t.prototype=Object.create(Error.prototype,{name:{value:"Eta Error",enumerable:!1}});var r=new Function("return this")().Promise;function a(e,t){for(var n in t)r=t,a=n,Object.prototype.hasOwnProperty.call(r,a)&&(e[n]=t[n]);var r,a;return e}function i(e,t,n,r){var a,i;return Array.isArray(t.autoTrim)?(a=t.autoTrim[1],i=t.autoTrim[0]):a=i=t.autoTrim,(n||!1===n)&&(a=n),(r||!1===r)&&(i=r),i||a?"slurp"===a&&"slurp"===i?e.trim():("_"===a||"slurp"===a?e=function(e){return String.prototype.trimLeft?e.trimLeft():e.replace(/^\s+/,"")}(e):"-"!==a&&"nl"!==a||(e=e.replace(/^(?:\r\n|\n|\r)/,"")),"_"===i||"slurp"===i?e=function(e){return String.prototype.trimRight?e.trimRight():e.replace(/\s+$/,"")}(e):"-"!==i&&"nl"!==i||(e=e.replace(/(?:\r\n|\n|\r)$/,"")),e):e}var o={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(e){return o[e]}var c=/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g,u=/'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g,l=/"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g;function p(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function f(e,t){var r=[],a=!1,o=0,s=t.parse;function f(e,n){e&&(e=i(e,t,a,n))&&(e=e.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),r.push(e))}t.rmWhitespace&&(e=e.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),c.lastIndex=0,u.lastIndex=0,l.lastIndex=0;for(var g,d=[s.exec,s.interpolate,s.raw].reduce((function(e,t){return e&&t?e+"|"+p(t):t?p(t):e}),""),h=new RegExp("([^]*?)"+p(t.tags[0])+"(-|_)?\\s*("+d+")?\\s*","g"),m=new RegExp("'|\"|`|\\/\\*|(\\s*(-|_)?"+p(t.tags[1])+")","g");g=h.exec(e);){o=g[0].length+g.index;var v,x=g[1],y=g[2],w=g[3]||"";f(x,y),m.lastIndex=o;for(var I=!1;v=m.exec(e);){if(v[1]){var b=e.slice(o,v.index);h.lastIndex=o=m.lastIndex,a=v[2];var E="";w===s.exec?E="e":w===s.raw?E="r":w===s.interpolate&&(E="i"),I={t:E,val:b};break}var S=v[0];if("/*"===S){var T=e.indexOf("*/",m.lastIndex);-1===T&&n("unclosed comment",e,v.index),m.lastIndex=T}else if("'"===S){u.lastIndex=v.index,u.exec(e)?m.lastIndex=u.lastIndex:n("unclosed string",e,v.index)}else if('"'===S){l.lastIndex=v.index,l.exec(e)?m.lastIndex=l.lastIndex:n("unclosed string",e,v.index)}else if("`"===S){c.lastIndex=v.index,c.exec(e)?m.lastIndex=c.lastIndex:n("unclosed string",e,v.index)}}I?r.push(I):n("unclosed tag",e,g.index+x.length)}if(f(e.slice(o,e.length),!1),t.plugins)for(var R=0;R<t.plugins.length;R++){var _=t.plugins[R];_.processAST&&(r=_.processAST(r,t))}return r}function g(e,t){var n=f(e,t),r="var tR=''\n"+(t.useWith?"with("+t.varName+"||{}){":"")+function(e,t){var n=0,r=e.length,a="";for(;n<r;n++){var i=e[n];if("string"==typeof i){a+="tR+='"+i+"'\n"}else{var o=i.t,s=i.val||"";"r"===o?a+="tR+="+s+"\n":"i"===o?(t.autoEscape&&(s="E.e("+s+")"),a+="tR+="+s+"\n"):"e"===o&&(a+=s+"\n")}}return a}(n,t)+"if(cb){cb(null,tR)} return tR"+(t.useWith?"}":"");if(t.plugins)for(var a=0;a<t.plugins.length;a++){var i=t.plugins[a];i.processFnString&&(r=i.processFnString(r,t))}return r}var d=new(function(){function e(e){this.cache=e}return e.prototype.define=function(e,t){this.cache[e]=t},e.prototype.get=function(e){return this.cache[e]},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.reset=function(){this.cache={}},e.prototype.load=function(e){a(this.cache,e)},e}())({});var h={varName:"it",autoTrim:[!1,"nl"],rmWhitespace:!1,autoEscape:!0,tags:["<%","%>"],parse:{interpolate:"=",raw:"~",exec:""},async:!1,templates:d,cache:!1,plugins:[],useWith:!1,e:function(e){var t=String(e);return/[&<>"']/.test(t)?t.replace(/[&<>"']/g,s):t},include:function(e,n){var r=this.templates.get(e);if(!r)throw t('Could not fetch template "'+e+'"');return r(n,this)}};function m(e,t){var n={};return a(n,h),t&&a(n,t),e&&a(n,e),n}function v(e,n){var r,a=m(n||{});r=a.async?function(){try{return new Function("return (async function(){}).constructor")()}catch(e){throw e instanceof SyntaxError?t("This environment doesn't support async/await"):e}}():Function;try{return new r(a.varName,"E","cb",g(e,a))}catch(n){throw n instanceof SyntaxError?t("Bad template syntax\n\n"+n.message+"\n"+Array(n.message.length+1).join("=")+"\n"+g(e,a)+"\n"):n}}function x(e,t){var n;return t.cache&&t.name&&t.templates.get(t.name)?t.templates.get(t.name):(n="function"==typeof e?e:v(e,t),t.cache&&t.name&&t.templates.define(t.name,n),n)}e.compile=v,e.compileToString=g,e.config=h,e.configure=function(e){return a(h,e)},e.defaultConfig=h,e.getConfig=m,e.parse=f,e.render=function(e,n,a,i){var o=m(a||{});if(!o.async)return x(e,o)(n,o);if(!i){if("function"==typeof r)return new r((function(t,r){try{t(x(e,o)(n,o))}catch(e){r(e)}}));throw t("Please provide a callback function, this env doesn't support Promises")}try{x(e,o)(n,o,i)}catch(e){return i(e)}},e.templates=d,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Eta={})}(this,(function(e){"use strict";function t(e){var n,r,i=new Error(e);return n=i,r=t.prototype,Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,i}function n(e,n,r){var i=n.slice(0,r).split(/\n/),a=i.length,o=i[a-1].length+1;throw t(e+=" at line "+a+" col "+o+":\n\n "+n.split(/\n/)[a-1]+"\n "+Array(o).join(" ")+"^")}t.prototype=Object.create(Error.prototype,{name:{value:"Eta Error",enumerable:!1}});var r=new Function("return this")().Promise;function i(e,t){for(var n in t)r=t,i=n,Object.prototype.hasOwnProperty.call(r,i)&&(e[n]=t[n]);var r,i;return e}function a(e,t,n,r){var i,a;return Array.isArray(t.autoTrim)?(i=t.autoTrim[1],a=t.autoTrim[0]):i=a=t.autoTrim,(n||!1===n)&&(i=n),(r||!1===r)&&(a=r),a||i?"slurp"===i&&"slurp"===a?e.trim():("_"===i||"slurp"===i?e=function(e){return String.prototype.trimLeft?e.trimLeft():e.replace(/^\s+/,"")}(e):"-"!==i&&"nl"!==i||(e=e.replace(/^(?:\r\n|\n|\r)/,"")),"_"===a||"slurp"===a?e=function(e){return String.prototype.trimRight?e.trimRight():e.replace(/\s+$/,"")}(e):"-"!==a&&"nl"!==a||(e=e.replace(/(?:\r\n|\n|\r)$/,"")),e):e}var o={"&":"&","<":"<",">":">",'"':""","'":"'"};function c(e){return o[e]}var s=/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g,u=/'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g,l=/"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g;function p(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function f(e,t){var r=[],i=!1,o=0,c=t.parse;function f(e,n){e&&(e=a(e,t,i,n))&&(e=e.replace(/\\|'/g,"\\$&").replace(/\r\n|\n|\r/g,"\\n"),r.push(e))}t.rmWhitespace&&(e=e.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),s.lastIndex=0,u.lastIndex=0,l.lastIndex=0;for(var d,g=[c.exec,c.interpolate,c.raw].reduce((function(e,t){return e&&t?e+"|"+p(t):t?p(t):e}),""),h=new RegExp("([^]*?)"+p(t.tags[0])+"(-|_)?\\s*("+g+")?\\s*","g"),m=new RegExp("'|\"|`|\\/\\*|(\\s*(-|_)?"+p(t.tags[1])+")","g");d=h.exec(e);){o=d[0].length+d.index;var v,x=d[1],y=d[2],w=d[3]||"";f(x,y),m.lastIndex=o;for(var E=!1;v=m.exec(e);){if(v[1]){var I=e.slice(o,v.index);h.lastIndex=o=m.lastIndex,i=v[2];var b="";w===c.exec?b="e":w===c.raw?b="r":w===c.interpolate&&(b="i"),E={t:b,val:I};break}var S=v[0];if("/*"===S){var T=e.indexOf("*/",m.lastIndex);-1===T&&n("unclosed comment",e,v.index),m.lastIndex=T}else if("'"===S){u.lastIndex=v.index,u.exec(e)?m.lastIndex=u.lastIndex:n("unclosed string",e,v.index)}else if('"'===S){l.lastIndex=v.index,l.exec(e)?m.lastIndex=l.lastIndex:n("unclosed string",e,v.index)}else if("`"===S){s.lastIndex=v.index,s.exec(e)?m.lastIndex=s.lastIndex:n("unclosed string",e,v.index)}}E?r.push(E):n("unclosed tag",e,d.index+x.length)}if(f(e.slice(o,e.length),!1),t.plugins)for(var R=0;R<t.plugins.length;R++){var _=t.plugins[R];_.processAST&&(r=_.processAST(r,t))}return r}function d(e,t){var n=f(e,t),r="var tR=''"+(t.include?",include=E.include.bind(E)":"")+(t.includeFile?",includeFile=E.includeFile.bind(E)":"")+"\n"+(t.useWith?"with("+t.varName+"||{}){":"")+function(e,t){var n=0,r=e.length,i="";for(;n<r;n++){var a=e[n];if("string"==typeof a){i+="tR+='"+a+"'\n"}else{var o=a.t,c=a.val||"";"r"===o?i+="tR+="+c+"\n":"i"===o?(t.autoEscape&&(c="E.e("+c+")"),i+="tR+="+c+"\n"):"e"===o&&(i+=c+"\n")}}return i}(n,t)+"if(cb){cb(null,tR)} return tR"+(t.useWith?"}":"");if(t.plugins)for(var i=0;i<t.plugins.length;i++){var a=t.plugins[i];a.processFnString&&(r=a.processFnString(r,t))}return r}var g=new(function(){function e(e){this.cache=e}return e.prototype.define=function(e,t){this.cache[e]=t},e.prototype.get=function(e){return this.cache[e]},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.reset=function(){this.cache={}},e.prototype.load=function(e){i(this.cache,e)},e}())({});var h={varName:"it",autoTrim:[!1,"nl"],rmWhitespace:!1,autoEscape:!0,tags:["<%","%>"],parse:{interpolate:"=",raw:"~",exec:""},async:!1,templates:g,cache:!1,plugins:[],useWith:!1,e:function(e){var t=String(e);return/[&<>"']/.test(t)?t.replace(/[&<>"']/g,c):t},include:function(e,n){var r=this.templates.get(e);if(!r)throw t('Could not fetch template "'+e+'"');return r(n,this)}};function m(e,t){var n={};return i(n,h),t&&i(n,t),e&&i(n,e),n}function v(e,n){var r,i=m(n||{});r=i.async?function(){try{return new Function("return (async function(){}).constructor")()}catch(e){throw e instanceof SyntaxError?t("This environment doesn't support async/await"):e}}():Function;try{return new r(i.varName,"E","cb",d(e,i))}catch(n){throw n instanceof SyntaxError?t("Bad template syntax\n\n"+n.message+"\n"+Array(n.message.length+1).join("=")+"\n"+d(e,i)+"\n"):n}}function x(e,t){var n;return t.cache&&t.name&&t.templates.get(t.name)?t.templates.get(t.name):(n="function"==typeof e?e:v(e,t),t.cache&&t.name&&t.templates.define(t.name,n),n)}e.compile=v,e.compileToString=d,e.config=h,e.configure=function(e){return i(h,e)},e.defaultConfig=h,e.getConfig=m,e.parse=f,e.render=function(e,n,i,a){var o=m(i||{});if(!o.async)return x(e,o)(n,o);if(!a){if("function"==typeof r)return new r((function(t,r){try{t(x(e,o)(n,o))}catch(e){r(e)}}));throw t("Please provide a callback function, this env doesn't support Promises")}try{x(e,o)(n,o,a)}catch(e){return a(e)}},e.templates=g,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=eta.min.js.map |
@@ -353,3 +353,3 @@ 'use strict'; | ||
* compileToString("Hi <%= it.user %>", eta.config) | ||
* // "var tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* // "var tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* ``` | ||
@@ -359,3 +359,6 @@ */ | ||
var buffer = parse(str, config); | ||
var res = "var tR=''\n" + | ||
var res = "var tR=''" + | ||
(config.include ? ',include=E.include.bind(E)' : '') + | ||
(config.includeFile ? ',includeFile=E.includeFile.bind(E)' : '') + | ||
'\n' + | ||
(config.useWith ? 'with(' + config.varName + '||{}){' : '') + | ||
@@ -465,3 +468,3 @@ compileScope(buffer, config) + | ||
* | ||
* Called like `E.include(templateNameOrPath, data)` | ||
* Called like `include(templateNameOrPath, data)` | ||
*/ | ||
@@ -537,3 +540,3 @@ function includeHelper(templateNameOrPath, data) { | ||
* let compiledFnStr = compiledFn.toString() | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* ``` | ||
@@ -872,3 +875,3 @@ */ | ||
/** | ||
* Called with `E.includeFile(path, data)` | ||
* Called with `includeFile(path, data)` | ||
*/ | ||
@@ -875,0 +878,0 @@ function includeFileHelper(path, data) { |
@@ -349,3 +349,3 @@ function setPrototypeOf(obj, proto) { | ||
* compileToString("Hi <%= it.user %>", eta.config) | ||
* // "var tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* // "var tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* ``` | ||
@@ -355,3 +355,6 @@ */ | ||
var buffer = parse(str, config); | ||
var res = "var tR=''\n" + | ||
var res = "var tR=''" + | ||
(config.include ? ',include=E.include.bind(E)' : '') + | ||
(config.includeFile ? ',includeFile=E.includeFile.bind(E)' : '') + | ||
'\n' + | ||
(config.useWith ? 'with(' + config.varName + '||{}){' : '') + | ||
@@ -461,3 +464,3 @@ compileScope(buffer, config) + | ||
* | ||
* Called like `E.include(templateNameOrPath, data)` | ||
* Called like `include(templateNameOrPath, data)` | ||
*/ | ||
@@ -533,3 +536,3 @@ function includeHelper(templateNameOrPath, data) { | ||
* let compiledFnStr = compiledFn.toString() | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* ``` | ||
@@ -868,3 +871,3 @@ */ | ||
/** | ||
* Called with `E.includeFile(path, data)` | ||
* Called with `includeFile(path, data)` | ||
*/ | ||
@@ -871,0 +874,0 @@ function includeFileHelper(path, data) { |
@@ -9,5 +9,5 @@ import { EtaConfig } from './config'; | ||
* compileToString("Hi <%= it.user %>", eta.config) | ||
* // "var tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* // "var tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR" | ||
* ``` | ||
*/ | ||
export default function compileToString(str: string, config: EtaConfig): string; |
@@ -16,5 +16,5 @@ import { EtaConfig, PartialConfig } from './config'; | ||
* let compiledFnStr = compiledFn.toString() | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='';tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* // "function anonymous(it,E,cb\n) {\nvar tR='',include=E.include.bind(E),includeFile=E.includeFile.bind(E);tR+='Hi ';tR+=E.e(it.user);if(cb){cb(null,tR)} return tR\n}" | ||
* ``` | ||
*/ | ||
export default function compile(str: string, config?: PartialConfig): TemplateFunction; |
@@ -48,2 +48,6 @@ import { TemplateFunction } from './compile'; | ||
useWith?: boolean; | ||
/** Function to include templates by name */ | ||
include?: Function; | ||
/** Function to include templates by filepath */ | ||
includeFile?: Function; | ||
[index: string]: any; | ||
@@ -50,0 +54,0 @@ } |
@@ -6,5 +6,5 @@ import { EtaConfig } from './config'; | ||
/** | ||
* Called with `E.includeFile(path, data)` | ||
* Called with `includeFile(path, data)` | ||
*/ | ||
export declare function includeFileHelper(this: EtaConfig, path: string, data: GenericData): string; | ||
export {}; |
{ | ||
"name": "eta", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Lightweight, fast, and powerful embedded JS template engine", | ||
@@ -119,7 +119,7 @@ "keywords": [ | ||
"@commitlint/config-conventional": "^9.1.2", | ||
"@size-limit/preset-small-lib": "^4.5.7", | ||
"@types/jest": "^26.0.12", | ||
"@types/node": "^14.6.2", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"@size-limit/preset-small-lib": "^4.6.0", | ||
"@types/jest": "^26.0.13", | ||
"@types/node": "^14.10.1", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
"@typescript-eslint/parser": "^4.1.0", | ||
"commitizen": "^4.2.1", | ||
@@ -129,6 +129,5 @@ "coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"denoify": "^0.5.2", | ||
"eslint": "^7.8.0", | ||
"denoify": "^0.5.4", | ||
"eslint": "^7.8.1", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-config-standard-with-typescript": "^18.0.2", | ||
"eslint-plugin-import": "2", | ||
@@ -138,22 +137,19 @@ "eslint-plugin-node": "11", | ||
"eslint-plugin-standard": "4", | ||
"husky": "^4.2.5", | ||
"husky": "^4.3.0", | ||
"jest": "^26.4.2", | ||
"jest-config": "^26.4.2", | ||
"lint-staged": "^10.2.13", | ||
"lint-staged": "^10.3.0", | ||
"prettier": "2.1.1", | ||
"prompt": "^1.0.0", | ||
"replace-in-file": "^6.1.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.26.8", | ||
"rollup": "^2.26.11", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-prettier": "^2.1.0", | ||
"rollup-plugin-terser": "^7.0.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"shelljs": "^0.8.4", | ||
"size-limit": "^4.5.7", | ||
"size-limit": "^4.6.0", | ||
"travis-deploy-once": "^5.0.11", | ||
"ts-jest": "^26.3.0", | ||
"ts-node": "^9.0.0", | ||
"typedoc": "^0.19.0", | ||
"typedoc": "^0.19.1", | ||
"typescript": "^4.0.2" | ||
@@ -160,0 +156,0 @@ }, |
@@ -174,11 +174,11 @@ <h1 align="center" style="text-align: center; width: fit-content; margin-left: auto; margin-right: auto;">eta (η)</h1> | ||
```ejs | ||
<%~ E.include('mypartial') %> | ||
<%~ include('mypartial') %> | ||
``` | ||
```ejs | ||
<%~ E.includeFile('./footer') %> | ||
<%~ includeFile('./footer') %> | ||
``` | ||
```ejs | ||
<%~ E.include('users', {users: it.users}) %> | ||
<%~ include('users', {users: it.users}) %> | ||
``` | ||
@@ -185,0 +185,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
309555
36
2901