highlight.run
Advanced tools
Comparing version 1.0.39 to 1.0.40
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core'; | ||
import { eventWithTime } from 'rrweb/typings/types'; | ||
import { ConsoleMessage } from './listeners/console-listener'; | ||
import { ConsoleMessage, NetworkResourceContent } from '../../frontend/src/util/shared-types'; | ||
declare class Logger { | ||
@@ -10,2 +10,3 @@ debug: boolean; | ||
export declare type HighlightClassOptions = { | ||
organizationID: number; | ||
debug?: boolean; | ||
@@ -19,9 +20,10 @@ backendUrl?: string; | ||
messages: ConsoleMessage[]; | ||
networkContents: NetworkResourceContent[]; | ||
sessionID: number; | ||
ready: boolean; | ||
logger: Logger; | ||
constructor(options?: HighlightClassOptions); | ||
constructor(options: HighlightClassOptions); | ||
identify(user_identifier: string, user_object?: {}): Promise<void>; | ||
addProperties(properties_obj?: {}): Promise<void>; | ||
initialize(organizationID: number): Promise<void>; | ||
initialize(): Promise<void>; | ||
_save(): Promise<void>; | ||
@@ -28,0 +30,0 @@ } |
@@ -1,6 +0,2 @@ | ||
export declare type ConsoleMessage = { | ||
value: string; | ||
time: number; | ||
type: string; | ||
}; | ||
import { ConsoleMessage } from '../../../frontend/src/util/shared-types'; | ||
export declare const ConsoleListener: (callback: (c: ConsoleMessage) => void) => void; |
@@ -5,2 +5,3 @@ export declare type HighlightOptions = { | ||
backendUrl?: string; | ||
manualStart?: boolean; | ||
}; | ||
@@ -11,5 +12,7 @@ declare type HighlightPublicInterface = { | ||
getSessionURL: () => Promise<string>; | ||
start: () => void; | ||
onHighlightReady: (func: () => void) => void; | ||
options: HighlightOptions | undefined; | ||
}; | ||
export declare const H: HighlightPublicInterface; | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.$=t():e.$=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"H",(function(){return o}));var r,i,o={init:function(e,t){r=document.createElement("script");var n=(null==t?void 0:t.scriptUrl)?t.scriptUrl:"https://static.highlight.run/index.js";r.setAttribute("src",n+"?"+(new Date).getMilliseconds()),r.setAttribute("type","text/javascript"),document.getElementsByTagName("head")[0].appendChild(r),r.addEventListener("load",(function(){(i=new window.Highlight({debug:null==t?void 0:t.debug,backendUrl:null==t?void 0:t.backendUrl})).initialize(e)}))},identify:function(e,t){o.onHighlightReady((function(){return i.identify(e,t)}))},getSessionURL:function(){return new Promise((function(e,t){o.onHighlightReady((function(){var n=i.organizationID,r=i.sessionID;n&&r?e("app.highlight.run/"+n+"/sessions/"+r):t(new Error("org ID or session ID is empty"))}))}))},onHighlightReady:function(e){i&&i.ready&&e();var t=setInterval((function(){i&&i.ready&&(clearInterval(t),e())}),200)}};"undefined"!=typeof window&&(window.H=o)}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.$=e():t.$=e()}(this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"H",(function(){return o}));var i,r,o={options:void 0,init:function(t,e){o.options=e,i=document.createElement("script");var n=(null==e?void 0:e.scriptUrl)?e.scriptUrl:"https://static.highlight.run/index.js";i.setAttribute("src",n+"?"+(new Date).getMilliseconds()),i.setAttribute("type","text/javascript"),document.getElementsByTagName("head")[0].appendChild(i),i.addEventListener("load",(function(){r=new window.Highlight({organizationID:t,debug:null==e?void 0:e.debug,backendUrl:null==e?void 0:e.backendUrl}),(null==e?void 0:e.manualStart)||r.initialize()}))},start:function(){var t;if(null===(t=o.options)||void 0===t?void 0:t.manualStart)var e=setInterval((function(){r&&(clearInterval(e),r.initialize())}),200);else console.warn("Highlight Error: Can't call `start()` without setting `manualStart` option in `H.init`")},identify:function(t,e){o.onHighlightReady((function(){return r.identify(t,e)}))},getSessionURL:function(){return new Promise((function(t,e){o.onHighlightReady((function(){var n=r.organizationID,i=r.sessionID;n&&i?t("app.highlight.run/"+n+"/sessions/"+i):e(new Error("org ID or session ID is empty"))}))}))},onHighlightReady:function(t){r&&r.ready&&t();var e=setInterval((function(){r&&r.ready&&(clearInterval(e),t())}),200)}};"undefined"!=typeof window&&(window.H=o)}])})); |
{ | ||
"name": "highlight.run", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "webpack --mode=production", |
Sorry, the diff of this file is not supported yet
225524
12
6029