Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alphavantage

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alphavantage - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

lib/util.js

@@ -28,3 +28,5 @@ 'use strict';

`interval=${interval}`
].filter(value => value !== undefined).join('&')}`
]
.filter(value => value !== undefined)
.join('&')}`
});
{
"name": "alphavantage",
"version": "0.0.2",
"version": "0.0.3",
"description": "A simple interface to the Alpha Vantage API.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,4 +12,2 @@ # AlphaVantage

**Checkout the [API DOCS](/DOCS.md) for full API documentation**
### Roadmap

@@ -16,0 +14,0 @@

'use strict';
test(`initialization without a config throws an error`, () => {
expect.assertions(1);
try {
const alpha = require('../')()
}
catch (e) {
expect(e.message).toEqual(`Missing config for alphavantage module`)
}
expect.assertions(1);
try {
const alpha = require('../')();
} catch (e) {
expect(e.message).toEqual(`Missing config for alphavantage module`);
}
});
test(`initialization without an api key throws an error`, () => {
expect.assertions(1);
try {
const alpha = require('../')({})
}
catch (e) {
expect(e.message).toEqual(`Missing Alpha Vantage config settings: key`)
}
})
expect.assertions(1);
try {
const alpha = require('../')({});
} catch (e) {
expect(e.message).toEqual(`Missing Alpha Vantage config settings: key`);
}
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc