cypress-mailslurp
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -17,3 +17,4 @@ 'use strict'; | ||
var mailslurp = new mailslurpClient.MailSlurp({ | ||
apiKey: apiKey | ||
apiKey: apiKey, | ||
basePath: 'https://cypress.api.mailslurp.com' | ||
}); | ||
@@ -20,0 +21,0 @@ Cypress.Commands.add('mailslurp', function () { |
@@ -1,2 +0,2 @@ | ||
"use strict";var r=require("mailslurp-client");!function(e){var a=e.env("MAILSLURP_API_KEY");if(!a)throw new Error("Error no MailSlurp API Key. Please set the CYPRESS_MAILSLURP_API_KEY environment variable to your MailSlurp API Key to use the MailSlurp Cypress plugin. Create a free account at https://app.mailslurp.com/sign-up/");var i=new r.MailSlurp({apiKey:a});e.Commands.add("mailslurp",(function(){return Promise.resolve(i)}))}(Cypress); | ||
"use strict";var r=require("mailslurp-client");!function(e){var a=e.env("MAILSLURP_API_KEY");if(!a)throw new Error("Error no MailSlurp API Key. Please set the CYPRESS_MAILSLURP_API_KEY environment variable to your MailSlurp API Key to use the MailSlurp Cypress plugin. Create a free account at https://app.mailslurp.com/sign-up/");var s=new r.MailSlurp({apiKey:a,basePath:"https://cypress.api.mailslurp.com"});e.Commands.add("mailslurp",(function(){return Promise.resolve(s)}))}(Cypress); | ||
//# sourceMappingURL=cypress-mailslurp.cjs.production.min.js.map |
@@ -15,3 +15,4 @@ import { MailSlurp } from 'mailslurp-client'; | ||
var mailslurp = new MailSlurp({ | ||
apiKey: apiKey | ||
apiKey: apiKey, | ||
basePath: 'https://cypress.api.mailslurp.com' | ||
}); | ||
@@ -18,0 +19,0 @@ Cypress.Commands.add('mailslurp', function () { |
@@ -5,3 +5,3 @@ { | ||
"description": "Cypress email plugin for MailSlurp. Create test email accounts to send and receive emails in Cypress tests", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
@@ -44,4 +44,4 @@ "main": "dist/index.js", | ||
"isomorphic-fetch": "^3.0.0", | ||
"mailslurp-client": "^15.0.1" | ||
"mailslurp-client": "^15.9.0" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # MailSlurp Cypress Plugin | ||
See the [example project](https://github.com/mailslurp/examples/tree/master/javascript-cypress-mailslurp-plugin) for setup help. | ||
See the [example project](https://github.com/mailslurp/examples/tree/master/javascript-cypress-mailslurp-plugin) for setup help. Or run the example integration tests with `CYPRESS_MAILSLURP_API_KEY=your-api-key npm run cypress`. | ||
@@ -207,1 +207,3 @@ ## Setup | ||
### More examples | ||
See the [Cypress example test suite](https://github.com/mailslurp/cypress-mailslurp/tree/master/cypress) for real tests that use this plugin. |
@@ -15,3 +15,3 @@ /// <reference types="./"> | ||
// create instance | ||
const mailslurp = new MailSlurp({ apiKey }); | ||
const mailslurp = new MailSlurp({ apiKey, basePath: 'https://cypress.api.mailslurp.com' }); | ||
Cypress.Commands.add('mailslurp', () => { | ||
@@ -18,0 +18,0 @@ return Promise.resolve(mailslurp); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
19018
83
208
Updatedmailslurp-client@^15.9.0