@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 CHANGED
@@ -1,58 +1,55 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
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
- return to;
19
- };
20
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
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
- // src/index.ts
32
- var index_exports = {};
33
- __export(index_exports, {
34
- augmentBrowser: () => import_playwright_base3.augmentBrowser,
35
- augmentBrowserContext: () => import_playwright_base3.augmentBrowserContext,
36
- augmentLocator: () => import_playwright_base3.augmentLocator,
37
- augmentPage: () => import_playwright_base3.augmentPage,
38
- setApiKey: () => import_playwright_base3.setApiKey
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
- module.exports = __toCommonJS(index_exports);
41
- var import_playwright_base = require("@stablyai/playwright-base");
42
- var playwright = __toESM(require("@playwright/test"));
43
- var import_playwright_base2 = require("@stablyai/playwright-base");
44
- var import_playwright_base3 = require("@stablyai/playwright-base");
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
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAO;AACP,iBAA4B;AAC5B,IAAAA,0BAAmC;AAMnC,IAAAA,0BAMO;AACP,0BAAc,6BAfd;AAAA,IAIA,4CAA8B,mBAAQ;AAAA,IACtC,4CAA8B,kBAAO;AAAA,IACrC,4CAA8B,iBAAM;","names":["import_playwright_base"]}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import "@stablyai/playwright-base";
2
+ export { augmentBrowser, augmentBrowserContext, augmentLocator, augmentPage, setApiKey } from '@stablyai/playwright-base';
3
+ export * from '@playwright/test';
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sources":[],"mappings":";","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
1
  import "@stablyai/playwright-base";
2
2
  export { augmentBrowser, augmentBrowserContext, augmentLocator, augmentPage, setApiKey } from '@stablyai/playwright-base';
3
3
  export * from '@playwright/test';
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sources":[],"mappings":";","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import "@stablyai/playwright-base";
2
2
  export { augmentBrowser, augmentBrowserContext, augmentLocator, augmentPage, setApiKey } from '@stablyai/playwright-base';
3
3
  export * from '@playwright/test';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sources":[],"mappings":";","names":[]}
package/dist/index.mjs CHANGED
@@ -1,23 +1,9 @@
1
- // src/index.ts
2
- import "@stablyai/playwright-base";
3
- import * as playwright from "@playwright/test";
4
- import { augmentBrowserType } from "@stablyai/playwright-base";
5
- import {
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
- export {
17
- augmentBrowser,
18
- augmentBrowserContext,
19
- augmentLocator,
20
- augmentPage,
21
- setApiKey
22
- };
23
- //# sourceMappingURL=index.mjs.map
9
+ //# sourceMappingURL=index.mjs.map
@@ -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":";AAAA,OAAO;AACP,YAAY,gBAAgB;AAC5B,SAAS,0BAA0B;AAMnC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,cAAc;AAXd,mBAA8B,mBAAQ;AACtC,mBAA8B,kBAAO;AACrC,mBAA8B,iBAAM;","names":[]}
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-rc.1",
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.ts",
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-rc.1"
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": "tsup"
30
+ "build": "pkgroll --clean-dist --sourcemap --target=node20 && node ../../scripts/add-dts-banner.mjs"
31
31
  }
32
32
  }