@4s1/conventional-commit-creator 3.18.0 → 3.19.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.
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
package/dist/utils.js
CHANGED
|
@@ -4,7 +4,7 @@ export function splitText(text, lineLength) {
|
|
|
4
4
|
while (remainingText.length > lineLength) {
|
|
5
5
|
const rawPart = remainingText.substring(0, lineLength);
|
|
6
6
|
const lastSpaceIndex = rawPart.lastIndexOf(" ");
|
|
7
|
-
let part
|
|
7
|
+
let part;
|
|
8
8
|
if (lastSpaceIndex >= 0) {
|
|
9
9
|
part = remainingText.substring(0, lastSpaceIndex);
|
|
10
10
|
}
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,UAAkB;IACxD,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,aAAa,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAEhC,OAAO,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;QACvD,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAEhD,IAAI,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,UAAkB;IACxD,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,aAAa,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAEhC,OAAO,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;QACvD,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAEhD,IAAI,IAAY,CAAC;QAEjB,IAAI,cAAc,IAAI,CAAC,EAAE,CAAC;YACxB,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;QAChD,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACzB,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAE3B,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["export function splitText(text: string, lineLength: number): string[] {\n const result: string[] = [];\n let remainingText = text.trim();\n\n while (remainingText.length > lineLength) {\n const rawPart = remainingText.substring(0, lineLength);\n const lastSpaceIndex = rawPart.lastIndexOf(\" \");\n\n let part: string;\n\n if (lastSpaceIndex >= 0) {\n part = remainingText.substring(0, lastSpaceIndex);\n } else {\n part = remainingText.substring(0, lineLength);\n }\n result.push(part.trim());\n remainingText = remainingText.slice(part.length).trim();\n }\n result.push(remainingText);\n\n return result;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4s1/conventional-commit-creator",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "Conventional Commit Creator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"conventional commit",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
],
|
|
29
29
|
"prettier": "@4s1/eslint-config",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@inquirer/confirm": "6.0.
|
|
32
|
-
"@inquirer/input": "5.0.
|
|
33
|
-
"@inquirer/select": "5.0
|
|
31
|
+
"@inquirer/confirm": "6.0.8",
|
|
32
|
+
"@inquirer/input": "5.0.8",
|
|
33
|
+
"@inquirer/select": "5.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@4s1/eslint-config": "9.
|
|
37
|
-
"@4s1/ts-config": "
|
|
36
|
+
"@4s1/eslint-config": "9.3.0",
|
|
37
|
+
"@4s1/ts-config": "10.0.0",
|
|
38
38
|
"@types/node": "24.10.11",
|
|
39
39
|
"@types/prompts": "2.4.9",
|
|
40
|
-
"eslint": "
|
|
40
|
+
"eslint": "10.0.3",
|
|
41
41
|
"prettier": "3.8.1",
|
|
42
42
|
"tsx": "4.21.0",
|
|
43
43
|
"typescript": "5.9.3"
|