alphavantage
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "alphavantage", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A simple interface to the Alpha Vantage API.", | ||
@@ -10,5 +10,5 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "jest", | ||
"test": "jest --coverage", | ||
"lint": "prettier --print-width 120 --single-quote --write \"./**/**.js\"", | ||
"coverage": "jest --coverage" | ||
"coveralls": "cat ./coverage/lcov.info | coveralls" | ||
}, | ||
@@ -38,5 +38,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"coveralls": "^2.13.1", | ||
"dotenv": "^4.0.0", | ||
"jest": "^20.0.4", | ||
"prettier": "^1.5.3" | ||
"prettier": "^1.6.1" | ||
}, | ||
@@ -43,0 +44,0 @@ "jest": { |
# AlphaVantage | ||
[![Build Status](https://travis-ci.org/zackurben/alphavantage.svg?branch=master)](https://travis-ci.org/zackurben/alphavantage) | ||
[![Coverage Status](https://coveralls.io/repos/github/zackurben/alphavantage/badge.svg?branch=master)](https://coveralls.io/github/zackurben/alphavantage?branch=master) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/zackurben/alphavantage.svg)](https://greenkeeper.io/) | ||
``` | ||
@@ -19,3 +23,3 @@ Note: This is a WIP | ||
- [x] Add more test coverage | ||
- [ ] Add CI/CD support | ||
- [x] Add CI/CD support | ||
- [x] Add Sector Performance data | ||
@@ -22,0 +26,0 @@ - [ ] Add Technical indicators data |
'use strict'; | ||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; | ||
const alpha = require('../')(); | ||
@@ -4,0 +5,0 @@ |
'use strict'; | ||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000; | ||
const alpha = require('../')(); | ||
@@ -4,0 +5,0 @@ |
@@ -7,3 +7,8 @@ 'use strict'; | ||
expect.assertions(7); | ||
const frags = alpha.util.url('a', 'b', 'c', 'd', 'e').toString().split('?')[1].toString().split('&'); | ||
const frags = alpha.util | ||
.url('a', 'b', 'c', 'd', 'e') | ||
.toString() | ||
.split('?')[1] | ||
.toString() | ||
.split('&'); | ||
@@ -19,2 +24,16 @@ expect(frags.length).toBe(6); | ||
test(`the url builder with no params yields the base url`, () => { | ||
expect.assertions(3); | ||
const frags = alpha.util | ||
.url() | ||
.toString() | ||
.split('?')[1] | ||
.toString() | ||
.split('&'); | ||
expect(frags.length).toBe(2); | ||
expect(/^apikey=.*$/.test(frags[0])).toBe(true); | ||
expect(frags[1]).toBe(''); | ||
}); | ||
test(`intraday data polishing works`, () => { | ||
@@ -21,0 +40,0 @@ expect.assertions(41); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41431
21
811
114
0
4