fix some stuff

This commit is contained in:
mrjvs
2024-01-17 19:22:37 +01:00
parent 03a628ea34
commit 949fe487bc
3 changed files with 16 additions and 9 deletions

11
package-lock.json generated
View File

@@ -10,7 +10,6 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"cheerio": "^1.0.0-rc.12", "cheerio": "^1.0.0-rc.12",
"cross-env": "^7.0.3",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
"form-data": "^4.0.0", "form-data": "^4.0.0",
"iso-639-1": "^3.1.0", "iso-639-1": "^3.1.0",
@@ -27,6 +26,7 @@
"@typescript-eslint/parser": "^5.60.0", "@typescript-eslint/parser": "^5.60.0",
"@vitest/coverage-v8": "^0.34.3", "@vitest/coverage-v8": "^0.34.3",
"commander": "^11.0.0", "commander": "^11.0.0",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"enquirer": "^2.4.1", "enquirer": "^2.4.1",
"eslint": "^8.30.0", "eslint": "^8.30.0",
@@ -1799,6 +1799,7 @@
"version": "7.0.3", "version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"dependencies": { "dependencies": {
"cross-spawn": "^7.0.1" "cross-spawn": "^7.0.1"
}, },
@@ -1823,6 +1824,7 @@
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
"dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"path-key": "^3.1.0", "path-key": "^3.1.0",
@@ -3602,7 +3604,8 @@
"node_modules/isexe": { "node_modules/isexe": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true
}, },
"node_modules/iso-639-1": { "node_modules/iso-639-1": {
"version": "3.1.0", "version": "3.1.0",
@@ -4293,6 +4296,7 @@
}, },
"node_modules/path-key": { "node_modules/path-key": {
"version": "3.1.1", "version": "3.1.1",
"dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": ">=8"
@@ -4800,6 +4804,7 @@
}, },
"node_modules/shebang-command": { "node_modules/shebang-command": {
"version": "2.0.0", "version": "2.0.0",
"dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"shebang-regex": "^3.0.0" "shebang-regex": "^3.0.0"
@@ -4810,6 +4815,7 @@
}, },
"node_modules/shebang-regex": { "node_modules/shebang-regex": {
"version": "3.0.0", "version": "3.0.0",
"dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": ">=8"
@@ -5787,6 +5793,7 @@
}, },
"node_modules/which": { "node_modules/which": {
"version": "2.0.2", "version": "2.0.2",
"dev": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"isexe": "^2.0.0" "isexe": "^2.0.0"

View File

@@ -56,6 +56,7 @@
"@typescript-eslint/parser": "^5.60.0", "@typescript-eslint/parser": "^5.60.0",
"@vitest/coverage-v8": "^0.34.3", "@vitest/coverage-v8": "^0.34.3",
"commander": "^11.0.0", "commander": "^11.0.0",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1", "dotenv": "^16.3.1",
"enquirer": "^2.4.1", "enquirer": "^2.4.1",
"eslint": "^8.30.0", "eslint": "^8.30.0",
@@ -79,7 +80,6 @@
}, },
"dependencies": { "dependencies": {
"cheerio": "^1.0.0-rc.12", "cheerio": "^1.0.0-rc.12",
"cross-env": "^7.0.3",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
"form-data": "^4.0.0", "form-data": "^4.0.0",
"iso-639-1": "^3.1.0", "iso-639-1": "^3.1.0",

View File

@@ -81,7 +81,7 @@ export function testSource(ops: TestSourceOptions) {
} }
if (ops.types.includes('standard')) { if (ops.types.includes('standard')) {
it(`Should pass test ${i} - standard`, async () => { it(`standard`, async () => {
const providers = makeBaseProviders() const providers = makeBaseProviders()
.addSource(ops.source) .addSource(ops.source)
.build(); .build();
@@ -90,7 +90,7 @@ export function testSource(ops: TestSourceOptions) {
} }
if (ops.types.includes('ip:standard')) { if (ops.types.includes('ip:standard')) {
it(`Should pass test ${i} - standard:ip`, async () => { it(`standard:ip`, async () => {
const providers = makeBaseProviders() const providers = makeBaseProviders()
.addSource(ops.source) .addSource(ops.source)
.enableConsistentIpForRequests() .enableConsistentIpForRequests()
@@ -100,7 +100,7 @@ export function testSource(ops: TestSourceOptions) {
} }
if (ops.types.includes('proxied')) { if (ops.types.includes('proxied')) {
it(`Should pass test ${i} - proxied`, async () => { it(`proxied`, async () => {
if (!process.env.MOVIE_WEB_PROXY_URL) if (!process.env.MOVIE_WEB_PROXY_URL)
throw new Error("Cant use proxied test without setting MOVIE_WEB_PROXY_URL env"); throw new Error("Cant use proxied test without setting MOVIE_WEB_PROXY_URL env");
const providers = makeBaseProviders() const providers = makeBaseProviders()
@@ -140,7 +140,7 @@ export function testEmbed(ops: TestEmbedOptions) {
} }
if (ops.types.includes('standard')) { if (ops.types.includes('standard')) {
it(`Should pass test ${i} - standard`, async () => { it(`standard`, async () => {
const providers = makeBaseEmbedProviders() const providers = makeBaseEmbedProviders()
.addEmbed(ops.embed) .addEmbed(ops.embed)
.build(); .build();
@@ -149,7 +149,7 @@ export function testEmbed(ops: TestEmbedOptions) {
} }
if (ops.types.includes('ip:standard')) { if (ops.types.includes('ip:standard')) {
it(`Should pass test ${i} - standard:ip`, async () => { it(`standard:ip`, async () => {
const providers = makeBaseEmbedProviders() const providers = makeBaseEmbedProviders()
.addEmbed(ops.embed) .addEmbed(ops.embed)
.enableConsistentIpForRequests() .enableConsistentIpForRequests()
@@ -159,7 +159,7 @@ export function testEmbed(ops: TestEmbedOptions) {
} }
if (ops.types.includes('proxied')) { if (ops.types.includes('proxied')) {
it(`Should pass test ${i} - proxied`, async () => { it(`proxied`, async () => {
if (!process.env.MOVIE_WEB_PROXY_URL) if (!process.env.MOVIE_WEB_PROXY_URL)
throw new Error("Cant use proxied test without setting MOVIE_WEB_PROXY_URL env"); throw new Error("Cant use proxied test without setting MOVIE_WEB_PROXY_URL env");
const providers = makeBaseEmbedProviders() const providers = makeBaseEmbedProviders()