Huge News!Announcing our $40M Series B led by Abstract Ventures.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.8 to 2.3.9

11

CHANGELOG.md

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

## [2.3.9](http://bitbucket.org/aircall/front-end-modules/compare/@aircall/tracker@2.3.8...@aircall/tracker@2.3.9) (2020-09-28)
### Bug Fixes
* **tracker:** add reset method ([58de5eb](http://bitbucket.org/aircall/front-end-modules/commits/58de5eb544d72457177ba76c49e15f710af7fe1f))
## [2.3.8](http://bitbucket.org/aircall/front-end-modules/compare/@aircall/tracker@2.3.7...@aircall/tracker@2.3.8) (2020-04-09)

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

2

dist/Tracker.d.ts

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

track(...args: (string | object)[]): void;
reset(...args: (string | object)[]): void;
}

@@ -61,2 +62,3 @@ export declare interface WindowWithAnalytics extends Window {

track(message: string, properties?: object): void;
reset(): void;
}

@@ -16,2 +16,6 @@ "use strict";

}
reset(...args) {
args.unshift('reset');
this.push(args);
}
}

@@ -90,4 +94,8 @@ exports.AnalyticsJS = AnalyticsJS;

}
// Resets the id, including anonymousId, and clears traits for the currently identified user
reset() {
this.sdk.reset();
}
}
exports.default = Tracker;
//# sourceMappingURL=Tracker.js.map

4

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

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

},
"gitHead": "6574e120a8b34fe9032587850a0aa3f775c2c808",
"gitHead": "8f3a606dc3a345ea80a783f25bb1090cf8e9d26f",
"devDependencies": {

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

@@ -100,2 +100,13 @@ import Tracker, {

});
describe('reset', (): void => {
it('should call reset method', (): void => {
const spy: jest.SpyInstance = jest.spyOn(window.analytics, 'reset');
tracker.init(initOptions);
tracker.reset();
expect(spy).toHaveBeenCalled();
});
});
});

@@ -13,2 +13,7 @@ export class AnalyticsJS extends Array {

}
public reset(...args: (string | object)[]): void {
args.unshift('reset');
this.push(args);
}
}

@@ -140,2 +145,7 @@

}
// Resets the id, including anonymousId, and clears traits for the currently identified user
public reset() {
this.sdk.reset();
}
}

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