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

fetchr

Package Overview
Dependencies
Maintainers
5
Versions
95
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 0.5.34 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",

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