database-ql
Advanced tools
Comparing version 1.0.0-beta.14 to 1.0.0-beta.14-patch0
@@ -29,3 +29,3 @@ "use strict"; | ||
exports.isObjectId = (x) => { | ||
return (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectID'; | ||
return (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectID' || (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectId'; | ||
}; | ||
@@ -32,0 +32,0 @@ exports.isBinary = (x) => { |
@@ -1,2 +0,1 @@ | ||
import { EJSON } from 'bson'; | ||
export declare const sleep: (ms?: number) => Promise<unknown>; | ||
@@ -6,2 +5,2 @@ export declare const autoCount: (domain?: string) => number; | ||
export declare const stringifyByEJSON: (params: any) => string; | ||
export declare const parseByEJSON: (params: any) => EJSON.SerializableTypes; | ||
export declare const parseByEJSON: (params: any) => any; |
@@ -37,3 +37,3 @@ import { InternalSymbol } from './symbol'; | ||
export var isObjectId = function (x) { | ||
return (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectID'; | ||
return (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectID' || (x === null || x === void 0 ? void 0 : x._bsontype) === 'ObjectId'; | ||
}; | ||
@@ -40,0 +40,0 @@ export var isBinary = function (x) { |
@@ -1,2 +0,1 @@ | ||
import { EJSON } from 'bson'; | ||
export declare const sleep: (ms?: number) => Promise<unknown>; | ||
@@ -6,2 +5,2 @@ export declare const autoCount: (domain?: string) => number; | ||
export declare const stringifyByEJSON: (params: any) => string; | ||
export declare const parseByEJSON: (params: any) => EJSON.SerializableTypes; | ||
export declare const parseByEJSON: (params: any) => any; |
{ | ||
"name": "database-ql", | ||
"version": "1.0.0-beta.14", | ||
"version": "1.0.0-beta.14-patch0", | ||
"description": "Database interface for laf", | ||
@@ -31,11 +31,7 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"bson": "^4.5.3", | ||
"lodash.clonedeep": "4.5.0", | ||
"lodash.set": "4.3.2", | ||
"lodash.unset": "4.5.2" | ||
"bson": "^5.5.1" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,js}": "eslint --fix" | ||
}, | ||
"gitHead": "688ef22f4d915e06612372d1308fde4b27a38090" | ||
} | ||
} | ||
} |
@@ -49,3 +49,3 @@ import { Binary, ObjectId } from 'bson' | ||
export const isObjectId = (x: any): x is ObjectId => { | ||
return x?._bsontype === 'ObjectID' | ||
return x?._bsontype === 'ObjectID' || x?._bsontype === 'ObjectId' | ||
} | ||
@@ -52,0 +52,0 @@ |
const { Actions, getDb } = require('../_utils') | ||
const assert = require('assert') | ||
const { ObjectId, Binary } = require('bson') | ||
const { ObjectId, Binary, EJSON } = require('bson') | ||
@@ -5,0 +5,0 @@ describe('db-ql(unit): db::aggregate()::$match', () => { |
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1
1
490006
186
14525
+ Addedbson@5.5.1(transitive)
- Removedlodash.clonedeep@4.5.0
- Removedlodash.set@4.3.2
- Removedlodash.unset@4.5.2
- Removedbase64-js@1.5.1(transitive)
- Removedbson@4.7.2(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedlodash.set@4.3.2(transitive)
- Removedlodash.unset@4.5.2(transitive)
Updatedbson@^5.5.1