cypress-mongodb
Advanced tools
Comparing version 1.2.1 to 1.3.0
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", |
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
38515
740