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

hadron-type-checker

Package Overview
Dependencies
Maintainers
0
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 0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054 to 0.0.0-next-2c24180a713b2a2b0cde7f7c265d8aa569baf268

.prettierrc.json

2

index.d.ts

@@ -13,3 +13,3 @@ import type {

BSONSymbol,
Timestamp
Timestamp,
} from 'bson';

@@ -16,0 +16,0 @@

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

'use strict';
module.exports = require('./src/type-checker');

@@ -10,3 +10,3 @@ {

"homepage": "https://github.com/mongodb-js/compass",
"version": "0.0.0-next-2bd69249c64bee9c103212c46e5c582418f87054",
"version": "0.0.0-next-2c24180a713b2a2b0cde7f7c265d8aa569baf268",
"repository": {

@@ -27,17 +27,17 @@ "type": "git",

"lint": "eslint \"./{src,lib,test,bin}/**/*.{js,jsx,ts,tsx}\" \"./*.js\" --no-error-on-unmatched-pattern",
"depcheck": "depcheck",
"depcheck": "compass-scripts check-peer-deps && depcheck",
"test-ci": "npm run test"
},
"dependencies": {
"bson": "^5.2.0",
"bson": "^6.7.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@mongodb-js/eslint-config-compass": "0.0.0-next-2c24180a713b2a2b0cde7f7c265d8aa569baf268",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
"eslint-config-mongodb-js": "^5.0.3",
"mocha": "^10.2.0"
},
"gitHead": "2bd69249c64bee9c103212c46e5c582418f87054"
"gitHead": "2c24180a713b2a2b0cde7f7c265d8aa569baf268"
}

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

'use strict';
const {

@@ -26,3 +27,2 @@ isPlainObject,

Timestamp,
Map
} = require('bson');

@@ -180,3 +180,5 @@ /**

}
throw new Error(`Value ${object.toString()} is outside the valid Int64 range`);
throw new Error(
`Value ${object.toString()} is outside the valid Int64 range`
);
};

@@ -213,3 +215,5 @@

const toBinary = (object) => {
const buffer = ArrayBuffer.isView(object) ? Buffer.from(object) : Buffer.from(toString(object), 'utf8');
const buffer = ArrayBuffer.isView(object)
? Buffer.from(object)
: Buffer.from(toString(object), 'utf8');
return new Binary(buffer, Binary.SUBTYPE_DEFAULT);

@@ -257,3 +261,3 @@ };

Timestamp: toTimestamp,
Undefined: toUndefined
Undefined: toUndefined,
};

@@ -329,3 +333,3 @@

}
return result === OBJECT_TYPE ? EMPTY : result;
return result === OBJECT_TYPE && result !== object ? EMPTY : result;
}

@@ -332,0 +336,0 @@

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