Skip to content

Commit

Permalink
Configuring for NPM publish - Third time is a charm
Browse files Browse the repository at this point in the history
  • Loading branch information
Menighin committed Jan 13, 2020
1 parent 8b4b6d1 commit 668e569
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ deploy:
provider: npm
email: joao.menighin@gmail.com
api_key: "$NPM_TOKEN"
edge: true
on:
tags: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cei-crawler",
"version": "1.0.0",
"version": "0.1.0",
"description": "Crawler para pegar dados do Canal Eletronico do Investidor",
"main": "src/app.js",
"scripts": {
Expand Down
5 changes: 0 additions & 5 deletions src/lib/StockHistoryCrawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class StockHistoryCrawler {
*/
static async getStockHistory(page, startDate = null, endDate = null) {

console.log('history')

const result = [];

// Navigate to stocks page
Expand All @@ -62,8 +60,6 @@ class StockHistoryCrawler {
await page.evaluate((selector) => { document.querySelector(selector).value = '' }, PAGE.END_DATE_INPUT);
await page.type(PAGE.END_DATE_INPUT, getDateForInput(endDate));
}
console.log('history 2')


// Get all institutions to iterate
/* istanbul ignore next */
Expand All @@ -73,7 +69,6 @@ class StockHistoryCrawler {
.filter(v => v.value > 0);
}, PAGE.SELECT_INSTITUTION_OPTIONS);
const institutions = await institutionsHandle.jsonValue();
console.log('history 3')

// Iterate over institutions, accounts, processing the stocks
let cachedAccount = ''; // Used to wait for page to load
Expand Down

0 comments on commit 668e569

Please sign in to comment.