@bettercms-ai/sdk 1.26.1 → 1.26.2

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/index.cjs CHANGED
@@ -1695,7 +1695,6 @@ async function search(opts) {
1695
1695
 
1696
1696
  // src/published-content.ts
1697
1697
  var cache = null;
1698
- var checkedAt = 0;
1699
1698
  function publishedContentFile() {
1700
1699
  const proc = globalThis.process;
1701
1700
  if (typeof proc?.getBuiltinModule !== "function") return null;
@@ -1704,9 +1703,6 @@ function publishedContentFile() {
1704
1703
  function readPublishedContent() {
1705
1704
  const file = publishedContentFile();
1706
1705
  if (!file) return null;
1707
- const now = Date.now();
1708
- if (cache && cache.file === file && now - checkedAt < 1e3) return cache.content;
1709
- checkedAt = now;
1710
1706
  const proc = globalThis.process;
1711
1707
  const fs = proc.getBuiltinModule("node:fs");
1712
1708
  try {
@@ -1729,7 +1725,6 @@ function publishedEntry(slug) {
1729
1725
  }
1730
1726
  function resetPublishedContentCache() {
1731
1727
  cache = null;
1732
- checkedAt = 0;
1733
1728
  }
1734
1729
 
1735
1730
  // src/index.ts