Skip to content

Commit

Permalink
Cheerio fix & dependencies upgrade (#93)
Browse files Browse the repository at this point in the history
* Cheerio fix & dependencies upgrade

* Updated node version in tests
  • Loading branch information
JexSrs authored Aug 19, 2024
1 parent 04b3b9d commit 71840b4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 17.x, 18.x]
node-version: [18.x, 19.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unistudents/saffron",
"version": "6.2.0",
"version": "6.2.1",
"description": "A fairly intuitive & powerful framework that enables you to collect & save articles and news from all over the web. ",
"license": "MIT",
"homepage": "https://github.com/unistudents/saffron#readme",
Expand All @@ -19,31 +19,31 @@
"build": "tsc -d"
},
"dependencies": {
"axios": "1.7.1",
"axios": "1.7.4",
"chalk": "^4.1.2",
"cheerio": "^1.0.0-rc.12",
"fast-xml-parser": "^4.4.0",
"glob": "^10.3.15",
"cheerio": "^1.0.0",
"fast-xml-parser": "^4.4.1",
"glob": "^11.0.0",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"luxon": "^3.5.0",
"rss-parser": "^3.13.0",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"striptags": "^3.2.0"
},
"devDependencies": {
"@types/chai": "^4.3.16",
"@types/chai": "^4.3.17",
"@types/cheerio": "^0.22.35",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/lodash": "^4.17.4",
"@types/lodash": "^4.17.7",
"@types/luxon": "^3.4.2",
"@types/mocha": "^10.0.6",
"chai": "^4.4.1",
"@types/mocha": "^10.0.7",
"chai": "^4.5.0",
"express": "^4.19.2",
"mocha": "^10.4.0",
"mocha": "^10.7.3",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript": "^5.5.4",
"http-proxy-middleware": "^2.0.6"
}
}
1 change: 0 additions & 1 deletion src/components/Parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type {Instructions} from "./instructions";
import type {Article} from "./article";
import type {Utils} from "./Utils";
import cheerio from "cheerio";
import type {RequestsResult, SourceScrape} from "./types";

export abstract class Parser {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cheerio from "cheerio";
import * as cheerio from 'cheerio';
import type {Attachment} from "./article";
import https from "https";
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/html.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Parser} from "../components/Parser";
import type {Instructions} from "../components/instructions";
import {Article} from "../components/article";
import type {AxiosResponse} from "axios";
import cheerio from "cheerio";
import * as cheerio from 'cheerio';
import type {Utils} from "../components/Utils";
import type {HTMLAttribute, RequestsResult, SourceScrape} from "../components/types";
import type {ScrapeHTML} from "../components/parser.type";
Expand Down

0 comments on commit 71840b4

Please sign in to comment.