@lykkex/lykke.js
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -11,3 +11,4 @@ import Analytics from './Analytics'; | ||
static track: (event: EventModel) => void; | ||
static identify: (traits: any) => void; | ||
static loadCdn: () => void; | ||
} |
@@ -22,6 +22,11 @@ var __extends = (this && this.__extends) || (function () { | ||
Segment.track = function (event) { | ||
if (window && window.analytics) { | ||
if (window && window.analytics && window.analytics.track) { | ||
window.analytics.track(event.title, event); | ||
} | ||
}; | ||
Segment.identify = function (traits) { | ||
if (window && window.analytics && window.analytics.identify) { | ||
window.analytics.identify(traits); | ||
} | ||
}; | ||
Segment.loadCdn = function () { | ||
@@ -28,0 +33,0 @@ var analytics = (window.analytics = window.analytics || []); |
{ | ||
"name": "@lykkex/lykke.js", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "A TypeScript/Javascript library surrounding Lykke services", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
88111
380
0