Fix imports without ".js"

pull/73/head
MillenniumEarl 2021-03-02 13:56:57 +01:00
parent 98b357d05f
commit f85da9f288
5 changed files with 24 additions and 22 deletions

View File

@ -4,9 +4,9 @@
import validator from 'class-validator';
// Module from files
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
import LatestSearchQuery, { TLatestOrder } from './latest-search-query';
import ThreadSearchQuery, { TThreadOrder } from './thread-search-query';
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
import LatestSearchQuery, { TLatestOrder } from './latest-search-query.js';
import ThreadSearchQuery, { TThreadOrder } from './thread-search-query.js';
// Type definitions
/**

View File

@ -1,10 +1,12 @@
"use strict";
// Public modules from npm
import validator from 'class-validator';
// Modules from file
import { urls } from "../../constants/url.js";
import PrefixParser from '../prefix-parser.js';
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
// Type definitions
export type TLatestOrder = "date" | "likes" | "views" | "title" | "rating";

View File

@ -4,9 +4,9 @@
import validator from 'class-validator';
// Module from files
import { IQuery, TCategory, TQueryInterface } from "../../interfaces";
import { urls } from "../../constants/url";
import PrefixParser from "./../prefix-parser";
import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js";
import { urls } from "../../constants/url.js";
import PrefixParser from "./../prefix-parser.js";
// Type definitions
export type TThreadOrder = "relevance" | "date" | "last_update" | "replies";

View File

@ -5,16 +5,16 @@ import cheerio from "cheerio";
import luxon from "luxon";
// Modules from files
import Post from "./post";
import PlatformUser from "./platform-user";
import { TCategory, TRating } from "../interfaces";
import { urls } from "../constants/url";
import { THREAD } from "../constants/css-selector";
import { fetchHTML, fetchPOSTResponse } from "../network-helper";
import Shared from "../shared";
import { GenericAxiosError, UnexpectedResponseContentType } from "./errors";
import { Result } from "./result";
import { getJSONLD, TJsonLD } from "../scrape-data/json-ld";
import Post from "./post.js";
import PlatformUser from "./platform-user.js";
import { TCategory, TRating } from "../interfaces.js";
import { urls } from "../constants/url.js";
import { THREAD } from "../constants/css-selector.js";
import { fetchHTML, fetchPOSTResponse } from "../network-helper.js";
import Shared from "../shared.js";
import { GenericAxiosError, UnexpectedResponseContentType } from "./errors.js";
import { Result } from "./result.js";
import { getJSONLD, TJsonLD } from "../scrape-data/json-ld.js";
/**
* Represents a generic F95Zone platform thread.

View File

@ -4,11 +4,11 @@
import luxon from "luxon";
// Modules from files
import HandiWork from "../classes/handiwork/handiwork";
import Thread from "../classes/thread";
import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces";
import shared, { TPrefixDict } from "../shared";
import { ILink, IPostElement } from "./post-parse";
import HandiWork from "../classes/handiwork/handiwork.js";
import Thread from "../classes/thread.js";
import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces.js";
import shared, { TPrefixDict } from "../shared.js";
import { ILink, IPostElement } from "./post-parse.js";
/**
* Gets information of a particular handiwork from its thread.