Skip to content

Commit ce83b41

Browse files
committed
chore: update build
1 parent 09a9853 commit ce83b41

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.serverless.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
// Lightweight serverless version - requires resource loading at runtime
21
export * from 'libphonenumber-js'
2+
3+
import { type Document, deserialize } from 'bson'
34
import type { PhoneNumber } from 'libphonenumber-js'
5+
import { type LRU, lru } from 'tiny-lru'
46
import type { CarrierLocale, GeocoderLocale } from './locales'
5-
import { deserialize, type Document } from 'bson'
6-
import { lru, type LRU } from 'tiny-lru'
77

88
const DEFAULT_CACHE_SIZE = 100
99
let codeDataCache: LRU<Document> = lru<Document>(DEFAULT_CACHE_SIZE)
1010

1111
// Resource loader interface - platforms must implement this
1212
export interface ResourceLoader {
1313
loadResource(path: string): Promise<Uint8Array | null>
14+
1415
loadResourceSync?(path: string): Uint8Array | null
1516
}
1617

0 commit comments

Comments
 (0)