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

hadron-type-checker

Package Overview
Dependencies
Maintainers
20
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hadron-type-checker - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

.nvmrc

6

lib/type-checker.js

@@ -129,2 +129,8 @@ 'use strict';

function toDecimal128(object) {
/*
If converting a BSON Object, extract the value before converting to a string.
*/
if (has(object, BSON_TYPE) && includes(NUMBER_TYPES, object._bsontype)) {
object = object._bsontype === 'Long' ? object.toNumber() : object.valueOf();
}
return Decimal128.fromString(String(object));

@@ -131,0 +137,0 @@ }

2

package.json

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/mongodb-js/hadron-type-checker",
"version": "1.2.0",
"version": "1.3.0",
"repository": {

@@ -10,0 +10,0 @@ "type": "git",

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