hadron-type-checker
Advanced tools
Comparing version 0.0.0-next-9393cb0d5342c1522d7921ddb868725b33e230a3 to 0.0.0-next-946a60c9f5db769f6e6b66b2dce4e92bba3c39c3
@@ -13,3 +13,3 @@ import type { | ||
BSONSymbol, | ||
Timestamp | ||
Timestamp, | ||
} from 'bson'; | ||
@@ -16,0 +16,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/compass", | ||
"version": "0.0.0-next-9393cb0d5342c1522d7921ddb868725b33e230a3", | ||
"version": "0.0.0-next-946a60c9f5db769f6e6b66b2dce4e92bba3c39c3", | ||
"repository": { | ||
@@ -35,9 +35,9 @@ "type": "git", | ||
"devDependencies": { | ||
"@mongodb-js/eslint-config-compass": "0.0.0-next-946a60c9f5db769f6e6b66b2dce4e92bba3c39c3", | ||
"chai": "^4.2.0", | ||
"depcheck": "^1.4.1", | ||
"eslint": "^7.25.0", | ||
"eslint-config-mongodb-js": "^5.0.3", | ||
"mocha": "^10.2.0" | ||
}, | ||
"gitHead": "9393cb0d5342c1522d7921ddb868725b33e230a3" | ||
"gitHead": "946a60c9f5db769f6e6b66b2dce4e92bba3c39c3" | ||
} |
@@ -27,3 +27,2 @@ 'use strict'; | ||
Timestamp, | ||
Map | ||
} = require('bson'); | ||
@@ -181,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` | ||
); | ||
}; | ||
@@ -214,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); | ||
@@ -258,3 +261,3 @@ }; | ||
Timestamp: toTimestamp, | ||
Undefined: toUndefined | ||
Undefined: toUndefined, | ||
}; | ||
@@ -261,0 +264,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