<commit_before>import { BreadcrumbRecord, HoneybadgerStore } from '../core/types'

let Store: HoneybadgerStore<{ context: Record<string, unknown>; breadcrumbs: BreadcrumbRecord[]; }>
try {
  // eslint-disable-next-line @typescript-eslint/no-var-requires
  const { AsyncLocalStorage } = require('async_hooks')
  Store = new AsyncLocalStorage()
}
catch (e) {
  // eslint-disable-next-line @typescript-eslint/no-var-requires
  const { GlobalStore } = require('../core/store')
  Store = new GlobalStore()
}

export const AsyncStore = Store<commit_msg>fix: make sure file is bundled with rollup (#793)<commit_after>import { BreadcrumbRecord, HoneybadgerStore } from '../core/types'
import { GlobalStore } from '../core/store';

let Store: HoneybadgerStore<{ context: Record<string, unknown>; breadcrumbs: BreadcrumbRecord[]; }>
try {
  // eslint-disable-next-line @typescript-eslint/no-var-requires
  const { AsyncLocalStorage } = require('async_hooks')
  Store = new AsyncLocalStorage()
}
catch (e) {
  Store = new GlobalStore({ context: {}, breadcrumbs: [] })
}

export const AsyncStore = Store
{'fraction_non_alphanumeric': 0.14207149404216315, 'fraction_numerical': 0.002749770852428964, 'mean_word_length': 4.934782608695652, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1749266', 'n_tokens_mistral': 351, 'n_tokens_neox': 341, 'n_words': 80}