Socket
Socket
Sign inDemoInstall

@heimdallr-sdk/history

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.0.9

2

dist/history.iife.js

@@ -1,1 +0,1 @@

var HEIMDALLR_HISTORY=function(){"use strict";var e,t,r,o,n,a,c,i,E,s,R,O,l,u,S,p,C,f,x,h,I,L,d,m,T,D,A,y,M,v,w,P;(e||(e={})).VUE="Vue",(r=t||(t={})).SESSION="HEIMDALLR_SDK_SESSION_ID",r.APP="HEIMDALLR_SDK_APP_ID",(n=o||(o={})).GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",(c=a||(a={})).API="api",c.DOM="dom",c.PERFORMANCE="performance",c.ROUTE="route",c.ERROR="error",c.CONSOLE="console",c.CUSTOMER="customer",c.VUE="vue",c.LIFECYCLE="lifeCycle",(E=i||(i={})).CODEERROR="code",E.RESOURCEERROR="resource",E.UNHANDLEDREJECTION="unhandledrejection",E.PAGECRASH="pageCrash",(s||(s={})).CLICK="click",(O=R||(R={})).LOG="log",O.INFO="info",O.WARN="warn",O.ERROR="error",O.ASSERT="assert",(u=l||(l={})).FETCH="fetch",u.XHR="xhr",(p=S||(S={})).FMP="fmp",p.FPS="fps",p.BASIC="basic",p.VITALS="vitals",p.RESOURCE="resource",(f=C||(C={})).HASH="hash",f.HISTORY="history",(x||(x={})).CUSTOMER="customer",(I=h||(h={})).LOCAL="local",I.SESSION="session",I.COOKIE="cookie",I.GLOBAL="global",(d=L||(L={})).BEACON="beacon",d.IMG="img",d.GET="get",(T=m||(m={})).LOAD="enter",T.UNLOAD="leave",(A=D||(D={})).MOBILE="mobile",A.PC="pc",(y||(y={})).ERROR="error",(v=M||(M={})).BASIC="basic",v.RESOURCE="resource",v.FMP="fmp",v.FPS="fps",v.VITALS="vitals",(P=w||(w={})).ROUTE="Route",P.CLICK="UI.Click",P.CONSOLE="Console",P.XHR="Xhr",P.FETCH="Fetch",P.UNHANDLEDREJECTION="Unhandledrejection",P.RESOURCE="Resource",P.CODE_ERROR="CodeError",P.CUSTOMER="Customer",P.FRAMEWORK="Framework",P.LIFECYCLE="LifeCycle",P.CRASH="Crash","undefined"!=typeof process&&process;var U=function(e,t){void 0===e&&(e="Y-M-D h:m:s"),void 0===t&&(t=Date.now());var r=new Date(t),o={Y:"".concat(r.getFullYear()),M:"".concat(r.getMonth()+1),D:"".concat(r.getDate()),h:r.getHours(),m:r.getMinutes(),s:r.getSeconds()},n=function(e){return e>10?e:"0"+e};return e.replace("Y",o.Y).replace("M",o.M).replace("D",o.D).replace("h",n(o.h)).replace("m",n(o.m)).replace("s",n(o.s))};function g(e,t,r,o){if(void 0!==e&&(t in e||o)){var n=r(e[t]);"function"==typeof n&&(e[t]=n)}}var b=Object.defineProperty,H=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,Y=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&Y(e,r,t[r]);if(H)for(var r of H(t))F.call(t,r)&&Y(e,r,t[r]);return e};const G="historyPlugin";return{name:G,monitor(e){let t="";if(!window.history.pushState||!window.history.replaceState)return;const r=window.onpopstate;function o(r){return function(...o){const n=o.length>2?o[2]:void 0;if(n){const r=t,o=String(n);t=o,e(G,{from:r,to:o})}return r.apply(this,o)}}window.onpopstate=function(...o){const n=document.location.href,a=t;t=n,e(G,{from:a,to:n}),r&&r.apply(this,o)},g(window.history,"pushState",o),g(window.history,"replaceState",o)},transform(e){const t=(r=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)})));var r;return this.breadcrumb.unshift({eventId:t,type:w.ROUTE,data:e}),{id:t,time:U(),type:a.ROUTE,data:_({sub_type:C.HISTORY},e)}}}}();
var HEIMDALLR_HISTORY=function(){"use strict";var e,t,r,o,n,a,c,i,E,s,R,O,l,u,S,p,C,f,h,x,I,L,d,m,D,T,A,y,M,w,v,P;(e||(e={})).VUE="Vue",(r=t||(t={})).SESSION="HEIMDALLR_SDK_SESSION_ID",r.APP="HEIMDALLR_SDK_APP_ID",(n=o||(o={})).GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",(c=a||(a={})).API="api",c.DOM="dom",c.PERFORMANCE="performance",c.ROUTE="route",c.ERROR="error",c.CONSOLE="console",c.CUSTOMER="customer",c.VUE="vue",c.LIFECYCLE="lifeCycle",(E=i||(i={})).CODEERROR="code",E.RESOURCEERROR="resource",E.UNHANDLEDREJECTION="unhandledrejection",E.PAGECRASH="pageCrash",(s||(s={})).CLICK="click",(O=R||(R={})).LOG="log",O.INFO="info",O.WARN="warn",O.ERROR="error",O.ASSERT="assert",(u=l||(l={})).FETCH="fetch",u.XHR="xhr",(p=S||(S={})).FMP="fmp",p.FPS="fps",p.BASIC="basic",p.VITALS="vitals",p.RESOURCE="resource",(f=C||(C={})).HASH="hash",f.HISTORY="history",(h||(h={})).CUSTOMER="customer",(I=x||(x={})).LOCAL="local",I.SESSION="session",I.COOKIE="cookie",I.GLOBAL="global",(d=L||(L={})).BEACON="beacon",d.IMG="img",d.GET="get",(D=m||(m={})).LOAD="enter",D.UNLOAD="leave",(A=T||(T={})).MOBILE="mobile",A.PC="pc",(y||(y={})).ERROR="error",(w=M||(M={})).BASIC="basic",w.RESOURCE="resource",w.FMP="fmp",w.FPS="fps",w.VITALS="vitals",(P=v||(v={})).ROUTE="Route",P.CLICK="UI.Click",P.CONSOLE="Console",P.XHR="Xhr",P.FETCH="Fetch",P.UNHANDLEDREJECTION="Unhandledrejection",P.RESOURCE="Resource",P.CODE_ERROR="CodeError",P.CUSTOMER="Customer",P.FRAMEWORK="Framework",P.LIFECYCLE="LifeCycle",P.CRASH="Crash","undefined"!=typeof process&&process;var U=function(e,t){void 0===e&&(e="Y-M-D h:m:s"),void 0===t&&(t=Date.now());var r=new Date(t||Date.now()),o={Y:"".concat(r.getFullYear()),M:"".concat(r.getMonth()+1),D:"".concat(r.getDate()),h:r.getHours(),m:r.getMinutes(),s:r.getSeconds()},n=function(e){return e>10?e:"0"+e};return(e||"Y-M-D h:m:s").replace("Y",o.Y).replace("M",o.M).replace("D",o.D).replace("h",n(o.h)).replace("m",n(o.m)).replace("s",n(o.s))};function g(e,t,r,o){if(void 0!==e&&(t in e||o)){var n=r(e[t]);"function"==typeof n&&(e[t]=n)}}var b=Object.defineProperty,H=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,Y=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&Y(e,r,t[r]);if(H)for(var r of H(t))F.call(t,r)&&Y(e,r,t[r]);return e};const G="historyPlugin";return{name:G,monitor(e){let t="";if(!window.history.pushState||!window.history.replaceState)return;const r=window.onpopstate;function o(r){return function(...o){const n=o.length>2?o[2]:void 0;if(n){const r=t,o=String(n);t=o,e(G,{from:r,to:o})}return r.apply(this,o)}}window.onpopstate=function(...o){const n=document.location.href,a=t;t=n,e(G,{from:a,to:n}),r&&r.apply(this,o)},g(window.history,"pushState",o),g(window.history,"replaceState",o)},transform(e){const t=(r=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)})));var r;return this.breadcrumb.unshift({eventId:t,type:v.ROUTE,data:e}),{id:t,time:U(),type:a.ROUTE,data:_({sub_type:C.HISTORY},e)}}}}();

@@ -148,3 +148,3 @@ (function (global, factory) {

}
var date = new Date(timestamp);
var date = new Date(timestamp || Date.now());
var dateInfo = {

@@ -161,3 +161,3 @@ Y: "".concat(date.getFullYear()),

};
var res = format.replace("Y", dateInfo.Y).replace("M", dateInfo.M).replace("D", dateInfo.D).replace("h", formatNumber(dateInfo.h)).replace("m", formatNumber(dateInfo.m)).replace("s", formatNumber(dateInfo.s));
var res = (format || "Y-M-D h:m:s").replace("Y", dateInfo.Y).replace("M", dateInfo.M).replace("D", dateInfo.D).replace("h", formatNumber(dateInfo.h)).replace("m", formatNumber(dateInfo.m)).replace("s", formatNumber(dateInfo.s));
return res;

@@ -164,0 +164,0 @@ };

{
"name": "@heimdallr-sdk/history",
"version": "0.0.8",
"version": "0.0.9",
"description": "A Plugin For Browser SDK",

@@ -41,5 +41,5 @@ "license": "MIT",

"@heimdallr-sdk/types": "^0.0.7",
"@heimdallr-sdk/utils": "^0.0.8"
"@heimdallr-sdk/utils": "^0.0.9"
},
"gitHead": "261a108f06d34727622b9bb7956066ec669a9e5f"
"gitHead": "5c228c2425059428fa1329e430525bcd374520c6"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc