Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ibp-cdn

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibp-cdn - npm Package Compare versions

Comparing version 1.2.12 to 1.2.13

2

events.js

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

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(()=>{var e={517:()=>{let e={};const t=new WebSocket("wss://event-service.idcrealestate.com/ws/track-event");function o(e){if(!e||e<0)return"Invalid timestamp";const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}function n(e,t){if(!e||!t||e<=t)return"0.00 seconds";return`${((e-t)/1e3).toFixed(2)} seconds`}function r(){var t={};t.PAGENAME=function(){const e=window.location.href.toLowerCase();return e.includes("/property-search-map")?"PropertyMapSearch":document.querySelector(".detailpage")?"PropertyDetail":e.includes("/real-estate-agent")?"AgentDetail":e.includes("/community")?"CommunityDetail":e.includes("/neighborhood")?"NeighborhoodDetail":e.includes("/real-estate-offices")?"OfficeResult":e.includes("/real-estate-office")?"OfficeDetail":e.includes("/real-estate-agents")?"AgentResult":e.includes("/real-estate-agent")?"AgentDetail":e.includes("/market-trends")?"MarketTrends":"HomePage"}();const o=document.querySelector("[data-pcode]"),n=o?o.getAttribute("data-pcode"):"IBP";return t.CLIENT=n,t.WEBVITALS=e,t}function a(e,o={}){const n=window.location.host.toString().toLowerCase(),a=window.location.href.toString().toLowerCase(),i=new URLSearchParams(window.location.search).toString().toLowerCase(),s=document.querySelector("[data-pcode]"),c=s?s.getAttribute("data-pcode"):"IBP",d={event_name:e,event_type:"PageLoad",info:{host:n,rawUrl:a,queryParams:i,additionaljson:r()},client:c};t.readyState===WebSocket.OPEN?t.send(JSON.stringify(d)):console.warn("WSS_NO_CONN")}document.addEventListener("DOMContentLoaded",(()=>{const t=window.performance.timing;setTimeout((()=>{e={navigationStart:o(t.navigationStart),pageLoadTime:n(t.loadEventEnd,t.navigationStart),timeToFirstByte:n(t.responseStart,t.navigationStart)}}),10)})),t.onopen=()=>{a("PageLoad")},t.onmessage=e=>{},t.onclose=()=>{},t.onerror=e=>{console.error("Websocket error:",e)}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}var n={};return(()=>{"use strict";n.__esModule=!0,o(517)})(),n})()}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(()=>{var e={517:()=>{let e={};const t=new WebSocket("wss://event-service.idcrealestate.com/ws/track-event");function o(e){if(!e||e<0)return"Invalid timestamp";const t=new Date(e);return`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}function n(e,t){if(!e||!t||e<=t)return"0.00 seconds";return`${((e-t)/1e3).toFixed(2)} seconds`}function r(){var t={};t.PAGENAME=function(){const e=window.location.href.toLowerCase();return e.includes("/property-search-map")?"PropertyMapSearch":document.querySelector(".detailpage")?"PropertyDetail":e.includes("/real-estate-agent")?"AgentDetail":e.includes("/community")?"CommunityDetail":e.includes("/neighborhood")?"NeighborhoodDetail":e.includes("/real-estate-offices")?"OfficeResult":e.includes("/real-estate-office")?"OfficeDetail":e.includes("/real-estate-agents")?"AgentResult":e.includes("/real-estate-agent")?"AgentDetail":e.includes("/market-trends")?"MarketTrends":"HomePage"}();const o=document.querySelector("[data-pcode]"),n=o?o.getAttribute("data-pcode"):"IBP";return t.CLIENT=n,t.WEBVITALS=e,t}function a(e,o={}){const n=window.location.host.toString().toLowerCase(),a=window.location.href.toString().toLowerCase(),i=new URLSearchParams(window.location.search).toString().toLowerCase(),s=document.querySelector("[data-pcode]"),c=s?s.getAttribute("data-pcode"):"IBP",d={eventname:e,eventlabel:"PageLoad",info:{host:n,rawUrl:a,queryParams:i,additionaljson:r()},client:c};t.readyState===WebSocket.OPEN?t.send(JSON.stringify(d)):console.warn("WSS_NO_CONN")}document.addEventListener("DOMContentLoaded",(()=>{const t=window.performance.timing;setTimeout((()=>{e={navigationStart:o(t.navigationStart),pageLoadTime:n(t.loadEventEnd,t.navigationStart),timeToFirstByte:n(t.responseStart,t.navigationStart)}}),10)})),t.onopen=()=>{a("PageLoad")},t.onmessage=e=>{},t.onclose=()=>{},t.onerror=e=>{console.error("Websocket error:",e)}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}var n={};return(()=>{"use strict";n.__esModule=!0,o(517)})(),n})()}));
//# sourceMappingURL=events.js.map
{
"name": "ibp-cdn",
"version": "1.2.12",
"version": "1.2.13",
"description": "Style & JS optimized",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc