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

@objectiv/plugin-application-context

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@objectiv/plugin-application-context - npm Package Compare versions

Comparing version 0.0.21-0 to 0.0.21-1

2

dist/esm/index.js

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

import{makeApplicationContext as n}from"@objectiv/tracker-core";var a=class{constructor(){this.pluginName="ApplicationContextPlugin";this.initialized=!1}initialize(i){this.applicationContext=n({id:i.applicationId}),this.initialized=!0,globalThis.objectiv&&(globalThis.objectiv.TrackerConsole.groupCollapsed(`\uFF62objectiv:${this.pluginName}\uFF63 Initialized`),globalThis.objectiv.TrackerConsole.log(`Application ID: ${i.applicationId}`),globalThis.objectiv.TrackerConsole.group("Application Context:"),globalThis.objectiv.TrackerConsole.log(this.applicationContext),globalThis.objectiv.TrackerConsole.groupEnd(),globalThis.objectiv.TrackerConsole.groupEnd())}enrich(i){var o;this.initialized||(o=globalThis.objectiv)==null||o.TrackerConsole.error(`\uFF62objectiv:${this.pluginName}\uFF63 Cannot enrich. Make sure to initialize the plugin first.`),this.applicationContext&&i.global_contexts.push(this.applicationContext)}isUsable(){return!0}};export{a as ApplicationContextPlugin};
import{makeApplicationContext as l}from"@objectiv/tracker-core";var n=class{constructor(){this.pluginName="ApplicationContextPlugin";this.initialized=!1}initialize(o){this.applicationContext=l({id:o.applicationId}),this.initialized=!0,globalThis.objectiv.devTools&&(globalThis.objectiv.devTools.TrackerConsole.groupCollapsed(`\uFF62objectiv:${this.pluginName}\uFF63 Initialized`),globalThis.objectiv.devTools.TrackerConsole.log(`Application ID: ${o.applicationId}`),globalThis.objectiv.devTools.TrackerConsole.group("Application Context:"),globalThis.objectiv.devTools.TrackerConsole.log(this.applicationContext),globalThis.objectiv.devTools.TrackerConsole.groupEnd(),globalThis.objectiv.devTools.TrackerConsole.groupEnd())}enrich(o){var i;this.initialized||(i=globalThis.objectiv.devTools)==null||i.TrackerConsole.error(`\uFF62objectiv:${this.pluginName}\uFF63 Cannot enrich. Make sure to initialize the plugin first.`),this.applicationContext&&o.global_contexts.push(this.applicationContext)}isUsable(){return!0}};export{n as ApplicationContextPlugin};
//# sourceMappingURL=index.js.map

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

var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var g=o=>n(o,"__esModule",{value:!0});var C=(o,i)=>{for(var e in i)n(o,e,{get:i[e],enumerable:!0})},b=(o,i,e,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of p(i))!s.call(o,t)&&(e||t!=="default")&&n(o,t,{get:()=>i[t],enumerable:!(a=c(i,t))||a.enumerable});return o};var h=(o=>(i,e)=>o&&o.get(i)||(e=b(g({}),i,1),o&&o.set(i,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var u={};C(u,{ApplicationContextPlugin:()=>r});var l=require("@objectiv/tracker-core"),r=class{constructor(){this.pluginName="ApplicationContextPlugin";this.initialized=!1}initialize(i){this.applicationContext=(0,l.makeApplicationContext)({id:i.applicationId}),this.initialized=!0,globalThis.objectiv&&(globalThis.objectiv.TrackerConsole.groupCollapsed(`\uFF62objectiv:${this.pluginName}\uFF63 Initialized`),globalThis.objectiv.TrackerConsole.log(`Application ID: ${i.applicationId}`),globalThis.objectiv.TrackerConsole.group("Application Context:"),globalThis.objectiv.TrackerConsole.log(this.applicationContext),globalThis.objectiv.TrackerConsole.groupEnd(),globalThis.objectiv.TrackerConsole.groupEnd())}enrich(i){var e;this.initialized||(e=globalThis.objectiv)==null||e.TrackerConsole.error(`\uFF62objectiv:${this.pluginName}\uFF63 Cannot enrich. Make sure to initialize the plugin first.`),this.applicationContext&&i.global_contexts.push(this.applicationContext)}isUsable(){return!0}};module.exports=h(u);0&&(module.exports={ApplicationContextPlugin});
var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var T=i=>l(i,"__esModule",{value:!0});var g=(i,o)=>{for(var e in o)l(i,e,{get:o[e],enumerable:!0})},C=(i,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of c(o))!p.call(i,t)&&(e||t!=="default")&&l(i,t,{get:()=>o[t],enumerable:!(n=s(o,t))||n.enumerable});return i};var b=(i=>(o,e)=>i&&i.get(o)||(e=C(T({}),o,1),i&&i.set(o,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var h={};g(h,{ApplicationContextPlugin:()=>r});var a=require("@objectiv/tracker-core"),r=class{constructor(){this.pluginName="ApplicationContextPlugin";this.initialized=!1}initialize(o){this.applicationContext=(0,a.makeApplicationContext)({id:o.applicationId}),this.initialized=!0,globalThis.objectiv.devTools&&(globalThis.objectiv.devTools.TrackerConsole.groupCollapsed(`\uFF62objectiv:${this.pluginName}\uFF63 Initialized`),globalThis.objectiv.devTools.TrackerConsole.log(`Application ID: ${o.applicationId}`),globalThis.objectiv.devTools.TrackerConsole.group("Application Context:"),globalThis.objectiv.devTools.TrackerConsole.log(this.applicationContext),globalThis.objectiv.devTools.TrackerConsole.groupEnd(),globalThis.objectiv.devTools.TrackerConsole.groupEnd())}enrich(o){var e;this.initialized||(e=globalThis.objectiv.devTools)==null||e.TrackerConsole.error(`\uFF62objectiv:${this.pluginName}\uFF63 Cannot enrich. Make sure to initialize the plugin first.`),this.applicationContext&&o.global_contexts.push(this.applicationContext)}isUsable(){return!0}};module.exports=b(h);0&&(module.exports={ApplicationContextPlugin});
//# sourceMappingURL=index.js.map
{
"name": "@objectiv/plugin-application-context",
"version": "0.0.21-0",
"version": "0.0.21-1",
"description": "Plugin for Objectiv trackers to automatically generate and attach ApplicationContext to all Events",

@@ -55,4 +55,4 @@ "license": "Apache-2.0",

"devDependencies": {
"@objectiv/developer-tools": "^0.0.21-0",
"@objectiv/testing-tools": "^0.0.21-0",
"@objectiv/developer-tools": "^0.0.21-1",
"@objectiv/testing-tools": "^0.0.21-1",
"@types/jest": "^27.4.1",

@@ -67,4 +67,4 @@ "jest": "^27.5.1",

"peerDependencies": {
"@objectiv/tracker-core": "^0.0.21-0"
"@objectiv/tracker-core": "^0.0.21-1"
}
}

Sorry, the diff of this file is not supported yet

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