@jscutlery/playwright-ct-angular 0.10.1 → 0.10.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jscutlery/playwright-ct-angular",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "dependencies": {
5
5
  "@babel/core": "7.23.9",
6
6
  "@playwright/experimental-ct-core": "1.47.1",
@@ -29,15 +29,13 @@ const apiPolyfills = {
29
29
  }
30
30
  function declare(builder) {
31
31
  return (api, options, dirname) => {
32
- var _clonedApi2;
33
32
  let clonedApi;
34
33
  for (const name of Object.keys(apiPolyfills)) {
35
- var _clonedApi;
36
34
  if (api[name]) continue;
37
- (_clonedApi = clonedApi) != null ? _clonedApi : clonedApi = copyApiObject(api);
35
+ clonedApi != null ? clonedApi : clonedApi = copyApiObject(api);
38
36
  clonedApi[name] = apiPolyfills[name](clonedApi);
39
37
  }
40
- return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname);
38
+ return builder(clonedApi != null ? clonedApi : api, options || {}, dirname);
41
39
  };
42
40
  }
43
41
  lib.declarePreset = declare;
@@ -27,15 +27,13 @@ const apiPolyfills = {
27
27
  }
28
28
  function declare(builder) {
29
29
  return (api, options, dirname) => {
30
- var _clonedApi2;
31
30
  let clonedApi;
32
31
  for (const name of Object.keys(apiPolyfills)) {
33
- var _clonedApi;
34
32
  if (api[name]) continue;
35
- (_clonedApi = clonedApi) != null ? _clonedApi : clonedApi = copyApiObject(api);
33
+ clonedApi != null ? clonedApi : clonedApi = copyApiObject(api);
36
34
  clonedApi[name] = apiPolyfills[name](clonedApi);
37
35
  }
38
- return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname);
36
+ return builder(clonedApi != null ? clonedApi : api, options || {}, dirname);
39
37
  };
40
38
  }
41
39
  lib.declarePreset = declare;