@knapsack/renderer-hbs 4.65.7--canary.772e1da.0 → 4.65.7--canary.3291.c011027.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/utils.js +3 -2
- package/dist/utils.js.map +1 -1
- package/package.json +11 -11
package/dist/utils.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.splitData =
|
4
|
-
exports.getHbsUsage = getHbsUsage;
|
3
|
+
exports.getHbsUsage = exports.splitData = void 0;
|
5
4
|
/**
|
6
5
|
* @todo add description why this is necessary
|
7
6
|
* https://linear.app/knapsack/issue/KSP-2184/handlebars-renderer-does-not-handle-arrays-correctly-cnn-blocker
|
@@ -24,6 +23,7 @@ function splitData(data) {
|
|
24
23
|
paramData: {},
|
25
24
|
});
|
26
25
|
}
|
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,4 +48,5 @@ async function getHbsUsage({ templateName, data, slots, }) {
|
|
48
48
|
finish,
|
49
49
|
].join('\n');
|
50
50
|
}
|
51
|
+
exports.getHbsUsage = getHbsUsage;
|
51
52
|
//# 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":"
|
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,CAA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AAC,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;AAnCD,kCAmCC"}
|
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.
|
4
|
+
"version": "4.65.7--canary.3291.c011027.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.
|
26
|
-
"@knapsack/file-utils": "4.65.7--canary.
|
27
|
-
"@knapsack/types": "4.65.7--canary.
|
28
|
-
"@knapsack/utils": "4.65.7--canary.
|
25
|
+
"@knapsack/app": "4.65.7--canary.3291.c011027.0",
|
26
|
+
"@knapsack/file-utils": "4.65.7--canary.3291.c011027.0",
|
27
|
+
"@knapsack/types": "4.65.7--canary.3291.c011027.0",
|
28
|
+
"@knapsack/utils": "4.65.7--canary.3291.c011027.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.
|
34
|
-
"@knapsack/prettier-config": "4.65.7--canary.
|
35
|
-
"@knapsack/test-ava": "4.65.7--canary.
|
36
|
-
"@knapsack/typescript-config-starter": "4.65.7--canary.
|
33
|
+
"@knapsack/eslint-config-starter": "4.65.7--canary.3291.c011027.0",
|
34
|
+
"@knapsack/prettier-config": "4.65.7--canary.3291.c011027.0",
|
35
|
+
"@knapsack/test-ava": "4.65.7--canary.3291.c011027.0",
|
36
|
+
"@knapsack/typescript-config-starter": "4.65.7--canary.3291.c011027.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.5
|
41
|
+
"typescript": "^5.4.5"
|
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": "
|
52
|
+
"gitHead": "c0110271601d2b661710606d3780b0c5db92ebbc"
|
53
53
|
}
|