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-44318443f2cd1088082181789b25fc26a7a11bb2 to 0.0.0-next-445b0bd20e7f8ba074e8d37f7ebe74bbfc5e8c40

.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-44318443f2cd1088082181789b25fc26a7a11bb2",
"version": "0.0.0-next-445b0bd20e7f8ba074e8d37f7ebe74bbfc5e8c40",
"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": "^4.4.1",
"lodash": "^4.17.15"
"bson": "^6.8.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@mongodb-js/eslint-config-compass": "0.0.0-next-445b0bd20e7f8ba074e8d37f7ebe74bbfc5e8c40",
"chai": "^4.2.0",
"depcheck": "^1.4.1",
"eslint": "^7.25.0",
"eslint-config-mongodb-js": "^5.0.3",
"mocha": "^8.0.1"
"mocha": "^10.2.0"
},
"gitHead": "44318443f2cd1088082181789b25fc26a7a11bb2"
"gitHead": "445b0bd20e7f8ba074e8d37f7ebe74bbfc5e8c40"
}

@@ -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