@knapsack/renderer-hbs 4.65.7--canary.3291.ff75f77.0 → 4.65.7--canary.fe890e5.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/utils.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHbsUsage = exports.splitData = void 0;
3
+ exports.splitData = splitData;
4
+ exports.getHbsUsage = getHbsUsage;
4
5
  /**
5
6
  * @todo add description why this is necessary
6
7
  * https://linear.app/knapsack/issue/KSP-2184/handlebars-renderer-does-not-handle-arrays-correctly-cnn-blocker
@@ -23,7 +24,6 @@ function splitData(data) {
23
24
  paramData: {},
24
25
  });
25
26
  }
26
- exports.splitData = splitData;
27
27
  async function getHbsUsage({ templateName, data, slots, }) {
28
28
  const { paramData } = splitData(data);
29
29
  const props = Object.keys(paramData).map((key) => {
@@ -48,5 +48,4 @@ async function getHbsUsage({ templateName, data, slots, }) {
48
48
  finish,
49
49
  ].join('\n');
50
50
  }
51
- exports.getHbsUsage = getHbsUsage;
52
51
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,SAAS,CAAC,IAA8B;IAItD,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CACtC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACpB,QAAQ,OAAO,KAAK,EAAE,CAAC;YACrB,KAAK,SAAS,CAAC;YACf,KAAK,QAAQ,CAAC;YACd,KAAK,QAAQ;gBACX,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBAC3B,MAAM;YACR;gBACE,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAChC,CAAC;QACD,OAAO,GAAG,CAAC;IACb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ACpB,MAAM,KAAK,GAAG,CAAC,QAAQ,YAAY,EAAE,EAAE,GAAG,KAAK,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,MAAM,YAAY,IAAI,CAAC;IACtC,OAAO;QACL,KAAK;QACL,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;YACjC,OAAO;gBACL,iBAAiB,IAAI,KAAK;gBAC1B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBACzC,eAAe;aAChB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;QACF,MAAM;KACP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knapsack/renderer-hbs",
3
3
  "description": "",
4
- "version": "4.65.7--canary.3291.ff75f77.0",
4
+ "version": "4.65.7--canary.fe890e5.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -22,23 +22,23 @@
22
22
  "test": "time ava"
23
23
  },
24
24
  "dependencies": {
25
- "@knapsack/app": "4.65.7--canary.3291.ff75f77.0",
26
- "@knapsack/file-utils": "4.65.7--canary.3291.ff75f77.0",
27
- "@knapsack/types": "4.65.7--canary.3291.ff75f77.0",
28
- "@knapsack/utils": "4.65.7--canary.3291.ff75f77.0",
25
+ "@knapsack/app": "4.65.7--canary.fe890e5.0",
26
+ "@knapsack/file-utils": "4.65.7--canary.fe890e5.0",
27
+ "@knapsack/types": "4.65.7--canary.fe890e5.0",
28
+ "@knapsack/utils": "4.65.7--canary.fe890e5.0",
29
29
  "handlebars": "^4.7.8",
30
30
  "lodash": "^4.17.21"
31
31
  },
32
32
  "devDependencies": {
33
- "@knapsack/eslint-config-starter": "4.65.7--canary.3291.ff75f77.0",
34
- "@knapsack/prettier-config": "4.65.7--canary.3291.ff75f77.0",
35
- "@knapsack/test-ava": "4.65.7--canary.3291.ff75f77.0",
36
- "@knapsack/typescript-config-starter": "4.65.7--canary.3291.ff75f77.0",
33
+ "@knapsack/eslint-config-starter": "4.65.7--canary.fe890e5.0",
34
+ "@knapsack/prettier-config": "4.65.7--canary.fe890e5.0",
35
+ "@knapsack/test-ava": "4.65.7--canary.fe890e5.0",
36
+ "@knapsack/typescript-config-starter": "4.65.7--canary.fe890e5.0",
37
37
  "@types/lodash": "^4.17.5",
38
38
  "@types/node": "^20.12.12",
39
39
  "ava": "^6.1.3",
40
40
  "eslint": "^8.57.0",
41
- "typescript": "^5.4.5"
41
+ "typescript": "^5.5.3"
42
42
  },
43
43
  "license": "GPL-2.0-or-later",
44
44
  "publishConfig": {
@@ -49,5 +49,5 @@
49
49
  "directory": "apps/client/renderers/renderer-hbs",
50
50
  "type": "git"
51
51
  },
52
- "gitHead": "ff75f77f8958febf623152a3e632b2b71eac5a39"
52
+ "gitHead": "fe890e5f152cc34eaaf337e09d1ae1ebae3546c5"
53
53
  }