comparadise-utils 1.5.5 → 1.5.6

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/commands.js CHANGED
@@ -1 +1 @@
1
- require('./dist/match-screenshot');
1
+ require('./dist/match-screenshot-command');
@@ -0,0 +1,8 @@
1
+ import { MatchScreenshotArgs } from './match-screenshot';
2
+ declare global {
3
+ namespace Cypress {
4
+ interface Chainable {
5
+ matchScreenshot(args?: MatchScreenshotArgs): Chainable;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const match_screenshot_1 = require("./match-screenshot");
4
+ Cypress.Commands.add('matchScreenshot', { prevSubject: ['optional', 'element', 'window', 'document'] }, match_screenshot_1.matchScreenshot);
@@ -4,10 +4,3 @@ export type MatchScreenshotArgs = {
4
4
  options?: Partial<Cypress.ScreenshotOptions>;
5
5
  };
6
6
  export declare function matchScreenshot(subject: Cypress.JQueryWithSelector | Window | Document | void, args?: MatchScreenshotArgs): void;
7
- declare global {
8
- namespace Cypress {
9
- interface Chainable {
10
- matchScreenshot(args?: MatchScreenshotArgs): Chainable;
11
- }
12
- }
13
- }
@@ -72,4 +72,3 @@ function matchScreenshot(subject, args) {
72
72
  });
73
73
  }
74
74
  exports.matchScreenshot = matchScreenshot;
75
- Cypress.Commands.add('matchScreenshot', { prevSubject: ['optional', 'element', 'window', 'document'] }, matchScreenshot);
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "scripts": {
29
29
  "build": "tsc",
30
- "postbuild": "echo \"require('./dist/match-screenshot');\" > commands.js"
30
+ "postbuild": "echo \"require('./dist/match-screenshot-command');\" > commands.js"
31
31
  },
32
- "version": "1.5.5"
32
+ "version": "1.5.6"
33
33
  }