Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lykkex/lykke.js

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lykkex/lykke.js - npm Package Compare versions

Comparing version 0.4.11 to 0.4.12

4

dist/algorithm/dijkstra.js

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildDijkstra = function (start, g, d, u) {
export var buildDijkstra = function (start, g, d, u) {
d[start] = 0;

@@ -5,0 +3,0 @@ var keys = Object.keys(g);

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

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -12,5 +11,4 @@ var extendStatics = Object.setPrototypeOf ||

})();
Object.defineProperty(exports, "__esModule", { value: true });
var AmlitudeAnalytics = require("amplitude-js");
var Analytics_1 = require("./Analytics");
import * as AmlitudeAnalytics from 'amplitude-js';
import Analytics from './Analytics';
var Amplitude = /** @class */ (function (_super) {

@@ -35,4 +33,4 @@ __extends(Amplitude, _super);

return Amplitude;
}(Analytics_1.default));
exports.default = Amplitude;
}(Analytics));
export default Amplitude;
//# sourceMappingURL=Amplitude.js.map

@@ -1,3 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Analytics = /** @class */ (function () {

@@ -8,3 +6,3 @@ function Analytics() {

}());
exports.default = Analytics;
export default Analytics;
//# sourceMappingURL=Analytics.js.map

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

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -12,6 +11,5 @@ var extendStatics = Object.setPrototypeOf ||

})();
Object.defineProperty(exports, "__esModule", { value: true });
var react_ga_1 = require("react-ga");
var Analytics_1 = require("./Analytics");
var mapToGoogleEvent_1 = require("./mappers/mapToGoogleEvent");
import ReactGA from 'react-ga';
import Analytics from './Analytics';
import { mapToGoogleEvent } from './mappers/mapToGoogleEvent';
var GoogleAnalytics = /** @class */ (function (_super) {

@@ -23,13 +21,13 @@ __extends(GoogleAnalytics, _super);

GoogleAnalytics.setup = function (trackingId, options) {
react_ga_1.default.initialize(trackingId, options);
ReactGA.initialize(trackingId, options);
};
GoogleAnalytics.pageview = function (path) {
react_ga_1.default.pageview(path);
ReactGA.pageview(path);
};
GoogleAnalytics.track = function (event) {
react_ga_1.default.event(mapToGoogleEvent_1.mapToGoogleEvent(event));
ReactGA.event(mapToGoogleEvent(event));
};
return GoogleAnalytics;
}(Analytics_1.default));
exports.default = GoogleAnalytics;
}(Analytics));
export default GoogleAnalytics;
//# sourceMappingURL=GoogleAnalytics.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapToGoogleEvent = function (event) {
export var mapToGoogleEvent = function (event) {
return {

@@ -5,0 +3,0 @@ action: event.title,

@@ -1,3 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EventDetailsModel.js.map

@@ -1,3 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EventModel.js.map

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

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -12,4 +11,3 @@ var extendStatics = Object.setPrototypeOf ||

})();
Object.defineProperty(exports, "__esModule", { value: true });
var Analytics_1 = require("./Analytics");
import Analytics from './Analytics';
var Segment = /** @class */ (function (_super) {

@@ -53,4 +51,4 @@ __extends(Segment, _super);

return Segment;
}(Analytics_1.default));
exports.default = Segment;
}(Analytics));
export default Segment;
//# sourceMappingURL=Segment.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function track(event) {
export function track(event) {
var services = [];

@@ -24,3 +22,2 @@ for (var _i = 1; _i < arguments.length; _i++) {

}
exports.track = track;
//# sourceMappingURL=track.js.map

@@ -1,19 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var dijkstra_1 = require("./algorithm/dijkstra");
exports.buildDijkstra = dijkstra_1.buildDijkstra;
var Amplitude_1 = require("./analytics/Amplitude");
exports.Amplitude = Amplitude_1.default;
var Analytics_1 = require("./analytics/Analytics");
exports.Analytics = Analytics_1.default;
var GoogleAnalytics_1 = require("./analytics/GoogleAnalytics");
exports.GoogleAnalytics = GoogleAnalytics_1.default;
var Segment_1 = require("./analytics/Segment");
exports.Segment = Segment_1.default;
var track_1 = require("./analytics/track");
exports.track = track_1.track;
var number_1 = require("./intl/number");
exports.formatNumber = number_1.formatNumber;
var safeMath = require("./safeMath/safeMath");
exports.safeMath = safeMath;
import { buildDijkstra } from './algorithm/dijkstra';
import Amplitude from './analytics/Amplitude';
import Analytics from './analytics/Analytics';
import GoogleAnalytics from './analytics/GoogleAnalytics';
import Segment from './analytics/Segment';
import { track } from './analytics/track';
import { formatNumber } from './intl/number';
import * as safeMath from './safeMath/safeMath';
export { buildDijkstra, formatNumber, safeMath, track, Analytics, Amplitude, GoogleAnalytics, Segment };
//# sourceMappingURL=index.js.map

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

"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {

@@ -10,5 +9,4 @@ for (var s, i = 1, n = arguments.length; i < n; i++) {

};
Object.defineProperty(exports, "__esModule", { value: true });
var safeMath_1 = require("../safeMath/safeMath");
exports.checkForTrailingZero = function (value) {
import { floor } from '../safeMath/safeMath';
export var checkForTrailingZero = function (value) {
var notFractional = value.search(/\.|,/) === -1;

@@ -24,3 +22,3 @@ if (notFractional) {

};
exports.formatNumber = function (replacer) { return function (value, accuracy, options) {
export var formatNumber = function (replacer) { return function (value, accuracy, options) {
options = __assign({ maximumFractionDigits: accuracy, minimumFractionDigits: accuracy }, options);

@@ -34,7 +32,7 @@ if (!Number.isFinite(value)) {

else {
value = safeMath_1.floor(value, accuracy);
value = floor(value, accuracy);
}
var result = value.toLocaleString(undefined, options);
return exports.checkForTrailingZero(result);
return checkForTrailingZero(result);
}; };
//# sourceMappingURL=number.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var big_js_1 = require("big.js");
import Big from 'big.js';
var BigNumberModel = /** @class */ (function () {

@@ -33,3 +31,3 @@ function BigNumberModel(value) {

};
this.bigNumber = new big_js_1.default(value);
this.bigNumber = new Big(value);
this.calculationResult = this.bigNumber.valueOf();

@@ -39,3 +37,3 @@ }

}());
exports.default = BigNumberModel;
export default BigNumberModel;
//# sourceMappingURL=bigNumberModel.js.map

@@ -1,19 +0,17 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var bigNumberModel_1 = require("./bigNumberModel");
import BigNumberModel from './bigNumberModel';
// tslint:disable-next-line:no-var-requires
var Big = require('big.js');
exports.mul = function (term1, term2) {
export var mul = function (term1, term2) {
return getBigNumber(term1).multiply(term2);
};
exports.div = function (term1, term2) {
export var div = function (term1, term2) {
return getBigNumber(term1).divide(term2);
};
exports.add = function (term1, term2) {
export var add = function (term1, term2) {
return getBigNumber(term1).plus(term2);
};
exports.sub = function (term1, term2) {
export var sub = function (term1, term2) {
return getBigNumber(term1).minus(term2);
};
exports.ceil = function (value, precision) {
export var ceil = function (value, precision) {
value = Number.isFinite(value) ? value : 0;

@@ -23,3 +21,3 @@ var factor = Math.pow(10, precision);

};
exports.floor = function (value, precision) {
export var floor = function (value, precision) {
value = Number.isFinite(value) ? value : 0;

@@ -29,3 +27,3 @@ var factor = Math.pow(10, precision);

};
exports.toFixed = function (value, accuracy) {
export var toFixed = function (value, accuracy) {
return getBigNumber(value)

@@ -35,6 +33,6 @@ .toFixed(accuracy)

};
exports.getPercentsOf = function (percents, value, accuracy) { return exports.floor((percents / 100) * value, accuracy); };
export var getPercentsOf = function (percents, value, accuracy) { return floor((percents / 100) * value, accuracy); };
var getBigNumber = function (value) {
return new bigNumberModel_1.default(value);
return new BigNumberModel(value);
};
//# sourceMappingURL=safeMath.js.map
{
"name": "@lykkex/lykke.js",
"version": "0.4.11",
"version": "0.4.12",
"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

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

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

Sorry, the diff of this file is not supported yet

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