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
8
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.3.7 to 2.3.8

11

CHANGELOG.md

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

## [2.3.8](http://bitbucket.org/aircall/front-end-modules/compare/@aircall/tracker@2.3.7...@aircall/tracker@2.3.8) (2020-04-09)
### Bug Fixes
* prettify ([a4f45d6](http://bitbucket.org/aircall/front-end-modules/commits/a4f45d68053b300f8a5ba933242d7d44b2bda6fd))
## [2.3.7](http://bitbucket.org/aircall/front-end-modules/compare/@aircall/tracker@2.3.6...@aircall/tracker@2.3.7) (2020-04-02)

@@ -8,0 +19,0 @@

4

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

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

},
"gitHead": "b78b28cbf565454ebe6f37580f3f8df9609bc857",
"gitHead": "6574e120a8b34fe9032587850a0aa3f775c2c808",
"devDependencies": {

@@ -17,0 +17,0 @@ "@types/segment-analytics": "^0.0.32"

global.console = {
log: jest.fn()
log: jest.fn()
};
import { TRACKER, initTracker, track } from './actions';
describe('actions', (): void => {
describe('initTracker, track', (): void => {

@@ -6,0 +5,0 @@ const message = 'FOO';

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

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

@@ -8,8 +15,8 @@ declare const window: WindowWithAnalytics;

const identifyOptions = {
company:{
billing_period: "annually" as ICompanyBillingPeriod,
country: "US",
created_at: "2016-09-16T16:44:28.000Z",
company: {
billing_period: 'annually' as ICompanyBillingPeriod,
country: 'US',
created_at: '2016-09-16T16:44:28.000Z',
is_trial: false,
tier: "tier_a" as ICompanyTierLevel
tier: 'tier_a' as ICompanyTierLevel
},

@@ -21,8 +28,8 @@ device: 'web',

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",
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',
is_admin: true,

@@ -43,3 +50,2 @@ os: 'MacOS' as IUserOS

describe('Tracker', (): void => {
it('should be an instance of Tracker', (): void => {

@@ -50,4 +56,4 @@ expect(tracker).toBeInstanceOf(Tracker);

it('should mock the analyticsJS SDK while the script is loading', (): void => {
const [trackEvent, trackPayload] = [ 'FOO', { foo: 'BAR' } ];
const [identifyEvent, identifyPayload] = [ 'FOO', { foo: 'BAR' } ];
const [trackEvent, trackPayload] = ['FOO', { foo: 'BAR' }];
const [identifyEvent, identifyPayload] = ['FOO', { foo: 'BAR' }];

@@ -95,11 +101,5 @@ expect(window.analytics).toBeInstanceOf(AnalyticsJS);

expect(spy).toHaveBeenCalledWith(
message,
{ ...properties, ...identifyOptions }
);
expect(spy).toHaveBeenCalledWith(message, { ...properties, ...identifyOptions });
});
});
});

@@ -79,3 +79,2 @@ export class AnalyticsJS extends Array {

export default class Tracker {
/*

@@ -141,3 +140,2 @@ We temporarly define the analytics global variable with an instance of AnalyticsJS.

}
}

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