Socket
Socket
Sign inDemoInstall

database-ql

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.14 to 1.0.0-beta.14-patch0

2

dist/commonjs/utils/type.js

@@ -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', () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc