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

@lykkex/lykke.js

Package Overview
Dependencies
Maintainers
8
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.6 to 0.4.7

4

dist/algorithm/dijkstra.js

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

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

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

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

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

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

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

@@ -26,4 +28,4 @@ __extends(Amplitude, _super);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
exports.track = track;
//# sourceMappingURL=track.js.map
import { buildDijkstra } from './algorithm/dijkstra';
import { track } from './analytics/track';
import { formatNumber } from './intl/number';
import * as safeMath from './safeMath/safeMath';
import Amplitude from './analytics/Amplitude';

@@ -11,3 +8,5 @@ import Analytics from './analytics/Analytics';

import Segment from './analytics/Segment';
export { buildDijkstra, formatNumber, safeMath, track };
export { Analytics, Amplitude, GoogleAnalytics, Segment, EventModel, EventDetailsModel };
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, EventModel, EventDetailsModel };

@@ -1,11 +0,19 @@

import { buildDijkstra } from './algorithm/dijkstra';
import { track } from './analytics/track';
import { formatNumber } from './intl/number';
import * as safeMath from './safeMath/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 };
"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;
//# sourceMappingURL=index.js.map

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

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

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

};
export var checkForTrailingZero = function (value) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkForTrailingZero = function (value) {
var notFractional = value.search(/\.|,/) === -1;

@@ -21,3 +23,3 @@ if (notFractional) {

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

@@ -31,4 +33,4 @@ if (!Number.isFinite(value)) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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