@@ -9,8 +9,8 @@ import { shouldIgnoreCapture } from './captureIgnores'
99import { formatBytes } from './util'
1010import { getUserId } from '../index'
1111import { removeCircularsAndNonPojos , removeUnserializableValues , safeStringify } from './stringify'
12- import { decryptCapture , encryptCapture } from './newEncryption '
13- import { newRequest } from './requestUtils'
12+ import { decryptCapture , encryptCapture } from './encryption '
13+ import { request } from './requestUtils'
1414
1515function findWithLatestErrorInvocation < T extends CapturedCall | CapturedFunction > (
1616 capturedFunctions : T [ ]
@@ -31,7 +31,7 @@ function findWithLatestErrorInvocation<T extends CapturedCall | CapturedFunction
3131}
3232
3333export async function fetchCapture ( captureId : string , secretApiKey : string , privateKey : string ) {
34- const fetchCaptureResult = await newRequest < DatabaseCapture > (
34+ const fetchCaptureResult = await request < DatabaseCapture > (
3535 `${ getApiBase ( ) } /api/v1/captures/${ captureId } ` ,
3636 'GET' ,
3737 undefined ,
@@ -140,7 +140,7 @@ export async function saveCapture(
140140 return stringifiedPayload
141141 }
142142
143- const captureRequestResult = await newRequest < { success : true } > (
143+ const captureRequestResult = await request < { success : true } > (
144144 `${ getApiBase ( ) } /api/v1/captures` ,
145145 'POST' ,
146146 stringifiedPayload . val ,
0 commit comments