@alwaysmeticulous/recorder-loader
Advanced tools
Comparing version 2.127.0 to 2.128.0
@@ -37,5 +37,14 @@ import { NetworkResponseSanitizer } from "@alwaysmeticulous/sdk-bundles-api"; | ||
interface Interceptor { | ||
startRecordingSession: (options: LoaderOptions) => Promise<void>; | ||
startRecordingSession: (options: LoaderOptions) => Promise<Recorder>; | ||
stopIntercepting: () => Promise<void>; | ||
} | ||
interface Recorder { | ||
/** | ||
* Disables the recorder for the rest of the user session, and stops sending data to the Meticulous | ||
* servers. | ||
* | ||
* Once this method is called the recorder cannot be restarted (unless the page is reloaded). | ||
*/ | ||
stopRecording: () => Promise<void>; | ||
} | ||
/** | ||
@@ -42,0 +51,0 @@ * Stores a copy of network requests and responses in memory, but doesn't send them to the |
@@ -81,3 +81,10 @@ function $parcel$export(e, n, v, s) { | ||
}; | ||
const startRecordingSession = (0, $c97024bcb09807fa$export$f80553af9d70f9fd); | ||
const startRecordingSession = (options)=>(0, $c97024bcb09807fa$export$f80553af9d70f9fd)(options).then(()=>({ | ||
stopRecording: async ()=>{ | ||
const stopRecording = window.__meticulous?.stopRecording; | ||
if (!stopRecording) throw new Error("Recorder not initialised: window.__meticulous.stopRecording is not defined."); | ||
await stopRecording(); | ||
return; | ||
} | ||
})); | ||
const interceptor = { | ||
@@ -84,0 +91,0 @@ startRecordingSession: startRecordingSession, |
@@ -74,3 +74,10 @@ const $7d7683134fbb8fec$export$d16af6ab0c202bae = "https://snippet.meticulous.ai"; | ||
}; | ||
const startRecordingSession = (0, $5d774bdb3a883001$export$f80553af9d70f9fd); | ||
const startRecordingSession = (options)=>(0, $5d774bdb3a883001$export$f80553af9d70f9fd)(options).then(()=>({ | ||
stopRecording: async ()=>{ | ||
const stopRecording = window.__meticulous?.stopRecording; | ||
if (!stopRecording) throw new Error("Recorder not initialised: window.__meticulous.stopRecording is not defined."); | ||
await stopRecording(); | ||
return; | ||
} | ||
})); | ||
const interceptor = { | ||
@@ -77,0 +84,0 @@ startRecordingSession: startRecordingSession, |
{ | ||
"name": "@alwaysmeticulous/recorder-loader", | ||
"version": "2.127.0", | ||
"version": "2.128.0", | ||
"license": "ISC", | ||
@@ -40,3 +40,3 @@ "source": "src/index.ts", | ||
}, | ||
"gitHead": "7df6ec6621664f3f533218d0ae5086b408684519" | ||
"gitHead": "a903dff6f3d8a91915b2110defa15655ee6923dc" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40166
302