@alwaysmeticulous/recorder-loader
Advanced tools
Comparing version 2.26.0 to 2.29.0
@@ -14,4 +14,13 @@ import { NetworkResponseSanitizer } from "@alwaysmeticulous/sdk-bundles-api"; | ||
} | ||
export const loadAndStartRecorder: (options: LoaderOptions) => Promise<void>; | ||
/** | ||
* Load and start the Meticulous Recorder | ||
*/ | ||
export const tryLoadAndStartRecorder: (options: LoaderOptions) => Promise<void>; | ||
/** | ||
* @deprecated Use `tryLoadAndStartRecorder` instead. | ||
* | ||
* Load and start the Meticulous Recorder | ||
*/ | ||
export const loadAndStartRecorder: ({ projectId, uploadIntervalMs, snapshotLinkedStylesheets, commitHash, maxMsToBlockFor: maxMsToBlockFor_, snippetsBaseUrl, responseSanitizers, }: LoaderOptions) => Promise<void>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,4 +6,11 @@ function $parcel$export(e, n, v, s) { | ||
$parcel$export(module.exports, "loadAndStartRecorder", () => $c97024bcb09807fa$export$9da0cde53b499187); | ||
$parcel$export(module.exports, "tryLoadAndStartRecorder", () => $c97024bcb09807fa$export$f80553af9d70f9fd); | ||
const $c97024bcb09807fa$var$DEFAULT_MAX_MS_TO_BLOCK_FOR = 2000; | ||
const $c97024bcb09807fa$export$9da0cde53b499187 = ({ projectId: projectId , uploadIntervalMs: uploadIntervalMs , snapshotLinkedStylesheets: snapshotLinkedStylesheets , commitHash: commitHash , maxMsToBlockFor: maxMsToBlockFor_ , snippetsBaseUrl: snippetsBaseUrl , responseSanitizers: responseSanitizers , })=>{ | ||
const $c97024bcb09807fa$export$f80553af9d70f9fd = async (options)=>{ | ||
// Try to load the recorder and silence any initialisation error. | ||
await $c97024bcb09807fa$var$unsafeLoadAndStartRecorder(options).catch((error)=>{ | ||
console.error(error); | ||
}); | ||
}; | ||
const $c97024bcb09807fa$var$unsafeLoadAndStartRecorder = ({ projectId: projectId , uploadIntervalMs: uploadIntervalMs , snapshotLinkedStylesheets: snapshotLinkedStylesheets , commitHash: commitHash , maxMsToBlockFor: maxMsToBlockFor_ , snippetsBaseUrl: snippetsBaseUrl , responseSanitizers: responseSanitizers })=>{ | ||
let abandoned = false; | ||
@@ -51,2 +58,3 @@ return new Promise((resolve, reject)=>{ | ||
}; | ||
const $c97024bcb09807fa$export$9da0cde53b499187 = $c97024bcb09807fa$var$unsafeLoadAndStartRecorder; | ||
@@ -53,0 +61,0 @@ |
const $5d774bdb3a883001$var$DEFAULT_MAX_MS_TO_BLOCK_FOR = 2000; | ||
const $5d774bdb3a883001$export$9da0cde53b499187 = ({ projectId: projectId , uploadIntervalMs: uploadIntervalMs , snapshotLinkedStylesheets: snapshotLinkedStylesheets , commitHash: commitHash , maxMsToBlockFor: maxMsToBlockFor_ , snippetsBaseUrl: snippetsBaseUrl , responseSanitizers: responseSanitizers , })=>{ | ||
const $5d774bdb3a883001$export$f80553af9d70f9fd = async (options)=>{ | ||
// Try to load the recorder and silence any initialisation error. | ||
await $5d774bdb3a883001$var$unsafeLoadAndStartRecorder(options).catch((error)=>{ | ||
console.error(error); | ||
}); | ||
}; | ||
const $5d774bdb3a883001$var$unsafeLoadAndStartRecorder = ({ projectId: projectId , uploadIntervalMs: uploadIntervalMs , snapshotLinkedStylesheets: snapshotLinkedStylesheets , commitHash: commitHash , maxMsToBlockFor: maxMsToBlockFor_ , snippetsBaseUrl: snippetsBaseUrl , responseSanitizers: responseSanitizers })=>{ | ||
let abandoned = false; | ||
@@ -45,2 +51,3 @@ return new Promise((resolve, reject)=>{ | ||
}; | ||
const $5d774bdb3a883001$export$9da0cde53b499187 = $5d774bdb3a883001$var$unsafeLoadAndStartRecorder; | ||
@@ -50,3 +57,3 @@ | ||
export {$5d774bdb3a883001$export$9da0cde53b499187 as loadAndStartRecorder}; | ||
export {$5d774bdb3a883001$export$9da0cde53b499187 as loadAndStartRecorder, $5d774bdb3a883001$export$f80553af9d70f9fd as tryLoadAndStartRecorder}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@alwaysmeticulous/recorder-loader", | ||
"version": "2.26.0", | ||
"version": "2.29.0", | ||
"license": "ISC", | ||
@@ -38,3 +38,3 @@ "source": "src/index.ts", | ||
}, | ||
"gitHead": "e2537377f68c00b3db4afa3708b93f44239980af" | ||
"gitHead": "485aea6f558be6092edfeb73de5921b0cd7f886d" | ||
} |
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
19256
136