CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
index.ts20 linesDownload Raw Back to src
1import * as BSON from './bson';2 3// Export all named properties from BSON to support4// import { ObjectId, serialize } from 'bson';5// const { ObjectId, serialize } = require('bson');6export * from './bson';7 8// Export BSON as a namespace to support:9// import { BSON } from 'bson';10// const { BSON } = require('bson');11export { BSON };12 13// BSON does **NOT** have a default export14 15// The following will crash in es module environments16// import BSON from 'bson';17 18// The following will work as expected, BSON as a namespace of all the APIs (BSON.ObjectId, BSON.serialize)19// const BSON = require('bson');20