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

hadron-type-checker

Package Overview
Dependencies
Maintainers
26
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 3.0.0 to 4.0.0

9

lib/type-checker.js

@@ -150,2 +150,5 @@ 'use strict';

const toInt32 = (object) => {
if (object === '-') {
throw new Error(`Value ${object} is not a valid Int32 value`);
}
const number = toNumber(object);

@@ -159,2 +162,5 @@ if (number >= BSON_INT32_MIN && number <= BSON_INT32_MAX) {

const toInt64 = (object) => {
if (object === '-') {
throw new Error(`Value ${object} is not a valid Int64 value`);
}
const number = toNumber(object);

@@ -168,2 +174,5 @@ if (number >= BSON_INT64_MIN && number <= BSON_INT64_MAX) {

const toDouble = (object) => {
if (object === '-') {
throw new Error(`Value ${object} is not a valid Double value`);
}
const number = toNumber(object);

@@ -170,0 +179,0 @@ return new Double(number);

2

package.json

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

"homepage": "https://github.com/mongodb-js/hadron-type-checker",
"version": "3.0.0",
"version": "4.0.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