@leo-h/create-nodejs-app 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const name="@leo-h/create-nodejs-app",version="1.0.
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const name="@leo-h/create-nodejs-app",version="1.0.24",packageManager="pnpm@9.15.0",author="Leonardo Henrique <leonardo0507.business@gmail.com>",description="Create a modern Node.js app with TypeScript using one command.",license="MIT",keywords=["node","node.js","typescript"],bin={"create-nodejs-app":"./dist/index.js"},files=["./dist","./templates"],repository={type:"git",url:"https://github.com/Leo-Henrique/create-nodejs-app"},scripts={start:"node ./dist/index.js","start:dev":"tsx --env-file=.env.development ./src/index.ts","start:dev:watch":"tsx --env-file=.env.development watch ./src/index.ts",typecheck:"tsc --noEmit",lint:"eslint . --max-warnings 0 --cache","lint:fix":"pnpm lint --fix",format:"prettier . --write --cache","test:unit":"vitest run","test:unit:watch":"vitest","test:e2e":"vitest run --config ./vitest.config.e2e.mts","test:e2e:watch":"vitest --config ./vitest.config.e2e.mts","test:coverage":"vitest run --coverage.enabled=true",template:"tsx --env-file=.env.development ./scripts/template-cli.ts",prebuild:"rimraf ./dist",build:"unbuild",prepublishOnly:"pnpm build"},dependencies={commander:"12.1.0",picocolors:"1.1.1",prompts:"2.4.2","validate-npm-package-name":"5.0.1",zod:"3.24.1"},devDependencies={"@eslint/js":"9.17.0","@faker-js/faker":"9.3.0","@types/node":"22.10.2","@types/prompts":"2.4.9","@types/validate-npm-package-name":"4.0.2","@vitest/eslint-plugin":"1.1.18","conventional-changelog-conventionalcommits":"8.0.0",eslint:"9.17.0","eslint-config-prettier":"9.1.0",globals:"15.14.0",husky:"9.1.7","lint-staged":"15.2.11",prettier:"3.4.2",rimraf:"6.0.1",tsx:"4.19.2",typescript:"5.7.2","typescript-eslint":"8.18.1",unbuild:"2.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.6.0"},w={name,version,packageManager,author,description,license,keywords,bin,files,repository,scripts,dependencies,devDependencies};exports.author=author;exports.bin=bin;exports.default=w;exports.dependencies=dependencies;exports.description=description;exports.devDependencies=devDependencies;exports.files=files;exports.keywords=keywords;exports.license=license;exports.name=name;exports.packageManager=packageManager;exports.repository=repository;exports.scripts=scripts;exports.version=version;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@leo-h/create-nodejs-app",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.24",
|
4
4
|
"packageManager": "pnpm@9.15.0",
|
5
5
|
"author": "Leonardo Henrique <leonardo0507.business@gmail.com>",
|
6
6
|
"description": "Create a modern Node.js app with TypeScript using one command.",
|
@@ -9,62 +9,62 @@ importers:
|
|
9
9
|
.:
|
10
10
|
dependencies:
|
11
11
|
'@hookform/resolvers':
|
12
|
-
specifier:
|
12
|
+
specifier: 3.10.0
|
13
13
|
version: 3.10.0(react-hook-form@7.54.2(react@18.3.1))
|
14
14
|
i18next:
|
15
|
-
specifier:
|
15
|
+
specifier: 24.2.1
|
16
16
|
version: 24.2.1(typescript@5.6.3)
|
17
17
|
react:
|
18
|
-
specifier:
|
18
|
+
specifier: 18.3.1
|
19
19
|
version: 18.3.1
|
20
20
|
react-dom:
|
21
|
-
specifier:
|
21
|
+
specifier: 18.3.1
|
22
22
|
version: 18.3.1(react@18.3.1)
|
23
23
|
react-helmet-async:
|
24
24
|
specifier: 2.0.5
|
25
25
|
version: 2.0.5(react@18.3.1)
|
26
26
|
react-hook-form:
|
27
|
-
specifier:
|
27
|
+
specifier: 7.54.2
|
28
28
|
version: 7.54.2(react@18.3.1)
|
29
29
|
react-router:
|
30
30
|
specifier: 7.1.1
|
31
31
|
version: 7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
32
32
|
swr:
|
33
|
-
specifier:
|
33
|
+
specifier: 2.3.0
|
34
34
|
version: 2.3.0(react@18.3.1)
|
35
35
|
zod:
|
36
|
-
specifier:
|
36
|
+
specifier: 3.24.1
|
37
37
|
version: 3.24.1
|
38
38
|
zod-i18n-map:
|
39
|
-
specifier:
|
39
|
+
specifier: 2.27.0
|
40
40
|
version: 2.27.0(i18next@24.2.1(typescript@5.6.3))(zod@3.24.1)
|
41
41
|
devDependencies:
|
42
42
|
'@eslint/js':
|
43
|
-
specifier:
|
43
|
+
specifier: 9.17.0
|
44
44
|
version: 9.17.0
|
45
45
|
'@types/react':
|
46
|
-
specifier:
|
46
|
+
specifier: 18.3.18
|
47
47
|
version: 18.3.18
|
48
48
|
'@types/react-dom':
|
49
|
-
specifier:
|
49
|
+
specifier: 18.3.5
|
50
50
|
version: 18.3.5(@types/react@18.3.18)
|
51
51
|
'@vitejs/plugin-react':
|
52
|
-
specifier:
|
52
|
+
specifier: 4.3.4
|
53
53
|
version: 4.3.4(vite@6.0.7(@types/node@22.10.5)(tsx@4.19.2)(yaml@2.6.1))
|
54
54
|
eslint:
|
55
|
-
specifier:
|
55
|
+
specifier: 9.17.0
|
56
56
|
version: 9.17.0
|
57
57
|
eslint-config-prettier:
|
58
58
|
specifier: 9.1.0
|
59
59
|
version: 9.1.0(eslint@9.17.0)
|
60
60
|
eslint-plugin-react-hooks:
|
61
|
-
specifier:
|
62
|
-
version: 5.
|
61
|
+
specifier: 5.0.0
|
62
|
+
version: 5.0.0(eslint@9.17.0)
|
63
63
|
eslint-plugin-react-refresh:
|
64
|
-
specifier:
|
64
|
+
specifier: 0.4.16
|
65
65
|
version: 0.4.16(eslint@9.17.0)
|
66
66
|
globals:
|
67
|
-
specifier:
|
67
|
+
specifier: 15.14.0
|
68
68
|
version: 15.14.0
|
69
69
|
husky:
|
70
70
|
specifier: 9.1.7
|
@@ -73,13 +73,13 @@ importers:
|
|
73
73
|
specifier: 15.3.0
|
74
74
|
version: 15.3.0
|
75
75
|
orval:
|
76
|
-
specifier:
|
76
|
+
specifier: 7.4.1
|
77
77
|
version: 7.4.1(openapi-types@12.1.3)
|
78
78
|
prettier:
|
79
|
-
specifier:
|
79
|
+
specifier: 3.4.2
|
80
80
|
version: 3.4.2
|
81
81
|
tsx:
|
82
|
-
specifier:
|
82
|
+
specifier: 4.19.2
|
83
83
|
version: 4.19.2
|
84
84
|
type-fest:
|
85
85
|
specifier: 4.32.0
|
@@ -88,10 +88,10 @@ importers:
|
|
88
88
|
specifier: ~5.6.2
|
89
89
|
version: 5.6.3
|
90
90
|
typescript-eslint:
|
91
|
-
specifier:
|
92
|
-
version: 8.
|
91
|
+
specifier: 8.18.2
|
92
|
+
version: 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
93
93
|
vite:
|
94
|
-
specifier:
|
94
|
+
specifier: 6.0.7
|
95
95
|
version: 6.0.7(@types/node@22.10.5)(tsx@4.19.2)(yaml@2.6.1)
|
96
96
|
vite-tsconfig-paths:
|
97
97
|
specifier: 5.1.3
|
@@ -886,51 +886,51 @@ packages:
|
|
886
886
|
'@types/urijs@1.19.25':
|
887
887
|
resolution: {integrity: sha512-XOfUup9r3Y06nFAZh3WvO0rBU4OtlfPB/vgxpjg+NRdGU6CN6djdc6OEiH+PcqHCY6eFLo9Ista73uarf4gnBg==}
|
888
888
|
|
889
|
-
'@typescript-eslint/eslint-plugin@8.
|
890
|
-
resolution: {integrity: sha512-
|
889
|
+
'@typescript-eslint/eslint-plugin@8.18.2':
|
890
|
+
resolution: {integrity: sha512-adig4SzPLjeQ0Tm+jvsozSGiCliI2ajeURDGHjZ2llnA+A67HihCQ+a3amtPhUakd1GlwHxSRvzOZktbEvhPPg==}
|
891
891
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
892
892
|
peerDependencies:
|
893
893
|
'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0
|
894
894
|
eslint: ^8.57.0 || ^9.0.0
|
895
895
|
typescript: '>=4.8.4 <5.8.0'
|
896
896
|
|
897
|
-
'@typescript-eslint/parser@8.
|
898
|
-
resolution: {integrity: sha512-
|
897
|
+
'@typescript-eslint/parser@8.18.2':
|
898
|
+
resolution: {integrity: sha512-y7tcq4StgxQD4mDr9+Jb26dZ+HTZ/SkfqpXSiqeUXZHxOUyjWDKsmwKhJ0/tApR08DgOhrFAoAhyB80/p3ViuA==}
|
899
899
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
900
900
|
peerDependencies:
|
901
901
|
eslint: ^8.57.0 || ^9.0.0
|
902
902
|
typescript: '>=4.8.4 <5.8.0'
|
903
903
|
|
904
|
-
'@typescript-eslint/scope-manager@8.
|
905
|
-
resolution: {integrity: sha512-
|
904
|
+
'@typescript-eslint/scope-manager@8.18.2':
|
905
|
+
resolution: {integrity: sha512-YJFSfbd0CJjy14r/EvWapYgV4R5CHzptssoag2M7y3Ra7XNta6GPAJPPP5KGB9j14viYXyrzRO5GkX7CRfo8/g==}
|
906
906
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
907
907
|
|
908
|
-
'@typescript-eslint/type-utils@8.
|
909
|
-
resolution: {integrity: sha512-
|
908
|
+
'@typescript-eslint/type-utils@8.18.2':
|
909
|
+
resolution: {integrity: sha512-AB/Wr1Lz31bzHfGm/jgbFR0VB0SML/hd2P1yxzKDM48YmP7vbyJNHRExUE/wZsQj2wUCvbWH8poNHFuxLqCTnA==}
|
910
910
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
911
911
|
peerDependencies:
|
912
912
|
eslint: ^8.57.0 || ^9.0.0
|
913
913
|
typescript: '>=4.8.4 <5.8.0'
|
914
914
|
|
915
|
-
'@typescript-eslint/types@8.
|
916
|
-
resolution: {integrity: sha512-
|
915
|
+
'@typescript-eslint/types@8.18.2':
|
916
|
+
resolution: {integrity: sha512-Z/zblEPp8cIvmEn6+tPDIHUbRu/0z5lqZ+NvolL5SvXWT5rQy7+Nch83M0++XzO0XrWRFWECgOAyE8bsJTl1GQ==}
|
917
917
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
918
918
|
|
919
|
-
'@typescript-eslint/typescript-estree@8.
|
920
|
-
resolution: {integrity: sha512-
|
919
|
+
'@typescript-eslint/typescript-estree@8.18.2':
|
920
|
+
resolution: {integrity: sha512-WXAVt595HjpmlfH4crSdM/1bcsqh+1weFRWIa9XMTx/XHZ9TCKMcr725tLYqWOgzKdeDrqVHxFotrvWcEsk2Tg==}
|
921
921
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
922
922
|
peerDependencies:
|
923
923
|
typescript: '>=4.8.4 <5.8.0'
|
924
924
|
|
925
|
-
'@typescript-eslint/utils@8.
|
926
|
-
resolution: {integrity: sha512-
|
925
|
+
'@typescript-eslint/utils@8.18.2':
|
926
|
+
resolution: {integrity: sha512-Cr4A0H7DtVIPkauj4sTSXVl+VBWewE9/o40KcF3TV9aqDEOWoXF3/+oRXNby3DYzZeCATvbdksYsGZzplwnK/Q==}
|
927
927
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
928
928
|
peerDependencies:
|
929
929
|
eslint: ^8.57.0 || ^9.0.0
|
930
930
|
typescript: '>=4.8.4 <5.8.0'
|
931
931
|
|
932
|
-
'@typescript-eslint/visitor-keys@8.
|
933
|
-
resolution: {integrity: sha512-
|
932
|
+
'@typescript-eslint/visitor-keys@8.18.2':
|
933
|
+
resolution: {integrity: sha512-zORcwn4C3trOWiCqFQP1x6G3xTRyZ1LYydnj51cRnJ6hxBlr/cKPckk+PKPUw/fXmvfKTcw7bwY3w9izgx5jZw==}
|
934
934
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
935
935
|
|
936
936
|
'@ungap/structured-clone@1.2.1':
|
@@ -1274,8 +1274,8 @@ packages:
|
|
1274
1274
|
peerDependencies:
|
1275
1275
|
eslint: '>=7.0.0'
|
1276
1276
|
|
1277
|
-
eslint-plugin-react-hooks@5.
|
1278
|
-
resolution: {integrity: sha512-
|
1277
|
+
eslint-plugin-react-hooks@5.0.0:
|
1278
|
+
resolution: {integrity: sha512-hIOwI+5hYGpJEc4uPRmz2ulCjAGD/N13Lukkh8cLV0i2IRk/bdZDYjgLVHj+U9Z704kLIdIO6iueGvxNur0sgw==}
|
1279
1279
|
engines: {node: '>=10'}
|
1280
1280
|
peerDependencies:
|
1281
1281
|
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
|
@@ -2346,11 +2346,11 @@ packages:
|
|
2346
2346
|
trim-lines@3.0.1:
|
2347
2347
|
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
|
2348
2348
|
|
2349
|
-
ts-api-utils@
|
2350
|
-
resolution: {integrity: sha512-
|
2351
|
-
engines: {node: '>=
|
2349
|
+
ts-api-utils@1.4.3:
|
2350
|
+
resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==}
|
2351
|
+
engines: {node: '>=16'}
|
2352
2352
|
peerDependencies:
|
2353
|
-
typescript: '>=4.
|
2353
|
+
typescript: '>=4.2.0'
|
2354
2354
|
|
2355
2355
|
tsconfck@2.1.2:
|
2356
2356
|
resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==}
|
@@ -2423,8 +2423,8 @@ packages:
|
|
2423
2423
|
peerDependencies:
|
2424
2424
|
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x
|
2425
2425
|
|
2426
|
-
typescript-eslint@8.
|
2427
|
-
resolution: {integrity: sha512-
|
2426
|
+
typescript-eslint@8.18.2:
|
2427
|
+
resolution: {integrity: sha512-KuXezG6jHkvC3MvizeXgupZzaG5wjhU3yE8E7e6viOvAvD9xAWYp8/vy0WULTGe9DYDWcQu7aW03YIV3mSitrQ==}
|
2428
2428
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
2429
2429
|
peerDependencies:
|
2430
2430
|
eslint: ^8.57.0 || ^9.0.0
|
@@ -3101,7 +3101,7 @@ snapshots:
|
|
3101
3101
|
'@orval/core': 7.4.1(openapi-types@12.1.3)
|
3102
3102
|
lodash.get: 4.4.2
|
3103
3103
|
lodash.omit: 4.5.0
|
3104
|
-
openapi3-ts: 4.
|
3104
|
+
openapi3-ts: 4.4.0
|
3105
3105
|
transitivePeerDependencies:
|
3106
3106
|
- encoding
|
3107
3107
|
- openapi-types
|
@@ -3448,81 +3448,81 @@ snapshots:
|
|
3448
3448
|
|
3449
3449
|
'@types/urijs@1.19.25': {}
|
3450
3450
|
|
3451
|
-
'@typescript-eslint/eslint-plugin@8.
|
3451
|
+
'@typescript-eslint/eslint-plugin@8.18.2(@typescript-eslint/parser@8.18.2(eslint@9.17.0)(typescript@5.6.3))(eslint@9.17.0)(typescript@5.6.3)':
|
3452
3452
|
dependencies:
|
3453
3453
|
'@eslint-community/regexpp': 4.12.1
|
3454
|
-
'@typescript-eslint/parser': 8.
|
3455
|
-
'@typescript-eslint/scope-manager': 8.
|
3456
|
-
'@typescript-eslint/type-utils': 8.
|
3457
|
-
'@typescript-eslint/utils': 8.
|
3458
|
-
'@typescript-eslint/visitor-keys': 8.
|
3454
|
+
'@typescript-eslint/parser': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
3455
|
+
'@typescript-eslint/scope-manager': 8.18.2
|
3456
|
+
'@typescript-eslint/type-utils': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
3457
|
+
'@typescript-eslint/utils': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
3458
|
+
'@typescript-eslint/visitor-keys': 8.18.2
|
3459
3459
|
eslint: 9.17.0
|
3460
3460
|
graphemer: 1.4.0
|
3461
3461
|
ignore: 5.3.2
|
3462
3462
|
natural-compare: 1.4.0
|
3463
|
-
ts-api-utils:
|
3463
|
+
ts-api-utils: 1.4.3(typescript@5.6.3)
|
3464
3464
|
typescript: 5.6.3
|
3465
3465
|
transitivePeerDependencies:
|
3466
3466
|
- supports-color
|
3467
3467
|
|
3468
|
-
'@typescript-eslint/parser@8.
|
3468
|
+
'@typescript-eslint/parser@8.18.2(eslint@9.17.0)(typescript@5.6.3)':
|
3469
3469
|
dependencies:
|
3470
|
-
'@typescript-eslint/scope-manager': 8.
|
3471
|
-
'@typescript-eslint/types': 8.
|
3472
|
-
'@typescript-eslint/typescript-estree': 8.
|
3473
|
-
'@typescript-eslint/visitor-keys': 8.
|
3470
|
+
'@typescript-eslint/scope-manager': 8.18.2
|
3471
|
+
'@typescript-eslint/types': 8.18.2
|
3472
|
+
'@typescript-eslint/typescript-estree': 8.18.2(typescript@5.6.3)
|
3473
|
+
'@typescript-eslint/visitor-keys': 8.18.2
|
3474
3474
|
debug: 4.4.0
|
3475
3475
|
eslint: 9.17.0
|
3476
3476
|
typescript: 5.6.3
|
3477
3477
|
transitivePeerDependencies:
|
3478
3478
|
- supports-color
|
3479
3479
|
|
3480
|
-
'@typescript-eslint/scope-manager@8.
|
3480
|
+
'@typescript-eslint/scope-manager@8.18.2':
|
3481
3481
|
dependencies:
|
3482
|
-
'@typescript-eslint/types': 8.
|
3483
|
-
'@typescript-eslint/visitor-keys': 8.
|
3482
|
+
'@typescript-eslint/types': 8.18.2
|
3483
|
+
'@typescript-eslint/visitor-keys': 8.18.2
|
3484
3484
|
|
3485
|
-
'@typescript-eslint/type-utils@8.
|
3485
|
+
'@typescript-eslint/type-utils@8.18.2(eslint@9.17.0)(typescript@5.6.3)':
|
3486
3486
|
dependencies:
|
3487
|
-
'@typescript-eslint/typescript-estree': 8.
|
3488
|
-
'@typescript-eslint/utils': 8.
|
3487
|
+
'@typescript-eslint/typescript-estree': 8.18.2(typescript@5.6.3)
|
3488
|
+
'@typescript-eslint/utils': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
3489
3489
|
debug: 4.4.0
|
3490
3490
|
eslint: 9.17.0
|
3491
|
-
ts-api-utils:
|
3491
|
+
ts-api-utils: 1.4.3(typescript@5.6.3)
|
3492
3492
|
typescript: 5.6.3
|
3493
3493
|
transitivePeerDependencies:
|
3494
3494
|
- supports-color
|
3495
3495
|
|
3496
|
-
'@typescript-eslint/types@8.
|
3496
|
+
'@typescript-eslint/types@8.18.2': {}
|
3497
3497
|
|
3498
|
-
'@typescript-eslint/typescript-estree@8.
|
3498
|
+
'@typescript-eslint/typescript-estree@8.18.2(typescript@5.6.3)':
|
3499
3499
|
dependencies:
|
3500
|
-
'@typescript-eslint/types': 8.
|
3501
|
-
'@typescript-eslint/visitor-keys': 8.
|
3500
|
+
'@typescript-eslint/types': 8.18.2
|
3501
|
+
'@typescript-eslint/visitor-keys': 8.18.2
|
3502
3502
|
debug: 4.4.0
|
3503
3503
|
fast-glob: 3.3.3
|
3504
3504
|
is-glob: 4.0.3
|
3505
3505
|
minimatch: 9.0.5
|
3506
3506
|
semver: 7.6.3
|
3507
|
-
ts-api-utils:
|
3507
|
+
ts-api-utils: 1.4.3(typescript@5.6.3)
|
3508
3508
|
typescript: 5.6.3
|
3509
3509
|
transitivePeerDependencies:
|
3510
3510
|
- supports-color
|
3511
3511
|
|
3512
|
-
'@typescript-eslint/utils@8.
|
3512
|
+
'@typescript-eslint/utils@8.18.2(eslint@9.17.0)(typescript@5.6.3)':
|
3513
3513
|
dependencies:
|
3514
3514
|
'@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0)
|
3515
|
-
'@typescript-eslint/scope-manager': 8.
|
3516
|
-
'@typescript-eslint/types': 8.
|
3517
|
-
'@typescript-eslint/typescript-estree': 8.
|
3515
|
+
'@typescript-eslint/scope-manager': 8.18.2
|
3516
|
+
'@typescript-eslint/types': 8.18.2
|
3517
|
+
'@typescript-eslint/typescript-estree': 8.18.2(typescript@5.6.3)
|
3518
3518
|
eslint: 9.17.0
|
3519
3519
|
typescript: 5.6.3
|
3520
3520
|
transitivePeerDependencies:
|
3521
3521
|
- supports-color
|
3522
3522
|
|
3523
|
-
'@typescript-eslint/visitor-keys@8.
|
3523
|
+
'@typescript-eslint/visitor-keys@8.18.2':
|
3524
3524
|
dependencies:
|
3525
|
-
'@typescript-eslint/types': 8.
|
3525
|
+
'@typescript-eslint/types': 8.18.2
|
3526
3526
|
eslint-visitor-keys: 4.2.0
|
3527
3527
|
|
3528
3528
|
'@ungap/structured-clone@1.2.1': {}
|
@@ -3944,7 +3944,7 @@ snapshots:
|
|
3944
3944
|
dependencies:
|
3945
3945
|
eslint: 9.17.0
|
3946
3946
|
|
3947
|
-
eslint-plugin-react-hooks@5.
|
3947
|
+
eslint-plugin-react-hooks@5.0.0(eslint@9.17.0):
|
3948
3948
|
dependencies:
|
3949
3949
|
eslint: 9.17.0
|
3950
3950
|
|
@@ -5138,7 +5138,7 @@ snapshots:
|
|
5138
5138
|
|
5139
5139
|
trim-lines@3.0.1: {}
|
5140
5140
|
|
5141
|
-
ts-api-utils@
|
5141
|
+
ts-api-utils@1.4.3(typescript@5.6.3):
|
5142
5142
|
dependencies:
|
5143
5143
|
typescript: 5.6.3
|
5144
5144
|
|
@@ -5215,11 +5215,11 @@ snapshots:
|
|
5215
5215
|
typescript: 5.6.3
|
5216
5216
|
yaml: 2.6.1
|
5217
5217
|
|
5218
|
-
typescript-eslint@8.
|
5218
|
+
typescript-eslint@8.18.2(eslint@9.17.0)(typescript@5.6.3):
|
5219
5219
|
dependencies:
|
5220
|
-
'@typescript-eslint/eslint-plugin': 8.
|
5221
|
-
'@typescript-eslint/parser': 8.
|
5222
|
-
'@typescript-eslint/utils': 8.
|
5220
|
+
'@typescript-eslint/eslint-plugin': 8.18.2(@typescript-eslint/parser@8.18.2(eslint@9.17.0)(typescript@5.6.3))(eslint@9.17.0)(typescript@5.6.3)
|
5221
|
+
'@typescript-eslint/parser': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
5222
|
+
'@typescript-eslint/utils': 8.18.2(eslint@9.17.0)(typescript@5.6.3)
|
5223
5223
|
eslint: 9.17.0
|
5224
5224
|
typescript: 5.6.3
|
5225
5225
|
transitivePeerDependencies:
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { env } from "@/env";
|
1
2
|
import { ApiError } from "./errors/api-error";
|
2
3
|
import { ApiUnexpectedResponseError } from "./errors/api-unexpected-response-error";
|
3
4
|
|
@@ -11,7 +12,13 @@ export async function swrFetcher<Output extends SwrFetcherOutput>(
|
|
11
12
|
url: RequestInfo | URL,
|
12
13
|
options?: RequestInit,
|
13
14
|
): Promise<Output> {
|
14
|
-
const
|
15
|
+
const apiBaseUrl = new URL(env.APP_API_BASE_URL);
|
16
|
+
const endpointUrl = new URL(url.toString());
|
17
|
+
|
18
|
+
endpointUrl.host = apiBaseUrl.host;
|
19
|
+
endpointUrl.protocol = apiBaseUrl.protocol;
|
20
|
+
|
21
|
+
const response = await fetch(endpointUrl, options);
|
15
22
|
let body: unknown;
|
16
23
|
|
17
24
|
if (
|