cypress-mongodb
Advanced tools
Comparing version 5.1.3 to 5.1.4
@@ -22,2 +22,3 @@ "use strict"; | ||
} | ||
args.pipeline = (0, bson_1.serialize)(args.pipeline); | ||
return cy.task('findOne', args).then(function (result) { | ||
@@ -47,2 +48,3 @@ if (result !== null) | ||
} | ||
args.pipeline = (0, bson_1.serialize)(args.pipeline); | ||
return cy.task('findMany', args).then(function (result) { | ||
@@ -49,0 +51,0 @@ return Object.values((0, bson_1.deserialize)(Buffer.from(result))); |
@@ -46,2 +46,3 @@ "use strict"; | ||
return __generator(this, function (_a) { | ||
args.pipeline = (0, bson_1.deserialize)(Buffer.from(args.pipeline)); | ||
return [2, mongodb_1.MongoClient.connect(args.uri).then(function (client) { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -82,2 +83,3 @@ var result, err_1; | ||
return __generator(this, function (_a) { | ||
args.pipeline = (0, bson_1.deserialize)(Buffer.from(args.pipeline)); | ||
return [2, mongodb_1.MongoClient.connect(args.uri).then(function (client) { | ||
@@ -84,0 +86,0 @@ return client |
{ | ||
"name": "cypress-mongodb", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "Cypress MongoDB plugin", | ||
@@ -8,3 +8,3 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"prebuild": "npx prettier --write src/", | ||
"prebuild": "npx prettier --write src/ cypress/", | ||
"build": "tsc -d", | ||
@@ -11,0 +11,0 @@ "test": "cypress run", |
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
57437
1074