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
- async function B(I, G = {}) {
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
- async function S(I, G = {}) {
228
+ function S(I, G = {}) {
229
229
  return B([{ type: "text", text: I }], G);
230
230
  }
231
231
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-count-token",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Browser-compatible token counter for LLM content blocks using js-tiktoken",
5
5
  "type": "module",
6
6
  "main": "dist/web-count-token.cjs",