Fix imports without ".js"
parent
98b357d05f
commit
f85da9f288
|
@ -4,9 +4,9 @@
|
||||||
import validator from 'class-validator';
|
import validator from 'class-validator';
|
||||||
|
|
||||||
// Module from files
|
// Module from files
|
||||||
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
|
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
|
||||||
import LatestSearchQuery, { TLatestOrder } from './latest-search-query';
|
import LatestSearchQuery, { TLatestOrder } from './latest-search-query.js';
|
||||||
import ThreadSearchQuery, { TThreadOrder } from './thread-search-query';
|
import ThreadSearchQuery, { TThreadOrder } from './thread-search-query.js';
|
||||||
|
|
||||||
// Type definitions
|
// Type definitions
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Public modules from npm
|
// Public modules from npm
|
||||||
import validator from 'class-validator';
|
import validator from 'class-validator';
|
||||||
|
|
||||||
// Modules from file
|
// Modules from file
|
||||||
import { urls } from "../../constants/url.js";
|
import { urls } from "../../constants/url.js";
|
||||||
import PrefixParser from '../prefix-parser.js';
|
import PrefixParser from '../prefix-parser.js';
|
||||||
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
|
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
|
||||||
|
|
||||||
// Type definitions
|
// Type definitions
|
||||||
export type TLatestOrder = "date" | "likes" | "views" | "title" | "rating";
|
export type TLatestOrder = "date" | "likes" | "views" | "title" | "rating";
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
import validator from 'class-validator';
|
import validator from 'class-validator';
|
||||||
|
|
||||||
// Module from files
|
// Module from files
|
||||||
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
|
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
|
||||||
import { urls } from "../../constants/url";
|
import { urls } from "../../constants/url.js";
|
||||||
import PrefixParser from "./../prefix-parser";
|
import PrefixParser from "./../prefix-parser.js";
|
||||||
|
|
||||||
// Type definitions
|
// Type definitions
|
||||||
export type TThreadOrder = "relevance" | "date" | "last_update" | "replies";
|
export type TThreadOrder = "relevance" | "date" | "last_update" | "replies";
|
||||||
|
|
|
@ -5,16 +5,16 @@ import cheerio from "cheerio";
|
||||||
import luxon from "luxon";
|
import luxon from "luxon";
|
||||||
|
|
||||||
// Modules from files
|
// Modules from files
|
||||||
import Post from "./post";
|
import Post from "./post.js";
|
||||||
import PlatformUser from "./platform-user";
|
import PlatformUser from "./platform-user.js";
|
||||||
import { TCategory, TRating } from "../interfaces";
|
import { TCategory, TRating } from "../interfaces.js";
|
||||||
import { urls } from "../constants/url";
|
import { urls } from "../constants/url.js";
|
||||||
import { THREAD } from "../constants/css-selector";
|
import { THREAD } from "../constants/css-selector.js";
|
||||||
import { fetchHTML, fetchPOSTResponse } from "../network-helper";
|
import { fetchHTML, fetchPOSTResponse } from "../network-helper.js";
|
||||||
import Shared from "../shared";
|
import Shared from "../shared.js";
|
||||||
import { GenericAxiosError, UnexpectedResponseContentType } from "./errors";
|
import { GenericAxiosError, UnexpectedResponseContentType } from "./errors.js";
|
||||||
import { Result } from "./result";
|
import { Result } from "./result.js";
|
||||||
import { getJSONLD, TJsonLD } from "../scrape-data/json-ld";
|
import { getJSONLD, TJsonLD } from "../scrape-data/json-ld.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a generic F95Zone platform thread.
|
* Represents a generic F95Zone platform thread.
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
import luxon from "luxon";
|
import luxon from "luxon";
|
||||||
|
|
||||||
// Modules from files
|
// Modules from files
|
||||||
import HandiWork from "../classes/handiwork/handiwork";
|
import HandiWork from "../classes/handiwork/handiwork.js";
|
||||||
import Thread from "../classes/thread";
|
import Thread from "../classes/thread.js";
|
||||||
import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces";
|
import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces.js";
|
||||||
import shared, { TPrefixDict } from "../shared";
|
import shared, { TPrefixDict } from "../shared.js";
|
||||||
import { ILink, IPostElement } from "./post-parse";
|
import { ILink, IPostElement } from "./post-parse.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets information of a particular handiwork from its thread.
|
* Gets information of a particular handiwork from its thread.
|
||||||
|
|
Loading…
Reference in New Issue