cypress-mongodb
Advanced tools
Comparing version 1.0.3 to 1.0.4
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 @@ } |
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4
0
0
38522
21
741