@lykkex/lykke.js
Advanced tools
Comparing version 0.4.5 to 0.4.6
import Analytics from './Analytics'; | ||
import { EventModel } from './EventModel'; | ||
import EventModel from './models/EventModel'; | ||
export default abstract class Amplitude extends Analytics { | ||
@@ -4,0 +4,0 @@ static setup(apiKey: string): void; |
@@ -11,3 +11,3 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
import { init, logEvent } from 'amplitude-js'; | ||
import * as AmlitudeAnalytics from 'amplitude-js'; | ||
import Analytics from './Analytics'; | ||
@@ -20,6 +20,6 @@ var Amplitude = /** @class */ (function (_super) { | ||
Amplitude.setup = function (apiKey) { | ||
init(apiKey); | ||
AmlitudeAnalytics.init(apiKey); | ||
}; | ||
Amplitude.track = function (event) { | ||
logEvent(event.title, event); | ||
AmlitudeAnalytics.logEvent(event.title, event); | ||
}; | ||
@@ -26,0 +26,0 @@ return Amplitude; |
@@ -1,2 +0,2 @@ | ||
import { EventModel } from './EventModel'; | ||
import EventModel from './models/EventModel'; | ||
export default abstract class Analytics { | ||
@@ -3,0 +3,0 @@ abstract setup(key: string): void; |
import { InitializeOptions } from 'react-ga'; | ||
import Analytics from './Analytics'; | ||
import { EventModel } from './EventModel'; | ||
import EventModel from './models/EventModel'; | ||
export default abstract class GoogleAnalytics extends Analytics { | ||
@@ -5,0 +5,0 @@ static setup(trackingId: string, options?: InitializeOptions): void; |
import ReactGA from 'react-ga'; | ||
import { EventModel } from '../EventModel'; | ||
import EventModel from '../models/EventModel'; | ||
export declare const mapToGoogleEvent: (event: EventModel) => ReactGA.EventArgs; |
import Analytics from './Analytics'; | ||
import { EventModel } from './EventModel'; | ||
import EventModel from './models/EventModel'; | ||
declare global { | ||
@@ -4,0 +4,0 @@ interface Window { |
import Analytics from './Analytics'; | ||
import { EventModel } from './EventModel'; | ||
import EventModel from './models/EventModel'; | ||
export declare function track(event: EventModel, ...services: Analytics[]): any; |
import { buildDijkstra } from './algorithm/dijkstra'; | ||
import { track } from './analytics/track'; | ||
import { formatNumber } from './intl/number'; | ||
import * as safeMath from './safeMath/safeMath'; | ||
export { buildDijkstra, formatNumber, safeMath }; | ||
import Amplitude from './analytics/Amplitude'; | ||
import Analytics from './analytics/Analytics'; | ||
import GoogleAnalytics from './analytics/GoogleAnalytics'; | ||
import EventDetailsModel from './analytics/models/EventDetailsModel'; | ||
import EventModel from './analytics/models/EventModel'; | ||
import Segment from './analytics/Segment'; | ||
export { buildDijkstra, formatNumber, safeMath, track }; | ||
export { Analytics, Amplitude, GoogleAnalytics, Segment, EventModel, EventDetailsModel }; |
import { buildDijkstra } from './algorithm/dijkstra'; | ||
import { track } from './analytics/track'; | ||
import { formatNumber } from './intl/number'; | ||
import * as safeMath from './safeMath/safeMath'; | ||
export { buildDijkstra, formatNumber, safeMath }; | ||
import Amplitude from './analytics/Amplitude'; | ||
import Analytics from './analytics/Analytics'; | ||
import GoogleAnalytics from './analytics/GoogleAnalytics'; | ||
import Segment from './analytics/Segment'; | ||
export { buildDijkstra, formatNumber, safeMath, track }; | ||
export { Analytics, Amplitude, GoogleAnalytics, Segment }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@lykkex/lykke.js", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "A TypeScript/Javascript library surrounding Lykke services", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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 not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
42
2
27637
362