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

@aircall/tracker

Package Overview
Dependencies
Maintainers
7
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aircall/tracker - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

4

package.json
{
"name": "@aircall/tracker",
"version": "2.0.1",
"version": "2.1.0",
"main": "dist/index.js",

@@ -13,3 +13,3 @@ "types": "dist/index.d.ts",

},
"gitHead": "b32a8cef68f7144e9cbf4f367d03d7548fc950e5",
"gitHead": "fd73dff4d1d69f6ddc4812514506899d419766d8",
"devDependencies": {

@@ -16,0 +16,0 @@ "@types/segment-analytics": "^0.0.31"

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

import Tracker, { TRACKER_ENVIRONMENT, WindowWithAnalytics, AnalyticsJS } from './Tracker';
import Tracker, { AnalyticsJS, ICompanyBillingPeriod, ICompanyTierLevel, TRACKER_ENVIRONMENT, WindowWithAnalytics } from './Tracker';

@@ -6,9 +6,23 @@ const initOptions = { key: 'FOO' };

const identifyOptions = {
company:{
billing_period: "annually" as ICompanyBillingPeriod,
country: "US",
created_at: "2016-09-16T16:44:28.000Z",
is_trial: false,
tier: "tier_a" as ICompanyTierLevel
},
user_id: 1234,
release: '1.0.0',
company: 1234,
platform: 'platform',
environment: TRACKER_ENVIRONMENT.PRODUCTION
environment: TRACKER_ENVIRONMENT.PRODUCTION,
company_id:509,
company_name: "Aircall#509",
company_plan: "professional_july_2018",
created_at: "2019-02-04T10:23:49.000Z",
email: "guillaume.lambert@aircall.io",
name: "Guillaume Lambert"
};
const message = 'MESSAGE';

@@ -15,0 +29,0 @@

@@ -12,3 +12,9 @@ export enum TRACKER_ENVIRONMENT {

release: string;
company: number;
company_id: number;
company_name: string;
company_plan: string;
company: CompanyTrackerIdentification;
created_at: string;
email: string;
name: string;
platform: string;

@@ -18,2 +24,47 @@ environment: TRACKER_ENVIRONMENT;

export type ICompanyBillingPeriod = 'annually' | 'monthly';
export type ICompanyTierLevel =
| 'tier_a'
| 'tier_1'
| 'tier_2'
| 'tier_3'
| 'tier_4'
| 'tier_5'
| 'no_tier';
export type ICompanyPlan =
| 'friend'
| 'partner'
| 'trial'
| 'starter'
| 'pro'
| 'pro_oct_2014'
| 'starter_june_2015'
| 'premium_june_2015'
| 'enterprise_june_2015'
| 'starter_sept_2015'
| 'premium_sept_2015'
| 'enterprise_sept_2015'
| 'starter_august_2016'
| 'premium_august_2016'
| 'enterprise_august_2016'
| 'premium_march_2017'
| 'enterprise_march_2017'
| 'premium_custom_nov_2017'
| 'enterprise_custom_nov_2017'
| 'essentials_july_2018'
| 'professional_july_2018'
| 'custom_july_2018'
| 'essentials_custom_august_2018'
| 'professional_custom_august_2018'
| 'custom';
export declare interface CompanyTrackerIdentification {
billing_period: ICompanyBillingPeriod;
country: string;
created_at: string;
last_plan_change?: string;
is_trial: boolean;
tier: ICompanyTierLevel;
}
export declare interface TrackerInitOptions {

@@ -43,4 +94,16 @@ key: string;

user_id: 0,
created_at: '',
release: 'default',
company: 0,
company_id: 0,
company_name: '',
company_plan: '',
company: {
billing_period: 'annually',
country: 'string',
created_at: '',
is_trial: false,
tier: 'no_tier'
},
email: '',
name: '',
platform: 'default',

@@ -47,0 +110,0 @@ environment: TRACKER_ENVIRONMENT.DEVELOPMENT

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