investors-exchange.api
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"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 @@ }, |
@@ -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) |
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
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
14
553
22074
9