You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fetchr

Package Overview
Dependencies
Maintainers
5
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetchr - npm Package Compare versions

Comparing version

to
0.5.35

11

libs/fetcher.js

@@ -22,8 +22,7 @@ /**

var ret = JSON.parse(value);
// Numbers larger than MAX_SAFE_INTEGER will contain rounding errors so,
// we will just leave them as strings instead. The length > 15 check is because
// the MAX_SAFE_INTEGER in javascript is 9007199254740991 which has a length of 16.
// Using a length > 15 check is still safe and faster than trying to use another
// library that supports big integers.
if (typeof ret === 'number' && value.length > 15) {
// Big interger, big decimal and the number in exponential notations will results
// in unexpected form. e.g. 1234e1234 will be parsed into Infinity and the
// number > MAX_SAFE_INTEGER will cause a rounding error.
// So we will just leave them as strings instead.
if (typeof ret === 'number' && String(value) !== String(ret)) {
ret = value;

@@ -30,0 +29,0 @@ }

{
"name": "fetchr",
"version": "0.5.34",
"version": "0.5.35",
"description": "Fetchr augments Flux applications by allowing Flux stores to be used on server and client to fetch data",

@@ -5,0 +5,0 @@ "main": "index.js",