Skip to content

Commit bf5e35d

Browse files
committed
refactor: exports file
1 parent e359510 commit bf5e35d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/exports.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export {
2+
useFlytrapCall,
3+
useFlytrapCallAsync,
4+
useFlytrapFunction,
5+
capture,
6+
identify,
7+
defineFlytrapConfig
8+
} from './index'
9+
export * from './core/encryption'
10+
export * from './core/types'

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import {
44
CapturedCall,
55
CapturedFunction,
66
FlytrapCallOptions,
7-
FlytrapFunctionOptions,
8-
SourceType
7+
FlytrapFunctionOptions
98
} from './core/types'
109
import {
11-
extractCallerSource,
1210
fillUnserializableFlytrapValues,
1311
getMode,
1412
isAsyncFunction,
@@ -17,7 +15,6 @@ import {
1715
} from './core/util'
1816
import { getFlytrapStorage } from './core/storage'
1917
import { createHumanLog } from './core/human-logs'
20-
import { NO_SOURCE } from './core/constants'
2118
import { log } from './core/logging'
2219

2320
/**

src/transform/imports.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import MagicString from 'magic-string'
22
import { findStaticImports } from 'mlly'
33
import { FLYTRAP_PACKAGE_NAME } from '../core/config'
4-
import { loadConfig } from './config'
54
import { parse } from '@babel/parser'
65
import { FlytrapConfig } from '../core/types'
76

0 commit comments

Comments
 (0)