File tree Expand file tree Collapse file tree 2 files changed +37
-4
lines changed Expand file tree Collapse file tree 2 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 1818 "prerelease" : true
1919 }
2020 ],
21- "plugins" : [[" @semantic-release/npm" ], [" @semantic-release/github" ]],
21+ "plugins" : [
22+ [
23+ " @semantic-release/commit-analyzer" ,
24+ {
25+ "preset" : " angular" ,
26+ "releaseRules" : [
27+ {
28+ "type" : " breaking" ,
29+ "release" : " major"
30+ },
31+ {
32+ "type" : " feat" ,
33+ "release" : " minor"
34+ },
35+ {
36+ "type" : " fix" ,
37+ "release" : " patch"
38+ },
39+ {
40+ "type" : " perf" ,
41+ "release" : " patch"
42+ },
43+ {
44+ "subject" : " *" ,
45+ "release" : " patch"
46+ }
47+ ]
48+ }
49+ ],
50+ " @semantic-release/release-notes-generator" ,
51+ " @semantic-release/npm" ,
52+ " @semantic-release/github"
53+ ],
2254 "dryRun" : false ,
2355 "ci" : true
2456}
Original file line number Diff line number Diff line change 1- // Lightweight serverless version - requires resource loading at runtime
21export * from 'libphonenumber-js'
2+
3+ import { type Document , deserialize } from 'bson'
34import type { PhoneNumber } from 'libphonenumber-js'
5+ import { type LRU , lru } from 'tiny-lru'
46import type { CarrierLocale , GeocoderLocale } from './locales'
5- import { deserialize , type Document } from 'bson'
6- import { lru , type LRU } from 'tiny-lru'
77
88const DEFAULT_CACHE_SIZE = 100
99let codeDataCache : LRU < Document > = lru < Document > ( DEFAULT_CACHE_SIZE )
1010
1111// Resource loader interface - platforms must implement this
1212export interface ResourceLoader {
1313 loadResource ( path : string ) : Promise < Uint8Array | null >
14+
1415 loadResourceSync ?( path : string ) : Uint8Array | null
1516}
1617
You can’t perform that action at this time.
0 commit comments