axyseo 2.1.6 → 2.1.7
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.
|
@@ -16,9 +16,10 @@ import countCharacters from "../helpers/countCharacters";
|
|
|
16
16
|
* @returns {CharacterCountResult} The number of characters found in the text, plus "character" as the unit used in calculating the text length.
|
|
17
17
|
*/
|
|
18
18
|
export default function (paper) {
|
|
19
|
+
const text = paper?.getText?.() || '';
|
|
19
20
|
return {
|
|
20
|
-
text
|
|
21
|
-
count: countCharacters(
|
|
21
|
+
text,
|
|
22
|
+
count: countCharacters(text),
|
|
22
23
|
unit: "character"
|
|
23
24
|
};
|
|
24
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textLength.js","names":["countCharacters","paper","text","getText","count","unit"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/textLength.js"],"sourcesContent":["import countCharacters from \"../helpers/countCharacters\";\n\n/**\n * A result of the character count calculation.\n *\n * @typedef CharacterCountResult\n * @param {number} count The number of characters found in the text.\n * @param {string} unit The unit used in the text length calculations, always \"character\".\n */\n\n/**\n * Count the characters in the text.\n *\n * @param {Paper} paper The Paper object.\n *\n * @returns {CharacterCountResult} The number of characters found in the text, plus \"character\" as the unit used in calculating the text length.\n */\nexport default function( paper ) {\n\treturn {\n\t\ttext
|
|
1
|
+
{"version":3,"file":"textLength.js","names":["countCharacters","paper","text","getText","count","unit"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/textLength.js"],"sourcesContent":["import countCharacters from \"../helpers/countCharacters\";\n\n/**\n * A result of the character count calculation.\n *\n * @typedef CharacterCountResult\n * @param {number} count The number of characters found in the text.\n * @param {string} unit The unit used in the text length calculations, always \"character\".\n */\n\n/**\n * Count the characters in the text.\n *\n * @param {Paper} paper The Paper object.\n *\n * @returns {CharacterCountResult} The number of characters found in the text, plus \"character\" as the unit used in calculating the text length.\n */\nexport default function( paper ) {\n const text = paper?.getText?.() || '';\n\treturn {\n\t\ttext,\n\t\tcount: countCharacters(text),\n\t\tunit: \"character\",\n\t};\n}\n"],"mappings":"AAAA,OAAOA,eAAe;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAC/B,MAAMC,IAAI,GAAGD,KAAK,EAAEE,OAAO,GAAG,CAAC,IAAI,EAAE;EACtC,OAAO;IACND,IAAI;IACJE,KAAK,EAAEJ,eAAe,CAACE,IAAI,CAAC;IAC5BG,IAAI,EAAE;EACP,CAAC;AACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axyseo",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "npm run build ",
|
|
@@ -47,5 +47,6 @@
|
|
|
47
47
|
"nodemon": "^3.1.9",
|
|
48
48
|
"prettier": "^1.18.2",
|
|
49
49
|
"typescript": "^5.6.3"
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
51
52
|
}
|