Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1 Release #76

Merged
merged 9 commits into from
Sep 14, 2020
Merged

v2.1 Release #76

merged 9 commits into from
Sep 14, 2020

Conversation

mrWh1te
Copy link
Owner

@mrWh1te mrWh1te commented Sep 10, 2020

- not needed, but reads better
@mrWh1te mrWh1te added the npm Packaging, Releases, Dist related label Sep 10, 2020
@codecov
Copy link

codecov bot commented Sep 10, 2020

Codecov Report

Merging #76 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #76   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines          633       633           
  Branches       165       166    +1     
=========================================
  Hits           633       633           
Impacted Files Coverage Δ
src/botmation/actions/assembly-lines.ts 100.00% <ø> (ø)
src/botmation/actions/pipe.ts 100.00% <ø> (ø)
src/botmation/actions/scrapers.ts 100.00% <ø> (ø)
src/botmation/actions/cookies.ts 100.00% <100.00%> (ø)
src/botmation/actions/navigation.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e968078...c3fc2db. Read the comment docs.

@mrWh1te mrWh1te added this to the v2.1 milestone Sep 10, 2020
- 2nd param is optional will fallback value 2500 (2.5seconds)
- linkedin differntiates between posts and articles by a single user, so
  what the function has been targetting is actually user posts, not user
  articles
- while working on docs, making small improvements
- 2 new botaction types
- slight copy polish
- includes scrapers and abort botactions
- includes new helpers
- tested locally with separate project against /dist
@mrWh1te
Copy link
Owner Author

mrWh1te commented Sep 14, 2020

tested locally in a separate project against the ./dist npm package built with this code:

import puppeteer from 'puppeteer'
import { pipe, $, goTo, map, log } from 'botmation'

(async() => {
  
  let browser: puppeteer.Browser

  browser = await puppeteer.launch({headless: false})
  const pages = await browser.pages()
  const page = pages.length === 0 ? await browser.newPage() : pages[0]

  await pipe()(
    goTo('https://google.com'),
    $('title'),
    map(cheerioEl => cheerioEl('title').text()),
    log('Webpage Title')
  )(page)
})()

Console:
{ test10 } » tsc
{ test10 } » node . /cygdrive/c/Users/michael/Projects/test10
Log: Webpage Title

  • pipe: Google

- might ignore webpack build from code analysis
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mrWh1te mrWh1te merged commit 8b5e342 into master Sep 14, 2020
@mrWh1te mrWh1te deleted the 2-1release branch September 14, 2020 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Packaging, Releases, Dist related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant