hadron-type-checker
Advanced tools
Comparing version 0.0.0-next-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1 to 0.0.0-next-b3095e5b082030eb4d12285834f1ea21cef4567c
@@ -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-b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1", | ||
"version": "0.0.0-next-b3095e5b082030eb4d12285834f1ea21cef4567c", | ||
"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.8.0", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-b3095e5b082030eb4d12285834f1ea21cef4567c", | ||
"chai": "^4.2.0", | ||
"depcheck": "^1.4.1", | ||
"eslint": "^7.25.0", | ||
"eslint-config-mongodb-js": "^5.0.3", | ||
"mocha": "^10.2.0" | ||
}, | ||
"gitHead": "b308d1e92f7e65f426e7cdde2c630c5eb26cd4e1" | ||
"gitHead": "b3095e5b082030eb4d12285834f1ea21cef4567c" | ||
} |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40997
8
384
+ Addedbson@6.10.1(transitive)
- Removedbson@5.5.1(transitive)
Updatedbson@^6.8.0