@lark-apaas/coding-template-nestjs-react-fullstack 0.1.47-alpha.20261005173706 → 0.1.48
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/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "fullstack-nestjs-template",
|
|
9
9
|
"version": "2.3.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@lark-apaas/fullstack-nestjs-core": "^1.1.
|
|
11
|
+
"@lark-apaas/fullstack-nestjs-core": "^1.1.66",
|
|
12
12
|
"@nestjs/axios": "^4.0.1",
|
|
13
13
|
"@nestjs/cache-manager": "^3.1.3",
|
|
14
14
|
"@nestjs/common": "^10.4.20",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@hookform/resolvers": "^5.2.2",
|
|
35
|
-
"@lark-apaas/client-toolkit": "^1.2.
|
|
35
|
+
"@lark-apaas/client-toolkit": "^1.2.74",
|
|
36
36
|
"@lark-apaas/coding-preset-vite-react": "^1.0.25",
|
|
37
37
|
"@lark-apaas/fullstack-presets": "^1.1.25",
|
|
38
38
|
"@nestjs/cli": "^10.4.9",
|
|
@@ -1202,15 +1202,15 @@
|
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
1204
1204
|
"node_modules/@hono/node-server": {
|
|
1205
|
-
"version": "2.1.
|
|
1206
|
-
"resolved": "https://registry.npmmirror.com/@hono/node-server/-/node-server-2.1.
|
|
1207
|
-
"integrity": "sha512-
|
|
1205
|
+
"version": "2.1.5",
|
|
1206
|
+
"resolved": "https://registry.npmmirror.com/@hono/node-server/-/node-server-2.1.5.tgz",
|
|
1207
|
+
"integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==",
|
|
1208
1208
|
"license": "MIT",
|
|
1209
1209
|
"engines": {
|
|
1210
1210
|
"node": ">=20"
|
|
1211
1211
|
},
|
|
1212
1212
|
"peerDependencies": {
|
|
1213
|
-
"hono": "^4"
|
|
1213
|
+
"hono": "^4 || ^5.0.0-0"
|
|
1214
1214
|
}
|
|
1215
1215
|
},
|
|
1216
1216
|
"node_modules/@hookform/resolvers": {
|
|
@@ -1579,9 +1579,9 @@
|
|
|
1579
1579
|
}
|
|
1580
1580
|
},
|
|
1581
1581
|
"node_modules/@lark-apaas/client-toolkit": {
|
|
1582
|
-
"version": "1.2.
|
|
1583
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.
|
|
1584
|
-
"integrity": "sha512
|
|
1582
|
+
"version": "1.2.74",
|
|
1583
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.74.tgz",
|
|
1584
|
+
"integrity": "sha512-130dhn1soBcAH/QuJNzn98Y0olakEouHBJ44xW1S6/kX2oqA4kYupLkDJJ9/TyzvA4P1uiqx0P8GUmUyg9+y8g==",
|
|
1585
1585
|
"dev": true,
|
|
1586
1586
|
"dependencies": {
|
|
1587
1587
|
"@ant-design/colors": "^7.2.1",
|
|
@@ -1591,7 +1591,7 @@
|
|
|
1591
1591
|
"@lark-apaas/client-capability": "^0.1.7",
|
|
1592
1592
|
"@lark-apaas/dataloom": "^0.1.5",
|
|
1593
1593
|
"@lark-apaas/internal-slardar": "^0.0.3",
|
|
1594
|
-
"@lark-apaas/miaoda-inspector": "^1.0.
|
|
1594
|
+
"@lark-apaas/miaoda-inspector": "^1.0.25",
|
|
1595
1595
|
"@lark-apaas/observable-web": "^1.0.6",
|
|
1596
1596
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
1597
1597
|
"@radix-ui/react-popover": "^1.1.15",
|
|
@@ -1697,22 +1697,22 @@
|
|
|
1697
1697
|
}
|
|
1698
1698
|
},
|
|
1699
1699
|
"node_modules/@lark-apaas/fullstack-nestjs-core": {
|
|
1700
|
-
"version": "1.1.
|
|
1701
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/fullstack-nestjs-core/-/fullstack-nestjs-core-1.1.
|
|
1702
|
-
"integrity": "sha512-
|
|
1700
|
+
"version": "1.1.66",
|
|
1701
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/fullstack-nestjs-core/-/fullstack-nestjs-core-1.1.66.tgz",
|
|
1702
|
+
"integrity": "sha512-TeC/W6q3StOulDo5q8AmzmQCGarR3WKknYc1ZWs0xuptBddDX4w6KfZvLIdr9/Bs9Y0sOW5bEf71WL8o1vXr4g==",
|
|
1703
1703
|
"license": "MIT",
|
|
1704
1704
|
"dependencies": {
|
|
1705
1705
|
"@lark-apaas/cache-service": "^0.1.2",
|
|
1706
1706
|
"@lark-apaas/file-service": "^0.1.2",
|
|
1707
1707
|
"@lark-apaas/http-client": "^0.1.7",
|
|
1708
|
-
"@lark-apaas/nestjs-authnpaas": "^1.0.
|
|
1709
|
-
"@lark-apaas/nestjs-authzpaas": "^0.1.
|
|
1708
|
+
"@lark-apaas/nestjs-authnpaas": "^1.0.9",
|
|
1709
|
+
"@lark-apaas/nestjs-authzpaas": "^0.1.16",
|
|
1710
1710
|
"@lark-apaas/nestjs-capability": "^0.1.14",
|
|
1711
1711
|
"@lark-apaas/nestjs-common": "^0.1.9",
|
|
1712
1712
|
"@lark-apaas/nestjs-datapaas": "^1.0.21",
|
|
1713
1713
|
"@lark-apaas/nestjs-http-forwarder": "^0.1.3",
|
|
1714
1714
|
"@lark-apaas/nestjs-logger": "^1.0.18",
|
|
1715
|
-
"@lark-apaas/nestjs-mcp": "^0.1.
|
|
1715
|
+
"@lark-apaas/nestjs-mcp": "^0.1.2",
|
|
1716
1716
|
"@lark-apaas/nestjs-observable": "^0.0.12",
|
|
1717
1717
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.10",
|
|
1718
1718
|
"@lark-apaas/nestjs-trigger": "^0.0.3",
|
|
@@ -1789,9 +1789,9 @@
|
|
|
1789
1789
|
"license": "MIT"
|
|
1790
1790
|
},
|
|
1791
1791
|
"node_modules/@lark-apaas/miaoda-inspector": {
|
|
1792
|
-
"version": "1.0.
|
|
1793
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/miaoda-inspector/-/miaoda-inspector-1.0.
|
|
1794
|
-
"integrity": "sha512-
|
|
1792
|
+
"version": "1.0.25",
|
|
1793
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/miaoda-inspector/-/miaoda-inspector-1.0.25.tgz",
|
|
1794
|
+
"integrity": "sha512-vuUpDOMyQ9ORz9jQFNs7ovlqF8rqJ7COkaXhfy4nQUaHNbRviqqJsQjMKpBeeryqDGRtpYznUpFGiOUzbqoJJQ==",
|
|
1795
1795
|
"dev": true,
|
|
1796
1796
|
"dependencies": {
|
|
1797
1797
|
"@zumer/snapdom": "^1.9.14",
|
|
@@ -1806,9 +1806,9 @@
|
|
|
1806
1806
|
}
|
|
1807
1807
|
},
|
|
1808
1808
|
"node_modules/@lark-apaas/nestjs-authnpaas": {
|
|
1809
|
-
"version": "1.0.
|
|
1810
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-authnpaas/-/nestjs-authnpaas-1.0.
|
|
1811
|
-
"integrity": "sha512-
|
|
1809
|
+
"version": "1.0.9",
|
|
1810
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-authnpaas/-/nestjs-authnpaas-1.0.9.tgz",
|
|
1811
|
+
"integrity": "sha512-IZmTASPj/fXHjDfUahSNQeFlyWmZxpbpOeJO4cJNH8IGL3ueBWaMJ3A/DcR5TyR7kAy1Z3z371dd/MUlv8KP6g==",
|
|
1812
1812
|
"license": "MIT",
|
|
1813
1813
|
"dependencies": {
|
|
1814
1814
|
"reflect-metadata": "^0.1.13"
|
|
@@ -1824,13 +1824,13 @@
|
|
|
1824
1824
|
}
|
|
1825
1825
|
},
|
|
1826
1826
|
"node_modules/@lark-apaas/nestjs-authzpaas": {
|
|
1827
|
-
"version": "0.1.
|
|
1828
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-authzpaas/-/nestjs-authzpaas-0.1.
|
|
1829
|
-
"integrity": "sha512-
|
|
1827
|
+
"version": "0.1.16",
|
|
1828
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-authzpaas/-/nestjs-authzpaas-0.1.16.tgz",
|
|
1829
|
+
"integrity": "sha512-w663qQ0ZZvooovH/bEJ/QqEWtu9uZJT2TaiAtjeqTUBtEqcxDuzZ2XiqK0zk3drdmrIWrbMXqjok8ubhnMrB5A==",
|
|
1830
1830
|
"license": "MIT",
|
|
1831
1831
|
"dependencies": {
|
|
1832
1832
|
"@casl/ability": "^6.7.3",
|
|
1833
|
-
"@lark-apaas/nestjs-authnpaas": "^1.0.
|
|
1833
|
+
"@lark-apaas/nestjs-authnpaas": "^1.0.9",
|
|
1834
1834
|
"@lark-apaas/nestjs-common": "^0.1.9",
|
|
1835
1835
|
"jsonwebtoken": "^9.0.3",
|
|
1836
1836
|
"reflect-metadata": "^0.1.13",
|
|
@@ -1945,9 +1945,9 @@
|
|
|
1945
1945
|
}
|
|
1946
1946
|
},
|
|
1947
1947
|
"node_modules/@lark-apaas/nestjs-mcp": {
|
|
1948
|
-
"version": "0.1.
|
|
1949
|
-
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-mcp/-/nestjs-mcp-0.1.
|
|
1950
|
-
"integrity": "sha512-
|
|
1948
|
+
"version": "0.1.2",
|
|
1949
|
+
"resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-mcp/-/nestjs-mcp-0.1.2.tgz",
|
|
1950
|
+
"integrity": "sha512-kLfQ4m+hkczz9hemUsNz3dFE1bTWFiPnFkUNVtz2mqzh8c65JxfG+sU2HUt5WTTiyLFHDbpOxw+hb922KkGBkw==",
|
|
1951
1951
|
"license": "MIT",
|
|
1952
1952
|
"dependencies": {
|
|
1953
1953
|
"@modelcontextprotocol/ext-apps": "^1.7.5",
|
|
@@ -2122,9 +2122,9 @@
|
|
|
2122
2122
|
}
|
|
2123
2123
|
},
|
|
2124
2124
|
"node_modules/@modelcontextprotocol/sdk": {
|
|
2125
|
-
"version": "1.
|
|
2126
|
-
"resolved": "https://registry.npmmirror.com/@modelcontextprotocol/sdk/-/sdk-1.
|
|
2127
|
-
"integrity": "sha512-
|
|
2125
|
+
"version": "1.32.1",
|
|
2126
|
+
"resolved": "https://registry.npmmirror.com/@modelcontextprotocol/sdk/-/sdk-1.32.1.tgz",
|
|
2127
|
+
"integrity": "sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==",
|
|
2128
2128
|
"license": "MIT",
|
|
2129
2129
|
"dependencies": {
|
|
2130
2130
|
"@hono/node-server": "^1.19.9 || ^2.0.5",
|
|
@@ -2245,9 +2245,9 @@
|
|
|
2245
2245
|
}
|
|
2246
2246
|
},
|
|
2247
2247
|
"node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": {
|
|
2248
|
-
"version": "
|
|
2249
|
-
"resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-
|
|
2250
|
-
"integrity": "sha512-
|
|
2248
|
+
"version": "2.0.1",
|
|
2249
|
+
"resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-2.0.1.tgz",
|
|
2250
|
+
"integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==",
|
|
2251
2251
|
"license": "MIT",
|
|
2252
2252
|
"engines": {
|
|
2253
2253
|
"node": ">=18"
|
|
@@ -2267,15 +2267,15 @@
|
|
|
2267
2267
|
}
|
|
2268
2268
|
},
|
|
2269
2269
|
"node_modules/@modelcontextprotocol/sdk/node_modules/express": {
|
|
2270
|
-
"version": "5.
|
|
2271
|
-
"resolved": "https://registry.npmmirror.com/express/-/express-5.
|
|
2272
|
-
"integrity": "sha512-
|
|
2270
|
+
"version": "5.3.0",
|
|
2271
|
+
"resolved": "https://registry.npmmirror.com/express/-/express-5.3.0.tgz",
|
|
2272
|
+
"integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==",
|
|
2273
2273
|
"license": "MIT",
|
|
2274
2274
|
"dependencies": {
|
|
2275
2275
|
"accepts": "^2.0.0",
|
|
2276
|
-
"body-parser": "^2.
|
|
2277
|
-
"content-disposition": "^
|
|
2278
|
-
"content-type": "^
|
|
2276
|
+
"body-parser": "^2.3.0",
|
|
2277
|
+
"content-disposition": "^2.0.1",
|
|
2278
|
+
"content-type": "^2.0.0",
|
|
2279
2279
|
"cookie": "^0.7.1",
|
|
2280
2280
|
"cookie-signature": "^1.2.1",
|
|
2281
2281
|
"debug": "^4.4.0",
|
|
@@ -2291,14 +2291,14 @@
|
|
|
2291
2291
|
"on-finished": "^2.4.1",
|
|
2292
2292
|
"once": "^1.4.0",
|
|
2293
2293
|
"parseurl": "^1.3.3",
|
|
2294
|
-
"proxy-addr": "^2.0.
|
|
2295
|
-
"qs": "^6.
|
|
2294
|
+
"proxy-addr": "^2.0.8",
|
|
2295
|
+
"qs": "^6.16.0",
|
|
2296
2296
|
"range-parser": "^1.2.1",
|
|
2297
2297
|
"router": "^2.2.0",
|
|
2298
2298
|
"send": "^1.1.0",
|
|
2299
2299
|
"serve-static": "^2.2.0",
|
|
2300
2300
|
"statuses": "^2.0.1",
|
|
2301
|
-
"type-is": "^2.0
|
|
2301
|
+
"type-is": "^2.1.0",
|
|
2302
2302
|
"vary": "^1.1.2"
|
|
2303
2303
|
},
|
|
2304
2304
|
"engines": {
|
|
@@ -2309,6 +2309,19 @@
|
|
|
2309
2309
|
"url": "https://opencollective.com/express"
|
|
2310
2310
|
}
|
|
2311
2311
|
},
|
|
2312
|
+
"node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/content-type": {
|
|
2313
|
+
"version": "2.1.0",
|
|
2314
|
+
"resolved": "https://registry.npmmirror.com/content-type/-/content-type-2.1.0.tgz",
|
|
2315
|
+
"integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==",
|
|
2316
|
+
"license": "MIT",
|
|
2317
|
+
"engines": {
|
|
2318
|
+
"node": ">=18"
|
|
2319
|
+
},
|
|
2320
|
+
"funding": {
|
|
2321
|
+
"type": "opencollective",
|
|
2322
|
+
"url": "https://opencollective.com/express"
|
|
2323
|
+
}
|
|
2324
|
+
},
|
|
2312
2325
|
"node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": {
|
|
2313
2326
|
"version": "2.1.1",
|
|
2314
2327
|
"resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-2.1.1.tgz",
|
|
@@ -13346,9 +13359,9 @@
|
|
|
13346
13359
|
}
|
|
13347
13360
|
},
|
|
13348
13361
|
"node_modules/express-rate-limit": {
|
|
13349
|
-
"version": "8.7.
|
|
13350
|
-
"resolved": "https://registry.npmmirror.com/express-rate-limit/-/express-rate-limit-8.7.
|
|
13351
|
-
"integrity": "sha512-
|
|
13362
|
+
"version": "8.7.1",
|
|
13363
|
+
"resolved": "https://registry.npmmirror.com/express-rate-limit/-/express-rate-limit-8.7.1.tgz",
|
|
13364
|
+
"integrity": "sha512-2FXbqkygil3mZiXzEtM0IjE/UBmBNot0J1GEVrJT4JbrvwOSoEtqtO+wHbiMQELWe1eNvHoYRg2dkjOid+6JkA==",
|
|
13352
13365
|
"license": "MIT",
|
|
13353
13366
|
"dependencies": {
|
|
13354
13367
|
"debug": "^4.4.3",
|
|
@@ -14685,9 +14698,9 @@
|
|
|
14685
14698
|
}
|
|
14686
14699
|
},
|
|
14687
14700
|
"node_modules/hono": {
|
|
14688
|
-
"version": "4.13.
|
|
14689
|
-
"resolved": "https://registry.npmmirror.com/hono/-/hono-4.13.
|
|
14690
|
-
"integrity": "sha512
|
|
14701
|
+
"version": "4.13.13",
|
|
14702
|
+
"resolved": "https://registry.npmmirror.com/hono/-/hono-4.13.13.tgz",
|
|
14703
|
+
"integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==",
|
|
14691
14704
|
"license": "MIT",
|
|
14692
14705
|
"engines": {
|
|
14693
14706
|
"node": ">=16.9.0"
|
|
@@ -14870,6 +14883,17 @@
|
|
|
14870
14883
|
"node": ">= 4"
|
|
14871
14884
|
}
|
|
14872
14885
|
},
|
|
14886
|
+
"node_modules/immer": {
|
|
14887
|
+
"version": "9.0.21",
|
|
14888
|
+
"resolved": "https://registry.npmmirror.com/immer/-/immer-9.0.21.tgz",
|
|
14889
|
+
"integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==",
|
|
14890
|
+
"dev": true,
|
|
14891
|
+
"license": "MIT",
|
|
14892
|
+
"funding": {
|
|
14893
|
+
"type": "opencollective",
|
|
14894
|
+
"url": "https://opencollective.com/immer"
|
|
14895
|
+
}
|
|
14896
|
+
},
|
|
14873
14897
|
"node_modules/import-fresh": {
|
|
14874
14898
|
"version": "3.3.1",
|
|
14875
14899
|
"resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.1.tgz",
|
|
@@ -15026,9 +15050,9 @@
|
|
|
15026
15050
|
}
|
|
15027
15051
|
},
|
|
15028
15052
|
"node_modules/ip-address": {
|
|
15029
|
-
"version": "10.7.
|
|
15030
|
-
"resolved": "https://registry.npmmirror.com/ip-address/-/ip-address-10.7.
|
|
15031
|
-
"integrity": "sha512-
|
|
15053
|
+
"version": "10.7.4",
|
|
15054
|
+
"resolved": "https://registry.npmmirror.com/ip-address/-/ip-address-10.7.4.tgz",
|
|
15055
|
+
"integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==",
|
|
15032
15056
|
"license": "MIT",
|
|
15033
15057
|
"engines": {
|
|
15034
15058
|
"node": ">= 12"
|
|
@@ -19023,9 +19047,9 @@
|
|
|
19023
19047
|
}
|
|
19024
19048
|
},
|
|
19025
19049
|
"node_modules/proxy-addr": {
|
|
19026
|
-
"version": "2.0.
|
|
19027
|
-
"resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.
|
|
19028
|
-
"integrity": "sha512-
|
|
19050
|
+
"version": "2.0.8",
|
|
19051
|
+
"resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.8.tgz",
|
|
19052
|
+
"integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==",
|
|
19029
19053
|
"license": "MIT",
|
|
19030
19054
|
"dependencies": {
|
|
19031
19055
|
"forwarded": "0.2.0",
|
|
@@ -19033,6 +19057,10 @@
|
|
|
19033
19057
|
},
|
|
19034
19058
|
"engines": {
|
|
19035
19059
|
"node": ">= 0.10"
|
|
19060
|
+
},
|
|
19061
|
+
"funding": {
|
|
19062
|
+
"type": "opencollective",
|
|
19063
|
+
"url": "https://opencollective.com/express"
|
|
19036
19064
|
}
|
|
19037
19065
|
},
|
|
19038
19066
|
"node_modules/proxy-from-env": {
|
|
@@ -19359,9 +19387,9 @@
|
|
|
19359
19387
|
}
|
|
19360
19388
|
},
|
|
19361
19389
|
"node_modules/react-dev-utils/node_modules/brace-expansion": {
|
|
19362
|
-
"version": "1.1.
|
|
19363
|
-
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.
|
|
19364
|
-
"integrity": "sha512-
|
|
19390
|
+
"version": "1.1.21",
|
|
19391
|
+
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.21.tgz",
|
|
19392
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
19365
19393
|
"dev": true,
|
|
19366
19394
|
"license": "MIT",
|
|
19367
19395
|
"dependencies": {
|
|
@@ -19474,17 +19502,6 @@
|
|
|
19474
19502
|
"url": "https://github.com/sponsors/isaacs"
|
|
19475
19503
|
}
|
|
19476
19504
|
},
|
|
19477
|
-
"node_modules/react-dev-utils/node_modules/immer": {
|
|
19478
|
-
"version": "9.0.21",
|
|
19479
|
-
"resolved": "https://registry.npmmirror.com/immer/-/immer-9.0.21.tgz",
|
|
19480
|
-
"integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==",
|
|
19481
|
-
"dev": true,
|
|
19482
|
-
"license": "MIT",
|
|
19483
|
-
"funding": {
|
|
19484
|
-
"type": "opencollective",
|
|
19485
|
-
"url": "https://opencollective.com/immer"
|
|
19486
|
-
}
|
|
19487
|
-
},
|
|
19488
19505
|
"node_modules/react-dev-utils/node_modules/is-docker": {
|
|
19489
19506
|
"version": "2.2.1",
|
|
19490
19507
|
"resolved": "https://registry.npmmirror.com/is-docker/-/is-docker-2.2.1.tgz",
|
|
@@ -19977,9 +19994,9 @@
|
|
|
19977
19994
|
}
|
|
19978
19995
|
},
|
|
19979
19996
|
"node_modules/recursive-readdir/node_modules/brace-expansion": {
|
|
19980
|
-
"version": "1.1.
|
|
19981
|
-
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.
|
|
19982
|
-
"integrity": "sha512-
|
|
19997
|
+
"version": "1.1.21",
|
|
19998
|
+
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.21.tgz",
|
|
19999
|
+
"integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==",
|
|
19983
20000
|
"dev": true,
|
|
19984
20001
|
"license": "MIT",
|
|
19985
20002
|
"dependencies": {
|
package/template/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"upgrade": "npx -y @lark-apaas/fullstack-cli sync --disable-gen-openapi"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@lark-apaas/fullstack-nestjs-core": "^1.1.
|
|
31
|
+
"@lark-apaas/fullstack-nestjs-core": "^1.1.66",
|
|
32
32
|
"@nestjs/axios": "^4.0.1",
|
|
33
33
|
"@nestjs/cache-manager": "^3.1.3",
|
|
34
34
|
"@nestjs/common": "^10.4.20",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@hookform/resolvers": "^5.2.2",
|
|
55
|
-
"@lark-apaas/client-toolkit": "^1.2.
|
|
55
|
+
"@lark-apaas/client-toolkit": "^1.2.74",
|
|
56
56
|
"@lark-apaas/coding-preset-vite-react": "^1.0.25",
|
|
57
57
|
"@lark-apaas/fullstack-presets": "^1.1.25",
|
|
58
58
|
"@nestjs/cli": "^10.4.9",
|
|
@@ -3,7 +3,6 @@ import type { Response } from 'express';
|
|
|
3
3
|
import { BusinessException } from '../interfaces/exception.interface';
|
|
4
4
|
import { HTTP_STATUS_TO_RESPONSE_CODE_MAP, ResponseCode } from '../constants/api_response_code';
|
|
5
5
|
import { ApiErrorResponse } from '../interfaces/api_response.interface';
|
|
6
|
-
import { hasPostgresSqlState } from '../utils/postgres-error';
|
|
7
6
|
|
|
8
7
|
// 全局异常过滤器,用于捕获所有未处理的异常
|
|
9
8
|
@Catch()
|
|
@@ -45,7 +44,11 @@ export class GlobalExceptionFilter implements ExceptionFilter {
|
|
|
45
44
|
timestamp: Date.now(),
|
|
46
45
|
},
|
|
47
46
|
};
|
|
48
|
-
} else if (
|
|
47
|
+
} else if (
|
|
48
|
+
typeof exception === 'object' &&
|
|
49
|
+
exception !== null &&
|
|
50
|
+
(exception as { code?: unknown }).code === '22P02'
|
|
51
|
+
) {
|
|
49
52
|
// Postgres invalid_text_representation:路径/查询参数与列类型不匹配(最常见是非法 UUID)
|
|
50
53
|
// 与「合法 UUID 但记录不存在」走同一条 not-found 语义,避免 500 噪声
|
|
51
54
|
httpStatus = HttpStatus.NOT_FOUND;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const POSTGRES_SQLSTATE_PATTERN = /^[0-9A-Z]{5}$/u;
|
|
2
|
-
|
|
3
|
-
export const POSTGRES_ERROR_CAUSE_DEPTH_LIMIT = 8;
|
|
4
|
-
|
|
5
|
-
export function hasPostgresSqlState(
|
|
6
|
-
error: unknown,
|
|
7
|
-
expectedSqlState: string,
|
|
8
|
-
): boolean {
|
|
9
|
-
if (!POSTGRES_SQLSTATE_PATTERN.test(expectedSqlState)) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const seen = new Set<object>();
|
|
14
|
-
let current: unknown = error;
|
|
15
|
-
|
|
16
|
-
for (
|
|
17
|
-
let depth = 0;
|
|
18
|
-
depth < POSTGRES_ERROR_CAUSE_DEPTH_LIMIT &&
|
|
19
|
-
current !== null &&
|
|
20
|
-
typeof current === 'object';
|
|
21
|
-
depth += 1
|
|
22
|
-
) {
|
|
23
|
-
if (seen.has(current)) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
seen.add(current);
|
|
27
|
-
|
|
28
|
-
const { code, cause } = current as { code?: unknown; cause?: unknown };
|
|
29
|
-
if (
|
|
30
|
-
typeof code === 'string' &&
|
|
31
|
-
POSTGRES_SQLSTATE_PATTERN.test(code) &&
|
|
32
|
-
code === expectedSqlState
|
|
33
|
-
) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
current = cause;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return false;
|
|
40
|
-
}
|