Skip to content

Commit

Permalink
chore(release): set package.json to 1.3.4 [skip ci]
Browse files Browse the repository at this point in the history
## [1.3.4](v1.3.3...v1.3.4) (2021-10-29)

### Bug Fixes

* **documentation:** updated readme and examples ([7d2fca9](7d2fca9))
  • Loading branch information
semantic-release-bot committed Oct 29, 2021
1 parent 7d2fca9 commit a02d019
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
## [1.3.3](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.3.2...v1.3.3) (2021-10-29)
## [1.3.4](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.3.3...v1.3.4) (2021-10-29)


### Bug Fixes

* **documentation:** updated readme and examples ([7d2fca9](https://github.com/devalexanderdaza/puppeteer-extends/commit/7d2fca94c421b217502ec282f41bc22d77f581a9))

## [1.3.3](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.3.2...v1.3.3) (2021-10-29)

### Bug Fixes

* **release:** bump package and npmignore implemented ([181dfeb](https://github.com/devalexanderdaza/puppeteer-extends/commit/181dfeb5bd90cf4ecadc7a00c9d3d3f75721d5d0))
- **release:** bump package and npmignore implemented ([181dfeb](https://github.com/devalexanderdaza/puppeteer-extends/commit/181dfeb5bd90cf4ecadc7a00c9d3d3f75721d5d0))

## [1.3.2](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.3.1...v1.3.2) (2021-10-29)

Expand Down
6 changes: 6 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ <h2>Install</h2>
<a href="#use" id="use" style="color: inherit; text-decoration: none;">
<h2>Use</h2>
</a>
<pre><code class="language-javascript"><span class="hl-4">const</span><span class="hl-1"> { </span><span class="hl-6">PuppeteerExtends</span><span class="hl-1">, </span><span class="hl-6">Logger</span><span class="hl-1"> } = </span><span class="hl-5">require</span><span class="hl-1">(</span><span class="hl-3">&quot;puppeteer-extends&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">main</span><span class="hl-1"> = </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">browser</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">PuppeteerExtends</span><span class="hl-1">.</span><span class="hl-5">getBrowser</span><span class="hl-1">({ </span><span class="hl-2">isHeadless:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-2">browser</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">page</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">browser</span><span class="hl-1">.</span><span class="hl-5">newPage</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-7">// * An example of crawling a page with CloudFlare applied.</span><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Crawling in progress...&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">url</span><span class="hl-1"> = </span><span class="hl-3">&quot;https://github.com/devalexanderdaza&quot;</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">PuppeteerExtends</span><span class="hl-1">.</span><span class="hl-5">goto</span><span class="hl-1">(</span><span class="hl-2">page</span><span class="hl-1">, </span><span class="hl-2">url</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">page</span><span class="hl-1">.</span><span class="hl-5">screenshot</span><span class="hl-1">({ </span><span class="hl-2">path:</span><span class="hl-1"> </span><span class="hl-3">&quot;devalexanderdaza-github-screenshot.png&quot;</span><span class="hl-1"> });</span><br/><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Crawling is complete.&quot;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Exit the Puppeteer...&quot;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">browser</span><span class="hl-1">.</span><span class="hl-5">close</span><span class="hl-1">();</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">};</span><br/><br/><span class="hl-5">main</span><span class="hl-1">().</span><span class="hl-5">then</span><span class="hl-1">((</span><span class="hl-2">r</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> {});</span>
</code></pre>

<a href="#typescript-support" id="typescript-support" style="color: inherit; text-decoration: none;">
<h2>TypeScript support</h2>
</a>
<pre><code class="language-typescript"><span class="hl-0">import</span><span class="hl-1"> { </span><span class="hl-2">PuppeteerExtends</span><span class="hl-1">, </span><span class="hl-2">Logger</span><span class="hl-1"> } </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">&quot;puppeteer-extends&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">main</span><span class="hl-1"> = </span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">browser</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">PuppeteerExtends</span><span class="hl-1">.</span><span class="hl-5">getBrowser</span><span class="hl-1">({ </span><span class="hl-2">isHeadless:</span><span class="hl-1"> </span><span class="hl-4">true</span><span class="hl-1"> });</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (</span><span class="hl-2">browser</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">page</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">browser</span><span class="hl-1">.</span><span class="hl-5">newPage</span><span class="hl-1">();</span><br/><br/><span class="hl-1"> </span><span class="hl-7">// * An example of crawling a page with CloudFlare applied.</span><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Crawling in progress...&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-6">url</span><span class="hl-1"> = </span><span class="hl-3">&quot;https://github.com/devalexanderdaza&quot;</span><span class="hl-1">;</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">PuppeteerExtends</span><span class="hl-1">.</span><span class="hl-5">goto</span><span class="hl-1">(</span><span class="hl-2">page</span><span class="hl-1">, </span><span class="hl-2">url</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">page</span><span class="hl-1">.</span><span class="hl-5">screenshot</span><span class="hl-1">({ </span><span class="hl-2">path:</span><span class="hl-1"> </span><span class="hl-3">&quot;devalexanderdaza-github-screenshot.png&quot;</span><span class="hl-1"> });</span><br/><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Crawling is complete.&quot;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-2">Logger</span><span class="hl-1">.</span><span class="hl-5">debug</span><span class="hl-1">(</span><span class="hl-3">&quot;🚧 Exit the Puppeteer...&quot;</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-2">browser</span><span class="hl-1">.</span><span class="hl-5">close</span><span class="hl-1">();</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">};</span><br/><br/><span class="hl-5">main</span><span class="hl-1">().</span><span class="hl-5">then</span><span class="hl-1">((</span><span class="hl-2">r</span><span class="hl-1">) </span><span class="hl-4">=&gt;</span><span class="hl-1"> {});</span>
</code></pre>
</div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="modules/PuppeteerExtends.html">Puppeteer<wbr/>Extends</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-variable"><a href="modules.html#Logger" class="tsd-kind-icon">Logger</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>
Loading

0 comments on commit a02d019

Please sign in to comment.