@auxcode/auxta 0.5.2 → 0.5.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": "@auxcode/auxta",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "",
5
5
  "main": "src/AuxTA.ts",
6
6
  "scripts": {
@@ -168,6 +168,11 @@ export class FunctionHelper {
168
168
  await nav;
169
169
  }
170
170
 
171
+ public async closeLastPage(page = puppeteer.defaultPage) {
172
+ const pages = await page.browser().pages();
173
+ await pages[pages.length - 1].close();
174
+ }
175
+
171
176
  //TODO work in progress
172
177
  /*
173
178
  private async microsoftLogin(button: string, email: string, password: string) {