@stock-bot/modules
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,7 +0,32 @@ | ||
'use strict'; | ||
module.exports = modules; | ||
function modules() { | ||
// TODO | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const axios_instance_1 = require("./Services/axios.instance"); | ||
class IEXService { | ||
constructor() { } | ||
getSymbolQuote(symbol, filters) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let query = filterToQuery(filters); | ||
let url = `/stock/${symbol}/quote?token=sk_a3bb6a75aa7c43c894e2c7a2e92d5387`; | ||
let stock = yield axios_instance_1.default.get(url); | ||
return stock; | ||
}); | ||
} | ||
} | ||
exports.IEXService = IEXService; | ||
function filterToQuery(filter) { } | ||
class asd { | ||
constructor(name) { | ||
this.name = name; | ||
this.name = "steffan"; | ||
} | ||
} | ||
exports.asd = asd; | ||
//# sourceMappingURL=modules.js.map |
{ | ||
"name": "@stock-bot/modules", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "> TODO: description", | ||
@@ -21,3 +21,4 @@ "author": "Steffan <skbrown333@gmail.com>", | ||
"scripts": { | ||
"test": "echo \"Error: run tests from root\" && exit 1" | ||
"test": "echo \"Error: run tests from root\" && exit 1", | ||
"tsc": "tsc" | ||
}, | ||
@@ -27,3 +28,3 @@ "bugs": { | ||
}, | ||
"gitHead": "5fa35251c4e7a3f1d3d8c35200c7277a30fd8dd2", | ||
"gitHead": "88b8d667ff87b8c4b268f3009988977d130e5890", | ||
"dependencies": { | ||
@@ -30,0 +31,0 @@ "@types/axios": "^0.14.0", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6186
14
90
0