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

Dependabot/npm and yarn/jest puppeteer 10.1.4 #1

Open
wants to merge 261 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
ff58788
Bump eslint from 7.20.0 to 7.21.0
dependabot-preview[bot] Mar 1, 2021
a3b31e8
Merge pull request #13 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Mar 1, 2021
65aa559
[Security] Bump y18n from 4.0.0 to 4.0.1
dependabot-preview[bot] Mar 29, 2021
8790778
Merge pull request #14 from DavideViolante/dependabot/npm_and_yarn/y1…
DavideViolante Mar 29, 2021
c2e74df
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
f14fb56
Merge pull request #15 from DavideViolante/dependabot/add-v2-config-file
DavideViolante Apr 29, 2021
4ebaef3
Bump mocha from 8.3.0 to 8.3.2
dependabot[bot] Apr 29, 2021
7ef6185
Bump eslint from 7.21.0 to 7.25.0
dependabot[bot] Apr 29, 2021
781d66b
Merge pull request #17 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Apr 29, 2021
900c366
Merge pull request #16 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Apr 29, 2021
b414158
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] May 11, 2021
3c4e29d
Merge pull request #18 from DavideViolante/dependabot/npm_and_yarn/lo…
DavideViolante May 11, 2021
818b673
Bump hosted-git-info from 2.8.8 to 2.8.9
dependabot[bot] May 11, 2021
e0f8813
Merge pull request #19 from DavideViolante/dependabot/npm_and_yarn/ho…
DavideViolante May 11, 2021
e7bb116
Bump eslint-plugin-import from 2.22.1 to 2.23.4
dependabot[bot] Jun 1, 2021
e54f7fd
Bump eslint from 7.25.0 to 7.27.0
dependabot[bot] Jun 1, 2021
8cde2cc
Bump mocha from 8.3.2 to 8.4.0
dependabot[bot] Jun 1, 2021
a12a548
Bump eslint-config-standard from 16.0.2 to 16.0.3
dependabot[bot] Jun 1, 2021
13629e7
Merge pull request #23 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jun 1, 2021
84478a4
Merge pull request #21 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jun 1, 2021
6b4e469
Merge pull request #22 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Jun 1, 2021
5c84fd8
Merge pull request #20 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jun 1, 2021
69a8671
Bump glob-parent from 5.1.1 to 5.1.2
dependabot[bot] Jun 11, 2021
57f41f8
Merge pull request #24 from DavideViolante/dependabot/npm_and_yarn/gl…
DavideViolante Jun 14, 2021
5f8427e
Add investing query parameters and +37 currencies support (#25)
gustavomfc Jun 20, 2021
f588de3
Update version
DavideViolante Jun 20, 2021
9a24a38
Bump mocha from 8.4.0 to 9.0.1
dependabot[bot] Jul 1, 2021
1771f33
Merge pull request #26 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Jul 1, 2021
051f879
Update version
DavideViolante Jul 1, 2021
66ea016
Bump mocha from 9.0.1 to 9.0.3
dependabot[bot] Aug 1, 2021
e82b8ec
Bump eslint from 7.29.0 to 7.32.0
dependabot[bot] Aug 1, 2021
5ba9e7b
Merge pull request #28 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Aug 3, 2021
433ee28
Merge pull request #27 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Aug 3, 2021
cb099a6
Bump eslint-plugin-import from 2.23.4 to 2.24.2
dependabot[bot] Sep 1, 2021
c5e2338
Bump mocha from 9.0.3 to 9.1.1
dependabot[bot] Sep 1, 2021
b58b1c9
Merge pull request #30 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Sep 1, 2021
a2eb9dc
Merge pull request #29 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Sep 1, 2021
5282fa9
Bump mocha from 9.1.1 to 9.1.2
dependabot[bot] Oct 1, 2021
16f2a54
Bump axios from 0.21.1 to 0.21.4
dependabot[bot] Oct 1, 2021
7216b2c
Merge pull request #32 from DavideViolante/dependabot/npm_and_yarn/ax…
DavideViolante Oct 1, 2021
a2f0fa2
Merge pull request #31 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Oct 1, 2021
a2a494f
Change from eslint standard to google
DavideViolante Oct 23, 2021
dc6dc6a
Bump ansi-regex from 5.0.0 to 5.0.1
dependabot[bot] Oct 23, 2021
4d9a80f
Merge pull request #33 from DavideViolante/dependabot/npm_and_yarn/an…
DavideViolante Oct 23, 2021
73fceb9
Bump axios from 0.21.4 to 0.24.0
dependabot[bot] Nov 1, 2021
c1a6f99
Merge pull request #34 from DavideViolante/dependabot/npm_and_yarn/ax…
DavideViolante Nov 2, 2021
34a246a
Bump eslint from 8.1.0 to 8.3.0
dependabot[bot] Dec 1, 2021
70c3c36
Merge pull request #35 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Dec 1, 2021
0191a89
Add github action to npm publish
DavideViolante Dec 17, 2021
c57d271
Update deps
DavideViolante Dec 17, 2021
2677727
Add ts typings
DavideViolante Dec 17, 2021
1df3c83
Bump eslint from 8.4.1 to 8.6.0
dependabot[bot] Jan 1, 2022
c431ced
Merge pull request #36 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jan 2, 2022
01578cb
Bump axios from 0.24.0 to 0.25.0
dependabot[bot] Feb 1, 2022
08bda43
Bump mocha from 9.1.3 to 9.2.0
dependabot[bot] Feb 1, 2022
2d0a944
Merge pull request #39 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Feb 1, 2022
7783032
Merge pull request #37 from DavideViolante/dependabot/npm_and_yarn/ax…
DavideViolante Feb 1, 2022
8d0c18e
Bump eslint from 8.6.0 to 8.8.0
dependabot[bot] Feb 1, 2022
d5d47f5
Merge pull request #38 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Feb 1, 2022
8b0f195
Bump follow-redirects from 1.14.7 to 1.14.8
dependabot[bot] Feb 15, 2022
ae9a3c6
Merge pull request #41 from DavideViolante/dependabot/npm_and_yarn/fo…
DavideViolante Feb 15, 2022
29603ec
Bump mocha from 9.2.0 to 9.2.1
dependabot[bot] Mar 1, 2022
9b9050a
Bump axios from 0.25.0 to 0.26.0
dependabot[bot] Mar 1, 2022
c67c5ea
Merge pull request #43 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Mar 1, 2022
deccc41
Merge pull request #44 from DavideViolante/dependabot/npm_and_yarn/ax…
DavideViolante Mar 1, 2022
54e7c01
Bump eslint from 8.8.0 to 8.10.0
dependabot[bot] Mar 1, 2022
ce84af9
Merge pull request #42 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Mar 1, 2022
2b0f300
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
3cb8d88
Merge pull request #45 from DavideViolante/dependabot/npm_and_yarn/mi…
DavideViolante Mar 28, 2022
220873f
Update to v3 due to changes on investing.com
DavideViolante Mar 28, 2022
d6a96ed
Increase timeout
DavideViolante Mar 28, 2022
8e0d60a
Increase mocha timeout
DavideViolante Mar 28, 2022
5eeea12
ADD: add mapping.js gold, silver, platinm and palladium
xyzlast Apr 11, 2022
3cd6876
Add in mapping.js usd/krw
xyzlast Apr 11, 2022
5922e05
fix typescript definition: period, interval to string
xyzlast Apr 11, 2022
af598db
Merge pull request #48 from xyzlast/master
DavideViolante Apr 13, 2022
8c5f305
Add tests for pointscount
DavideViolante Apr 13, 2022
7cd2580
Fix and improve typescript types
DavideViolante Apr 13, 2022
b457579
Update deps and version
DavideViolante Apr 13, 2022
470796f
Update actions to node v16 and actions v3
DavideViolante Apr 13, 2022
e51e71e
Bump axios from 0.26.1 to 0.27.2
dependabot[bot] May 1, 2022
c9e7a78
Bump eslint from 8.13.0 to 8.14.0
dependabot[bot] May 1, 2022
4cfe983
Merge pull request #50 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante May 2, 2022
08cee48
Merge pull request #49 from DavideViolante/dependabot/npm_and_yarn/ax…
DavideViolante May 2, 2022
f8b60dc
Fix test name
DavideViolante May 2, 2022
1388926
Bump mocha from 9.2.2 to 10.0.0
dependabot[bot] Jun 1, 2022
01754e7
Bump eslint from 8.14.0 to 8.16.0
dependabot[bot] Jun 1, 2022
4d858b6
Merge pull request #52 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jun 1, 2022
876a36f
Merge pull request #51 from DavideViolante/dependabot/npm_and_yarn/mo…
DavideViolante Jun 1, 2022
23020ce
Bump eslint from 8.16.0 to 8.18.0
dependabot[bot] Jul 1, 2022
d1c0d76
Merge pull request #53 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jul 1, 2022
cceab48
Mapping London Robusta Coffee Futures
RodPin Jul 6, 2022
f07d728
Merge pull request #55 from RodPin/feature/mapping-london-coffee
DavideViolante Jul 7, 2022
804b32d
Update version
DavideViolante Jul 7, 2022
97bd0e8
Add info about contributing
DavideViolante Jul 7, 2022
3005ce1
Adding some Asian instruments.
vishalguptax Jul 13, 2022
13abeb8
Update mapping.js
DavideViolante Jul 13, 2022
df82961
Apply suggestions from code review
DavideViolante Jul 13, 2022
dff4031
Merge pull request #56 from vishalguptax/patch-1
DavideViolante Jul 13, 2022
ad4f15c
Remove chart text
DavideViolante Jul 14, 2022
5707245
Added missing Indices.
vishalguptax Jul 20, 2022
e000892
Merge pull request #58 from vishalguptax/patch-2
DavideViolante Jul 20, 2022
2dc8fc6
Add more indices and reordering
DavideViolante Jul 20, 2022
25aedf3
Update version
DavideViolante Jul 20, 2022
481fd95
added 1Y through to 30Y Australian bond yields to mapping.js
Jul 25, 2022
73ca237
Merge pull request #59 from yortug/mapping-change-aus-bonds
DavideViolante Jul 25, 2022
a8ebe6a
All contributors are shown in the rightside menu
DavideViolante Jul 25, 2022
6210cd9
Update version
DavideViolante Jul 25, 2022
23eba84
Very simply adding the extra price data into the data object.
Jul 29, 2022
d965313
Fix linting
DavideViolante Jul 30, 2022
f4e6a5a
Merge pull request #61 from yortug/proposed-function-change
DavideViolante Jul 30, 2022
7bcbc8a
Update version
DavideViolante Jul 30, 2022
d4ac9b0
Update readme to show new response values
DavideViolante Aug 3, 2022
cce5568
Bump eslint from 8.20.0 to 8.23.0
dependabot[bot] Sep 1, 2022
f9ce371
Merge pull request #64 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Sep 1, 2022
b78af74
Update version
DavideViolante Sep 1, 2022
16e4813
Add Indian bond rates
playmast3r Sep 8, 2022
e5c2473
Add USD/INR pair
playmast3r Sep 8, 2022
50e5fb9
Merge pull request #66 from playmast3r/patch-2
DavideViolante Sep 14, 2022
51455b8
Update version
DavideViolante Sep 14, 2022
d900a96
Use puppeteer instead of axios to bypass blocks
DavideViolante Sep 21, 2022
6d7cbcc
Force tests exit
DavideViolante Sep 21, 2022
39cf78b
Merge pull request #69 from DavideViolante/pup
DavideViolante Sep 21, 2022
c2c05b7
Use Jest for tests (#72)
DavideViolante Sep 28, 2022
aca3f75
Bump jest from 29.0.3 to 29.1.2
dependabot[bot] Oct 1, 2022
1e514d1
Bump eslint from 8.23.1 to 8.24.0
dependabot[bot] Oct 1, 2022
9731dac
Merge pull request #76 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Oct 2, 2022
8d3cdf3
Merge pull request #75 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Oct 2, 2022
8c6ea8f
Bump puppeteer from 18.0.4 to 18.0.5
dependabot[bot] Oct 2, 2022
8d29e60
Merge pull request #74 from DavideViolante/dependabot/npm_and_yarn/pu…
DavideViolante Oct 2, 2022
a2d5d30
Added US & UK complete yield curves (#77)
veritech Oct 3, 2022
840245e
Update eslintrc
DavideViolante Oct 3, 2022
402ae5a
Update version
DavideViolante Oct 3, 2022
7a93a82
fix return type
dipsx Oct 7, 2022
43cdd69
Merge pull request #78 from dipsx/patch-1
DavideViolante Oct 7, 2022
7d7ebb2
Update version
DavideViolante Oct 7, 2022
6bdfef9
Update mapping.js
deputyuniverse Oct 30, 2022
b7b14cd
Merge pull request #80 from deputyuniverse/add-cds
DavideViolante Oct 31, 2022
ddd281f
Update version and deps
DavideViolante Oct 31, 2022
cbf0bb1
Allow providing pairId directly as input
DavideViolante Nov 9, 2022
a5c4073
Update deps and version
DavideViolante Nov 9, 2022
7086292
Update actions to node v18
DavideViolante Nov 25, 2022
32eaf48
Fix test
DavideViolante Nov 25, 2022
d56cf1f
Update deps and version
DavideViolante Nov 25, 2022
cced962
Bump eslint from 8.28.0 to 8.31.0
dependabot[bot] Jan 1, 2023
24dc260
Bump jest-puppeteer from 6.1.1 to 6.2.0
dependabot[bot] Jan 1, 2023
8c7a4b9
Bump puppeteer from 19.3.0 to 19.4.1
dependabot[bot] Jan 1, 2023
78e5329
Merge pull request #85 from DavideViolante/dependabot/npm_and_yarn/pu…
DavideViolante Jan 2, 2023
0be8505
Merge pull request #84 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Jan 2, 2023
b309d6e
Bump json5 from 2.2.1 to 2.2.3
dependabot[bot] Jan 2, 2023
1e6b695
Merge pull request #83 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Jan 2, 2023
bc7294a
Merge pull request #86 from DavideViolante/dependabot/npm_and_yarn/js…
DavideViolante Jan 2, 2023
abf70fb
Bump puppeteer from 19.4.1 to 19.6.2
dependabot[bot] Feb 1, 2023
7e15d75
Bump eslint from 8.31.0 to 8.33.0
dependabot[bot] Feb 1, 2023
17e27b8
Bump jest from 29.3.1 to 29.4.1
dependabot[bot] Feb 1, 2023
093c670
Merge pull request #89 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Feb 1, 2023
74c0e03
Merge pull request #88 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Feb 1, 2023
a407489
Merge pull request #87 from DavideViolante/dependabot/npm_and_yarn/pu…
DavideViolante Feb 1, 2023
1396e55
Add pptrLaunchOptions, fix #90
DavideViolante Feb 8, 2023
e1e04d5
Bump puppeteer from 19.6.2 to 19.7.2
dependabot[bot] Mar 1, 2023
0f5ec91
Bump jest-puppeteer from 6.2.0 to 7.0.1
dependabot[bot] Mar 1, 2023
c6a24c6
Merge pull request #94 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Mar 1, 2023
7747a0b
Merge pull request #91 from DavideViolante/dependabot/npm_and_yarn/pu…
DavideViolante Mar 1, 2023
683d56b
Bump eslint from 8.33.0 to 8.35.0
dependabot[bot] Mar 1, 2023
a4ad596
Bump jest from 29.4.1 to 29.4.3
dependabot[bot] Mar 1, 2023
fcaa5be
Merge pull request #93 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Mar 1, 2023
891f1b2
Merge pull request #92 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Mar 1, 2023
65dcce0
Bump eslint from 8.35.0 to 8.37.0
dependabot[bot] Apr 1, 2023
63d1f64
Bump jest-puppeteer from 7.0.1 to 8.0.6
dependabot[bot] Apr 1, 2023
970cd8e
Bump puppeteer from 19.7.2 to 19.8.2
dependabot[bot] Apr 1, 2023
a79cbf8
Merge pull request #98 from DavideViolante/dependabot/npm_and_yarn/pu…
DavideViolante Apr 2, 2023
6c0a23c
Merge pull request #97 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Apr 2, 2023
532ed01
Merge pull request #95 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante Apr 2, 2023
72827f5
Bump jest from 29.4.3 to 29.5.0
dependabot[bot] Apr 2, 2023
142212e
Merge pull request #96 from DavideViolante/dependabot/npm_and_yarn/je…
DavideViolante Apr 2, 2023
dfd784d
Fix test
DavideViolante Apr 2, 2023
9d9d136
Update version
DavideViolante Apr 2, 2023
837bb38
Bump eslint from 8.37.0 to 8.39.0
dependabot[bot] May 1, 2023
9aba9cf
Bump puppeteer from 19.8.2 to 19.11.1
dependabot[bot] May 1, 2023
55a2069
Merge pull request #100 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante May 1, 2023
4357d2c
Merge pull request #99 from DavideViolante/dependabot/npm_and_yarn/es…
DavideViolante May 1, 2023
7c76e3b
Bump puppeteer from 19.11.1 to 20.5.0
dependabot[bot] Jun 1, 2023
0847613
Merge pull request #103 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Jun 1, 2023
580a6dc
Bump jest-puppeteer from 8.0.6 to 9.0.0
dependabot[bot] Jun 1, 2023
d2d1e05
Bump eslint from 8.39.0 to 8.41.0
dependabot[bot] Jun 1, 2023
c8cc27f
Merge pull request #101 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Jun 1, 2023
3b2eb5a
Merge pull request #102 from DavideViolante/dependabot/npm_and_yarn/e…
DavideViolante Jun 1, 2023
9b03ed1
Bump puppeteer from 20.5.0 to 20.7.4
dependabot[bot] Jul 1, 2023
26b7ff5
Merge pull request #105 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Jul 1, 2023
3f543f6
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 18, 2023
eeb382e
Merge pull request #106 from DavideViolante/dependabot/npm_and_yarn/w…
DavideViolante Jul 19, 2023
b537f8d
Bump puppeteer from 20.7.4 to 20.9.0
dependabot[bot] Aug 1, 2023
462a2e2
Bump jest from 29.5.0 to 29.6.2
dependabot[bot] Aug 1, 2023
c3447cb
Merge pull request #107 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Aug 1, 2023
268c215
Merge pull request #108 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Aug 1, 2023
d588f0b
Bump jest from 29.6.2 to 29.6.4
dependabot[bot] Sep 1, 2023
c08c38b
Bump puppeteer from 20.9.0 to 21.1.1
dependabot[bot] Sep 1, 2023
dd58d3e
Merge pull request #110 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Sep 1, 2023
b043208
Merge pull request #109 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Sep 1, 2023
7985292
Bump puppeteer from 21.1.1 to 21.3.6
dependabot[bot] Oct 1, 2023
1903702
Bump jest from 29.6.4 to 29.7.0
dependabot[bot] Oct 1, 2023
6ae75b1
Merge pull request #112 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Oct 2, 2023
1284883
Merge pull request #111 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Oct 2, 2023
0e46016
Bump @babel/traverse from 7.23.0 to 7.23.2
dependabot[bot] Oct 19, 2023
1adcfaf
Merge pull request #113 from DavideViolante/dependabot/npm_and_yarn/b…
DavideViolante Oct 19, 2023
38507b8
Bump puppeteer from 21.3.6 to 21.4.1
dependabot[bot] Nov 1, 2023
24685ff
Bump jest-puppeteer from 9.0.0 to 9.0.1
dependabot[bot] Nov 1, 2023
02e3dee
Merge pull request #115 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Nov 1, 2023
93761d6
Merge pull request #114 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Nov 1, 2023
ed1f957
Bump puppeteer from 21.4.1 to 21.5.2
dependabot[bot] Dec 1, 2023
0b9f5be
Merge pull request #116 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Dec 1, 2023
4b4d2f3
Bump axios and wait-on
dependabot[bot] Dec 1, 2023
e0468fc
Merge pull request #117 from DavideViolante/dependabot/npm_and_yarn/a…
DavideViolante Dec 1, 2023
f826fe1
Bump jest-puppeteer from 9.0.1 to 9.0.2
dependabot[bot] Jan 1, 2024
5508c9d
Merge pull request #119 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Jan 1, 2024
cd9a78e
Bump puppeteer from 21.5.2 to 21.6.1
dependabot[bot] Jan 1, 2024
c2515e5
Merge pull request #118 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Jan 1, 2024
fd8f404
Bump puppeteer from 21.6.1 to 21.10.0
dependabot[bot] Feb 1, 2024
4071047
Merge pull request #122 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Feb 1, 2024
e144bf6
Bump ip from 1.1.8 to 1.1.9
dependabot[bot] Feb 20, 2024
28a8449
Merge pull request #123 from DavideViolante/dependabot/npm_and_yarn/i…
DavideViolante Feb 21, 2024
b38e852
Bump jest-puppeteer from 9.0.2 to 10.0.1
dependabot[bot] Mar 1, 2024
c69771a
Merge pull request #125 from DavideViolante/dependabot/npm_and_yarn/j…
DavideViolante Mar 1, 2024
0c6b24a
Bump puppeteer from 21.10.0 to 22.3.0
dependabot[bot] Mar 1, 2024
5443650
Merge pull request #124 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Mar 1, 2024
53ca049
Bump follow-redirects from 1.15.5 to 1.15.6
dependabot[bot] Mar 17, 2024
7194c72
Bump puppeteer from 22.3.0 to 22.6.1
dependabot[bot] Apr 1, 2024
3973d83
Merge pull request #127 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Apr 2, 2024
fc09305
Merge pull request #126 from DavideViolante/dependabot/npm_and_yarn/f…
DavideViolante Apr 2, 2024
416250e
Bump puppeteer from 22.6.1 to 22.7.1
dependabot[bot] May 1, 2024
8d28eac
Merge pull request #128 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante May 1, 2024
5544230
Bump puppeteer from 22.7.1 to 22.10.0
dependabot[bot] Jun 1, 2024
c78b03f
Merge pull request #130 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Jun 1, 2024
6e6d958
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 16, 2024
9275cca
Merge pull request #131 from DavideViolante/dependabot/npm_and_yarn/b…
DavideViolante Jun 17, 2024
14eb7c4
Bump ws and puppeteer
dependabot[bot] Jun 19, 2024
69d067a
Merge pull request #132 from DavideViolante/dependabot/npm_and_yarn/m…
DavideViolante Jun 19, 2024
9c65649
Bump puppeteer from 22.11.2 to 22.12.1
dependabot[bot] Jul 1, 2024
6fa200c
Merge pull request #133 from DavideViolante/dependabot/npm_and_yarn/p…
DavideViolante Jul 1, 2024
dbb24e1
Return jsonContent.data directly, add commented line for testing
DavideViolante Aug 1, 2024
ffa1b6d
Update version
DavideViolante Aug 1, 2024
5535d1f
Update puppeteer dep
DavideViolante Aug 1, 2024
7a6ec45
Rename actions
DavideViolante Aug 1, 2024
5b82f10
Add force exit on jest to prevent github action to hang
DavideViolante Aug 1, 2024
1d0a7e7
Check if json content is protected and is not a json at all
DavideViolante Aug 1, 2024
b90f520
Skip test failing in ci but not locally
DavideViolante Aug 1, 2024
678b742
feat: add volume to response (#142)
liardoecp Oct 22, 2024
1e1f371
chore(deps): update deps and version
DavideViolante Oct 22, 2024
4a8c858
v.4.4.1
liardoecp Nov 30, 2024
49f12e8
Bump jest-puppeteer from 10.1.2 to 10.1.4
dependabot[bot] Nov 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"standard"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
"commonjs": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "google"],
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 12
},
"rules": {
"quote-props": [
"error",
"consistent-as-needed"
]
"max-len": [
"error", 120
],
"object-curly-spacing": [
"error", "always"
],
"space-infix-ops": "error"
}
}
}
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ on:
branches: [ master ]

jobs:
build:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Coveralls

on: ["push", "pull_request"]

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Coverage
run: |
npm ci
npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61 changes: 51 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Investing.com unofficial APIs
![Node.js CI](https://github.com/DavideViolante/investing-com-api/workflows/Node.js%20CI/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/ce48adbd97ff85557918/maintainability)](https://codeclimate.com/github/DavideViolante/investing-com-api/maintainability) [![Donate](https://img.shields.io/badge/paypal-donate-179BD7.svg)](https://www.paypal.me/dviolante)
# Investing.com Unofficial APIs
[![](https://github.com/davideviolante/investing-com-api/workflows/Node.js%20CI/badge.svg)](https://github.com/DavideViolante/investing-com-api/actions?query=workflow%3A"Node.js+CI") [![Coverage Status](https://coveralls.io/repos/github/DavideViolante/investing-com-api/badge.svg?branch=master)](https://coveralls.io/github/DavideViolante/investing-com-api?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/ce48adbd97ff85557918/maintainability)](https://codeclimate.com/github/DavideViolante/investing-com-api/maintainability) ![npm](https://img.shields.io/npm/dm/investing-com-api) [![Donate](https://img.shields.io/badge/paypal-donate-179BD7.svg)](https://www.paypal.me/dviolante)

[![NPM](https://nodei.co/npm/investing-com-api.png)](https://nodei.co/npm/investing-com-api/)

Unofficial APIs for Investing.com website.

Expand All @@ -8,22 +10,61 @@ Unofficial APIs for Investing.com website.

### Example
```js
const { investing } = require('investing-com-api')
const { investing } = require('investing-com-api');

async function main () {
const response = await investing('currencies/eur-usd')
// response = [ { date: Timestamp, value: Number }, {...}, ... ]
async function main() {
try {
const response1 = await investing('currencies/eur-usd'); // Providing a valid mapping.js key
const response2 = await investing('currencies/eur-usd', 'P1M', 'P1D'); // With optional params
const response3 = await investing('1'); // Providing the pairId directly, even if not present in mapping.js
} catch (err) {
console.error(err);
}
}
```

### Available inputs
- [mapping.js](https://github.com/DavideViolante/investing-com-api/blob/master/mapping.js)
### Response
```js
[
{
date: 1659398400000,
value: 1.0157,
price_open: 1.0264,
price_high: 1.0294,
price_low: 1.0155,
price_close: 1.0157,
volume: 10
},
{
date: 1659484800000,
value: 1.0136,
price_open: 1.0158,
price_high: 1.0209,
price_low: 1.0126,
price_close: 1.0136,
volume: 15
},
...
]
```


### Inputs
Only input is required, other params are optional.
- **input** _String_: input string, see [mapping.js](https://github.com/DavideViolante/investing-com-api/blob/master/mapping.js) keys, or provide a valid investing.com pairId. (Required)
- **period** _String_: Period of time, window size. Default P1M (1 month). Valid values: P1D, P1W, P1M, P3M, P6M, P1Y, P5Y, MAX.
- **interval** _Number_: Interval between results. Default P1D (1 day). Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT5H, P1D, P1W, P1M.
- **pointscount** _Number_: number of total results. Valid values seems to be 60, 70 or 120.
- **pptrLaunchOptions** _Any_: Puppeteer launch options, see [official website](https://pptr.dev/api/puppeteer.launchoptions).

### Run tests
- `npm test`
`npm test`

### Run lint
- `npm run lint`
`npm run lint`

### Contribute
PRs are welcome to add more elements to the [mapping.js](https://github.com/DavideViolante/investing-com-api/blob/master/mapping.js) file.

### Author
- [Davide Violante](https://github.com/DavideViolante/)
41 changes: 34 additions & 7 deletions functions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
function mapResponse (array) {
return array.map(item => ({
date: item[0],
value: item[1]
}))
/**
* Map the Investing array response
* @param {Array} array Array of data returned from Investing website
* @return {Array} An array of objects with date and value properties
*/
const mapResponse = (array = []) => array.map((item) => ({
date: item[0],
price_open: item[1],
price_high: item[2],
price_low: item[3],
price_close: item[4],
value: item[4],
volume: item[5],
}));

/**
* Get JSON response from Investing APIs
* @param {*} page puppeteer page
* @return {Object} JSON response from Investing, with data property containing an array of arrays
*/
async function getJsonContent(page) {
// If there is this element, the page cannot be loaded due to CloudFlare protection
// Element: <body class="no-js">
// eslint-disable-next-line no-undef
const bodyClass = await page.evaluate(() => document.querySelector('body').getAttribute('class'));
if (bodyClass === 'no-js') {
throw new Error(`Error: couldn't bypass CloudFlare protection`);
}
// eslint-disable-next-line no-undef
const content = await page.evaluate(() => document.querySelector('body').textContent);
return JSON.parse(content);
}

module.exports = {
mapResponse
}
mapResponse,
getJsonContent,
};
16 changes: 16 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare module "investing-com-api" {
export function investing(
input: string,
period?: 'P1D' | 'P1W' | 'P1M' | 'P3M' | 'P6M' | 'P1Y' | 'P5Y' | 'MAX',
interval?: 'PT1M' | 'PT5M' | 'PT15M' | 'PT30M' | 'PT1H' | 'PT5H' | 'P1D' | 'P1W' | 'P1M',
pointscount?: 60 | 70 | 120,
pptrLaunchOptions?: any,
): Promise<{
date: number,
value: number,
price_open: number,
price_high: number,
price_low: number,
price_close: number,
}[]>;
}
114 changes: 76 additions & 38 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,86 @@
const axios = require('axios')
const { mapping } = require('./mapping')
const { mapResponse } = require('./functions')
const puppeteer = require('puppeteer');
const { mapping } = require('./mapping');
const { getJsonContent, mapResponse } = require('./functions');

function callInvesting (pairId) {
return axios({
method: 'GET',
url: 'https://www.investing.com/common/modules/js_instrument_chart/api/data.php',
params: {
pair_id: pairId,
pair_interval: '86400', // 1 day
chart_type: 'area', // 'area', 'candlestick'
candle_count: '90', // days
volume_series: 'yes',
events: 'yes',
period: '1-year'
},
headers: {
'Referer': 'https://www.investing.com/',
'X-Requested-With': 'XMLHttpRequest'
}
})
const validPeriod = ['P1D', 'P1W', 'P1M', 'P3M', 'P6M', 'P1Y', 'P5Y', 'MAX'];
const validInterval = ['PT1M', 'PT5M', 'PT15M', 'PT30M', 'PT1H', 'PT5H', 'P1D', 'P1W', 'P1M'];
const validPointscount = [60, 70, 120];

/**
* Check if params are valid
* @param {String} input input
* @param {String} period period
* @param {String} interval interval
* @param {Number} pointscount pointscount
*/
function checkParams(input, period, interval, pointscount) {
if (!input) {
throw Error('Parameter input is required');
}
if (!validPeriod.includes(period)) {
throw Error('Invalid period parameter. Valid values are: P1D, P1W, P1M, P3M, P6M, P1Y, P5Y, MAX');
}
if (!validInterval.includes(interval)) {
throw Error('Invalid interval parameter. Valid values are: PT1M, PT5M, PT15M, PT30M, PT1H, PT5H, P1D, P1W, P1M');
}
if (!validPointscount.includes(pointscount)) {
throw Error('Invalid pointscount parameter. Valid values are: 60, 70, 120');
}
}

async function investing (input) {
/**
* Call Investing website
* @param {string} pairId Input string, see mapping.js keys, or provide a valid investing.com pairId
* @param {string} period Period of time, window size.
* Valid values: P1D, P1W, P1M, P3M, P6M, P1Y, P5Y, MAX
* @param {string} interval Interval between results.
* Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT5H, P1D, P1W, P1M
* @param {number} pointscount Number of results returned. Valid values: 60, 70, 120
* @param {*} pptrLaunchOptions Puppeteer launch options, see https://pptr.dev/api/puppeteer.launchoptions
* @return {Promise<Array>} An array of arrays with date (timestamp) and values (number) properties
*/
async function callInvesting(pairId, period, interval, pointscount, pptrLaunchOptions) {
const browser = await puppeteer.launch(pptrLaunchOptions);
const page = await browser.newPage();
// eslint-disable-next-line max-len
await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36');
// eslint-disable-next-line max-len
await page.goto(`https://api.investing.com/api/financialdata/${pairId}/historical/chart?period=${period}&interval=${interval}&pointscount=${pointscount}`);
const jsonContent = await getJsonContent(page);
await browser.close();
return jsonContent.data;
}

/**
* Investing
* @param {string} input Input string, see mapping.js keys, or provide a valid investing.com pairId
* @param {string} [period] Period of time, window size. Default P1M (1 month)
* Valid values: P1D, P1W, P1M, P3M, P6M, P1Y, P5Y, MAX
* @param {string} [interval] Interval between results. Default P1D (1 day)
* Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT5H, P1D, P1W, P1M
* @param {number} [pointscount] Number of results returned, but depends on period and interval too.
* Valid values: 60, 70, 120
* @param {*} [pptrLaunchOptions] Puppeteer launch options, see https://pptr.dev/api/puppeteer.launchoptions
* @return {Promise<Array>} An array of objects with date (timestamp), value (number) and other (number) properties
*/
async function investing(input, period = 'P1M', interval = 'P1D', pointscount = 120, pptrLaunchOptions) {
try {
if (!input) {
throw Error('Parameter input is required')
}
const endpoint = mapping[input]
if (!endpoint) {
throw Error(`No mapping found for ${input}, check mapping.js`)
checkParams(input, period, interval, pointscount);
const pairId = mapping[input]?.pairId || input;
const resInvesting = await callInvesting(pairId, period, interval, pointscount, pptrLaunchOptions);
const results = mapResponse(resInvesting);
if (!results.length) {
throw Error('Wrong input or pairId');
}
const response = await callInvesting(endpoint.pairId)
if (!response.data.candles) {
throw Error('No response.data.candles found')
}
const results = mapResponse(response.data.candles)
// console.log(results)
return results
return results;
} catch (err) {
console.log(err.message)
console.error(err.message);
if (err.response?.data?.['@errors']?.[0]) {
console.error(err.response.data['@errors'][0]);
}
}
}

// investing('equities/netflix,-inc.')
// investing('1').then(console.log);

exports.investing = investing
exports.investing = investing;
Loading