cypress-playwright-data-gen 1.0.2 → 1.0.4
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 +0 -1
- package/dist/index.js +5 -1
- package/package.json +11 -9
- package/src/index.ts +6 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -14,5 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
|
17
|
+
// Safely export Cypress commands only if Cypress is available
|
18
|
+
if (typeof globalThis.Cypress !== "undefined") {
|
19
|
+
require("./cypress/commands");
|
20
|
+
}
|
21
|
+
// Always export Playwright utilities
|
18
22
|
__exportStar(require("./playwright/utils"), exports);
|
package/package.json
CHANGED
@@ -1,32 +1,34 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress-playwright-data-gen",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.4",
|
4
4
|
"description": "A simple Cypress & Playwright plugin for generating realistic test data using Faker.js.",
|
5
|
-
"main": "
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
6
7
|
"exports": {
|
7
8
|
".": {
|
8
9
|
"import": "./dist/index.js",
|
9
10
|
"require": "./dist/index.js"
|
10
11
|
},
|
11
|
-
"./cypress
|
12
|
+
"./cypress": {
|
12
13
|
"import": "./dist/cypress/commands.js",
|
13
14
|
"require": "./dist/cypress/commands.js"
|
14
15
|
},
|
15
|
-
"./playwright
|
16
|
+
"./playwright": {
|
16
17
|
"import": "./dist/playwright/utils.js",
|
17
18
|
"require": "./dist/playwright/utils.js"
|
18
19
|
}
|
19
20
|
},
|
20
21
|
"scripts": {
|
21
|
-
"
|
22
|
-
"
|
22
|
+
"build": "tsc",
|
23
|
+
"prepare": "npm run build"
|
23
24
|
},
|
24
25
|
"keywords": [
|
25
26
|
"cypress",
|
26
27
|
"playwright",
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
28
|
+
"faker",
|
29
|
+
"test-data",
|
30
|
+
"automation",
|
31
|
+
"qa"
|
30
32
|
],
|
31
33
|
"author": "Goodness Okoye",
|
32
34
|
"license": "MIT",
|
package/src/index.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
|
1
|
+
// Safely export Cypress commands only if Cypress is available
|
2
|
+
if (typeof globalThis.Cypress !== "undefined") {
|
3
|
+
require("./cypress/commands");
|
4
|
+
}
|
4
5
|
|
6
|
+
// Always export Playwright utilities
|
7
|
+
export * from "./playwright/utils";
|