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

@lykkex/lykke.js

Package Overview
Dependencies
Maintainers
6
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.3.2 to 0.3.3

2

dist/bundle/lykke.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.lykke={})}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n,i=(function(e){!function(t){var r,n=20,i=1,o=1e6,u=-7,s=21,f="[big.js] ",c=f+"Invalid ",l=c+"decimal places",h=c+"rounding mode",a={},g=void 0,v=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var i=e.c,o=e.e+t+1;if(o<i.length){if(1===r)n=i[o]>=5;else if(2===r)n=i[o]>5||5==i[o]&&(n||o<0||i[o+1]!==g||1&i[o-1]);else if(3===r)n=n||i[o]!==g||o<0;else if(n=!1,0!==r)throw Error(h);if(o<1)i.length=1,n?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,n)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(r<0||r>3||r!==~~r)throw Error(h);return e}function d(e,t,r,n){var i,u,s=e.constructor,f=!e.c[0];if(r!==g){if(r!==~~r||r<(3==t)||r>o)throw Error(3==t?c+"precision":l);for(r=n-(e=new s(e)).e,e.c.length>++n&&p(e,r,s.RM),2==t&&(n=e.e+r+1);e.c.length<n;)e.c.push(0)}if(i=e.e,r=(u=e.c.join("")).length,2!=t&&(1==t||3==t&&n<=i||i<=s.NE||i>=s.PE))u=u.charAt(0)+(r>1?"."+u.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)u="0"+u;u="0."+u}else if(i>0)if(++i>r)for(i-=r;i--;)u+="0";else i<r&&(u=u.slice(0,i)+"."+u.slice(i));else r>1&&(u=u.charAt(0)+"."+u.slice(1));return e.s<0&&(!f||4==t)?"-"+u:u}a.abs=function(){var e=new this.constructor(this);return e.s=1,e},a.cmp=function(e){var t,r=this,n=r.c,i=(e=new r.constructor(e)).c,o=r.s,u=e.s,s=r.e,f=e.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-u:0;if(o!=u)return o;if(t=o<0,s!=f)return s>f^t?1:-1;for(u=(s=n.length)<(f=i.length)?s:f,o=-1;++o<u;)if(n[o]!=i[o])return n[o]>i[o]^t?1:-1;return s==f?0:s>f^t?1:-1},a.div=function(e){var t=this,r=t.constructor,n=t.c,i=(e=new r(e)).c,u=t.s==e.s?1:-1,s=r.DP;if(s!==~~s||s<0||s>o)throw Error(l);if(!i[0])throw Error("[big.js] Division by zero");if(!n[0])return new r(0*u);var f,c,h,a,v,d=i.slice(),m=f=i.length,w=n.length,b=n.slice(0,f),O=b.length,y=e,x=y.c=[],M=0,R=s+(y.e=t.e-e.e)+1;for(y.s=u,u=R<0?0:R,d.unshift(0);O++<f;)b.push(0);do{for(h=0;h<10;h++){if(f!=(O=b.length))a=f>O?1:-1;else for(v=-1,a=0;++v<f;)if(i[v]!=b[v]){a=i[v]>b[v]?1:-1;break}if(!(a<0))break;for(c=O==f?i:d;O;){if(b[--O]<c[O]){for(v=O;v&&!b[--v];)b[v]=9;--b[v],b[O]+=10}b[O]-=c[O]}for(;!b[0];)b.shift()}x[M++]=a?h:++h,b[0]&&a?b[O]=n[m]||0:b=[n[m]]}while((m++<w||b[0]!==g)&&u--);return x[0]||1==M||(x.shift(),y.e--),M>R&&p(y,s,r.RM,b[0]!==g),y},a.eq=function(e){return!this.cmp(e)},a.gt=function(e){return this.cmp(e)>0},a.gte=function(e){return this.cmp(e)>-1},a.lt=function(e){return this.cmp(e)<0},a.lte=function(e){return this.cmp(e)<1},a.minus=a.sub=function(e){var t,r,n,i,o=this,u=o.constructor,s=o.s,f=(e=new u(e)).s;if(s!=f)return e.s=-f,o.plus(e);var c=o.c.slice(),l=o.e,h=e.c,a=e.e;if(!c[0]||!h[0])return h[0]?(e.s=-f,e):new u(c[0]?o:0);if(s=l-a){for((i=s<0)?(s=-s,n=c):(a=l,n=h),n.reverse(),f=s;f--;)n.push(0);n.reverse()}else for(r=((i=c.length<h.length)?c:h).length,s=f=0;f<r;f++)if(c[f]!=h[f]){i=c[f]<h[f];break}if(i&&(n=c,c=h,h=n,e.s=-e.s),(f=(r=h.length)-(t=c.length))>0)for(;f--;)c[t++]=0;for(f=t;r>s;){if(c[--r]<h[r]){for(t=r;t&&!c[--t];)c[t]=9;--c[t],c[r]+=10}c[r]-=h[r]}for(;0===c[--f];)c.pop();for(;0===c[0];)c.shift(),--a;return c[0]||(e.s=1,c=[a=0]),e.c=c,e.e=a,e},a.mod=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=o,t?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=o,this.minus(r.times(e)))},a.plus=a.add=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(i!=o)return e.s=-o,r.minus(e);var u=r.e,s=r.c,f=e.e,c=e.c;if(!s[0]||!c[0])return c[0]?e:new n(s[0]?r:0*i);if(s=s.slice(),i=u-f){for(i>0?(f=u,t=c):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-c.length<0&&(t=c,c=s,s=t),i=c.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+c[i]+o)/10|0;for(o&&(s.unshift(o),++f),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=f,e},a.pow=function(e){var t=this,r=new t.constructor(1),n=r,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(c+"exponent");for(i&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return i?r.div(n):n},a.round=function(e,t){var r=this.constructor;if(e===g)e=0;else if(e!==~~e||e<0||e>o)throw Error(l);return p(new r(this),e,t===g?r.RM:t)},a.sqrt=function(){var e,t,r,n=this,i=n.constructor,o=n.s,u=n.e,s=new i(.5);if(!n.c[0])return new i(n);if(o<0)throw Error(f+"No square root");0===(o=Math.sqrt(n.toString()))||o===1/0?((t=n.c.join("")).length+u&1||(t+="0"),(e=new i(Math.sqrt(t).toString())).e=((u+1)/2|0)-(u<0||1&u)):e=new i(o.toString()),u=e.e+(i.DP+=4);do{r=e,e=s.times(r.plus(n.div(r)))}while(r.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return p(e,i.DP-=4,i.RM)},a.times=a.mul=function(e){var t,r=this,n=r.constructor,i=r.c,o=(e=new n(e)).c,u=i.length,s=o.length,f=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!i[0]||!o[0])return new n(0*e.s);for(e.e=f+c,u<s&&(t=i,i=o,o=t,c=u,u=s,s=c),t=new Array(c=u+s);c--;)t[c]=0;for(f=s;f--;){for(s=0,c=u+f;c>f;)s=t[c]+o[f]*i[c-f-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),f=t.length;!t[--f];)t.pop();return e.c=t,e},a.toExponential=function(e){return d(this,1,e,e)},a.toFixed=function(e){return d(this,2,e,this.e+e)},a.toPrecision=function(e){return d(this,3,e,e-1)},a.toString=function(){return d(this)},a.valueOf=a.toJSON=function(){return d(this,4)},(r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===g?e():new t(r);r instanceof t?(n.s=r.s,n.e=r.e,n.c=r.c.slice()):function(e,t){var r,n,i;if(0===t&&1/t<0)t="-0";else if(!v.test(t+=""))throw Error(c+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),i=t.length,n=0;n<i&&"0"==t.charAt(n);)++n;if(n==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=r-n-1,e.c=[],r=0;n<=i;)e.c[r++]=+t.charAt(n++)}}(n,r),n.constructor=t}return t.prototype=a,t.DP=n,t.RM=i,t.NE=u,t.PE=s,t.version="5.0.2",t}()).default=r.Big=r,e.exports?e.exports=r:t.Big=r}(r)}(n={exports:{}},n.exports),n.exports),o=function(){return function(e){var t=this;this.multiply=function(e){return t.calculationResult=t.bigNumber.mul(e).valueOf(),t},this.divide=function(e){return t.calculationResult=t.bigNumber.div(e).valueOf(),t},this.plus=function(e){return t.calculationResult=t.bigNumber.plus(e).valueOf(),t},this.minus=function(e){return t.calculationResult=t.bigNumber.minus(e).valueOf(),t},this.toFixed=function(e){return t.calculationResult=t.bigNumber.toFixed(e),t},this.toString=function(){return t.calculationResult},this.valueOf=function(){return parseFloat(t.calculationResult)},this.bigNumber=new i(e),this.calculationResult=this.bigNumber.valueOf()}}(),u=require("big.js"),s=function(e,t){e=Number.isFinite(e)?e:0;var r=Math.pow(10,t);return Math.floor(new u(e).times(r).valueOf())/r},f=function(e){return new o(e)},c=Object.freeze({mul:function(e,t){return f(e).multiply(t)},div:function(e,t){return f(e).divide(t)},add:function(e,t){return f(e).plus(t)},sub:function(e,t){return f(e).minus(t)},ceil:function(e,t){e=Number.isFinite(e)?e:0;var r=Math.pow(10,t);return Math.ceil(new u(e).times(r).valueOf())/r},floor:s,toFixed:function(e,t){return f(e).toFixed(t).valueOf()},getPercentsOf:function(e,t,r){return s(e/100*t,r)}});e.buildDijkstra=function(e,t,r,n){r[e]=0;for(var i=Object.keys(t),o={},u=0;u<i.length;u++){for(var s="",f=0,c=i;f<c.length;f++)n[l=c[f]]||s&&!(r[l]<r[s])||(s=l);if(r[s]===1/0)break;for(var l in n[s]=!0,t[s]){var h=l,a=t[s][l].weight;r[s]+a<r[h]&&(r[h]=r[s]+a,o[h]=s)}}return o},e.formatNumber=function(e){return function(r,n,i){if(i=t({maximumFractionDigits:n,minimumFractionDigits:n},i),!Number.isFinite(r)){if("string"==typeof e)return e;r=e}return function(e){if(-1===e.search(/\.|,/))return e;var t=e.search(/0+$/),r=","===e[t-1]||"."===e[t-1]?2:1;return-1!==t?e.slice(0,t+r):e}(r.toLocaleString(void 0,i))}},e.safeMath=c,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.lykke={})}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var n,i=(function(e){!function(t){var r,n=20,i=1,o=1e6,u=-7,s=21,f="[big.js] ",c=f+"Invalid ",l=c+"decimal places",h=c+"rounding mode",a={},g=void 0,v=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var i=e.c,o=e.e+t+1;if(o<i.length){if(1===r)n=i[o]>=5;else if(2===r)n=i[o]>5||5==i[o]&&(n||o<0||i[o+1]!==g||1&i[o-1]);else if(3===r)n=n||i[o]!==g||o<0;else if(n=!1,0!==r)throw Error(h);if(o<1)i.length=1,n?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,n)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(r<0||r>3||r!==~~r)throw Error(h);return e}function d(e,t,r,n){var i,u,s=e.constructor,f=!e.c[0];if(r!==g){if(r!==~~r||r<(3==t)||r>o)throw Error(3==t?c+"precision":l);for(r=n-(e=new s(e)).e,e.c.length>++n&&p(e,r,s.RM),2==t&&(n=e.e+r+1);e.c.length<n;)e.c.push(0)}if(i=e.e,r=(u=e.c.join("")).length,2!=t&&(1==t||3==t&&n<=i||i<=s.NE||i>=s.PE))u=u.charAt(0)+(r>1?"."+u.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)u="0"+u;u="0."+u}else if(i>0)if(++i>r)for(i-=r;i--;)u+="0";else i<r&&(u=u.slice(0,i)+"."+u.slice(i));else r>1&&(u=u.charAt(0)+"."+u.slice(1));return e.s<0&&(!f||4==t)?"-"+u:u}a.abs=function(){var e=new this.constructor(this);return e.s=1,e},a.cmp=function(e){var t,r=this,n=r.c,i=(e=new r.constructor(e)).c,o=r.s,u=e.s,s=r.e,f=e.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-u:0;if(o!=u)return o;if(t=o<0,s!=f)return s>f^t?1:-1;for(u=(s=n.length)<(f=i.length)?s:f,o=-1;++o<u;)if(n[o]!=i[o])return n[o]>i[o]^t?1:-1;return s==f?0:s>f^t?1:-1},a.div=function(e){var t=this,r=t.constructor,n=t.c,i=(e=new r(e)).c,u=t.s==e.s?1:-1,s=r.DP;if(s!==~~s||s<0||s>o)throw Error(l);if(!i[0])throw Error("[big.js] Division by zero");if(!n[0])return new r(0*u);var f,c,h,a,v,d=i.slice(),m=f=i.length,w=n.length,b=n.slice(0,f),y=b.length,O=e,x=O.c=[],M=0,R=s+(O.e=t.e-e.e)+1;for(O.s=u,u=R<0?0:R,d.unshift(0);y++<f;)b.push(0);do{for(h=0;h<10;h++){if(f!=(y=b.length))a=f>y?1:-1;else for(v=-1,a=0;++v<f;)if(i[v]!=b[v]){a=i[v]>b[v]?1:-1;break}if(!(a<0))break;for(c=y==f?i:d;y;){if(b[--y]<c[y]){for(v=y;v&&!b[--v];)b[v]=9;--b[v],b[y]+=10}b[y]-=c[y]}for(;!b[0];)b.shift()}x[M++]=a?h:++h,b[0]&&a?b[y]=n[m]||0:b=[n[m]]}while((m++<w||b[0]!==g)&&u--);return x[0]||1==M||(x.shift(),O.e--),M>R&&p(O,s,r.RM,b[0]!==g),O},a.eq=function(e){return!this.cmp(e)},a.gt=function(e){return this.cmp(e)>0},a.gte=function(e){return this.cmp(e)>-1},a.lt=function(e){return this.cmp(e)<0},a.lte=function(e){return this.cmp(e)<1},a.minus=a.sub=function(e){var t,r,n,i,o=this,u=o.constructor,s=o.s,f=(e=new u(e)).s;if(s!=f)return e.s=-f,o.plus(e);var c=o.c.slice(),l=o.e,h=e.c,a=e.e;if(!c[0]||!h[0])return h[0]?(e.s=-f,e):new u(c[0]?o:0);if(s=l-a){for((i=s<0)?(s=-s,n=c):(a=l,n=h),n.reverse(),f=s;f--;)n.push(0);n.reverse()}else for(r=((i=c.length<h.length)?c:h).length,s=f=0;f<r;f++)if(c[f]!=h[f]){i=c[f]<h[f];break}if(i&&(n=c,c=h,h=n,e.s=-e.s),(f=(r=h.length)-(t=c.length))>0)for(;f--;)c[t++]=0;for(f=t;r>s;){if(c[--r]<h[r]){for(t=r;t&&!c[--t];)c[t]=9;--c[t],c[r]+=10}c[r]-=h[r]}for(;0===c[--f];)c.pop();for(;0===c[0];)c.shift(),--a;return c[0]||(e.s=1,c=[a=0]),e.c=c,e.e=a,e},a.mod=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=o,t?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=o,this.minus(r.times(e)))},a.plus=a.add=function(e){var t,r=this,n=r.constructor,i=r.s,o=(e=new n(e)).s;if(i!=o)return e.s=-o,r.minus(e);var u=r.e,s=r.c,f=e.e,c=e.c;if(!s[0]||!c[0])return c[0]?e:new n(s[0]?r:0*i);if(s=s.slice(),i=u-f){for(i>0?(f=u,t=c):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-c.length<0&&(t=c,c=s,s=t),i=c.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+c[i]+o)/10|0;for(o&&(s.unshift(o),++f),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=f,e},a.pow=function(e){var t=this,r=new t.constructor(1),n=r,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(c+"exponent");for(i&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return i?r.div(n):n},a.round=function(e,t){var r=this.constructor;if(e===g)e=0;else if(e!==~~e||e<0||e>o)throw Error(l);return p(new r(this),e,t===g?r.RM:t)},a.sqrt=function(){var e,t,r,n=this,i=n.constructor,o=n.s,u=n.e,s=new i(.5);if(!n.c[0])return new i(n);if(o<0)throw Error(f+"No square root");0===(o=Math.sqrt(n.toString()))||o===1/0?((t=n.c.join("")).length+u&1||(t+="0"),(e=new i(Math.sqrt(t).toString())).e=((u+1)/2|0)-(u<0||1&u)):e=new i(o.toString()),u=e.e+(i.DP+=4);do{r=e,e=s.times(r.plus(n.div(r)))}while(r.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return p(e,i.DP-=4,i.RM)},a.times=a.mul=function(e){var t,r=this,n=r.constructor,i=r.c,o=(e=new n(e)).c,u=i.length,s=o.length,f=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!i[0]||!o[0])return new n(0*e.s);for(e.e=f+c,u<s&&(t=i,i=o,o=t,c=u,u=s,s=c),t=new Array(c=u+s);c--;)t[c]=0;for(f=s;f--;){for(s=0,c=u+f;c>f;)s=t[c]+o[f]*i[c-f-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),f=t.length;!t[--f];)t.pop();return e.c=t,e},a.toExponential=function(e){return d(this,1,e,e)},a.toFixed=function(e){return d(this,2,e,this.e+e)},a.toPrecision=function(e){return d(this,3,e,e-1)},a.toString=function(){return d(this)},a.valueOf=a.toJSON=function(){return d(this,4)},(r=function e(){function t(r){var n=this;if(!(n instanceof t))return r===g?e():new t(r);r instanceof t?(n.s=r.s,n.e=r.e,n.c=r.c.slice()):function(e,t){var r,n,i;if(0===t&&1/t<0)t="-0";else if(!v.test(t+=""))throw Error(c+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),i=t.length,n=0;n<i&&"0"==t.charAt(n);)++n;if(n==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=r-n-1,e.c=[],r=0;n<=i;)e.c[r++]=+t.charAt(n++)}}(n,r),n.constructor=t}return t.prototype=a,t.DP=n,t.RM=i,t.NE=u,t.PE=s,t.version="5.0.2",t}()).default=r.Big=r,e.exports?e.exports=r:t.Big=r}(r)}(n={exports:{}},n.exports),n.exports),o=function(){return function(e){var t=this;this.multiply=function(e){return t.calculationResult=t.bigNumber.mul(e).valueOf(),t},this.divide=function(e){return t.calculationResult=t.bigNumber.div(e).valueOf(),t},this.plus=function(e){return t.calculationResult=t.bigNumber.plus(e).valueOf(),t},this.minus=function(e){return t.calculationResult=t.bigNumber.minus(e).valueOf(),t},this.toFixed=function(e){return t.calculationResult=t.bigNumber.toFixed(e),t},this.toString=function(){return t.calculationResult},this.valueOf=function(){return parseFloat(t.calculationResult)},this.bigNumber=new i(e),this.calculationResult=this.bigNumber.valueOf()}}(),u=require("big.js"),s=function(e,t){e=Number.isFinite(e)?e:0;var r=Math.pow(10,t);return Math.floor(new u(e).times(r).valueOf())/r},f=function(e){return new o(e)},c=Object.freeze({mul:function(e,t){return f(e).multiply(t)},div:function(e,t){return f(e).divide(t)},add:function(e,t){return f(e).plus(t)},sub:function(e,t){return f(e).minus(t)},ceil:function(e,t){e=Number.isFinite(e)?e:0;var r=Math.pow(10,t);return Math.ceil(new u(e).times(r).valueOf())/r},floor:s,toFixed:function(e,t){return f(e).toFixed(t).toString()},getPercentsOf:function(e,t,r){return s(e/100*t,r)}});e.buildDijkstra=function(e,t,r,n){r[e]=0;for(var i=Object.keys(t),o={},u=0;u<i.length;u++){for(var s="",f=0,c=i;f<c.length;f++)n[l=c[f]]||s&&!(r[l]<r[s])||(s=l);if(r[s]===1/0)break;for(var l in n[s]=!0,t[s]){var h=l,a=t[s][l].weight;r[s]+a<r[h]&&(r[h]=r[s]+a,o[h]=s)}}return o},e.formatNumber=function(e){return function(r,n,i){if(i=t({maximumFractionDigits:n,minimumFractionDigits:n},i),!Number.isFinite(r)){if("string"==typeof e)return e;r=e}return function(e){if(-1===e.search(/\.|,/))return e;var t=e.search(/0+$/),r=","===e[t-1]||"."===e[t-1]?2:1;return-1!==t?e.slice(0,t+r):e}(r.toLocaleString(void 0,i))}},e.safeMath=c,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=lykke.js.map

@@ -8,3 +8,3 @@ import BigNumberModel from './bigNumberModel';

export declare const floor: (value: number, precision: number) => number;
export declare const toFixed: (value: string | number, accuracy: number) => number;
export declare const toFixed: (value: string | number, accuracy: number) => string;
export declare const getPercentsOf: (percents: number, value: number, accuracy: number) => number;

@@ -29,3 +29,3 @@ import BigNumberModel from './bigNumberModel';

.toFixed(accuracy)
.valueOf();
.toString();
};

@@ -32,0 +32,0 @@ export var getPercentsOf = function (percents, value, accuracy) { return floor((percents / 100) * value, accuracy); };

{
"name": "@lykkex/lykke.js",
"version": "0.3.2",
"version": "0.3.3",
"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

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