0.0.4 • Published 7 months ago

piercepdbrowsers v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

@pipedream/browsers package

This package abstracts the exact version pinning required for puppeteer & playwright to function properly in Pipedream code steps.

The index.mjs file reexports the specific pinned versions of puppeeter-core & playwright that are compatible with the same chromium version that is compatible with Lambda.

The reason this package is required is because NPM package versions can't be pinned in both playwright.app.mjs as an in-JS pin and pin over the playwright/package.json.

Therefore, it's not possible to offer both the pinned versions of chromium & playwright in both pre-built actions & in Node.js code steps.

Usage

import { puppeteer } from '@pipedream/browsers';

export default defineComponent({
  async run({steps, $}) {
    const browser = await puppeteer.methods.browser();
    
    console.log(browser)
    // get page, perform actions, etc.

    await browser.close();
  },
})

Additional Resources

The reason why playwright is locked to an old version is because the latest Puppeeter Chromium version that works in a code step is chromium@112.

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago