@stablyai/playwright 0.1.0 → 0.1.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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +5 -5
- package/tsconfig.json +15 -5
- package/tsup.config.ts +7 -7
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -39,10 +39,10 @@ __export(index_exports, {
|
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(index_exports);
|
|
41
41
|
var import_playwright_base = require("@stablyai/playwright-base");
|
|
42
|
-
var playwright = __toESM(require("playwright"));
|
|
42
|
+
var playwright = __toESM(require("@stablyai/internal-playwright-test"));
|
|
43
43
|
var import_playwright_base2 = require("@stablyai/playwright-base");
|
|
44
44
|
var import_playwright_base3 = require("@stablyai/playwright-base");
|
|
45
|
-
__reExport(index_exports, require("playwright"), module.exports);
|
|
45
|
+
__reExport(index_exports, require("@stablyai/internal-playwright-test"), module.exports);
|
|
46
46
|
(0, import_playwright_base2.augmentBrowserType)(playwright.chromium);
|
|
47
47
|
(0, import_playwright_base2.augmentBrowserType)(playwright.firefox);
|
|
48
48
|
(0, import_playwright_base2.augmentBrowserType)(playwright.webkit);
|
|
@@ -53,6 +53,6 @@ __reExport(index_exports, require("playwright"), module.exports);
|
|
|
53
53
|
augmentLocator,
|
|
54
54
|
augmentPage,
|
|
55
55
|
setApiKey,
|
|
56
|
-
...require("playwright")
|
|
56
|
+
...require("@stablyai/internal-playwright-test")
|
|
57
57
|
});
|
|
58
58
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@stablyai/internal-playwright-test\";\n\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 \"@stablyai/internal-playwright-test\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAO;AACP,iBAA4B;AAE5B,IAAAA,0BAAmC;AAMnC,IAAAA,0BAMO;AACP,0BAAc,+CAhBd;AAAA,IAKA,4CAA8B,mBAAQ;AAAA,IACtC,4CAA8B,kBAAO;AAAA,IACrC,4CAA8B,iBAAM;","names":["import_playwright_base"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import "@stablyai/playwright-base";
|
|
3
|
-
import * as playwright from "playwright";
|
|
3
|
+
import * as playwright from "@stablyai/internal-playwright-test";
|
|
4
4
|
import { augmentBrowserType } from "@stablyai/playwright-base";
|
|
5
5
|
import {
|
|
6
6
|
augmentBrowser,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
augmentPage,
|
|
10
10
|
setApiKey
|
|
11
11
|
} from "@stablyai/playwright-base";
|
|
12
|
-
export * from "playwright";
|
|
12
|
+
export * from "@stablyai/internal-playwright-test";
|
|
13
13
|
augmentBrowserType(playwright.chromium);
|
|
14
14
|
augmentBrowserType(playwright.firefox);
|
|
15
15
|
augmentBrowserType(playwright.webkit);
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"@stablyai/playwright-base\";\nimport * as playwright from \"@stablyai/internal-playwright-test\";\n\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 \"@stablyai/internal-playwright-test\";\n"],"mappings":";AAAA,OAAO;AACP,YAAY,gBAAgB;AAE5B,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":[]}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stablyai/playwright",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Drop-in Playwright replacement with Stably augmentations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
+
"@stablyai/internal-playwright-test": "^0.1.1",
|
|
8
9
|
"@stablyai/playwright-base": "^0.1.0"
|
|
9
10
|
},
|
|
10
11
|
"devDependencies": {
|
|
11
12
|
"tsup": "^8.5.0"
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
|
14
|
-
"
|
|
15
|
-
"zod": "^3.0.0"
|
|
15
|
+
"zod": "^3.25.0 || ^4.0.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "pnpm exec tsup --config tsup.config.ts"
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as playwright from
|
|
1
|
+
import "@stablyai/playwright-base";
|
|
2
|
+
import * as playwright from "@stablyai/internal-playwright-test";
|
|
3
3
|
|
|
4
|
-
import { augmentBrowserType } from
|
|
4
|
+
import { augmentBrowserType } from "@stablyai/playwright-base";
|
|
5
5
|
|
|
6
6
|
augmentBrowserType(playwright.chromium);
|
|
7
7
|
augmentBrowserType(playwright.firefox);
|
|
@@ -13,5 +13,5 @@ export {
|
|
|
13
13
|
augmentLocator,
|
|
14
14
|
augmentPage,
|
|
15
15
|
setApiKey,
|
|
16
|
-
} from
|
|
17
|
-
export * from
|
|
16
|
+
} from "@stablyai/playwright-base";
|
|
17
|
+
export * from "@stablyai/internal-playwright-test";
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "
|
|
2
|
+
"extends": "@tsconfig/node18/tsconfig.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"outDir": "./dist",
|
|
4
6
|
"rootDir": "src",
|
|
5
|
-
"
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"baseUrl": ".",
|
|
13
|
+
"paths": {
|
|
14
|
+
"~/*": ["src/*"]
|
|
15
|
+
}
|
|
6
16
|
},
|
|
7
|
-
"include": ["src"],
|
|
8
|
-
"exclude": ["
|
|
9
|
-
}
|
|
17
|
+
"include": ["src/**/*"],
|
|
18
|
+
"exclude": ["node_modules", "dist"]
|
|
19
|
+
}
|
package/tsup.config.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
1
|
+
import { defineConfig } from "tsup";
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
entry: [
|
|
5
|
-
format: [
|
|
4
|
+
entry: ["src/index.ts"],
|
|
5
|
+
format: ["cjs", "esm"],
|
|
6
6
|
splitting: false,
|
|
7
7
|
sourcemap: true,
|
|
8
8
|
clean: true,
|
|
9
9
|
dts: {
|
|
10
10
|
banner: 'import "@stablyai/playwright-base";',
|
|
11
11
|
},
|
|
12
|
-
target:
|
|
13
|
-
outDir:
|
|
14
|
-
platform:
|
|
15
|
-
external: [
|
|
12
|
+
target: "es2019",
|
|
13
|
+
outDir: "dist",
|
|
14
|
+
platform: "node",
|
|
15
|
+
external: ["playwright", "@stablyai/playwright-base"],
|
|
16
16
|
});
|