pomwright 0.0.4 → 0.0.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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "biomejs.biome"
4
+ ]
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "editor.defaultFormatter": "biomejs.biome"
3
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # pomwright
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 8c2af7d: fix: ensure base fixture log follows playwright's api
8
+
9
+ ## 0.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 0c96ab7: Add Biome for linting and formatting
14
+ - 0c96ab7: Move indices with default value to the end of arguments for buildNestedLocator
15
+
3
16
  ## 0.0.4
4
17
 
5
18
  ### Patch Changes
package/biome.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
3
+ "organizeImports": {
4
+ "enabled": true
5
+ },
6
+ "linter": {
7
+ "enabled": true,
8
+ "rules": {
9
+ "recommended": true
10
+ }
11
+ },
12
+ "formatter": {
13
+ "formatWithErrors": true
14
+ }
15
+ }
package/dist/index.d.mts CHANGED
@@ -304,9 +304,7 @@ declare class GetLocatorBase<LocatorSchemaPathType extends string> {
304
304
  */
305
305
  private logError;
306
306
  private deepMerge;
307
- protected buildNestedLocator: (locatorSchemaPath: LocatorSchemaPathType, indices: {
308
- [key: number]: number | null;
309
- } | undefined, schemasMap: Map<string, LocatorSchema>) => Promise<Locator>;
307
+ protected buildNestedLocator: (locatorSchemaPath: LocatorSchemaPathType, schemasMap: Map<string, LocatorSchema>, indices?: Record<number, number>) => Promise<Locator>;
310
308
  private evaluateCurrentLocator;
311
309
  /**
312
310
  * Evaluates the Playwright locator, checking if it resolves to any elements, and retrieves element attributes.
package/dist/index.d.ts CHANGED
@@ -304,9 +304,7 @@ declare class GetLocatorBase<LocatorSchemaPathType extends string> {
304
304
  */
305
305
  private logError;
306
306
  private deepMerge;
307
- protected buildNestedLocator: (locatorSchemaPath: LocatorSchemaPathType, indices: {
308
- [key: number]: number | null;
309
- } | undefined, schemasMap: Map<string, LocatorSchema>) => Promise<Locator>;
307
+ protected buildNestedLocator: (locatorSchemaPath: LocatorSchemaPathType, schemasMap: Map<string, LocatorSchema>, indices?: Record<number, number>) => Promise<Locator>;
310
308
  private evaluateCurrentLocator;
311
309
  /**
312
310
  * Evaluates the Playwright locator, checking if it resolves to any elements, and retrieves element attributes.