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

investors-exchange.api

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

investors-exchange.api - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

distribution/index.js

5

package.json
{
"name": "investors-exchange.api",
"version": "0.0.2",
"version": "0.0.3",
"description": "Unofficial Browser / NodeJS API for https://iextrading.com",

@@ -9,4 +9,3 @@ "main": "index.js",

"scripts": {
"build": "babel source --out-dir development",
"start:development": "node development",
"build": "babel source --out-dir distribution",
"test": "yarn jest --runInBand"

@@ -13,0 +12,0 @@ },

2

source/index.js

@@ -20,4 +20,2 @@

// Export.
if (typeof window === 'object') window.IEX = IEX || {} // Browser.
export default IEX // Node.

@@ -18,24 +18,5 @@

return data
}
}
// new Promise((resolve, reject) => {
// const parameters = params ? Object.entries(params) : ''
// const query = parameters ? parameters.reduce((query, [key, value], i) => `${query}${i > 0 ? '&' : ''}${key}=${value}`, '?') : ''
// const url = `${base}${path}${query}`
// console.log('url', url)
// https.get(url, response => {
// let data = ''
// response.on('data', d => data += d)
// response.on('end', d => {
// if (!isNaN(Number(data))) data = JSON.stringify({[name]: data})
// data = JSON.parse(data)
// if (Array.isArray(data)) data = {[name]: data}
// resolve({url, ...data})
// })
// }).on('error', error => reject)
// })
// Not Object.
export const notAnObject = x => typeof x !== 'object' || Array.isArray(x)
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