Skip to content

Commit

Permalink
Remove package assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
eddie-atkinson committed Aug 17, 2024
1 parent 947d820 commit e3764ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions src/lib/getCrumb.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { ExtendedCookieJar } from "./cookieJar";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: we have to ignore this for csm output.
import pkg from "../../package.json" assert { type: "json" };
import pkg from "../../package.json";
import { Logger } from "./options.js";
import { Cookie } from "tough-cookie";
import { showNotice } from "./notices.js";
Expand Down
4 changes: 1 addition & 3 deletions src/lib/validateAndCoerceTypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: we have to ignore this for csm output.
import pkg from "../../package.json" assert { type: "json" };
import pkg from "../../package.json";
import { FailedYahooValidationError, InvalidOptionsError } from "./errors.js";
import { StaticDecode, type TSchema } from "@sinclair/typebox";
import {
Expand Down
4 changes: 1 addition & 3 deletions src/lib/yahooFinanceFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import type { YahooFinanceOptions } from "./options.js";
import type { QueueOptions } from "./queue.js";

import errors from "./errors.js";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: we have to ignore this for csm output.assert
import pkg from "../../package.json" assert { type: "json" };
import pkg from "../../package.json";
import getCrumb from "./getCrumb.js";

const userAgent = `${pkg.name}/${pkg.version} (+${pkg.repository})`;
Expand Down
4 changes: 1 addition & 3 deletions src/modules/fundamentalsTimeSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import type {
ModuleOptionsWithValidateFalse,
ModuleThis,
} from "../lib/moduleCommon.js";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: we have to ignore this for csm output.
import Timeseries_Keys from "../lib/timeseries.json" assert { type: "json" };
import Timeseries_Keys from "../lib/timeseries.json";
import { YahooFinanceDate, YahooNumber } from "../lib/yahooFinanceTypes.js";

const FundamentalsTimeSeries_Types = ["quarterly", "annual", "trailing"];
Expand Down

0 comments on commit e3764ee

Please sign in to comment.