@thetypefounders/continue-with-google 1.4.0 → 1.4.2

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.js CHANGED
@@ -51,7 +51,7 @@ export async function authenticate(page, email, password, secret, selector, opti
51
51
  return await page.$(selector);
52
52
  }
53
53
  async function saveImage(data) {
54
- const timestamp = new Date(Date.now()).toISOString().replace(':', '-');
54
+ const timestamp = new Date(Date.now()).toISOString().replaceAll(':', '-');
55
55
  const path = `continue-with-google-${timestamp}.png`;
56
56
  const buffer = Buffer.from(data, 'base64');
57
57
  await writeFile(path, buffer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thetypefounders/continue-with-google",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Ivan Ukhov <ivan.ukhov@gmail.com>",
6
6
  "description": "Two-factor authentication with Google via Puppeteer",
package/src/index.ts CHANGED
@@ -93,7 +93,7 @@ export async function authenticate(
93
93
  }
94
94
 
95
95
  async function saveImage(data: string): Promise<void> {
96
- const timestamp = new Date(Date.now()).toISOString().replace(':', '-');
96
+ const timestamp = new Date(Date.now()).toISOString().replaceAll(':', '-');
97
97
  const path = `continue-with-google-${timestamp}.png`;
98
98
  const buffer = Buffer.from(data, 'base64');
99
99
  await writeFile(path, buffer);