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.0.3 to 1.0.4

10

dist/index.d.ts
import { Document } from "mongodb";
declare global {
var Cypress: any;
var cy: any;
interface Connection {

@@ -14,6 +16,6 @@ uri: string;

dropCollection(collection: string, database?: string): Chainable<Subject>;
insertOne(pipeline: Document | Document[], collection?: string, database?: string): Chainable<Subject>;
insertMany(pipeline: Document | Document[], collection?: string, database?: string): Chainable<Subject>;
deleteOne(pipeline: Document, collection?: string, database?: string): Chainable<Subject>;
deleteMany(pipeline: Document, collection?: string, database?: string): Chainable<Subject>;
insertOne(document: Document, collection?: string, database?: string): Chainable<Subject>;
insertMany(documents: Document[], collection?: string, database?: string): Chainable<Subject>;
deleteOne(filter: Document, collection?: string, database?: string): Chainable<Subject>;
deleteMany(filter: Document, collection?: string, database?: string): Chainable<Subject>;
}

@@ -20,0 +22,0 @@ }

2

dist/utils/delete.js

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

client.close();
return '1 document deleted';
return res.deletedCount + ' document deleted';
}).catch(function (err) {

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

{
"name": "cypress-mongodb",
"version": "1.0.3",
"version": "1.0.4",
"description": "Cypress MongoDB plugin",

@@ -19,4 +19,10 @@ "main": "./dist/index.js",

],
"author": "Jovan Ilić <ilicjovan89@gmail.com>",
"author": "Jovan Ilić <ilicjovan89@gmail.com> (https://jovanilic.com)",
"license": "MIT",
"homepage": "https://github.com/Zaista/cypress-mongodb",
"bugs": "https://github.com/Zaista/cypress-mongodb/issues",
"repository": {
"type": "git",
"url": "https://github.com/Zaista/cypress-mongodb"
},
"dependencies": {

@@ -28,3 +34,2 @@ "mongodb": "4.2.1"

"@types/mongodb": "^4.0.7",
"cypress": "^9.1.1",
"mocha": "^9.1.3",

@@ -31,0 +36,0 @@ "typescript": "^4.5.2"

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