Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-mongodb - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

dist/index.d.ts
import { Document } from "mongodb";
declare global {
interface Connection {
interface MongoDetails {
uri: string;

@@ -5,0 +5,0 @@ database?: string;

import { Document } from "mongodb";
export declare function aggregate(args: Connection): Promise<Document[]>;
export declare function aggregate(args: MongoDetails): Promise<Document[]>;

@@ -1,2 +0,2 @@

export declare function createCollection(args: Connection): Promise<string>;
export declare function dropCollection(args: Connection): Promise<string>;
export declare function createCollection(args: MongoDetails): Promise<string>;
export declare function dropCollection(args: MongoDetails): Promise<string>;

@@ -1,2 +0,2 @@

export declare function deleteOne(args: Connection): Promise<string>;
export declare function deleteMany(args: Connection): Promise<string>;
export declare function deleteOne(args: MongoDetails): Promise<string>;
export declare function deleteMany(args: MongoDetails): Promise<string>;

@@ -1,2 +0,4 @@

export declare function insertOne(args: Connection): Promise<string>;
export declare function insertMany(args: Connection): Promise<string>;
export declare function insertOne(args: MongoDetails): Promise<import("bson").ObjectID>;
export declare function insertMany(args: MongoDetails): Promise<{
[key: number]: import("bson").ObjectID;
}>;

@@ -59,3 +59,3 @@ "use strict";

client.close();
return '1 document inserted: ' + res.insertedId;
return res.insertedId;
}).catch(function (err) {

@@ -88,3 +88,3 @@ client.close();

client.close();
return res.insertedCount + ' documents inserted';
return res.insertedIds;
}).catch(function (err) {

@@ -91,0 +91,0 @@ client.close();

{
"name": "cypress-mongodb",
"version": "1.2.1",
"version": "1.3.0",
"description": "Cypress MongoDB plugin",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc