web-count-token 0.1.0 → 0.1.1
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.
|
@@ -191,7 +191,7 @@ function U(I) {
|
|
|
191
191
|
return G.join(`
|
|
192
192
|
`);
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
function B(I, G = {}) {
|
|
195
195
|
if (I.length === 0)
|
|
196
196
|
return 0;
|
|
197
197
|
const l = G.fudgeFactor ?? D, Z = j();
|
|
@@ -225,7 +225,7 @@ async function B(I, G = {}) {
|
|
|
225
225
|
}
|
|
226
226
|
return Math.ceil(C * l);
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
function S(I, G = {}) {
|
|
229
229
|
return B([{ type: "text", text: I }], G);
|
|
230
230
|
}
|
|
231
231
|
export {
|