ecto 2.1.12 → 2.2.0

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.
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Handlebars = void 0;
4
4
  const baseEngine_1 = require("../baseEngine");
5
- const handlebars = require("handlebars");
6
- const helpers = require("helpers-for-handlebars");
5
+ const handlebars = require("fumanchu");
7
6
  const fs = require("fs-extra");
8
7
  const _ = require("underscore");
9
8
  class Handlebars extends baseEngine_1.BaseEngine {
@@ -20,7 +19,6 @@ class Handlebars extends baseEngine_1.BaseEngine {
20
19
  if (this.rootTemplatePath) {
21
20
  this.registerPartials(this.rootTemplatePath + this.partialsPath);
22
21
  }
23
- helpers({ handlebars: handlebars });
24
22
  let template = handlebars.compile(source, this.opts);
25
23
  let result = template(data, this.opts);
26
24
  result = _.unescape(result);
@@ -1 +1 @@
1
- {"version":3,"file":"handlebars.js","sourceRoot":"","sources":["../../src/engines/handlebars.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,yCAAyC;AACzC,kDAAkD;AAClD,+BAA+B;AAC/B,gCAAgC;AAEhC,MAAa,UAAW,SAAQ,uBAAU;IAItC,YAAY,IAAY;QACpB,KAAK,EAAE,CAAC;QAHL,iBAAY,GAAW,WAAW,CAAC;QAKtC,IAAI,CAAC,KAAK,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;QAEzB,IAAI,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAa,EAAE,IAAY;QAEpC,mBAAmB;QACnB,IAAG,IAAI,CAAC,gBAAgB,EAAE;YACtB,IAAI,CAAC,gBAAgB,CA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AAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3B,IAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,SAAS,EAAE;oBACxC,UAAU,CAAC,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;iBAChE;YAEL,CAAC,CAAC,CAAC;YACH,MAAM,GAAG,IAAI,CAAC;SACjB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAhDD,gCAgDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecto",
3
- "version": "2.1.12",
3
+ "version": "2.2.0",
4
4
  "description": "Modern Template Consolidation Engine for EJS, Markdown, Pug, Nunjucks, Liquid, and Handlebars",
5
5
  "main": "./dist/ecto.js",
6
6
  "types": "./dist/ecto.d.ts",
@@ -37,32 +37,31 @@
37
37
  "website:serve": "npx docula serve"
38
38
  },
39
39
  "dependencies": {
40
- "@markdoc/markdoc": "^0.3.0",
40
+ "@markdoc/markdoc": "^0.3.2",
41
41
  "ejs": "^3.1.9",
42
42
  "fs-extra": "^11.1.1",
43
- "handlebars": "^4.7.7",
43
+ "fumanchu": "github:jaredwray/fumanchu",
44
44
  "helper-date": "^1.0.1",
45
- "helpers-for-handlebars": "^0.10.11",
46
- "liquidjs": "^10.8.3",
45
+ "liquidjs": "^10.9.1",
47
46
  "nunjucks": "^3.2.4",
48
47
  "pug": "^3.0.2",
49
48
  "underscore": "^1.13.6",
50
- "winston": "^3.9.0"
49
+ "winston": "^3.10.0"
51
50
  },
52
51
  "devDependencies": {
53
52
  "@types/ejs": "^3.1.2",
54
53
  "@types/express": "^4.17.17",
55
54
  "@types/fs-extra": "^11.0.1",
56
55
  "@types/handlebars-helpers": "^0.5.3",
57
- "@types/jest": "^29.5.2",
56
+ "@types/jest": "^29.5.4",
58
57
  "@types/mustache": "^4.2.2",
59
- "@types/nunjucks": "^3.2.2",
58
+ "@types/nunjucks": "^3.2.3",
60
59
  "@types/pug": "^2.0.6",
61
- "@types/underscore": "^1.11.5",
62
- "docula": "^0.3.1",
63
- "jest": "^29.5.0",
64
- "ts-jest": "^29.1.0",
65
- "typescript": "^5.1.3"
60
+ "@types/underscore": "^1.11.8",
61
+ "docula": "^0.3.4",
62
+ "jest": "^29.6.4",
63
+ "ts-jest": "^29.1.1",
64
+ "typescript": "^5.2.2"
66
65
  },
67
66
  "files": [
68
67
  "dist",