Giter VIP home page Giter VIP logo

f95api's People

Contributors

code-factor avatar deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar fossabot avatar millenniumearl avatar moulik-deepsource avatar renovate-bot avatar renovate[bot] avatar samueleberlusconi avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

f95api's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near ], sched

(JS-0134) Prefer or disallow trailing commas

Description

Trailing commas in object literals are valid according to the ECMAScript 5 (and ECMAScript 3!) spec. However, IE8 (when not in IE8 document mode) and below will throw an error when it encounters trailing commas in JavaScript. var foo = { bar: "baz", qux: "quux", }; Trailing commas …

Occurrences

There are 21 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/MillenniumEarl/F95API/issue/JS-0134/occurrences/

Missing ld+json with Dark Mode BETA Theme

Describe the bug
The use of Dark Mode BETA Theme prevents the use of F95API as one of the two ld+json script tags is not present in the HTML source of the thread's pages. In particular is missing the script containing "@type":"DiscussionForumPosting",

To Reproduce
Steps to reproduce the behavior:

  1. Change the theme from White theme/UI.X.Dark to Dark Mode BETA
  2. Use the module to search for a thread
  3. Expect an error at utils > getDateFromString line 16 because s is undefined.

Expected behavior
There should be no usage differences based on the theme chosen by the user.

Additional context
Since the problem is with the site, a report has been opened on the site at this address.

Missing overview and release date on old thread

Describe the bug
On threads with an old template it is not possible to obtain information on the release date or overview because different keywords are used, such as "Story" instead of "Overview" and "Updated" instead of "Release date".

It is also recommended to use Regex in the release dates to get the dates if they are mixed with other information (see example).

Additional context
Some sites where the reported problems occur:

Site's new DDOS-GUARD DDOS protection is resulting in errors when scraping

I see this when running the example with the correct credentials. I can confirm that this worked a few days ago when was testing #257. Pretty sure this is caused by the newly added DDOS protection from DDOS-GUARD. Need to debug this further and probably look into bypassing DDOS-GUARD (could be something custom or a lib).

f95api: v2.0.0-beta.12
Node.js: v17.6.0
Windows 10: v19044.1586

PS G:\dev\code\F95API> npm run example

> @millenniumearl/[email protected] example     
> npm run build && node --inspect ./dist/example.js


> @millenniumearl/[email protected] prebuild
> node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts


> @millenniumearl/[email protected] build
> npm run prebuild && tsc --project ./      


> @millenniumearl/[email protected] prebuild
> node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts

Debugger listening on ws://127.0.0.1:9229/cedbfbf7-6837-4df6-ba8e-3fb0e50b85d3
For help, see: https://nodejs.org/en/docs/inspector
Authenticating...
G:\dev\code\F95API\dist\scripts\network-helper.js:111
        throw new errors_1.InvalidF95Token(`Invalid token for auth: ${credentials.token}`);
              ^

InvalidF95Token [Error]: Invalid token for auth: undefined
    at authenticate (G:\dev\code\F95API\dist\scripts\network-helper.js:111:15)        
    at loginInTheRemotePlatform (G:\dev\code\F95API\dist\scripts\login.js:105:58)     
    at login (G:\dev\code\F95API\dist\scripts\login.js:47:29)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async authenticate (G:\dev\code\F95API\dist\example.js:72:20)
    at async main (G:\dev\code\F95API\dist\example.js:143:9)

Undefined version on old thread template

Describe the bug
Older games that are described on threads using a different template than the current one have an undefined version field. This can be caused by the fact that the version is written in bold type or that "Version" is not present in the thread.

Should switch back to get the version from the title?

Additional context
Some threads on which the problem occurred:

(JS-0097) Found some unnecessary escape characters

Description

Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect, as demonstrated in the following example: js let foo = "hol\a"; // > foo = "hola" let bar = `${foo}\!`; // > bar = "hola!" let baz = /\:/ // same functionality with /:/ Example …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/MillenniumEarl/F95API/issue/JS-0097/occurrences/

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update actions/cache action to v3.3.3
  • Update codecov/codecov-action action to v3.1.6
  • Update dependency @types/node to v18.19.33
  • Update dependency axios to v1.6.8
  • Update dependency chai-as-promised to v7.1.2
  • Update dependency tough-cookie to v4.1.4
  • Update dependency chai to v4.4.1 (chai, @types/chai)
  • Update dependency dotenv to v16.4.5
  • Update dependency eslint to v8.57.0
  • Update dependency js-sha256 to ^0.11.0
  • Update dependency mocha to v10.4.0
  • Update dependency typescript to v5.4.5
  • Update typescript-eslint monorepo to v6.21.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • Update actions/cache action to v4
  • Update codecov/codecov-action action to v4
  • Update dependency axios-cookiejar-support to v5
  • Update dependency eslint to v9
  • Update typescript-eslint monorepo to v7 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/coverage.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/cache v3.3.2
  • codecov/codecov-action v3.1.4
npm
package.json
  • @log4js-node/log4js-api ^1.0.2
  • await-semaphore ^0.1.3
  • axios ^1.0.0
  • axios-cookiejar-support ^4.0.2
  • axios-retry ^3.2.5
  • cheerio ^1.0.0-rc.12
  • iso-datestring-validator ^2.2.2
  • js-sha256 ^0.10.0
  • tough-cookie ^4.0.0
  • @millenniumearl/recaptcha-harvester 1.2.1
  • @types/chai 4.3.11
  • @types/chai-as-promised 7.1.8
  • @types/chai-spies 1.0.6
  • @types/mocha ^10.0.1
  • @types/mock-fs 4.13.4
  • @types/node 18.19.4
  • @types/rewire 2.5.30
  • @types/tough-cookie 4.0.5
  • @typescript-eslint/eslint-plugin 6.17.0
  • @typescript-eslint/parser 6.17.0
  • c8 8.0.1
  • chai 4.3.10
  • chai-as-promised 7.1.1
  • chai-spies 1.1.0
  • dotenv 16.3.1
  • eslint 8.56.0
  • eslint-config-prettier 9.1.0
  • eslint-plugin-prettier 4.2.1
  • inquirer ^9.0.0
  • log4js 6.9.1
  • mocha 10.2.0
  • mock-fs 5.2.0
  • prettier 2.8.8
  • rewire 7.0.0
  • ts-node 10.9.2
  • typescript 5.3.3
  • node >=14.0

  • Check this box to trigger a request for Renovate to run again on this repository

I can't find your contacts :)

Hey mate! I'm going to use your npm package f95api for my project and instead of this I think it will be a good idea to ask you join us with developing our project which is similar to yours. We've got 1 junior frontend, 1 junior+ frontend< 1 ux/ui designer and me node.js senior dev/PM/team lead. If you interested - welcome to my telegram @fpavlik or email [email protected]
Hope to see you soon :3

Example not working

Describe the bug
When I npm run the example I get the error show in the screenshot

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'termina'
  2. Run on 'npm run example'
  3. See error

Expected behavior
For the example to work.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Brave
  • Version: 1.51.114

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.