Socket
Socket
Sign inDemoInstall

yahoo-finance2

Package Overview
Dependencies
22
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.9.1 to 2.9.2

8

dist/cjs/package.json
{
"name": "yahoo-finance2",
"version": "2.9.1",
"version": "2.9.2",
"description": "JS API for Yahoo Finance",

@@ -74,3 +74,3 @@ "type:": "commonjs",

"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node12": "12.1.0",
"@tsconfig/node12": "12.1.1",
"@types/jest": "29.5.12",

@@ -80,3 +80,3 @@ "@types/node-fetch": "2.6.11",

"@typescript-eslint/parser": "5.62.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "8.10.0",

@@ -92,4 +92,4 @@ "globby": "13.2.2",

"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}
module.exports = {
"name": "yahoo-finance2",
"version": "2.9.1",
"version": "2.9.2",
"description": "JS API for Yahoo Finance",

@@ -74,3 +74,3 @@ "type:": "commonjs",

"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node12": "12.1.0",
"@tsconfig/node12": "12.1.1",
"@types/jest": "29.5.12",

@@ -80,3 +80,3 @@ "@types/node-fetch": "2.6.11",

"@typescript-eslint/parser": "5.62.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "8.10.0",

@@ -92,4 +92,4 @@ "globby": "13.2.2",

"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}

@@ -17,4 +17,4 @@ "use strict";

const parseHtmlEntities = (str) => str.replace(/&#x([0-9A-Fa-f]{1,3});/gi, (_, numStr) => String.fromCharCode(parseInt(numStr, 16)));
function _getCrumb(cookieJar, fetch, fetchOptionsBase, logger, url = "https://finance.yahoo.com/quote/AAPL", develOverride = "getCrumb-quote-AAPL.json", noCache = false) {
return __awaiter(this, void 0, void 0, function* () {
function _getCrumb(cookieJar_1, fetch_1, fetchOptionsBase_1, logger_1) {
return __awaiter(this, arguments, void 0, function* (cookieJar, fetch, fetchOptionsBase, logger, url = "https://finance.yahoo.com/quote/AAPL", develOverride = "getCrumb-quote-AAPL.json", noCache = false) {
if (!crumb) {

@@ -21,0 +21,0 @@ const cookies = yield cookieJar.getCookies(CONFIG_FAKE_URL);

@@ -34,4 +34,4 @@ "use strict";

function moduleExec(opts) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const queryOpts = opts.query;

@@ -38,0 +38,0 @@ const moduleOpts = opts.moduleOptions;

@@ -44,5 +44,5 @@ "use strict";

exports.substituteVariables = substituteVariables;
function yahooFinanceFetch(urlBase, params = {}, moduleOpts = {}, func = "json", needsCrumb = false) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
function yahooFinanceFetch(urlBase_1) {
return __awaiter(this, arguments, void 0, function* (urlBase, params = {}, moduleOpts = {}, func = "json", needsCrumb = false) {
var _a;
if (!(this && this._env))

@@ -49,0 +49,0 @@ throw new errors_js_1.default.NoEnvironmentError("yahooFinanceFetch called without this._env set");

@@ -26,4 +26,4 @@ "use strict";

function chart(symbol, queryOptionsOverrides, moduleOptions) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const returnAs = (queryOptionsOverrides === null || queryOptionsOverrides === void 0 ? void 0 : queryOptionsOverrides.return) || "array";

@@ -136,4 +136,6 @@ const result = (yield this._moduleExec({

}
// TypeScript runtime validation ensures no other values for
// "returnAs" are possible.
});
}
exports.default = chart;

@@ -455,3 +455,3 @@ export interface QuoteSummaryResult {

rSquared: number;
stdDev: number;
stdDev?: number;
sharpeRatio: number;

@@ -458,0 +458,0 @@ treynorRatio: number;

{
"name": "yahoo-finance2",
"version": "2.9.1",
"version": "2.9.2",
"description": "JS API for Yahoo Finance",

@@ -74,3 +74,3 @@ "type": "module",

"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node12": "12.1.0",
"@tsconfig/node12": "12.1.1",
"@types/jest": "29.5.12",

@@ -80,3 +80,3 @@ "@types/node-fetch": "2.6.11",

"@typescript-eslint/parser": "5.62.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "8.10.0",

@@ -92,4 +92,4 @@ "globby": "13.2.2",

"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}
export default {
"name": "yahoo-finance2",
"version": "2.9.1",
"version": "2.9.2",
"description": "JS API for Yahoo Finance",

@@ -74,3 +74,3 @@ "type": "module",

"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node12": "12.1.0",
"@tsconfig/node12": "12.1.1",
"@types/jest": "29.5.12",

@@ -80,3 +80,3 @@ "@types/node-fetch": "2.6.11",

"@typescript-eslint/parser": "5.62.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "8.10.0",

@@ -92,4 +92,4 @@ "globby": "13.2.2",

"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}

@@ -455,3 +455,3 @@ export interface QuoteSummaryResult {

rSquared: number;
stdDev: number;
stdDev?: number;
sharpeRatio: number;

@@ -458,0 +458,0 @@ treynorRatio: number;

{
"name": "yahoo-finance2",
"version": "2.9.1",
"version": "2.9.2",
"description": "JS API for Yahoo Finance",

@@ -74,3 +74,3 @@ "type": "module",

"@semantic-release/release-notes-generator": "10.0.3",
"@tsconfig/node12": "12.1.0",
"@tsconfig/node12": "12.1.1",
"@types/jest": "29.5.12",

@@ -80,3 +80,3 @@ "@types/node-fetch": "2.6.11",

"@typescript-eslint/parser": "5.62.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "8.10.0",

@@ -92,4 +92,4 @@ "globby": "13.2.2",

"ts-node": "10.9.2",
"typescript": "5.3.3"
"typescript": "5.4.2"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc