hadron-type-checker
Advanced tools
Comparing version 0.0.0-next-44318443f2cd1088082181789b25fc26a7a11bb2 to 0.0.0-next-4474f17fe4181829ba5d709778c535a4c343cccf
@@ -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-4474f17fe4181829ba5d709778c535a4c343cccf", | ||
"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.7.0", | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-4474f17fe4181829ba5d709778c535a4c343cccf", | ||
"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": "4474f17fe4181829ba5d709778c535a4c343cccf" | ||
} |
@@ -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
166
+ Addedbson@6.10.1(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbson@4.7.2(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)
Updatedbson@^6.7.0
Updatedlodash@^4.17.21