@stablyai/playwright 2.0.12-rc.1 → 2.0.12
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.cjs +51 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +6 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,58 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var playwrightBase = require('@stablyai/playwright-base');
|
|
4
|
+
var playwright = require('@playwright/test');
|
|
5
|
+
|
|
6
|
+
function _interopNamespaceDefault(e) {
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var playwright__namespace = /*#__PURE__*/_interopNamespaceDefault(playwright);
|
|
24
|
+
|
|
25
|
+
playwrightBase.augmentBrowserType(playwright__namespace.chromium);
|
|
26
|
+
playwrightBase.augmentBrowserType(playwright__namespace.firefox);
|
|
27
|
+
playwrightBase.augmentBrowserType(playwright__namespace.webkit);
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
Object.defineProperty(exports, "augmentBrowser", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return playwrightBase.augmentBrowser; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "augmentBrowserContext", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return playwrightBase.augmentBrowserContext; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "augmentLocator", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return playwrightBase.augmentLocator; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "augmentPage", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return playwrightBase.augmentPage; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "setApiKey", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return playwrightBase.setApiKey; }
|
|
39
48
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
__reExport(index_exports, require("@playwright/test"), module.exports);
|
|
46
|
-
(0, import_playwright_base2.augmentBrowserType)(playwright.chromium);
|
|
47
|
-
(0, import_playwright_base2.augmentBrowserType)(playwright.firefox);
|
|
48
|
-
(0, import_playwright_base2.augmentBrowserType)(playwright.webkit);
|
|
49
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
-
0 && (module.exports = {
|
|
51
|
-
augmentBrowser,
|
|
52
|
-
augmentBrowserContext,
|
|
53
|
-
augmentLocator,
|
|
54
|
-
augmentPage,
|
|
55
|
-
setApiKey,
|
|
56
|
-
...require("@playwright/test")
|
|
49
|
+
Object.keys(playwright).forEach(function (k) {
|
|
50
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return playwright[k]; }
|
|
53
|
+
});
|
|
57
54
|
});
|
|
58
|
-
//# sourceMappingURL=index.cjs.map
|
|
55
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@playwright/test\";\nimport { augmentBrowserType } from \"@stablyai/playwright-base\";\n\naugmentBrowserType(playwright.chromium);\naugmentBrowserType(playwright.firefox);\naugmentBrowserType(playwright.webkit);\n\nexport {\n augmentBrowser,\n augmentBrowserContext,\n augmentLocator,\n augmentPage,\n setApiKey,\n} from \"@stablyai/playwright-base\";\nexport * from \"@playwright/test\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@playwright/test\";\nimport { augmentBrowserType } from \"@stablyai/playwright-base\";\n\naugmentBrowserType(playwright.chromium);\naugmentBrowserType(playwright.firefox);\naugmentBrowserType(playwright.webkit);\n\nexport {\n augmentBrowser,\n augmentBrowserContext,\n augmentLocator,\n augmentPage,\n setApiKey,\n} from \"@stablyai/playwright-base\";\nexport * from \"@playwright/test\";\n"],"names":["augmentBrowserType","playwright"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAIAA,iCAAA,CAAmBC,sBAAW,QAAQ,CAAA;AACtCD,iCAAA,CAAmBC,sBAAW,OAAO,CAAA;AACrCD,iCAAA,CAAmBC,sBAAW,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sources":[],"mappings":";","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sources":[],"mappings":";","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":[],"mappings":";","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as playwright from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
augmentBrowser,
|
|
7
|
-
augmentBrowserContext,
|
|
8
|
-
augmentLocator,
|
|
9
|
-
augmentPage,
|
|
10
|
-
setApiKey
|
|
11
|
-
} from "@stablyai/playwright-base";
|
|
12
|
-
export * from "@playwright/test";
|
|
1
|
+
import { augmentBrowserType } from '@stablyai/playwright-base';
|
|
2
|
+
export { augmentBrowser, augmentBrowserContext, augmentLocator, augmentPage, setApiKey } from '@stablyai/playwright-base';
|
|
3
|
+
import * as playwright from '@playwright/test';
|
|
4
|
+
export * from '@playwright/test';
|
|
5
|
+
|
|
13
6
|
augmentBrowserType(playwright.chromium);
|
|
14
7
|
augmentBrowserType(playwright.firefox);
|
|
15
8
|
augmentBrowserType(playwright.webkit);
|
|
16
|
-
|
|
17
|
-
augmentBrowser,
|
|
18
|
-
augmentBrowserContext,
|
|
19
|
-
augmentLocator,
|
|
20
|
-
augmentPage,
|
|
21
|
-
setApiKey
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.mjs.map
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@playwright/test\";\nimport { augmentBrowserType } from \"@stablyai/playwright-base\";\n\naugmentBrowserType(playwright.chromium);\naugmentBrowserType(playwright.firefox);\naugmentBrowserType(playwright.webkit);\n\nexport {\n augmentBrowser,\n augmentBrowserContext,\n augmentLocator,\n augmentPage,\n setApiKey,\n} from \"@stablyai/playwright-base\";\nexport * from \"@playwright/test\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@playwright/test\";\nimport { augmentBrowserType } from \"@stablyai/playwright-base\";\n\naugmentBrowserType(playwright.chromium);\naugmentBrowserType(playwright.firefox);\naugmentBrowserType(playwright.webkit);\n\nexport {\n augmentBrowser,\n augmentBrowserContext,\n augmentLocator,\n augmentPage,\n setApiKey,\n} from \"@stablyai/playwright-base\";\nexport * from \"@playwright/test\";\n"],"names":[],"mappings":";;;;;AAIA,kBAAA,CAAmB,WAAW,QAAQ,CAAA;AACtC,kBAAA,CAAmB,WAAW,OAAO,CAAA;AACrC,kBAAA,CAAmB,WAAW,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stablyai/playwright",
|
|
3
|
-
"version": "2.0.12
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Drop-in Playwright replacement with Stably augmentations",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": {
|
|
10
|
-
"types": "./dist/index.d.
|
|
10
|
+
"types": "./dist/index.d.mts",
|
|
11
11
|
"default": "./dist/index.mjs"
|
|
12
12
|
},
|
|
13
13
|
"require": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@stablyai/playwright-base": "2.0.12
|
|
24
|
+
"@stablyai/playwright-base": "2.0.12"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@playwright/test": "^1.52.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"build": "
|
|
30
|
+
"build": "pkgroll --clean-dist --sourcemap --target=node20 && node ../../scripts/add-dts-banner.mjs"
|
|
31
31
|
}
|
|
32
32
|
}
|