c3e203922e
This PR is required by SPT-AKI/Modules!104 in order for it to function correctly. ## Overview - Adds the package `buffer-crc32`, it can generate CRC32 hashes from buffers or strings - Splits `HashCacheService` into 2 classes `ModHashCacheService` does exactly the same `HashCacheService` used to do, and added a new `BundleHashCacheService` - `BundleLoader` now generates a CRC32 hash of every bundle file from every loaded mod - Reworked `BundleInfo` to better represent the data expected by the client when requesting `/singleplayer/bundles` - Removes all checks on `BundleLoader` that verified if the request was made to a localhost address, this is now addressed by the client. ## Testing The code has been tested by @Senko-san and me. Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/274 Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
92 lines
3.2 KiB
JSON
92 lines
3.2 KiB
JSON
{
|
|
"name": "aki-server",
|
|
"version": "3.8.0",
|
|
"author": "SPT-AKI Server",
|
|
"license": "NCSA",
|
|
"main": "obj/bundle.js",
|
|
"repository": "https://dev.sp-tarkov.com/SPT-AKI/Server",
|
|
"description": "The single-player modding framework for Escape From Tarkov.",
|
|
"icon": "assets/images/icon.ico",
|
|
"engines": {
|
|
"node": "20.11.1"
|
|
},
|
|
"scripts": {
|
|
"check:circular": "madge --circular --ts-config tsconfig.json --extensions ts ./src/",
|
|
"lint": "biome ci src --formatter-enabled=false --max-diagnostics=200",
|
|
"lint:fix": "biome check --apply-unsafe --max-diagnostics=200 . && dprint fmt --incremental=false",
|
|
"style": "dprint check --incremental=false",
|
|
"style:fix": "dprint fmt --incremental=false",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:ui": "vitest --ui --coverage",
|
|
"build:release": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:release",
|
|
"build:debug": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:debug",
|
|
"build:bleeding": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleeding",
|
|
"build:bleedingmods": "cross-env PKG_CACHE_PATH=\"./.pkg-cache\" gulp build:bleedingmods",
|
|
"run:build": "gulp run:build",
|
|
"run:debug": "gulp run:debug",
|
|
"run:profiler": "gulp run:profiler",
|
|
"gen:types": "tsc -p tsconfig.typedef.json",
|
|
"gen:docs": "typedoc --options ./typedoc.json --entryPointStrategy expand ./src"
|
|
},
|
|
"dependencies": {
|
|
"atomically": "~1.7",
|
|
"buffer-crc32": "^1.0.0",
|
|
"date-fns": "~2.30",
|
|
"date-fns-tz": "~2.0",
|
|
"i18n": "~0.15",
|
|
"json-fixer": "~1.6",
|
|
"json5": "~2.2",
|
|
"jsonc": "~2.0",
|
|
"proper-lockfile": "~4.1",
|
|
"reflect-metadata": "~0.2",
|
|
"semver": "~7.6",
|
|
"source-map-support": "~0.5",
|
|
"tsyringe": "~4.8",
|
|
"typescript": "~5.4",
|
|
"winston": "~3.12",
|
|
"winston-daily-rotate-file": "~5.0",
|
|
"ws": "~8.16"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "~1.6",
|
|
"@pnpm/exe": "8.15.4",
|
|
"@swc/cli": "~0.3",
|
|
"@swc/core": "~1.4",
|
|
"@types/i18n": "~0.13",
|
|
"@types/node": "~20.11",
|
|
"@types/proper-lockfile": "~4.1",
|
|
"@types/semver": "~7.5",
|
|
"@types/ws": "~8.5",
|
|
"@typescript-eslint/eslint-plugin": "~7.2",
|
|
"@typescript-eslint/parser": "~7.2",
|
|
"@vitest/coverage-istanbul": "~1.3",
|
|
"@vitest/ui": "~1.3",
|
|
"@yao-pkg/pkg": "5.11.5",
|
|
"@yao-pkg/pkg-fetch": "3.5.9",
|
|
"cross-env": "~7.0",
|
|
"dprint": "~0.45",
|
|
"eslint": "~8.57",
|
|
"fs-extra": "~11.2",
|
|
"gulp": "~4.0",
|
|
"gulp-decompress": "~3.0",
|
|
"gulp-download": "~0.0.1",
|
|
"gulp-execa": "~6.0",
|
|
"gulp-rename": "~2.0",
|
|
"madge": "~6.1",
|
|
"minimist": "~1.2",
|
|
"resedit": "~2.0",
|
|
"ts-node-dev": "~2.0",
|
|
"tsconfig-paths": "~4.2",
|
|
"typedoc": "~0.25",
|
|
"typemoq": "~2.1",
|
|
"vitest": "~1.3"
|
|
},
|
|
"targets": {
|
|
"default": {
|
|
"includeNodeModules": true
|
|
}
|
|
}
|
|
}
|