New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aircall/logger

Package Overview
Dependencies
Maintainers
5
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aircall/logger - npm Package Compare versions

Comparing version 2.8.4 to 2.8.5

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## [2.8.5](https://gitlab.com/aircall/shared/front-end-modules/compare/@aircall/logger@2.8.4...@aircall/logger@2.8.5) (2023-02-08)
**Note:** Version bump only for package @aircall/logger
## [2.8.4](https://gitlab.com/aircall/shared/front-end-modules/compare/@aircall/logger@2.8.3...@aircall/logger@2.8.4) (2023-01-27)

@@ -8,0 +12,0 @@

2

dist/logger.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("@datadog/browser-logs");(e=exports.LOGGER||(exports.LOGGER={})).INIT="LOGGER_INIT",e.LOG="LOGGER_LOG",e.DEBUG="LOGGER_DEBUG",e.INFO="LOGGER_INFO",e.WARN="LOGGER_WARN",e.ERROR="LOGGER_ERROR";var t=[exports.LOGGER.LOG,exports.LOGGER.DEBUG,exports.LOGGER.INFO,exports.LOGGER.WARN,exports.LOGGER.ERROR],s=function(e){return t.includes(e.type)},i=["password","Authorization","confirmationPassword","newPassword","currentPassword","idToken","token"],o=function(e){return Array.isArray(e)},a=function(e){return null!==e&&"object"==typeof e};function p(e){return"string"==typeof e}var n,m=require("ajv-formats/dist/formats").fullFormats["date-time"],y=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/;function d(e,r){var t,s=(void 0===r?{}:r).instancePath,i=void 0===s?"":s;if(!e||"object"!=typeof e||Array.isArray(e))return d.errors=[{instancePath:i,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===e.version&&(t="version")||void 0===e.env&&(t="env")||void 0===e.service&&(t="service")||void 0===e.host&&(t="host")||void 0===e.timestamp&&(t="timestamp")||void 0===e.level&&(t="level")||void 0===e.message&&(t="message"))return d.errors=[{instancePath:i,schemaPath:"#/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==e.service){if("string"!=typeof e.service)return d.errors=[{instancePath:i+"/service",schemaPath:"#/properties/service/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=!0}else o=!0;if(o){if(void 0!==e.version){if("string"!=typeof e.version)return d.errors=[{instancePath:i+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.env){if("string"!=typeof e.env)return d.errors=[{instancePath:i+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.host){if("string"!=typeof e.host)return d.errors=[{instancePath:i+"/host",schemaPath:"#/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.timestamp){var a=e.timestamp;if("string"!=typeof a)return d.errors=[{instancePath:i+"/timestamp",schemaPath:"#/properties/timestamp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!m.validate(a))return d.errors=[{instancePath:i+"/timestamp",schemaPath:"#/properties/timestamp/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'}],!1;o=!0}else o=!0;if(o){if(void 0!==e.level){if("string"!=typeof e.level)return d.errors=[{instancePath:i+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.message){if("string"!=typeof e.message)return d.errors=[{instancePath:i+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.request_id){if("string"!=typeof e.request_id)return d.errors=[{instancePath:i+"/request_id",schemaPath:"#/properties/request_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.id){if("string"!=typeof e.id)return d.errors=[{instancePath:i+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.dd){var p,n=e.dd;if(!n||"object"!=typeof n||Array.isArray(n))return d.errors=[{instancePath:i+"/dd",schemaPath:"#/properties/dd/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===n.trace_id&&(p="trace_id")||void 0===n.span_id&&(p="span_id")||void 0===n.version&&(p="version"))return d.errors=[{instancePath:i+"/dd",schemaPath:"#/properties/dd/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;if(void 0!==n.trace_id){if("string"!=typeof n.trace_id)return d.errors=[{instancePath:i+"/dd/trace_id",schemaPath:"#/properties/dd/properties/trace_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=!0}else c=!0;if(c){if(void 0!==n.span_id){if("string"!=typeof n.span_id)return d.errors=[{instancePath:i+"/dd/span_id",schemaPath:"#/properties/dd/properties/span_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;c=!0}else c=!0;if(c)if(void 0!==n.version){if("string"!=typeof n.version)return d.errors=[{instancePath:i+"/dd/version",schemaPath:"#/properties/dd/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;c=!0}else c=!0}o=!0}else o=!0;if(o){if(void 0!==e.network){var u,g=e.network;if(!g||"object"!=typeof g||Array.isArray(g))return d.errors=[{instancePath:i+"/network",schemaPath:"#/properties/network/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===g.client&&(u="client")||void 0===g.destination&&(u="destination"))return d.errors=[{instancePath:i+"/network",schemaPath:"#/properties/network/required",keyword:"required",params:{missingProperty:u},message:"must have required property '"+u+"'"}],!1;if(void 0!==g.client){var h,f=g.client;if(!f||"object"!=typeof f||Array.isArray(f))return d.errors=[{instancePath:i+"/network/client",schemaPath:"#/properties/network/properties/client/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===f.ip&&(h="ip")||void 0===f.port&&(h="port"))return d.errors=[{instancePath:i+"/network/client",schemaPath:"#/properties/network/properties/client/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;if(void 0!==f.ip){var l=f.ip;if("string"!=typeof l)return d.errors=[{instancePath:i+"/network/client/ip",schemaPath:"#/properties/network/properties/client/properties/ip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!y.test(l))return d.errors=[{instancePath:i+"/network/client/ip",schemaPath:"#/properties/network/properties/client/properties/ip/format",keyword:"format",params:{format:"ipv4"},message:'must match format "ipv4"'}],!1;var v=!0}else v=!0;if(v){if(void 0!==f.port){var P=f.port;if("number"!=typeof P||P%1||isNaN(P)||!isFinite(P))return d.errors=[{instancePath:i+"/network/client/port",schemaPath:"#/properties/network/properties/client/properties/port/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;v=!0}else v=!0;if(v)if(void 0!==f.geoip){var b,w=f.geoip;if(!w||"object"!=typeof w||Array.isArray(w))return d.errors=[{instancePath:i+"/network/client/geoip",schemaPath:"#/properties/network/properties/client/properties/geoip/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===w.city&&(b="city")||void 0===w.continent&&(b="continent")||void 0===w.country&&(b="country")||void 0===w.location&&(b="location")||void 0===w.subdivision&&(b="subdivision")||void 0===w.timezone&&(b="timezone"))return d.errors=[{instancePath:i+"/network/client/geoip",schemaPath:"#/properties/network/properties/client/properties/geoip/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;if(void 0!==w.as){var k=w.as;if(!k||"object"!=typeof k||Array.isArray(k))return d.errors=[{instancePath:i+"/network/client/geoip/as",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/as/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=!0}else _=!0;if(_){if(void 0!==w.city){var j,q=w.city;if(!q||"object"!=typeof q||Array.isArray(q))return d.errors=[{instancePath:i+"/network/client/geoip/city",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===q.name&&(j="name"))return d.errors=[{instancePath:i+"/network/client/geoip/city",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;if(void 0!==q.name&&"string"!=typeof q.name)return d.errors=[{instancePath:i+"/network/client/geoip/city/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0;if(_){if(void 0!==w.continent){var G,A=w.continent;if(!A||"object"!=typeof A||Array.isArray(A))return d.errors=[{instancePath:i+"/network/client/geoip/continent",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===A.code&&(G="code")||void 0===A.name&&(G="name"))return d.errors=[{instancePath:i+"/network/client/geoip/continent",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"}],!1;if(void 0!==A.code){if("string"!=typeof A.code)return d.errors=[{instancePath:i+"/network/client/geoip/continent/code",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=!0}else E=!0;if(E)if(void 0!==A.name){if("string"!=typeof A.name)return d.errors=[{instancePath:i+"/network/client/geoip/continent/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;E=!0}else E=!0;_=!0}else _=!0;if(_){if(void 0!==w.country){var L,O=w.country;if(!O||"object"!=typeof O||Array.isArray(O))return d.errors=[{instancePath:i+"/network/client/geoip/country",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===O.name&&(L="name")||void 0===O.iso_code&&(L="iso_code"))return d.errors=[{instancePath:i+"/network/client/geoip/country",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"}],!1;if(void 0!==O.name){if("string"!=typeof O.name)return d.errors=[{instancePath:i+"/network/client/geoip/country/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=!0}else x=!0;if(x)if(void 0!==O.iso_code){if("string"!=typeof O.iso_code)return d.errors=[{instancePath:i+"/network/client/geoip/country/iso_code",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/properties/iso_code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;x=!0}else x=!0;_=!0}else _=!0;if(_){if(void 0!==w.location){var R,N=w.location;if(!N||"object"!=typeof N||Array.isArray(N))return d.errors=[{instancePath:i+"/network/client/geoip/location",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===N.latitude&&(R="latitude")||void 0===N.longitude&&(R="longitude"))return d.errors=[{instancePath:i+"/network/client/geoip/location",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"}],!1;if(void 0!==N.latitude){var S=N.latitude;if("number"!=typeof S||!isFinite(S))return d.errors=[{instancePath:i+"/network/client/geoip/location/latitude",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/properties/latitude/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=!0}else T=!0;if(T)if(void 0!==N.longitude){var I=N.longitude;if("number"!=typeof I||!isFinite(I))return d.errors=[{instancePath:i+"/network/client/geoip/location/longitude",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/properties/longitude/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;T=!0}else T=!0;_=!0}else _=!0;if(_){if(void 0!==w.subdivision){var F,z=w.subdivision;if(!z||"object"!=typeof z||Array.isArray(z))return d.errors=[{instancePath:i+"/network/client/geoip/subdivision",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===z.name&&(F="name"))return d.errors=[{instancePath:i+"/network/client/geoip/subdivision",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"}],!1;if(void 0!==z.name&&"string"!=typeof z.name)return d.errors=[{instancePath:i+"/network/client/geoip/subdivision/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0;if(_)if(void 0!==w.timezone){if("string"!=typeof w.timezone)return d.errors=[{instancePath:i+"/network/client/geoip/timezone",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/timezone/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0}}}}}v=!0}else v=!0}}o=!0}else o=!0;if(o){if(void 0!==e.http){var D,M=e.http;if(!M||"object"!=typeof M||Array.isArray(M))return d.errors=[{instancePath:i+"/http",schemaPath:"#/properties/http/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===M.method&&(D="method")||void 0===M.status_code&&(D="status_code")||void 0===M.url&&(D="url")||void 0===M.useragent&&(D="useragent"))return d.errors=[{instancePath:i+"/http",schemaPath:"#/properties/http/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;if(void 0!==M.method){if("string"!=typeof M.method)return d.errors=[{instancePath:i+"/http/method",schemaPath:"#/properties/http/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=!0}else C=!0;if(C){if(void 0!==M.status_code){var V=M.status_code;if("number"!=typeof V||!isFinite(V))return d.errors=[{instancePath:i+"/http/status_code",schemaPath:"#/properties/http/properties/status_code/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.url){if("string"!=typeof M.url)return d.errors=[{instancePath:i+"/http/url",schemaPath:"#/properties/http/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.version){if("string"!=typeof M.version)return d.errors=[{instancePath:i+"/http/version",schemaPath:"#/properties/http/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.referer){if("string"!=typeof M.referer)return d.errors=[{instancePath:i+"/http/referer",schemaPath:"#/properties/http/properties/referer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.useragent){if("string"!=typeof M.useragent)return d.errors=[{instancePath:i+"/http/useragent",schemaPath:"#/properties/http/properties/useragent/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.headers){var B=M.headers;if(!B||"object"!=typeof B||Array.isArray(B))return d.errors=[{instancePath:i+"/http/headers",schemaPath:"#/properties/http/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;C=!0}else C=!0;if(C)if(void 0!==M.url_details){var U,W=M.url_details;if(!W||"object"!=typeof W||Array.isArray(W))return d.errors=[{instancePath:i+"/http/url_details",schemaPath:"#/properties/http/properties/url_details/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===W.host&&(U="host")||void 0===W.path&&(U="path")||void 0===W.scheme&&(U="scheme"))return d.errors=[{instancePath:i+"/http/url_details",schemaPath:"#/properties/http/properties/url_details/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"}],!1;if(void 0!==W.host){if("string"!=typeof W.host)return d.errors=[{instancePath:i+"/http/url_details/host",schemaPath:"#/properties/http/properties/url_details/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=!0}else H=!0;if(H){if(void 0!==W.path){if("string"!=typeof W.path)return d.errors=[{instancePath:i+"/http/url_details/path",schemaPath:"#/properties/http/properties/url_details/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0;if(H){if(void 0!==W.scheme){if("string"!=typeof W.scheme)return d.errors=[{instancePath:i+"/http/url_details/scheme",schemaPath:"#/properties/http/properties/url_details/properties/scheme/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0;if(H)if(void 0!==W.queryString){if("string"!=typeof W.queryString)return d.errors=[{instancePath:i+"/http/url_details/queryString",schemaPath:"#/properties/http/properties/url_details/properties/queryString/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0}}C=!0}else C=!0}}}}}}o=!0}else o=!0;if(o){if(void 0!==e.user){var J=e.user;if(!J||"object"!=typeof J||Array.isArray(J))return d.errors=[{instancePath:i+"/user",schemaPath:"#/properties/user/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==J.id){var $=J.id;if("number"!=typeof $||!isFinite($))return d.errors=[{instancePath:i+"/user/id",schemaPath:"#/properties/user/properties/id/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var K=!0}else K=!0;if(K){if(void 0!==J.name){if("string"!=typeof J.name)return d.errors=[{instancePath:i+"/user/name",schemaPath:"#/properties/user/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.device){if("string"!=typeof J.device)return d.errors=[{instancePath:i+"/user/device",schemaPath:"#/properties/user/properties/device/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.release){var Q=J.release;if("number"!=typeof Q||!isFinite(Q))return d.errors=[{instancePath:i+"/user/release",schemaPath:"#/properties/user/properties/release/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.is_trial){if("boolean"!=typeof J.is_trial)return d.errors=[{instancePath:i+"/user/is_trial",schemaPath:"#/properties/user/properties/is_trial/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.company_id){var X=J.company_id;if("number"!=typeof X||X%1||isNaN(X)||!isFinite(X))return d.errors=[{instancePath:i+"/user/company_id",schemaPath:"#/properties/user/properties/company_id/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.provider){if("string"!=typeof J.provider)return d.errors=[{instancePath:i+"/user/provider",schemaPath:"#/properties/user/properties/provider/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.device_id){if("string"!=typeof J.device_id)return d.errors=[{instancePath:i+"/user/device_id",schemaPath:"#/properties/user/properties/device_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.phone_model){if("string"!=typeof J.phone_model)return d.errors=[{instancePath:i+"/user/phone_model",schemaPath:"#/properties/user/properties/phone_model/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.phone_device){if("string"!=typeof J.phone_device)return d.errors=[{instancePath:i+"/user/phone_device",schemaPath:"#/properties/user/properties/phone_device/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.device_details){if("string"!=typeof J.device_details)return d.errors=[{instancePath:i+"/user/device_details",schemaPath:"#/properties/user/properties/device_details/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K){if(void 0!==J.phone_manufacturer){if("string"!=typeof J.phone_manufacturer)return d.errors=[{instancePath:i+"/user/phone_manufacturer",schemaPath:"#/properties/user/properties/phone_manufacturer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0;if(K)if(void 0!==J.phone_brand){if("string"!=typeof J.phone_brand)return d.errors=[{instancePath:i+"/user/phone_brand",schemaPath:"#/properties/user/properties/phone_brand/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;K=!0}else K=!0}}}}}}}}}}}o=!0}else o=!0;if(o){if(void 0!==e.error){var Y,Z=e.error;if(!Z||"object"!=typeof Z||Array.isArray(Z))return d.errors=[{instancePath:i+"/error",schemaPath:"#/properties/error/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===Z.kind&&(Y="kind")||void 0===Z.message&&(Y="message")||void 0===Z.stack&&(Y="stack"))return d.errors=[{instancePath:i+"/error",schemaPath:"#/properties/error/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"}],!1;if(void 0!==Z.kind){if("string"!=typeof Z.kind)return d.errors=[{instancePath:i+"/error/kind",schemaPath:"#/properties/error/properties/kind/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=!0}else ee=!0;if(ee){if(void 0!==Z.message){if("string"!=typeof Z.message)return d.errors=[{instancePath:i+"/error/message",schemaPath:"#/properties/error/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ee=!0}else ee=!0;if(ee)if(void 0!==Z.stack){if("string"!=typeof Z.stack)return d.errors=[{instancePath:i+"/error/stack",schemaPath:"#/properties/error/properties/stack/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ee=!0}else ee=!0}o=!0}else o=!0;if(o){if(void 0!==e.context){var re=e.context;if(!re||"object"!=typeof re||Array.isArray(re))return d.errors=[{instancePath:i+"/context",schemaPath:"#/properties/context/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==re.input){if("boolean"!=typeof re.input)return d.errors=[{instancePath:i+"/context/input",schemaPath:"#/properties/context/properties/input/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var te=!0}else te=!0;if(te){if(void 0!==re.output){if("boolean"!=typeof re.output)return d.errors=[{instancePath:i+"/context/output",schemaPath:"#/properties/context/properties/output/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;te=!0}else te=!0;if(te){if(void 0!==re.domain){if("string"!=typeof re.domain)return d.errors=[{instancePath:i+"/context/domain",schemaPath:"#/properties/context/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;te=!0}else te=!0;if(te)if(void 0!==re.fieldName){if("string"!=typeof re.fieldName)return d.errors=[{instancePath:i+"/context/fieldName",schemaPath:"#/properties/context/properties/fieldName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;te=!0}else te=!0}}o=!0}else o=!0;if(o){if(void 0!==e.aws){var se=e.aws;if(!se||"object"!=typeof se||Array.isArray(se))return d.errors=[{instancePath:i+"/aws",schemaPath:"#/properties/aws/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==se.account_id){if("string"!=typeof se.account_id)return d.errors=[{instancePath:i+"/aws/account_id",schemaPath:"#/properties/aws/properties/account_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=!0}else ie=!0;if(ie){if(void 0!==se.awslogs){var oe,ae=se.awslogs;if(!ae||"object"!=typeof ae||Array.isArray(ae))return d.errors=[{instancePath:i+"/aws/awslogs",schemaPath:"#/properties/aws/properties/awslogs/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ae.logGroup&&(oe="logGroup")||void 0===ae.logStream&&(oe="logStream")||void 0===ae.owner&&(oe="owner"))return d.errors=[{instancePath:i+"/aws/awslogs",schemaPath:"#/properties/aws/properties/awslogs/required",keyword:"required",params:{missingProperty:oe},message:"must have required property '"+oe+"'"}],!1;if(void 0!==ae.logGroup){if("string"!=typeof ae.logGroup)return d.errors=[{instancePath:i+"/aws/awslogs/logGroup",schemaPath:"#/properties/aws/properties/awslogs/properties/logGroup/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=!0}else pe=!0;if(pe){if(void 0!==ae.logStream){if("string"!=typeof ae.logStream)return d.errors=[{instancePath:i+"/aws/awslogs/logStream",schemaPath:"#/properties/aws/properties/awslogs/properties/logStream/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;pe=!0}else pe=!0;if(pe)if(void 0!==ae.owner){if("string"!=typeof ae.owner)return d.errors=[{instancePath:i+"/aws/awslogs/owner",schemaPath:"#/properties/aws/properties/awslogs/properties/owner/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;pe=!0}else pe=!0}ie=!0}else ie=!0;if(ie)if(void 0!==se.function_version){if("string"!=typeof se.function_version)return d.errors=[{instancePath:i+"/aws/function_version",schemaPath:"#/properties/aws/properties/function_version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ie=!0}else ie=!0}o=!0}else o=!0;if(o){if(void 0!==e.db){var ne=e.db;if(!ne||"object"!=typeof ne||Array.isArray(ne))return d.errors=[{instancePath:i+"/db",schemaPath:"#/properties/db/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ne.instance){if("string"!=typeof ne.instance)return d.errors=[{instancePath:i+"/db/instance",schemaPath:"#/properties/db/properties/instance/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var me=!0}else me=!0;if(me){if(void 0!==ne.statement){if("string"!=typeof ne.statement)return d.errors=[{instancePath:i+"/db/statement",schemaPath:"#/properties/db/properties/statement/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;me=!0}else me=!0;if(me)if(void 0!==ne.operation){if("string"!=typeof ne.operation)return d.errors=[{instancePath:i+"/db/operation",schemaPath:"#/properties/db/properties/operation/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;me=!0}else me=!0}o=!0}else o=!0;if(o){if(void 0!==e.dns){var ye=e.dns;if(!ye||"object"!=typeof ye||Array.isArray(ye))return d.errors=[{instancePath:i+"/dns",schemaPath:"#/properties/dns/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.performance){var de,ce=e.performance;if(!ce||"object"!=typeof ce||Array.isArray(ce))return d.errors=[{instancePath:i+"/performance",schemaPath:"#/properties/performance/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ce.duration&&(de="duration"))return d.errors=[{instancePath:i+"/performance",schemaPath:"#/properties/performance/required",keyword:"required",params:{missingProperty:de},message:"must have required property '"+de+"'"}],!1;if(void 0!==ce.duration&&"string"!=typeof ce.duration)return d.errors=[{instancePath:i+"/performance/duration",schemaPath:"#/properties/performance/properties/duration/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o)if(void 0!==e.logger){var ue,ge=e.logger;if(!ge||"object"!=typeof ge||Array.isArray(ge))return d.errors=[{instancePath:i+"/logger",schemaPath:"#/properties/logger/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ge.thread_name&&(ue="thread_name")||void 0===ge.version&&(ue="version")||void 0===ge.name&&(ue="name")||void 0===ge.method_name&&(ue="method_name"))return d.errors=[{instancePath:i+"/logger",schemaPath:"#/properties/logger/required",keyword:"required",params:{missingProperty:ue},message:"must have required property '"+ue+"'"}],!1;if(void 0!==ge.thread_name){if("string"!=typeof ge.thread_name)return d.errors=[{instancePath:i+"/logger/thread_name",schemaPath:"#/properties/logger/properties/thread_name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=!0}else he=!0;if(he){if(void 0!==ge.version){if("string"!=typeof ge.version)return d.errors=[{instancePath:i+"/logger/version",schemaPath:"#/properties/logger/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0;if(he){if(void 0!==ge.name){if("string"!=typeof ge.name)return d.errors=[{instancePath:i+"/logger/name",schemaPath:"#/properties/logger/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0;if(he)if(void 0!==ge.method_name){if("string"!=typeof ge.method_name)return d.errors=[{instancePath:i+"/logger/method_name",schemaPath:"#/properties/logger/properties/method_name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0}}o=!0}else o=!0}}}}}}}}}}}}}}}}}}return d.errors=null,!0}(n=exports.LOGGER_ENVIRONMENT||(exports.LOGGER_ENVIRONMENT={})).DEVELOPMENT="development",n.TEST="test",n.STAGING="staging",n.BETA="beta",n.PRODUCTION="production";var c=function(){function e(){this.initialized=!1,this.queue=[]}var t=e.prototype;return t.init=function(e){var t=this,s=e.level,i=e.context,o=e.token,a=e.version,p=e.environment,n=e.service,m=e.user,y=e.forwardConsoleLogs,c=i.user_session.environment===exports.LOGGER_ENVIRONMENT.DEVELOPMENT;this.compiledLogSchema=d,r.datadogLogs.init({clientToken:o,datacenter:"us",forwardErrorsToLogs:!0,forwardConsoleLogs:null!=y?y:["error","warn"],sampleRate:100,beforeSend:function(e){return t.beforeSendListener(e,a,p,n,m)}}),this.setContext(i),r.datadogLogs.logger.setHandler(c?r.HandlerType.console:r.HandlerType.http),this.setLevel(s),this.initialized=!0,this.queue.forEach((function(e){return e()}))},t.beforeSendListener=function(e,r,t,s,i){this.addMandatoryFields(e,r,t,s,i),this.compiledLogSchema(e)||console.log("An error occured while validating the log payload. For more information, please refer to distributed logging and tracing best practices documentation.",{error:this.compiledLogSchema.errors,log:e})},t.addMandatoryFields=function(e,t,s,i,o){var a=new Date(Date.now()),p=r.datadogLogs.getInternalContext();e.version=t,e.env=s,e.service=i,e.host=(null==p?void 0:p.session_id)||"",e.timestamp=a.toISOString(),e.level=e.status,e.user=o},t.setContext=function(e){r.datadogLogs.logger.setContext(e)},t.logOrEnqueue=function(e){this.initialized?e():this.queue.push(e)},t.setLevel=function(e){this.level=e,r.datadogLogs.logger.setLevel(e)},t.cleanProperties=function(e){var r=this;return void 0===e&&(e={}),function(e,t,s){void 0===s&&(s=10);var n=0;return function e(r,t){return n>s?(n=0,null):function(e,r){return o(e)?e.map((function(e,t){return r(e,t)})):a(e)?function(e,r){var t={};for(var s in e)Object.hasOwnProperty.call(e,s)&&(t[s]=r(e[s],s));return t}(e,(function(e,t){return r(e,t)})):void 0}(r,(function(s,i){return o(s)||a(s)?(n++,e(s,t)):(n=0,t(s,i,r))}))}(e,(function(e,t){try{var s=p(e)&&JSON.parse(e);if(a(s)||o(s))return JSON.stringify(r.cleanProperties(s))}catch(e){}return p(t)&&function(e,r){return!!e&&i.some((function(r){return e.includes(r)}))}(t)?"<sensitive>":e}))}(e)},t.log=function(e,t,s){void 0===s&&(s={});var i=this.cleanProperties(s);this.logOrEnqueue((function(){return r.datadogLogs.logger.log(t,i,e)}))},t.debug=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.debug(e,s)}))},t.info=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.info(e,s)}))},t.warn=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.warn(e,s)}))},t.error=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.error(e,s)}))},e}();Object.defineProperty(exports,"LOGGER_LEVEL",{enumerable:!0,get:function(){return r.StatusType}}),exports.Logger=c,exports.debug=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.DEBUG,message:e,properties:r}},exports.error=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.ERROR,message:e,properties:r}},exports.info=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.INFO,message:e,properties:r}},exports.initLogger=function(){return{type:exports.LOGGER.INIT}},exports.isLoggerAction=s,exports.log=function(e,r,t){return void 0===t&&(t={}),{type:exports.LOGGER.LOG,level:e,message:r,properties:t}},exports.loggerMiddleware=function(e){return function(){var t=[];return function(i){return function(o){return e.level!==r.StatusType.debug||(s(o)?o.properties.lastDispatchedActions=t:t.push({type:o.type}),t.length>20&&t.shift()),i(o)}}}},exports.warn=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.WARN,message:e,properties:r}};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("@datadog/browser-logs");(e=exports.LOGGER||(exports.LOGGER={})).INIT="LOGGER_INIT",e.LOG="LOGGER_LOG",e.DEBUG="LOGGER_DEBUG",e.INFO="LOGGER_INFO",e.WARN="LOGGER_WARN",e.ERROR="LOGGER_ERROR";var t=[exports.LOGGER.LOG,exports.LOGGER.DEBUG,exports.LOGGER.INFO,exports.LOGGER.WARN,exports.LOGGER.ERROR],s=function(e){return t.includes(e.type)},i=["password","Authorization","confirmationPassword","newPassword","currentPassword","idToken","token"],o=function(e){return Array.isArray(e)},a=function(e){return null!==e&&"object"==typeof e};function p(e){return"string"==typeof e}var n,m=require("ajv-formats/dist/formats").fullFormats["date-time"],y=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/;function d(e,r){var t,s=(void 0===r?{}:r).instancePath,i=void 0===s?"":s;if(!e||"object"!=typeof e||Array.isArray(e))return d.errors=[{instancePath:i,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===e.version&&(t="version")||void 0===e.env&&(t="env")||void 0===e.service&&(t="service")||void 0===e.host&&(t="host")||void 0===e.timestamp&&(t="timestamp")||void 0===e.level&&(t="level")||void 0===e.message&&(t="message"))return d.errors=[{instancePath:i,schemaPath:"#/required",keyword:"required",params:{missingProperty:t},message:"must have required property '"+t+"'"}],!1;if(void 0!==e.service){if("string"!=typeof e.service)return d.errors=[{instancePath:i+"/service",schemaPath:"#/properties/service/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=!0}else o=!0;if(o){if(void 0!==e.version){if("string"!=typeof e.version)return d.errors=[{instancePath:i+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.env){if("string"!=typeof e.env)return d.errors=[{instancePath:i+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.host){if("string"!=typeof e.host)return d.errors=[{instancePath:i+"/host",schemaPath:"#/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.timestamp){var a=e.timestamp;if("string"!=typeof a)return d.errors=[{instancePath:i+"/timestamp",schemaPath:"#/properties/timestamp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!m.validate(a))return d.errors=[{instancePath:i+"/timestamp",schemaPath:"#/properties/timestamp/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'}],!1;o=!0}else o=!0;if(o){if(void 0!==e.level){if("string"!=typeof e.level)return d.errors=[{instancePath:i+"/level",schemaPath:"#/properties/level/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.message){if("string"!=typeof e.message)return d.errors=[{instancePath:i+"/message",schemaPath:"#/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.request_id){if("string"!=typeof e.request_id)return d.errors=[{instancePath:i+"/request_id",schemaPath:"#/properties/request_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.id){if("string"!=typeof e.id)return d.errors=[{instancePath:i+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.dd){var p,n=e.dd;if(!n||"object"!=typeof n||Array.isArray(n))return d.errors=[{instancePath:i+"/dd",schemaPath:"#/properties/dd/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===n.trace_id&&(p="trace_id")||void 0===n.span_id&&(p="span_id")||void 0===n.version&&(p="version"))return d.errors=[{instancePath:i+"/dd",schemaPath:"#/properties/dd/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;if(void 0!==n.trace_id){if("string"!=typeof n.trace_id)return d.errors=[{instancePath:i+"/dd/trace_id",schemaPath:"#/properties/dd/properties/trace_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=!0}else c=!0;if(c){if(void 0!==n.span_id){if("string"!=typeof n.span_id)return d.errors=[{instancePath:i+"/dd/span_id",schemaPath:"#/properties/dd/properties/span_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;c=!0}else c=!0;if(c)if(void 0!==n.version){if("string"!=typeof n.version)return d.errors=[{instancePath:i+"/dd/version",schemaPath:"#/properties/dd/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;c=!0}else c=!0}o=!0}else o=!0;if(o){if(void 0!==e.network){var u,g=e.network;if(!g||"object"!=typeof g||Array.isArray(g))return d.errors=[{instancePath:i+"/network",schemaPath:"#/properties/network/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===g.client&&(u="client")||void 0===g.destination&&(u="destination"))return d.errors=[{instancePath:i+"/network",schemaPath:"#/properties/network/required",keyword:"required",params:{missingProperty:u},message:"must have required property '"+u+"'"}],!1;if(void 0!==g.client){var h,f=g.client;if(!f||"object"!=typeof f||Array.isArray(f))return d.errors=[{instancePath:i+"/network/client",schemaPath:"#/properties/network/properties/client/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===f.ip&&(h="ip")||void 0===f.port&&(h="port"))return d.errors=[{instancePath:i+"/network/client",schemaPath:"#/properties/network/properties/client/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;if(void 0!==f.ip){var l=f.ip;if("string"!=typeof l)return d.errors=[{instancePath:i+"/network/client/ip",schemaPath:"#/properties/network/properties/client/properties/ip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!y.test(l))return d.errors=[{instancePath:i+"/network/client/ip",schemaPath:"#/properties/network/properties/client/properties/ip/format",keyword:"format",params:{format:"ipv4"},message:'must match format "ipv4"'}],!1;var v=!0}else v=!0;if(v){if(void 0!==f.port){var P=f.port;if("number"!=typeof P||P%1||isNaN(P)||!isFinite(P))return d.errors=[{instancePath:i+"/network/client/port",schemaPath:"#/properties/network/properties/client/properties/port/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;v=!0}else v=!0;if(v)if(void 0!==f.geoip){var b,w=f.geoip;if(!w||"object"!=typeof w||Array.isArray(w))return d.errors=[{instancePath:i+"/network/client/geoip",schemaPath:"#/properties/network/properties/client/properties/geoip/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===w.city&&(b="city")||void 0===w.continent&&(b="continent")||void 0===w.country&&(b="country")||void 0===w.location&&(b="location")||void 0===w.subdivision&&(b="subdivision")||void 0===w.timezone&&(b="timezone"))return d.errors=[{instancePath:i+"/network/client/geoip",schemaPath:"#/properties/network/properties/client/properties/geoip/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;if(void 0!==w.as){var k=w.as;if(!k||"object"!=typeof k||Array.isArray(k))return d.errors=[{instancePath:i+"/network/client/geoip/as",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/as/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=!0}else _=!0;if(_){if(void 0!==w.city){var j,q=w.city;if(!q||"object"!=typeof q||Array.isArray(q))return d.errors=[{instancePath:i+"/network/client/geoip/city",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===q.name&&(j="name"))return d.errors=[{instancePath:i+"/network/client/geoip/city",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;if(void 0!==q.name&&"string"!=typeof q.name)return d.errors=[{instancePath:i+"/network/client/geoip/city/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/city/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0;if(_){if(void 0!==w.continent){var G,A=w.continent;if(!A||"object"!=typeof A||Array.isArray(A))return d.errors=[{instancePath:i+"/network/client/geoip/continent",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===A.code&&(G="code")||void 0===A.name&&(G="name"))return d.errors=[{instancePath:i+"/network/client/geoip/continent",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"}],!1;if(void 0!==A.code){if("string"!=typeof A.code)return d.errors=[{instancePath:i+"/network/client/geoip/continent/code",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=!0}else E=!0;if(E)if(void 0!==A.name){if("string"!=typeof A.name)return d.errors=[{instancePath:i+"/network/client/geoip/continent/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/continent/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;E=!0}else E=!0;_=!0}else _=!0;if(_){if(void 0!==w.country){var L,O=w.country;if(!O||"object"!=typeof O||Array.isArray(O))return d.errors=[{instancePath:i+"/network/client/geoip/country",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===O.name&&(L="name")||void 0===O.iso_code&&(L="iso_code"))return d.errors=[{instancePath:i+"/network/client/geoip/country",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"}],!1;if(void 0!==O.name){if("string"!=typeof O.name)return d.errors=[{instancePath:i+"/network/client/geoip/country/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=!0}else x=!0;if(x)if(void 0!==O.iso_code){if("string"!=typeof O.iso_code)return d.errors=[{instancePath:i+"/network/client/geoip/country/iso_code",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/country/properties/iso_code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;x=!0}else x=!0;_=!0}else _=!0;if(_){if(void 0!==w.location){var R,N=w.location;if(!N||"object"!=typeof N||Array.isArray(N))return d.errors=[{instancePath:i+"/network/client/geoip/location",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===N.latitude&&(R="latitude")||void 0===N.longitude&&(R="longitude"))return d.errors=[{instancePath:i+"/network/client/geoip/location",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"}],!1;if(void 0!==N.latitude){var S=N.latitude;if("number"!=typeof S||!isFinite(S))return d.errors=[{instancePath:i+"/network/client/geoip/location/latitude",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/properties/latitude/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=!0}else T=!0;if(T)if(void 0!==N.longitude){var I=N.longitude;if("number"!=typeof I||!isFinite(I))return d.errors=[{instancePath:i+"/network/client/geoip/location/longitude",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/location/properties/longitude/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;T=!0}else T=!0;_=!0}else _=!0;if(_){if(void 0!==w.subdivision){var F,z=w.subdivision;if(!z||"object"!=typeof z||Array.isArray(z))return d.errors=[{instancePath:i+"/network/client/geoip/subdivision",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===z.name&&(F="name"))return d.errors=[{instancePath:i+"/network/client/geoip/subdivision",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"}],!1;if(void 0!==z.name&&"string"!=typeof z.name)return d.errors=[{instancePath:i+"/network/client/geoip/subdivision/name",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/subdivision/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0;if(_)if(void 0!==w.timezone){if("string"!=typeof w.timezone)return d.errors=[{instancePath:i+"/network/client/geoip/timezone",schemaPath:"#/properties/network/properties/client/properties/geoip/properties/timezone/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;_=!0}else _=!0}}}}}v=!0}else v=!0}}o=!0}else o=!0;if(o){if(void 0!==e.http){var D,M=e.http;if(!M||"object"!=typeof M||Array.isArray(M))return d.errors=[{instancePath:i+"/http",schemaPath:"#/properties/http/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===M.method&&(D="method")||void 0===M.status_code&&(D="status_code")||void 0===M.url&&(D="url")||void 0===M.useragent&&(D="useragent"))return d.errors=[{instancePath:i+"/http",schemaPath:"#/properties/http/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;if(void 0!==M.method){if("string"!=typeof M.method)return d.errors=[{instancePath:i+"/http/method",schemaPath:"#/properties/http/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=!0}else C=!0;if(C){if(void 0!==M.status_code){var V=M.status_code;if("number"!=typeof V||!isFinite(V))return d.errors=[{instancePath:i+"/http/status_code",schemaPath:"#/properties/http/properties/status_code/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.url){if("string"!=typeof M.url)return d.errors=[{instancePath:i+"/http/url",schemaPath:"#/properties/http/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.version){if("string"!=typeof M.version)return d.errors=[{instancePath:i+"/http/version",schemaPath:"#/properties/http/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.referer){if("string"!=typeof M.referer)return d.errors=[{instancePath:i+"/http/referer",schemaPath:"#/properties/http/properties/referer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.useragent){if("string"!=typeof M.useragent)return d.errors=[{instancePath:i+"/http/useragent",schemaPath:"#/properties/http/properties/useragent/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;C=!0}else C=!0;if(C){if(void 0!==M.headers){var B=M.headers;if(!B||"object"!=typeof B||Array.isArray(B))return d.errors=[{instancePath:i+"/http/headers",schemaPath:"#/properties/http/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;C=!0}else C=!0;if(C)if(void 0!==M.url_details){var U,W=M.url_details;if(!W||"object"!=typeof W||Array.isArray(W))return d.errors=[{instancePath:i+"/http/url_details",schemaPath:"#/properties/http/properties/url_details/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===W.host&&(U="host")||void 0===W.path&&(U="path")||void 0===W.scheme&&(U="scheme"))return d.errors=[{instancePath:i+"/http/url_details",schemaPath:"#/properties/http/properties/url_details/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"}],!1;if(void 0!==W.host){if("string"!=typeof W.host)return d.errors=[{instancePath:i+"/http/url_details/host",schemaPath:"#/properties/http/properties/url_details/properties/host/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=!0}else H=!0;if(H){if(void 0!==W.path){if("string"!=typeof W.path)return d.errors=[{instancePath:i+"/http/url_details/path",schemaPath:"#/properties/http/properties/url_details/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0;if(H){if(void 0!==W.scheme){if("string"!=typeof W.scheme)return d.errors=[{instancePath:i+"/http/url_details/scheme",schemaPath:"#/properties/http/properties/url_details/properties/scheme/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0;if(H)if(void 0!==W.queryString){if("string"!=typeof W.queryString)return d.errors=[{instancePath:i+"/http/url_details/queryString",schemaPath:"#/properties/http/properties/url_details/properties/queryString/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H=!0}else H=!0}}C=!0}else C=!0}}}}}}o=!0}else o=!0;if(o){if(void 0!==e.user){var J=e.user;if(!J||"object"!=typeof J||Array.isArray(J))return d.errors=[{instancePath:i+"/user",schemaPath:"#/properties/user/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==J.id){var Q=J.id;if("number"!=typeof Q||!isFinite(Q))return d.errors=[{instancePath:i+"/user/id",schemaPath:"#/properties/user/properties/id/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=!0}else $=!0;if($){if(void 0!==J.name){if("string"!=typeof J.name)return d.errors=[{instancePath:i+"/user/name",schemaPath:"#/properties/user/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.device){if("string"!=typeof J.device)return d.errors=[{instancePath:i+"/user/device",schemaPath:"#/properties/user/properties/device/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.release){var K=J.release;if("number"!=typeof K||!isFinite(K))return d.errors=[{instancePath:i+"/user/release",schemaPath:"#/properties/user/properties/release/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;$=!0}else $=!0;if($){if(void 0!==J.is_trial){if("boolean"!=typeof J.is_trial)return d.errors=[{instancePath:i+"/user/is_trial",schemaPath:"#/properties/user/properties/is_trial/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;$=!0}else $=!0;if($){if(void 0!==J.company_id){var X=J.company_id;if("number"!=typeof X||X%1||isNaN(X)||!isFinite(X))return d.errors=[{instancePath:i+"/user/company_id",schemaPath:"#/properties/user/properties/company_id/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;$=!0}else $=!0;if($){if(void 0!==J.provider){if("string"!=typeof J.provider)return d.errors=[{instancePath:i+"/user/provider",schemaPath:"#/properties/user/properties/provider/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.device_id){if("string"!=typeof J.device_id)return d.errors=[{instancePath:i+"/user/device_id",schemaPath:"#/properties/user/properties/device_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.phone_model){if("string"!=typeof J.phone_model)return d.errors=[{instancePath:i+"/user/phone_model",schemaPath:"#/properties/user/properties/phone_model/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.phone_device){if("string"!=typeof J.phone_device)return d.errors=[{instancePath:i+"/user/phone_device",schemaPath:"#/properties/user/properties/phone_device/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.device_details){if("string"!=typeof J.device_details)return d.errors=[{instancePath:i+"/user/device_details",schemaPath:"#/properties/user/properties/device_details/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($){if(void 0!==J.phone_manufacturer){if("string"!=typeof J.phone_manufacturer)return d.errors=[{instancePath:i+"/user/phone_manufacturer",schemaPath:"#/properties/user/properties/phone_manufacturer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0;if($)if(void 0!==J.phone_brand){if("string"!=typeof J.phone_brand)return d.errors=[{instancePath:i+"/user/phone_brand",schemaPath:"#/properties/user/properties/phone_brand/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;$=!0}else $=!0}}}}}}}}}}}o=!0}else o=!0;if(o){if(void 0!==e.error){var Y,Z=e.error;if(!Z||"object"!=typeof Z||Array.isArray(Z))return d.errors=[{instancePath:i+"/error",schemaPath:"#/properties/error/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===Z.kind&&(Y="kind")||void 0===Z.message&&(Y="message")||void 0===Z.stack&&(Y="stack"))return d.errors=[{instancePath:i+"/error",schemaPath:"#/properties/error/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"}],!1;if(void 0!==Z.kind){if("string"!=typeof Z.kind)return d.errors=[{instancePath:i+"/error/kind",schemaPath:"#/properties/error/properties/kind/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=!0}else ee=!0;if(ee){if(void 0!==Z.message){if("string"!=typeof Z.message)return d.errors=[{instancePath:i+"/error/message",schemaPath:"#/properties/error/properties/message/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ee=!0}else ee=!0;if(ee)if(void 0!==Z.stack){if("string"!=typeof Z.stack)return d.errors=[{instancePath:i+"/error/stack",schemaPath:"#/properties/error/properties/stack/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ee=!0}else ee=!0}o=!0}else o=!0;if(o){if(void 0!==e.context){var re=e.context;if(!re||"object"!=typeof re||Array.isArray(re))return d.errors=[{instancePath:i+"/context",schemaPath:"#/properties/context/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==re.input){if("boolean"!=typeof re.input)return d.errors=[{instancePath:i+"/context/input",schemaPath:"#/properties/context/properties/input/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var te=!0}else te=!0;if(te){if(void 0!==re.output){if("boolean"!=typeof re.output)return d.errors=[{instancePath:i+"/context/output",schemaPath:"#/properties/context/properties/output/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;te=!0}else te=!0;if(te){if(void 0!==re.domain){if("string"!=typeof re.domain)return d.errors=[{instancePath:i+"/context/domain",schemaPath:"#/properties/context/properties/domain/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;te=!0}else te=!0;if(te)if(void 0!==re.fieldName){if("string"!=typeof re.fieldName)return d.errors=[{instancePath:i+"/context/fieldName",schemaPath:"#/properties/context/properties/fieldName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;te=!0}else te=!0}}o=!0}else o=!0;if(o){if(void 0!==e.aws){var se=e.aws;if(!se||"object"!=typeof se||Array.isArray(se))return d.errors=[{instancePath:i+"/aws",schemaPath:"#/properties/aws/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==se.account_id){if("string"!=typeof se.account_id)return d.errors=[{instancePath:i+"/aws/account_id",schemaPath:"#/properties/aws/properties/account_id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=!0}else ie=!0;if(ie){if(void 0!==se.awslogs){var oe,ae=se.awslogs;if(!ae||"object"!=typeof ae||Array.isArray(ae))return d.errors=[{instancePath:i+"/aws/awslogs",schemaPath:"#/properties/aws/properties/awslogs/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ae.logGroup&&(oe="logGroup")||void 0===ae.logStream&&(oe="logStream")||void 0===ae.owner&&(oe="owner"))return d.errors=[{instancePath:i+"/aws/awslogs",schemaPath:"#/properties/aws/properties/awslogs/required",keyword:"required",params:{missingProperty:oe},message:"must have required property '"+oe+"'"}],!1;if(void 0!==ae.logGroup){if("string"!=typeof ae.logGroup)return d.errors=[{instancePath:i+"/aws/awslogs/logGroup",schemaPath:"#/properties/aws/properties/awslogs/properties/logGroup/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=!0}else pe=!0;if(pe){if(void 0!==ae.logStream){if("string"!=typeof ae.logStream)return d.errors=[{instancePath:i+"/aws/awslogs/logStream",schemaPath:"#/properties/aws/properties/awslogs/properties/logStream/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;pe=!0}else pe=!0;if(pe)if(void 0!==ae.owner){if("string"!=typeof ae.owner)return d.errors=[{instancePath:i+"/aws/awslogs/owner",schemaPath:"#/properties/aws/properties/awslogs/properties/owner/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;pe=!0}else pe=!0}ie=!0}else ie=!0;if(ie)if(void 0!==se.function_version){if("string"!=typeof se.function_version)return d.errors=[{instancePath:i+"/aws/function_version",schemaPath:"#/properties/aws/properties/function_version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ie=!0}else ie=!0}o=!0}else o=!0;if(o){if(void 0!==e.db){var ne=e.db;if(!ne||"object"!=typeof ne||Array.isArray(ne))return d.errors=[{instancePath:i+"/db",schemaPath:"#/properties/db/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ne.instance){if("string"!=typeof ne.instance)return d.errors=[{instancePath:i+"/db/instance",schemaPath:"#/properties/db/properties/instance/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var me=!0}else me=!0;if(me){if(void 0!==ne.statement){if("string"!=typeof ne.statement)return d.errors=[{instancePath:i+"/db/statement",schemaPath:"#/properties/db/properties/statement/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;me=!0}else me=!0;if(me)if(void 0!==ne.operation){if("string"!=typeof ne.operation)return d.errors=[{instancePath:i+"/db/operation",schemaPath:"#/properties/db/properties/operation/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;me=!0}else me=!0}o=!0}else o=!0;if(o){if(void 0!==e.dns){var ye=e.dns;if(!ye||"object"!=typeof ye||Array.isArray(ye))return d.errors=[{instancePath:i+"/dns",schemaPath:"#/properties/dns/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;o=!0}else o=!0;if(o){if(void 0!==e.performance){var de,ce=e.performance;if(!ce||"object"!=typeof ce||Array.isArray(ce))return d.errors=[{instancePath:i+"/performance",schemaPath:"#/properties/performance/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ce.duration&&(de="duration"))return d.errors=[{instancePath:i+"/performance",schemaPath:"#/properties/performance/required",keyword:"required",params:{missingProperty:de},message:"must have required property '"+de+"'"}],!1;if(void 0!==ce.duration&&"string"!=typeof ce.duration)return d.errors=[{instancePath:i+"/performance/duration",schemaPath:"#/properties/performance/properties/duration/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;o=!0}else o=!0;if(o)if(void 0!==e.logger){var ue,ge=e.logger;if(!ge||"object"!=typeof ge||Array.isArray(ge))return d.errors=[{instancePath:i+"/logger",schemaPath:"#/properties/logger/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0===ge.thread_name&&(ue="thread_name")||void 0===ge.version&&(ue="version")||void 0===ge.name&&(ue="name")||void 0===ge.method_name&&(ue="method_name"))return d.errors=[{instancePath:i+"/logger",schemaPath:"#/properties/logger/required",keyword:"required",params:{missingProperty:ue},message:"must have required property '"+ue+"'"}],!1;if(void 0!==ge.thread_name){if("string"!=typeof ge.thread_name)return d.errors=[{instancePath:i+"/logger/thread_name",schemaPath:"#/properties/logger/properties/thread_name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=!0}else he=!0;if(he){if(void 0!==ge.version){if("string"!=typeof ge.version)return d.errors=[{instancePath:i+"/logger/version",schemaPath:"#/properties/logger/properties/version/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0;if(he){if(void 0!==ge.name){if("string"!=typeof ge.name)return d.errors=[{instancePath:i+"/logger/name",schemaPath:"#/properties/logger/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0;if(he)if(void 0!==ge.method_name){if("string"!=typeof ge.method_name)return d.errors=[{instancePath:i+"/logger/method_name",schemaPath:"#/properties/logger/properties/method_name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;he=!0}else he=!0}}o=!0}else o=!0}}}}}}}}}}}}}}}}}}return d.errors=null,!0}(n=exports.LOGGER_ENVIRONMENT||(exports.LOGGER_ENVIRONMENT={})).DEVELOPMENT="development",n.TEST="test",n.STAGING="staging",n.BETA="beta",n.PRODUCTION="production",n.QA="qa";var c=function(){function e(){this.initialized=!1,this.queue=[]}var t=e.prototype;return t.init=function(e){var t=this,s=e.level,i=e.context,o=e.token,a=e.version,p=e.environment,n=e.service,m=e.user,y=e.forwardConsoleLogs,c=i.user_session.environment===exports.LOGGER_ENVIRONMENT.DEVELOPMENT;this.compiledLogSchema=d,r.datadogLogs.init({clientToken:o,datacenter:"us",forwardErrorsToLogs:!0,forwardConsoleLogs:null!=y?y:["error","warn"],sampleRate:100,beforeSend:function(e){return t.beforeSendListener(e,a,p,n,m)}}),this.setContext(i),r.datadogLogs.logger.setHandler(c?r.HandlerType.console:r.HandlerType.http),this.setLevel(s),this.initialized=!0,this.queue.forEach((function(e){return e()}))},t.beforeSendListener=function(e,r,t,s,i){this.addMandatoryFields(e,r,t,s,i),this.compiledLogSchema(e)||console.log("An error occured while validating the log payload. For more information, please refer to distributed logging and tracing best practices documentation.",{error:this.compiledLogSchema.errors,log:e})},t.addMandatoryFields=function(e,t,s,i,o){var a=new Date(Date.now()),p=r.datadogLogs.getInternalContext();e.version=t,e.env=s,e.service=i,e.host=(null==p?void 0:p.session_id)||"",e.timestamp=a.toISOString(),e.level=e.status,e.user=o},t.setContext=function(e){r.datadogLogs.logger.setContext(e)},t.logOrEnqueue=function(e){this.initialized?e():this.queue.push(e)},t.setLevel=function(e){this.level=e,r.datadogLogs.logger.setLevel(e)},t.cleanProperties=function(e){var r=this;return void 0===e&&(e={}),function(e,t,s){void 0===s&&(s=10);var n=0;return function e(r,t){return n>s?(n=0,null):function(e,r){return o(e)?e.map((function(e,t){return r(e,t)})):a(e)?function(e,r){var t={};for(var s in e)Object.hasOwnProperty.call(e,s)&&(t[s]=r(e[s],s));return t}(e,(function(e,t){return r(e,t)})):void 0}(r,(function(s,i){return o(s)||a(s)?(n++,e(s,t)):(n=0,t(s,i,r))}))}(e,(function(e,t){try{var s=p(e)&&JSON.parse(e);if(a(s)||o(s))return JSON.stringify(r.cleanProperties(s))}catch(e){}return p(t)&&function(e,r){return!!e&&i.some((function(r){return e.includes(r)}))}(t)?"<sensitive>":e}))}(e)},t.log=function(e,t,s){void 0===s&&(s={});var i=this.cleanProperties(s);this.logOrEnqueue((function(){return r.datadogLogs.logger.log(t,i,e)}))},t.debug=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.debug(e,s)}))},t.info=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.info(e,s)}))},t.warn=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.warn(e,s)}))},t.error=function(e,t){void 0===t&&(t={});var s=this.cleanProperties(t);this.logOrEnqueue((function(){return r.datadogLogs.logger.error(e,s)}))},e}();Object.defineProperty(exports,"LOGGER_LEVEL",{enumerable:!0,get:function(){return r.StatusType}}),exports.Logger=c,exports.debug=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.DEBUG,message:e,properties:r}},exports.error=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.ERROR,message:e,properties:r}},exports.info=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.INFO,message:e,properties:r}},exports.initLogger=function(){return{type:exports.LOGGER.INIT}},exports.isLoggerAction=s,exports.log=function(e,r,t){return void 0===t&&(t={}),{type:exports.LOGGER.LOG,level:e,message:r,properties:t}},exports.loggerMiddleware=function(e){return function(){var t=[];return function(i){return function(o){return e.level!==r.StatusType.debug||(s(o)?o.properties.lastDispatchedActions=t:t.push({type:o.type}),t.length>20&&t.shift()),i(o)}}}},exports.warn=function(e,r){return void 0===r&&(r={}),{type:exports.LOGGER.WARN,message:e,properties:r}};
//# sourceMappingURL=logger.cjs.production.min.js.map

@@ -9,3 +9,4 @@ import { StatusType, LogsEvent } from '@datadog/browser-logs';

BETA = "beta",
PRODUCTION = "production"
PRODUCTION = "production",
QA = "qa"
}

@@ -12,0 +13,0 @@ export declare interface User extends Context {

{
"name": "@aircall/logger",
"version": "2.8.4",
"version": "2.8.5",
"main": "dist/index.js",

@@ -19,3 +19,3 @@ "module": "dist/logger.esm.js",

},
"gitHead": "f059e6e4b1680327760f83292a1c8735f118bed4",
"gitHead": "660ddb4e03853b2a948d08409fe9a1afb64f7472",
"dependencies": {

@@ -22,0 +22,0 @@ "@datadog/browser-logs": "4.23.3",

@@ -17,3 +17,4 @@ import { datadogLogs as sdk, StatusType, HandlerType, LogsEvent } from '@datadog/browser-logs';

BETA = 'beta',
PRODUCTION = 'production'
PRODUCTION = 'production',
QA = 'qa'
}

@@ -20,0 +21,0 @@

Sorry, the diff of this file is too big to display

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 too big to display

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