use @freearhey/storage-js in new updates, update load and lint to reflect changes

This commit is contained in:
theofficialomega
2025-10-22 17:03:10 +02:00
parent f3f327d3bd
commit b8060aac30
5 changed files with 2439 additions and 1811 deletions

4175
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -38,16 +38,16 @@
"dependencies": { "dependencies": {
"@alex_neo/jest-expect-message": "^1.0.5", "@alex_neo/jest-expect-message": "^1.0.5",
"@eslint/eslintrc": "^3.3.1", "@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.33.0", "@eslint/js": "^9.38.0",
"@freearhey/chronos": "^0.0.1", "@freearhey/chronos": "^0.0.1",
"@freearhey/core": "^0.10.3", "@freearhey/core": "^0.14.3",
"@freearhey/search-js": "^0.1.2", "@freearhey/search-js": "^0.2.0",
"@ntlab/sfetch": "^1.2.0", "@ntlab/sfetch": "^1.2.0",
"@octokit/core": "^7.0.3", "@octokit/core": "^7.0.5",
"@octokit/plugin-paginate-rest": "^13.1.1", "@octokit/plugin-paginate-rest": "^13.2.1",
"@octokit/plugin-rest-endpoint-methods": "^16.0.0", "@octokit/plugin-rest-endpoint-methods": "^16.1.1",
"@stylistic/eslint-plugin": "^5.2.3", "@stylistic/eslint-plugin": "^5.5.0",
"@swc/core": "^1.13.3", "@swc/core": "^1.13.5",
"@swc/jest": "^0.2.39", "@swc/jest": "^0.2.39",
"@types/cli-progress": "^3.11.6", "@types/cli-progress": "^3.11.6",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
@@ -58,34 +58,34 @@
"@types/lodash.sortby": "^4.7.9", "@types/lodash.sortby": "^4.7.9",
"@types/lodash.startcase": "^4.4.9", "@types/lodash.startcase": "^4.4.9",
"@types/lodash.uniqby": "^4.7.9", "@types/lodash.uniqby": "^4.7.9",
"@types/node": "^24.3.0", "@types/node": "^24.9.1",
"@types/node-cleanup": "^2.1.5", "@types/node-cleanup": "^2.1.5",
"@types/numeral": "^2.0.5", "@types/numeral": "^2.0.5",
"@typescript-eslint/eslint-plugin": "^8.40.0", "@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.40.0", "@typescript-eslint/parser": "^8.46.2",
"axios": "^1.11.0", "axios": "^1.12.2",
"axios-cookiejar-support": "^6.0.4", "axios-cookiejar-support": "^6.0.4",
"chalk": "^5.6.0", "chalk": "^5.6.2",
"cheerio": "^1.1.2", "cheerio": "^1.1.2",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"commander": "^14.0.0", "commander": "^14.0.1",
"consola": "^3.4.2", "consola": "^3.4.2",
"cross-env": "^10.0.0", "cross-env": "^10.1.0",
"csv-parser": "^3.2.0", "csv-parser": "^3.2.0",
"cwait": "^1.1.2", "cwait": "^1.1.2",
"dayjs": "^1.11.13", "dayjs": "^1.11.18",
"epg-grabber": "^0.41.0", "epg-grabber": "^0.44.0",
"epg-parser": "^0.4.0", "epg-parser": "^0.4.0",
"eslint": "^9.33.0", "eslint": "^9.38.0",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"form-data": "^4.0.4", "form-data": "^4.0.4",
"fs-extra": "^11.3.1", "fs-extra": "^11.3.2",
"glob": "^11.0.3", "glob": "^11.0.3",
"globals": "^16.3.0", "globals": "^16.4.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"iconv-lite": "^0.7.0", "iconv-lite": "^0.7.0",
"inquirer": "^12.9.3", "inquirer": "^12.10.0",
"jest": "^30.0.5", "jest": "^30.2.0",
"jest-offline": "^1.0.1", "jest-offline": "^1.0.1",
"langs": "^2.0.0", "langs": "^2.0.0",
"libxml2-wasm": "^0.6.0", "libxml2-wasm": "^0.6.0",
@@ -93,30 +93,33 @@
"lodash.sortby": "^4.7.0", "lodash.sortby": "^4.7.0",
"lodash.startcase": "^4.4.0", "lodash.startcase": "^4.4.0",
"lodash.uniqby": "^4.7.0", "lodash.uniqby": "^4.7.0",
"luxon": "^3.7.1", "luxon": "^3.7.2",
"mockdate": "^3.0.5", "mockdate": "^3.0.5",
"nedb-promises": "^6.2.3", "nedb-promises": "^6.2.3",
"node-cleanup": "^2.1.2", "node-cleanup": "^2.1.2",
"numeral": "^2.0.6", "numeral": "^2.0.6",
"pako": "^2.1.0", "pako": "^2.1.0",
"parse-duration": "^2.1.4", "parse-duration": "^2.1.4",
"pdf-parse": "^1.1.1", "pdf-parse": "^2.4.5",
"pm2": "^6.0.8", "pm2": "^6.0.13",
"readline": "^1.3.0", "readline": "^1.3.0",
"run-script-os": "^1.1.6", "run-script-os": "^1.1.6",
"serve": "^14.2.4", "serve": "^14.2.5",
"signale": "^1.4.0", "signale": "^1.4.0",
"skip-postinstall": "^1.0.0", "skip-postinstall": "^1.0.0",
"socks-proxy-agent": "^8.0.5", "socks-proxy-agent": "^8.0.5",
"srcset": "^5.0.1", "srcset": "^5.0.2",
"table2array": "^0.0.2", "table2array": "^0.0.2",
"tabletojson": "^4.1.6", "tabletojson": "^4.1.6",
"tough-cookie": "^6.0.0", "tough-cookie": "^6.0.0",
"transliteration": "^2.3.5", "transliteration": "^2.3.5",
"tsx": "^4.20.4", "tsx": "^4.20.6",
"typescript": "^5.9.2", "typescript": "^5.9.3",
"unzipit": "^1.4.3", "unzipit": "^1.4.3",
"uuid": "^11.1.0", "uuid": "^13.0.0",
"wildcard-match": "^5.1.4" "wildcard-match": "^5.1.4"
},
"devDependencies": {
"@freearhey/storage-js": "^0.2.0"
} }
} }

View File

@@ -1,8 +1,8 @@
import { DATA_DIR } from '../../constants' import { DATA_DIR } from '../../constants.js'
import { Storage } from '@freearhey/core' import { DataLoader } from '../../core/dataLoader.js'
import { DataLoader } from '../../core'
async function main() { async function main() {
const { Storage } = await import('@freearhey/storage-js')
const storage = new Storage(DATA_DIR) const storage = new Storage(DATA_DIR)
const loader = new DataLoader({ storage }) const loader = new DataLoader({ storage })

View File

@@ -1,6 +1,6 @@
import chalk from 'chalk' import chalk from 'chalk'
import { program } from 'commander' import { program } from 'commander'
import { Storage, File } from '@freearhey/core' import { Storage, File } from '@freearhey/storage-js'
import { XmlDocument, XsdValidator, XmlValidateError, ErrorDetail } from 'libxml2-wasm' import { XmlDocument, XsdValidator, XmlValidateError, ErrorDetail } from 'libxml2-wasm'
const xsd = `<?xml version="1.0" encoding="UTF-8"?> const xsd = `<?xml version="1.0" encoding="UTF-8"?>

View File

@@ -1,8 +1,8 @@
{ {
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
"module": "commonjs", "module": "Node16",
"moduleResolution": "node", "moduleResolution": "node16",
"target": "es2022", "target": "es2022",
"esModuleInterop": true, "esModuleInterop": true,
"declaration": true, "declaration": true,