proxymail-qa 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -110,6 +110,7 @@ export interface WaitOptions {
110
110
  timeout?: number;
111
111
  service?: string;
112
112
  since?: Date | string;
113
+ unused?: boolean;
113
114
  }
114
115
  export type LinkType = 'verify' | 'magic_signin' | 'invite' | 'reset' | 'any';
115
116
  export interface EmailSummary {
package/dist/index.js CHANGED
@@ -254,6 +254,8 @@ export class ProxyMailQA {
254
254
  query.set('type', type);
255
255
  if (app !== undefined)
256
256
  query.set('app', String(app));
257
+ if (options.unused)
258
+ query.set('unused', 'true');
257
259
  const more = Date.now() + left * 1000 < deadline - 500;
258
260
  try {
259
261
  return await this.request('GET', `/addresses/${encodeURIComponent(address)}/${kind}?${query}`, undefined, more);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proxymail-qa",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Disposable test inboxes for Playwright, Cypress and scripts: create an address, then wait for its verification code or link.",
5
5
  "license": "MIT",
6
6
  "author": "Proxy Mail QA <hello@proxymail.qa> (https://proxymail.qa)",