pcu 1.1.8 → 1.1.9
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/index.js +44 -517
- package/dist/index.js.map +1 -1
- package/package.json +19 -17
- package/src/cli/commandRegistrar.ts +2 -2
- package/src/cli/index.ts +9 -28
package/dist/index.js
CHANGED
|
@@ -995,7 +995,6 @@ var de = {
|
|
|
995
995
|
"command.selfUpdate.failed": "pcu-Aktualisierung fehlgeschlagen",
|
|
996
996
|
"command.selfUpdate.latestAlready": "Sie verwenden bereits die neueste Version ({{version}})",
|
|
997
997
|
"command.selfUpdate.restartHint": "Bitte starten Sie Ihr Terminal neu, um die neue Version zu verwenden.",
|
|
998
|
-
"command.selfUpdate.manualHint": "Sie k\xF6nnen manuell aktualisieren mit: npm install -g pcu@latest",
|
|
999
998
|
// AI command
|
|
1000
999
|
"command.ai.cacheCleared": "KI-Analyse-Cache geleert",
|
|
1001
1000
|
"command.ai.cacheStats": "KI-Analyse-Cache-Statistiken",
|
|
@@ -1120,8 +1119,7 @@ var de = {
|
|
|
1120
1119
|
// CLI messages
|
|
1121
1120
|
"cli.runAgain": "Bitte f\xFChren Sie den Befehl erneut aus, um die aktualisierte Version zu verwenden.",
|
|
1122
1121
|
"cli.checkingUpdates": "Suche nach Updates...",
|
|
1123
|
-
"cli.latestVersion": "
|
|
1124
|
-
"cli.available": "verf\xFCgbar",
|
|
1122
|
+
"cli.latestVersion": "Sie verwenden die neueste Version!",
|
|
1125
1123
|
"cli.unknownCommand": "Unbekannter Befehl: {{command}}",
|
|
1126
1124
|
"cli.couldNotCheckUpdates": "Updates konnten nicht gepr\xFCft werden:",
|
|
1127
1125
|
"cli.error": "Fehler:",
|
|
@@ -1901,7 +1899,6 @@ var en = {
|
|
|
1901
1899
|
"command.selfUpdate.failed": "Failed to update pcu",
|
|
1902
1900
|
"command.selfUpdate.latestAlready": "You are already using the latest version ({{version}})",
|
|
1903
1901
|
"command.selfUpdate.restartHint": "Please restart your terminal to use the new version.",
|
|
1904
|
-
"command.selfUpdate.manualHint": "You can manually update with: npm install -g pcu@latest",
|
|
1905
1902
|
// AI command
|
|
1906
1903
|
"command.ai.cacheCleared": "AI analysis cache cleared",
|
|
1907
1904
|
"command.ai.cacheStats": "AI Analysis Cache Statistics",
|
|
@@ -1943,8 +1940,7 @@ var en = {
|
|
|
1943
1940
|
// CLI messages
|
|
1944
1941
|
"cli.runAgain": "Please run your command again to use the updated version.",
|
|
1945
1942
|
"cli.checkingUpdates": "Checking for updates...",
|
|
1946
|
-
"cli.latestVersion": "
|
|
1947
|
-
"cli.available": "available",
|
|
1943
|
+
"cli.latestVersion": "You are using the latest version!",
|
|
1948
1944
|
"cli.unknownCommand": "Unknown command: {{command}}",
|
|
1949
1945
|
"cli.couldNotCheckUpdates": "Could not check for updates:",
|
|
1950
1946
|
"cli.error": "Error:",
|
|
@@ -2806,7 +2802,6 @@ var es = {
|
|
|
2806
2802
|
"command.selfUpdate.failed": "Error al actualizar pcu",
|
|
2807
2803
|
"command.selfUpdate.latestAlready": "Ya est\xE1 utilizando la \xFAltima versi\xF3n ({{version}})",
|
|
2808
2804
|
"command.selfUpdate.restartHint": "Reinicie su terminal para usar la nueva versi\xF3n.",
|
|
2809
|
-
"command.selfUpdate.manualHint": "Puede actualizar manualmente con: npm install -g pcu@latest",
|
|
2810
2805
|
// AI command
|
|
2811
2806
|
"command.ai.cacheCleared": "Cach\xE9 de an\xE1lisis de IA limpiada",
|
|
2812
2807
|
"command.ai.cacheStats": "Estad\xEDsticas de cach\xE9 de an\xE1lisis de IA",
|
|
@@ -2931,8 +2926,7 @@ var es = {
|
|
|
2931
2926
|
// CLI messages
|
|
2932
2927
|
"cli.runAgain": "Por favor, ejecute el comando nuevamente para usar la versi\xF3n actualizada.",
|
|
2933
2928
|
"cli.checkingUpdates": "Buscando actualizaciones...",
|
|
2934
|
-
"cli.latestVersion": "
|
|
2935
|
-
"cli.available": "disponible",
|
|
2929
|
+
"cli.latestVersion": "\xA1Est\xE1 usando la \xFAltima versi\xF3n!",
|
|
2936
2930
|
"cli.unknownCommand": "Comando desconocido: {{command}}",
|
|
2937
2931
|
"cli.couldNotCheckUpdates": "No se pudo verificar actualizaciones:",
|
|
2938
2932
|
"cli.error": "Error:",
|
|
@@ -3712,7 +3706,6 @@ var fr = {
|
|
|
3712
3706
|
"command.selfUpdate.failed": "\xC9chec de la mise \xE0 jour de pcu",
|
|
3713
3707
|
"command.selfUpdate.latestAlready": "Vous utilisez d\xE9j\xE0 la derni\xE8re version ({{version}})",
|
|
3714
3708
|
"command.selfUpdate.restartHint": "Veuillez red\xE9marrer votre terminal pour utiliser la nouvelle version.",
|
|
3715
|
-
"command.selfUpdate.manualHint": "Vous pouvez mettre \xE0 jour manuellement avec : npm install -g pcu@latest",
|
|
3716
3709
|
// AI command
|
|
3717
3710
|
"command.ai.cacheCleared": "Cache d'analyse IA vid\xE9",
|
|
3718
3711
|
"command.ai.cacheStats": "Statistiques du cache d'analyse IA",
|
|
@@ -3837,8 +3830,7 @@ var fr = {
|
|
|
3837
3830
|
// CLI messages
|
|
3838
3831
|
"cli.runAgain": "Veuillez relancer la commande pour utiliser la version mise \xE0 jour.",
|
|
3839
3832
|
"cli.checkingUpdates": "Recherche de mises \xE0 jour...",
|
|
3840
|
-
"cli.latestVersion": "
|
|
3841
|
-
"cli.available": "disponible",
|
|
3833
|
+
"cli.latestVersion": "Vous utilisez la derni\xE8re version !",
|
|
3842
3834
|
"cli.unknownCommand": "Commande inconnue : {{command}}",
|
|
3843
3835
|
"cli.couldNotCheckUpdates": "Impossible de v\xE9rifier les mises \xE0 jour :",
|
|
3844
3836
|
"cli.error": "Erreur :",
|
|
@@ -4618,7 +4610,6 @@ var ja = {
|
|
|
4618
4610
|
"command.selfUpdate.failed": "pcu \u306E\u66F4\u65B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
4619
4611
|
"command.selfUpdate.latestAlready": "\u65E2\u306B\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3 ({{version}}) \u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059",
|
|
4620
4612
|
"command.selfUpdate.restartHint": "\u65B0\u3057\u3044\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F\u3001\u30BF\u30FC\u30DF\u30CA\u30EB\u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
4621
|
-
"command.selfUpdate.manualHint": "\u624B\u52D5\u3067\u66F4\u65B0\u3059\u308B\u306B\u306F: npm install -g pcu@latest",
|
|
4622
4613
|
// AI command
|
|
4623
4614
|
"command.ai.cacheCleared": "AI \u5206\u6790\u30AD\u30E3\u30C3\u30B7\u30E5\u3092\u30AF\u30EA\u30A2\u3057\u307E\u3057\u305F",
|
|
4624
4615
|
"command.ai.cacheStats": "AI \u5206\u6790\u30AD\u30E3\u30C3\u30B7\u30E5\u7D71\u8A08",
|
|
@@ -4743,8 +4734,7 @@ var ja = {
|
|
|
4743
4734
|
// CLI messages
|
|
4744
4735
|
"cli.runAgain": "\u66F4\u65B0\u3055\u308C\u305F\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F\u3001\u30B3\u30DE\u30F3\u30C9\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
4745
4736
|
"cli.checkingUpdates": "\u66F4\u65B0\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059...",
|
|
4746
|
-
"cli.latestVersion": "\u6700\u65B0\
|
|
4747
|
-
"cli.available": "\u5229\u7528\u53EF\u80FD",
|
|
4737
|
+
"cli.latestVersion": "\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\uFF01",
|
|
4748
4738
|
"cli.unknownCommand": "\u4E0D\u660E\u306A\u30B3\u30DE\u30F3\u30C9: {{command}}",
|
|
4749
4739
|
"cli.couldNotCheckUpdates": "\u66F4\u65B0\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F:",
|
|
4750
4740
|
"cli.error": "\u30A8\u30E9\u30FC:",
|
|
@@ -5524,7 +5514,6 @@ var ko = {
|
|
|
5524
5514
|
"command.selfUpdate.failed": "pcu \uC5C5\uB370\uC774\uD2B8 \uC2E4\uD328",
|
|
5525
5515
|
"command.selfUpdate.latestAlready": "\uC774\uBBF8 \uCD5C\uC2E0 \uBC84\uC804 ({{version}})\uC744 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4",
|
|
5526
5516
|
"command.selfUpdate.restartHint": "\uC0C8 \uBC84\uC804\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 \uD130\uBBF8\uB110\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD558\uC138\uC694.",
|
|
5527
|
-
"command.selfUpdate.manualHint": "\uC218\uB3D9\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uD558\uB824\uBA74: npm install -g pcu@latest",
|
|
5528
5517
|
// AI command
|
|
5529
5518
|
"command.ai.cacheCleared": "AI \uBD84\uC11D \uCE90\uC2DC \uC0AD\uC81C\uB428",
|
|
5530
5519
|
"command.ai.cacheStats": "AI \uBD84\uC11D \uCE90\uC2DC \uD1B5\uACC4",
|
|
@@ -5649,8 +5638,7 @@ var ko = {
|
|
|
5649
5638
|
// CLI messages
|
|
5650
5639
|
"cli.runAgain": "\uC5C5\uB370\uC774\uD2B8\uB41C \uBC84\uC804\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 \uBA85\uB839\uC744 \uB2E4\uC2DC \uC2E4\uD589\uD558\uC138\uC694.",
|
|
5651
5640
|
"cli.checkingUpdates": "\uC5C5\uB370\uC774\uD2B8 \uD655\uC778 \uC911...",
|
|
5652
|
-
"cli.latestVersion": "\uCD5C\uC2E0 \uBC84\uC804",
|
|
5653
|
-
"cli.available": "\uC0AC\uC6A9 \uAC00\uB2A5",
|
|
5641
|
+
"cli.latestVersion": "\uCD5C\uC2E0 \uBC84\uC804\uC744 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4!",
|
|
5654
5642
|
"cli.unknownCommand": "\uC54C \uC218 \uC5C6\uB294 \uBA85\uB839: {{command}}",
|
|
5655
5643
|
"cli.couldNotCheckUpdates": "\uC5C5\uB370\uC774\uD2B8\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4:",
|
|
5656
5644
|
"cli.error": "\uC624\uB958:",
|
|
@@ -6430,7 +6418,6 @@ var zh = {
|
|
|
6430
6418
|
"command.selfUpdate.failed": "\u66F4\u65B0 pcu \u5931\u8D25",
|
|
6431
6419
|
"command.selfUpdate.latestAlready": "\u60A8\u5DF2\u4F7F\u7528\u6700\u65B0\u7248\u672C ({{version}})",
|
|
6432
6420
|
"command.selfUpdate.restartHint": "\u8BF7\u91CD\u65B0\u542F\u52A8\u7EC8\u7AEF\u4EE5\u4F7F\u7528\u65B0\u7248\u672C\u3002",
|
|
6433
|
-
"command.selfUpdate.manualHint": "\u60A8\u53EF\u4EE5\u624B\u52A8\u66F4\u65B0\uFF1Anpm install -g pcu@latest",
|
|
6434
6421
|
// AI command
|
|
6435
6422
|
"command.ai.cacheCleared": "AI \u5206\u6790\u7F13\u5B58\u5DF2\u6E05\u9664",
|
|
6436
6423
|
"command.ai.cacheStats": "AI \u5206\u6790\u7F13\u5B58\u7EDF\u8BA1",
|
|
@@ -6555,8 +6542,7 @@ var zh = {
|
|
|
6555
6542
|
// CLI messages
|
|
6556
6543
|
"cli.runAgain": "\u8BF7\u91CD\u65B0\u8FD0\u884C\u547D\u4EE4\u4EE5\u4F7F\u7528\u66F4\u65B0\u540E\u7684\u7248\u672C\u3002",
|
|
6557
6544
|
"cli.checkingUpdates": "\u6B63\u5728\u68C0\u67E5\u66F4\u65B0...",
|
|
6558
|
-
"cli.latestVersion": "\
|
|
6559
|
-
"cli.available": "\u53EF\u7528",
|
|
6545
|
+
"cli.latestVersion": "\u60A8\u6B63\u5728\u4F7F\u7528\u6700\u65B0\u7248\u672C\uFF01",
|
|
6560
6546
|
"cli.unknownCommand": "\u672A\u77E5\u547D\u4EE4\uFF1A{{command}}",
|
|
6561
6547
|
"cli.couldNotCheckUpdates": "\u65E0\u6CD5\u68C0\u67E5\u66F4\u65B0\uFF1A",
|
|
6562
6548
|
"cli.error": "\u9519\u8BEF\uFF1A",
|
|
@@ -7495,476 +7481,6 @@ var ErrorTracker = class _ErrorTracker {
|
|
|
7495
7481
|
return [..._ErrorTracker.skippedPackages];
|
|
7496
7482
|
}
|
|
7497
7483
|
};
|
|
7498
|
-
|
|
7499
|
-
// ../../packages/utils/src/error-handling/data/packageSuggestions.json
|
|
7500
|
-
var packageSuggestions_default = {
|
|
7501
|
-
sveltekit: ["@sveltejs/kit"],
|
|
7502
|
-
"vue-router": ["vue-router"],
|
|
7503
|
-
"vue-cli": ["@vue/cli"],
|
|
7504
|
-
"angular-cli": ["@angular/cli"],
|
|
7505
|
-
"angular-core": ["@angular/core"],
|
|
7506
|
-
"angular-universal": ["@nguniversal/express-engine", "@angular/universal"],
|
|
7507
|
-
"react-router": ["react-router-dom"],
|
|
7508
|
-
"react-dom": ["react-dom"],
|
|
7509
|
-
nextjs: ["next"],
|
|
7510
|
-
nuxtjs: ["nuxt"],
|
|
7511
|
-
"material-ui": ["@mui/material", "@material-ui/core"],
|
|
7512
|
-
mui: ["@mui/material"],
|
|
7513
|
-
antd: ["antd"],
|
|
7514
|
-
"ant-design": ["antd"],
|
|
7515
|
-
"prime-ng": ["primeng"],
|
|
7516
|
-
primeng: ["primeng"],
|
|
7517
|
-
"ng-zorro": ["ng-zorro-antd"],
|
|
7518
|
-
"bootstrap-vue": ["bootstrap-vue"],
|
|
7519
|
-
vuetify: ["vuetify"],
|
|
7520
|
-
quasar: ["quasar"],
|
|
7521
|
-
"onsen-ui": ["onsenui"],
|
|
7522
|
-
ionic: ["@ionic/angular", "@ionic/react", "@ionic/vue"],
|
|
7523
|
-
tailwindcss: ["tailwindcss"],
|
|
7524
|
-
tailwind: ["tailwindcss"],
|
|
7525
|
-
bulma: ["bulma"],
|
|
7526
|
-
"water-css": ["water.css"],
|
|
7527
|
-
"holiday-css": ["@holiday-css/main"],
|
|
7528
|
-
"wing-css": ["@wing-css/wing"],
|
|
7529
|
-
"picnic-css": ["picnicss"],
|
|
7530
|
-
webpack: ["webpack"],
|
|
7531
|
-
"webpack-cli": ["webpack-cli"],
|
|
7532
|
-
rollup: ["rollup"],
|
|
7533
|
-
vite: ["vite"],
|
|
7534
|
-
parcel: ["parcel"],
|
|
7535
|
-
esbuild: ["esbuild"],
|
|
7536
|
-
swc: ["@swc/core"],
|
|
7537
|
-
jest: ["jest"],
|
|
7538
|
-
vitest: ["vitest"],
|
|
7539
|
-
mocha: ["mocha"],
|
|
7540
|
-
chai: ["chai"],
|
|
7541
|
-
cypress: ["cypress"],
|
|
7542
|
-
playwright: ["@playwright/test"],
|
|
7543
|
-
puppeteer: ["puppeteer"],
|
|
7544
|
-
selenium: ["selenium-webdriver"],
|
|
7545
|
-
webdriver: ["selenium-webdriver"],
|
|
7546
|
-
lambdatest: ["@lambdatest/selenium-webdriver"],
|
|
7547
|
-
applitools: ["@applitools/eyes-selenium"],
|
|
7548
|
-
experitest: ["@experitest/seetest-client"],
|
|
7549
|
-
kobiton: ["@kobiton/api"],
|
|
7550
|
-
crossbrowsertesting: ["@crossbrowsertesting/selenium"],
|
|
7551
|
-
"aws-sdk": ["@aws-sdk/client-s3", "aws-sdk"],
|
|
7552
|
-
"aws-device-farm": ["@aws-sdk/client-device-farm"],
|
|
7553
|
-
firebase: ["firebase"],
|
|
7554
|
-
"firebase-test-lab": ["@google-cloud/testing"],
|
|
7555
|
-
azure: ["@azure/storage-blob", "@azure/cosmos"],
|
|
7556
|
-
"azure-devtest-labs": ["@azure/arm-devtestlabs"],
|
|
7557
|
-
gcp: ["@google-cloud/storage"],
|
|
7558
|
-
mongoose: ["mongoose"],
|
|
7559
|
-
sequelize: ["sequelize"],
|
|
7560
|
-
typeorm: ["typeorm"],
|
|
7561
|
-
prisma: ["@prisma/client"],
|
|
7562
|
-
knex: ["knex"],
|
|
7563
|
-
pg: ["pg"],
|
|
7564
|
-
mysql: ["mysql2"],
|
|
7565
|
-
sqlite: ["sqlite3", "better-sqlite3"],
|
|
7566
|
-
redis: ["redis"],
|
|
7567
|
-
mongodb: ["mongodb"],
|
|
7568
|
-
lodash: ["lodash"],
|
|
7569
|
-
loadash: ["lodash"],
|
|
7570
|
-
underscore: ["underscore"],
|
|
7571
|
-
ramda: ["ramda"],
|
|
7572
|
-
rxjs: ["rxjs"],
|
|
7573
|
-
axios: ["axios"],
|
|
7574
|
-
axois: ["axios"],
|
|
7575
|
-
fetch: ["node-fetch"],
|
|
7576
|
-
"node-fetch": ["node-fetch"],
|
|
7577
|
-
request: ["axios", "node-fetch"],
|
|
7578
|
-
superagent: ["superagent"],
|
|
7579
|
-
moment: ["moment"],
|
|
7580
|
-
momentjs: ["moment"],
|
|
7581
|
-
dayjs: ["dayjs"],
|
|
7582
|
-
"date-fns": ["date-fns"],
|
|
7583
|
-
luxon: ["luxon"],
|
|
7584
|
-
eslint: ["eslint"],
|
|
7585
|
-
prettier: ["prettier"],
|
|
7586
|
-
tslint: ["@typescript-eslint/eslint-plugin"],
|
|
7587
|
-
"typescript-eslint": [
|
|
7588
|
-
"@typescript-eslint/eslint-plugin",
|
|
7589
|
-
"@typescript-eslint/parser"
|
|
7590
|
-
],
|
|
7591
|
-
"types-node": ["@types/node"],
|
|
7592
|
-
"@types-node": ["@types/node"],
|
|
7593
|
-
"types-react": ["@types/react"],
|
|
7594
|
-
"types-express": ["@types/express"],
|
|
7595
|
-
express: ["express"],
|
|
7596
|
-
expressjs: ["express"],
|
|
7597
|
-
fastify: ["fastify"],
|
|
7598
|
-
koa: ["koa"],
|
|
7599
|
-
nestjs: ["@nestjs/core"],
|
|
7600
|
-
nest: ["@nestjs/core"],
|
|
7601
|
-
hapi: ["@hapi/hapi"],
|
|
7602
|
-
redux: ["redux"],
|
|
7603
|
-
mobx: ["mobx"],
|
|
7604
|
-
vuex: ["vuex"],
|
|
7605
|
-
pinia: ["pinia"],
|
|
7606
|
-
zustand: ["zustand"],
|
|
7607
|
-
recoil: ["recoil"],
|
|
7608
|
-
"styled-components": ["styled-components"],
|
|
7609
|
-
"styled-component": ["styled-components"],
|
|
7610
|
-
emotion: ["@emotion/react"],
|
|
7611
|
-
sass: ["sass"],
|
|
7612
|
-
"node-sass": ["sass"],
|
|
7613
|
-
less: ["less"],
|
|
7614
|
-
stylus: ["stylus"],
|
|
7615
|
-
forestadmin: ["forest-express", "forest-express-sequelize"],
|
|
7616
|
-
strapi: ["@strapi/strapi"],
|
|
7617
|
-
keystone: ["@keystone-6/core"],
|
|
7618
|
-
ghost: ["ghost"],
|
|
7619
|
-
storybook: ["@storybook/react", "@storybook/vue3"],
|
|
7620
|
-
docusaurus: ["@docusaurus/core"],
|
|
7621
|
-
gitbook: ["@gitbook/cli"],
|
|
7622
|
-
typedoc: ["typedoc"],
|
|
7623
|
-
electron: ["electron"],
|
|
7624
|
-
tauri: ["@tauri-apps/api"],
|
|
7625
|
-
nwjs: ["nw"],
|
|
7626
|
-
"react-native": ["react-native"],
|
|
7627
|
-
expo: ["expo"],
|
|
7628
|
-
cordova: ["cordova"],
|
|
7629
|
-
phonegap: ["phonegap"],
|
|
7630
|
-
jquery: ["jquery"],
|
|
7631
|
-
boostrap: ["bootstrap"],
|
|
7632
|
-
bootstrap: ["bootstrap"],
|
|
7633
|
-
fontawesome: ["@fortawesome/fontawesome-free"],
|
|
7634
|
-
"font-awesome": ["@fortawesome/fontawesome-free"],
|
|
7635
|
-
"react-i18n": ["react-i18next"],
|
|
7636
|
-
i18n: ["i18next"],
|
|
7637
|
-
i18next: ["i18next"],
|
|
7638
|
-
"vue-i18n": ["vue-i18n"],
|
|
7639
|
-
"react-intl": ["react-intl"],
|
|
7640
|
-
intl: ["intl"],
|
|
7641
|
-
chart: ["chart.js"],
|
|
7642
|
-
chartjs: ["chart.js"],
|
|
7643
|
-
"chart.js": ["chart.js"],
|
|
7644
|
-
d3: ["d3"],
|
|
7645
|
-
d3js: ["d3"],
|
|
7646
|
-
plotly: ["plotly.js"],
|
|
7647
|
-
echarts: ["echarts"],
|
|
7648
|
-
highcharts: ["highcharts"],
|
|
7649
|
-
recharts: ["recharts"],
|
|
7650
|
-
victory: ["victory"],
|
|
7651
|
-
nivo: ["@nivo/core"],
|
|
7652
|
-
observable: ["@observablehq/plot"],
|
|
7653
|
-
"socket.io": ["socket.io"],
|
|
7654
|
-
socketio: ["socket.io"],
|
|
7655
|
-
websocket: ["ws"],
|
|
7656
|
-
ws: ["ws"],
|
|
7657
|
-
webrtc: ["simple-peer"],
|
|
7658
|
-
peer: ["peerjs"],
|
|
7659
|
-
peerjs: ["peerjs"],
|
|
7660
|
-
signalr: ["@microsoft/signalr"],
|
|
7661
|
-
web3: ["web3"],
|
|
7662
|
-
web3js: ["web3"],
|
|
7663
|
-
ethers: ["ethers"],
|
|
7664
|
-
ethersjs: ["ethers"],
|
|
7665
|
-
ethereum: ["web3", "ethers"],
|
|
7666
|
-
metamask: ["@metamask/sdk"],
|
|
7667
|
-
wagmi: ["wagmi"],
|
|
7668
|
-
"rainbow-kit": ["@rainbow-me/rainbowkit"],
|
|
7669
|
-
"wallet-connect": ["@walletconnect/client"],
|
|
7670
|
-
tensorflow: ["@tensorflow/tfjs"],
|
|
7671
|
-
tensorflowjs: ["@tensorflow/tfjs"],
|
|
7672
|
-
tfjs: ["@tensorflow/tfjs"],
|
|
7673
|
-
brain: ["brain.js"],
|
|
7674
|
-
brainjs: ["brain.js"],
|
|
7675
|
-
synaptic: ["synaptic"],
|
|
7676
|
-
"ml-matrix": ["ml-matrix"],
|
|
7677
|
-
opencv: ["opencv4nodejs"],
|
|
7678
|
-
sharp: ["sharp"],
|
|
7679
|
-
jimp: ["jimp"],
|
|
7680
|
-
canvas: ["canvas"],
|
|
7681
|
-
fabric: ["fabric"],
|
|
7682
|
-
fabricjs: ["fabric"],
|
|
7683
|
-
konva: ["konva"],
|
|
7684
|
-
konvajs: ["konva"],
|
|
7685
|
-
p5: ["p5"],
|
|
7686
|
-
p5js: ["p5"],
|
|
7687
|
-
three: ["three"],
|
|
7688
|
-
threejs: ["three"],
|
|
7689
|
-
howler: ["howler"],
|
|
7690
|
-
howlerjs: ["howler"],
|
|
7691
|
-
tone: ["tone"],
|
|
7692
|
-
tonejs: ["tone"],
|
|
7693
|
-
video: ["video.js"],
|
|
7694
|
-
videojs: ["video.js"],
|
|
7695
|
-
hls: ["hls.js"],
|
|
7696
|
-
hlsjs: ["hls.js"],
|
|
7697
|
-
dash: ["dashjs"],
|
|
7698
|
-
dashjs: ["dashjs"],
|
|
7699
|
-
phaser: ["phaser"],
|
|
7700
|
-
phaserjs: ["phaser"],
|
|
7701
|
-
pixijs: ["pixi.js"],
|
|
7702
|
-
pixi: ["pixi.js"],
|
|
7703
|
-
babylonjs: ["babylonjs"],
|
|
7704
|
-
babylon: ["babylonjs"],
|
|
7705
|
-
aframe: ["aframe"],
|
|
7706
|
-
"johnny-five": ["johnny-five"],
|
|
7707
|
-
arduino: ["johnny-five"],
|
|
7708
|
-
"raspberry-pi": ["raspi"],
|
|
7709
|
-
raspi: ["raspi"],
|
|
7710
|
-
serialport: ["serialport"],
|
|
7711
|
-
noble: ["noble"],
|
|
7712
|
-
bluetooth: ["noble"],
|
|
7713
|
-
workbox: ["workbox-webpack-plugin"],
|
|
7714
|
-
"sw-precache": ["workbox-webpack-plugin"],
|
|
7715
|
-
"service-worker": ["workbox-webpack-plugin"],
|
|
7716
|
-
pwa: ["workbox-webpack-plugin"],
|
|
7717
|
-
leaflet: ["leaflet"],
|
|
7718
|
-
mapbox: ["mapbox-gl"],
|
|
7719
|
-
"google-maps": ["@googlemaps/js-api-loader"],
|
|
7720
|
-
googlemaps: ["@googlemaps/js-api-loader"],
|
|
7721
|
-
openlayers: ["ol"],
|
|
7722
|
-
ol: ["ol"],
|
|
7723
|
-
gsap: ["gsap"],
|
|
7724
|
-
anime: ["animejs"],
|
|
7725
|
-
animejs: ["animejs"],
|
|
7726
|
-
lottie: ["lottie-web"],
|
|
7727
|
-
"lottie-web": ["lottie-web"],
|
|
7728
|
-
"framer-motion": ["framer-motion"],
|
|
7729
|
-
"react-spring": ["react-spring"],
|
|
7730
|
-
formik: ["formik"],
|
|
7731
|
-
"react-hook-form": ["react-hook-form"],
|
|
7732
|
-
yup: ["yup"],
|
|
7733
|
-
joi: ["joi"],
|
|
7734
|
-
ajv: ["ajv"],
|
|
7735
|
-
zod: ["zod"],
|
|
7736
|
-
superstruct: ["superstruct"],
|
|
7737
|
-
quill: ["quill"],
|
|
7738
|
-
quilljs: ["quill"],
|
|
7739
|
-
tinymce: ["tinymce"],
|
|
7740
|
-
ckeditor: ["@ckeditor/ckeditor5-build-classic"],
|
|
7741
|
-
slate: ["slate"],
|
|
7742
|
-
slatejs: ["slate"],
|
|
7743
|
-
draft: ["draft-js"],
|
|
7744
|
-
draftjs: ["draft-js"],
|
|
7745
|
-
monaco: ["monaco-editor"],
|
|
7746
|
-
"monaco-editor": ["monaco-editor"],
|
|
7747
|
-
apollo: ["@apollo/client"],
|
|
7748
|
-
"apollo-client": ["@apollo/client"],
|
|
7749
|
-
graphql: ["graphql"],
|
|
7750
|
-
relay: ["react-relay"],
|
|
7751
|
-
urql: ["urql"],
|
|
7752
|
-
swr: ["swr"],
|
|
7753
|
-
"react-query": ["@tanstack/react-query"],
|
|
7754
|
-
"tanstack-query": ["@tanstack/react-query"],
|
|
7755
|
-
reac: ["react"],
|
|
7756
|
-
reactjs: ["react"],
|
|
7757
|
-
veu: ["vue"],
|
|
7758
|
-
vuejs: ["vue"],
|
|
7759
|
-
angualr: ["@angular/core"],
|
|
7760
|
-
svelt: ["svelte"],
|
|
7761
|
-
sveltte: ["svelte"],
|
|
7762
|
-
typescirpt: ["typescript"],
|
|
7763
|
-
typescript: ["typescript"],
|
|
7764
|
-
javasript: ["node"],
|
|
7765
|
-
javascript: ["node"],
|
|
7766
|
-
docker: ["dockerode"],
|
|
7767
|
-
k8s: ["@kubernetes/client-node"],
|
|
7768
|
-
kubernetes: ["@kubernetes/client-node"],
|
|
7769
|
-
kubectl: ["@kubernetes/client-node"],
|
|
7770
|
-
helm: ["@helm/sdk"],
|
|
7771
|
-
jenkins: ["jenkins"],
|
|
7772
|
-
circleci: ["@circleci/circleci-config-sdk"],
|
|
7773
|
-
"github-actions": ["@actions/core", "@actions/github"],
|
|
7774
|
-
"gitlab-ci": ["@gitbeaker/node"],
|
|
7775
|
-
travis: ["@travis-ci/travis-yml"],
|
|
7776
|
-
terraform: ["@cdktf/provider-aws"],
|
|
7777
|
-
ansible: ["@ansible/galaxy"],
|
|
7778
|
-
vagrant: ["vagrant"],
|
|
7779
|
-
consul: ["consul"],
|
|
7780
|
-
vault: ["node-vault"],
|
|
7781
|
-
nomad: ["nomad-client"],
|
|
7782
|
-
winston: ["winston"],
|
|
7783
|
-
morgan: ["morgan"],
|
|
7784
|
-
pino: ["pino"],
|
|
7785
|
-
bunyan: ["bunyan"],
|
|
7786
|
-
log4js: ["log4js"],
|
|
7787
|
-
sentry: ["@sentry/node", "@sentry/react"],
|
|
7788
|
-
bugsnag: ["@bugsnag/js"],
|
|
7789
|
-
rollbar: ["rollbar"],
|
|
7790
|
-
newrelic: ["newrelic"],
|
|
7791
|
-
datadog: ["@datadog/browser-rum"],
|
|
7792
|
-
prometheus: ["prom-client"],
|
|
7793
|
-
grafana: ["@grafana/toolkit"],
|
|
7794
|
-
elastic: ["@elastic/elasticsearch"],
|
|
7795
|
-
elasticsearch: ["@elastic/elasticsearch"],
|
|
7796
|
-
kibana: ["@elastic/kibana-utils"],
|
|
7797
|
-
logstash: ["@elastic/logstash"],
|
|
7798
|
-
microservices: ["express"],
|
|
7799
|
-
"service-mesh": ["istio"],
|
|
7800
|
-
envoy: ["envoy"],
|
|
7801
|
-
istio: ["istio"],
|
|
7802
|
-
linkerd: ["linkerd"],
|
|
7803
|
-
"consul-connect": ["consul"],
|
|
7804
|
-
eureka: ["eureka-js-client"],
|
|
7805
|
-
zookeeper: ["node-zookeeper-client"],
|
|
7806
|
-
etcd: ["etcd3"],
|
|
7807
|
-
grpc: ["@grpc/grpc-js"],
|
|
7808
|
-
protobuf: ["protobufjs"],
|
|
7809
|
-
memcached: ["memcached"],
|
|
7810
|
-
"node-cache": ["node-cache"],
|
|
7811
|
-
"memory-cache": ["memory-cache"],
|
|
7812
|
-
"lru-cache": ["lru-cache"],
|
|
7813
|
-
"cache-manager": ["cache-manager"],
|
|
7814
|
-
ioredis: ["ioredis"],
|
|
7815
|
-
hazelcast: ["hazelcast-client"],
|
|
7816
|
-
rabbitmq: ["amqplib"],
|
|
7817
|
-
kafka: ["kafkajs"],
|
|
7818
|
-
"apache-kafka": ["kafkajs"],
|
|
7819
|
-
bull: ["bull"],
|
|
7820
|
-
bullmq: ["bullmq"],
|
|
7821
|
-
"bee-queue": ["bee-queue"],
|
|
7822
|
-
kue: ["kue"],
|
|
7823
|
-
agenda: ["agenda"],
|
|
7824
|
-
amqp: ["amqplib"],
|
|
7825
|
-
mqtt: ["mqtt"],
|
|
7826
|
-
nats: ["nats"],
|
|
7827
|
-
zeromq: ["zeromq"],
|
|
7828
|
-
zmq: ["zeromq"],
|
|
7829
|
-
solr: ["solr-client"],
|
|
7830
|
-
algolia: ["algoliasearch"],
|
|
7831
|
-
sphinx: ["sphinxapi"],
|
|
7832
|
-
lucene: ["lucene"],
|
|
7833
|
-
whoosh: ["whoosh"],
|
|
7834
|
-
meilisearch: ["meilisearch"],
|
|
7835
|
-
typesense: ["typesense"],
|
|
7836
|
-
multer: ["multer"],
|
|
7837
|
-
formidable: ["formidable"],
|
|
7838
|
-
busboy: ["busboy"],
|
|
7839
|
-
multiparty: ["multiparty"],
|
|
7840
|
-
"file-upload": ["express-fileupload"],
|
|
7841
|
-
cloudinary: ["cloudinary"],
|
|
7842
|
-
"aws-s3": ["@aws-sdk/client-s3"],
|
|
7843
|
-
bcrypt: ["bcrypt"],
|
|
7844
|
-
bcryptjs: ["bcryptjs"],
|
|
7845
|
-
crypto: ["crypto-js"],
|
|
7846
|
-
"crypto-js": ["crypto-js"],
|
|
7847
|
-
jsonwebtoken: ["jsonwebtoken"],
|
|
7848
|
-
jwt: ["jsonwebtoken"],
|
|
7849
|
-
passport: ["passport"],
|
|
7850
|
-
helmet: ["helmet"],
|
|
7851
|
-
cors: ["cors"],
|
|
7852
|
-
"express-rate-limit": ["express-rate-limit"],
|
|
7853
|
-
"rate-limiter": ["express-rate-limit"],
|
|
7854
|
-
argon2: ["argon2"],
|
|
7855
|
-
scrypt: ["scrypt"],
|
|
7856
|
-
"node-rsa": ["node-rsa"],
|
|
7857
|
-
speakeasy: ["speakeasy"],
|
|
7858
|
-
otplib: ["otplib"],
|
|
7859
|
-
nodemailer: ["nodemailer"],
|
|
7860
|
-
sendgrid: ["@sendgrid/mail"],
|
|
7861
|
-
mailgun: ["mailgun.js"],
|
|
7862
|
-
ses: ["@aws-sdk/client-ses"],
|
|
7863
|
-
postmark: ["postmark"],
|
|
7864
|
-
sparkpost: ["sparkpost"],
|
|
7865
|
-
mandrill: ["mandrill-api"],
|
|
7866
|
-
mailchimp: ["@mailchimp/mailchimp_marketing"],
|
|
7867
|
-
"email-templates": ["email-templates"],
|
|
7868
|
-
handlebars: ["handlebars"],
|
|
7869
|
-
hbs: ["hbs"],
|
|
7870
|
-
mustache: ["mustache"],
|
|
7871
|
-
pug: ["pug"],
|
|
7872
|
-
jade: ["pug"],
|
|
7873
|
-
ejs: ["ejs"],
|
|
7874
|
-
nunjucks: ["nunjucks"],
|
|
7875
|
-
twig: ["twig"],
|
|
7876
|
-
dust: ["dustjs-linkedin"],
|
|
7877
|
-
serverless: ["serverless"],
|
|
7878
|
-
sls: ["serverless"],
|
|
7879
|
-
lambda: ["aws-lambda"],
|
|
7880
|
-
"azure-functions": ["@azure/functions"],
|
|
7881
|
-
"google-functions": ["@google-cloud/functions-framework"],
|
|
7882
|
-
"netlify-lambda": ["netlify-lambda"],
|
|
7883
|
-
vercel: ["@vercel/node"],
|
|
7884
|
-
claudia: ["claudia"],
|
|
7885
|
-
apex: ["apex"],
|
|
7886
|
-
sam: ["@aws-cdk/aws-sam"],
|
|
7887
|
-
couchdb: ["nano"],
|
|
7888
|
-
pouchdb: ["pouchdb"],
|
|
7889
|
-
neo4j: ["neo4j-driver"],
|
|
7890
|
-
influxdb: ["influx"],
|
|
7891
|
-
cassandra: ["cassandra-driver"],
|
|
7892
|
-
rethinkdb: ["rethinkdb"],
|
|
7893
|
-
orientdb: ["orientjs"],
|
|
7894
|
-
arangodb: ["arangojs"],
|
|
7895
|
-
leveldb: ["level"],
|
|
7896
|
-
rocksdb: ["rocksdb"],
|
|
7897
|
-
mariadb: ["mariadb"],
|
|
7898
|
-
cockroachdb: ["pg"],
|
|
7899
|
-
heroku: ["heroku"],
|
|
7900
|
-
digitalocean: ["@digitalocean/droplet-api"],
|
|
7901
|
-
linode: ["@linode/api-v4"],
|
|
7902
|
-
vultr: ["@vultr/vultr-node"],
|
|
7903
|
-
scaleway: ["@scaleway/sdk"],
|
|
7904
|
-
ovh: ["ovh"],
|
|
7905
|
-
cloudflare: ["cloudflare"],
|
|
7906
|
-
fastly: ["fastly"],
|
|
7907
|
-
maxcdn: ["maxcdn"],
|
|
7908
|
-
bunnycdn: ["bunnycdn"],
|
|
7909
|
-
lighthouse: ["lighthouse"],
|
|
7910
|
-
webpagetest: ["webpagetest"],
|
|
7911
|
-
clinic: ["clinic"],
|
|
7912
|
-
"0x": ["0x"],
|
|
7913
|
-
autocannon: ["autocannon"],
|
|
7914
|
-
loadtest: ["loadtest"],
|
|
7915
|
-
artillery: ["artillery"],
|
|
7916
|
-
k6: ["k6"],
|
|
7917
|
-
benchmark: ["benchmark"],
|
|
7918
|
-
"clinic.js": ["clinic"],
|
|
7919
|
-
"node.js": ["node"],
|
|
7920
|
-
nodejs: ["node"],
|
|
7921
|
-
npm: ["npm"],
|
|
7922
|
-
yarn: ["yarn"],
|
|
7923
|
-
pnpm: ["pnpm"],
|
|
7924
|
-
bun: ["bun"],
|
|
7925
|
-
deno: ["deno"],
|
|
7926
|
-
js: ["javascript"],
|
|
7927
|
-
ts: ["typescript"],
|
|
7928
|
-
html: ["html"],
|
|
7929
|
-
css: ["css"],
|
|
7930
|
-
json: ["json"],
|
|
7931
|
-
xml: ["xml2js"],
|
|
7932
|
-
yaml: ["yaml"],
|
|
7933
|
-
toml: ["@iarna/toml"],
|
|
7934
|
-
ini: ["ini"],
|
|
7935
|
-
csv: ["csv-parser", "papaparse"],
|
|
7936
|
-
pdf: ["pdf2pic", "pdfkit"],
|
|
7937
|
-
excel: ["xlsx"],
|
|
7938
|
-
word: ["mammoth"],
|
|
7939
|
-
zip: ["node-zip"],
|
|
7940
|
-
tar: ["tar"],
|
|
7941
|
-
gzip: ["zlib"],
|
|
7942
|
-
cheerio: ["cheerio"],
|
|
7943
|
-
jsdom: ["jsdom"],
|
|
7944
|
-
xml2js: ["xml2js"],
|
|
7945
|
-
"csv-parse": ["csv-parse"],
|
|
7946
|
-
papaparse: ["papaparse"],
|
|
7947
|
-
"fast-csv": ["fast-csv"],
|
|
7948
|
-
xlsx: ["xlsx"],
|
|
7949
|
-
pdfkit: ["pdfkit"],
|
|
7950
|
-
jspdf: ["jspdf"],
|
|
7951
|
-
mammoth: ["mammoth"],
|
|
7952
|
-
"pdf-parse": ["pdf-parse"],
|
|
7953
|
-
commander: ["commander"],
|
|
7954
|
-
yargs: ["yargs"],
|
|
7955
|
-
inquirer: ["inquirer"],
|
|
7956
|
-
chalk: ["chalk"],
|
|
7957
|
-
ora: ["ora"],
|
|
7958
|
-
"cli-progress": ["cli-progress"],
|
|
7959
|
-
figlet: ["figlet"],
|
|
7960
|
-
boxen: ["boxen"],
|
|
7961
|
-
"update-notifier": ["update-notifier"],
|
|
7962
|
-
meow: ["meow"],
|
|
7963
|
-
arg: ["arg"],
|
|
7964
|
-
minimist: ["minimist"]
|
|
7965
|
-
};
|
|
7966
|
-
|
|
7967
|
-
// ../../packages/utils/src/error-handling/userFriendlyErrorHandler.ts
|
|
7968
7484
|
var ERROR_PATTERNS = {
|
|
7969
7485
|
NOT_FOUND: ["404", "Not found", "ENOTFOUND", "not found"],
|
|
7970
7486
|
TIMEOUT: ["timeout", "ETIMEDOUT", "ESOCKETTIMEDOUT", "ECONNRESET"],
|
|
@@ -7975,11 +7491,32 @@ function matchesErrorPattern(message, patterns) {
|
|
|
7975
7491
|
return patterns.some((pattern) => lowerMessage.includes(pattern.toLowerCase()));
|
|
7976
7492
|
}
|
|
7977
7493
|
var _packageSuggestions = null;
|
|
7494
|
+
var _preloadPromise = null;
|
|
7978
7495
|
async function preloadPackageSuggestions() {
|
|
7979
7496
|
if (_packageSuggestions !== null) {
|
|
7980
7497
|
return;
|
|
7981
7498
|
}
|
|
7982
|
-
|
|
7499
|
+
if (_preloadPromise !== null) {
|
|
7500
|
+
return _preloadPromise;
|
|
7501
|
+
}
|
|
7502
|
+
_preloadPromise = (async () => {
|
|
7503
|
+
try {
|
|
7504
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
7505
|
+
const __dirname2 = dirname(__filename2);
|
|
7506
|
+
const dataPath = join(__dirname2, "data", "packageSuggestions.json");
|
|
7507
|
+
const content = await readFile(dataPath, "utf-8");
|
|
7508
|
+
const data = JSON.parse(content);
|
|
7509
|
+
_packageSuggestions = new Map(Object.entries(data));
|
|
7510
|
+
} catch (error) {
|
|
7511
|
+
const logger2 = Logger.getLogger("ErrorHandler");
|
|
7512
|
+
logger2.warn("Failed to load package suggestions file", {
|
|
7513
|
+
error: error instanceof Error ? error.message : String(error),
|
|
7514
|
+
hint: "Package name suggestions will be unavailable"
|
|
7515
|
+
});
|
|
7516
|
+
_packageSuggestions = /* @__PURE__ */ new Map();
|
|
7517
|
+
}
|
|
7518
|
+
})();
|
|
7519
|
+
return _preloadPromise;
|
|
7983
7520
|
}
|
|
7984
7521
|
function getPackageSuggestions() {
|
|
7985
7522
|
if (_packageSuggestions !== null) {
|
|
@@ -9226,14 +8763,16 @@ var VersionChecker = class _VersionChecker {
|
|
|
9226
8763
|
}
|
|
9227
8764
|
/**
|
|
9228
8765
|
* Perform update without prompting
|
|
9229
|
-
* Note: Logging is handled by the CLI layer with i18n support
|
|
9230
8766
|
*/
|
|
9231
8767
|
static async performUpdateAction() {
|
|
8768
|
+
logger.info(chalk10.blue("\u{1F504} Updating pcu..."));
|
|
9232
8769
|
try {
|
|
9233
8770
|
await _VersionChecker.performUpdate();
|
|
8771
|
+
logger.info(chalk10.green("\u2705 Successfully updated! Please restart the command."));
|
|
9234
8772
|
return true;
|
|
9235
8773
|
} catch (error) {
|
|
9236
|
-
logger.
|
|
8774
|
+
logger.error(chalk10.red("\u274C Update failed:"), error instanceof Error ? error : void 0);
|
|
8775
|
+
logger.info(chalk10.gray("You can manually update with: npm install -g pcu@latest"));
|
|
9237
8776
|
return false;
|
|
9238
8777
|
}
|
|
9239
8778
|
}
|
|
@@ -13499,7 +13038,7 @@ var CatalogCheckService = class {
|
|
|
13499
13038
|
*/
|
|
13500
13039
|
async processPackageCheck(packageName, currentRange, catalog, workspace, config, options) {
|
|
13501
13040
|
const packageConfig = ConfigLoader.getPackageConfig(packageName, config);
|
|
13502
|
-
const effectiveTarget = packageConfig.target;
|
|
13041
|
+
const effectiveTarget = options.target || packageConfig.target || "latest";
|
|
13503
13042
|
const skipSecurityCheck = options.noSecurity || config.security?.enableCheck === false;
|
|
13504
13043
|
const outdatedInfo = await this.checkPackageUpdate(
|
|
13505
13044
|
packageName,
|
|
@@ -24656,7 +24195,7 @@ ${t("cli.help.tipLabel")} ${t("cli.help.tipContent", { locale: I18n.getLocale()
|
|
|
24656
24195
|
cliOutput.print(chalk10.gray(t("command.selfUpdate.restartHint")));
|
|
24657
24196
|
} else {
|
|
24658
24197
|
cliOutput.error(chalk10.red(t("command.selfUpdate.failed")));
|
|
24659
|
-
cliOutput.print(chalk10.gray(
|
|
24198
|
+
cliOutput.print(chalk10.gray("You can manually update with: npm install -g pcu@latest"));
|
|
24660
24199
|
exitProcess(1);
|
|
24661
24200
|
}
|
|
24662
24201
|
} catch (error) {
|
|
@@ -24664,7 +24203,7 @@ ${t("cli.help.tipLabel")} ${t("cli.help.tipContent", { locale: I18n.getLocale()
|
|
|
24664
24203
|
if (globalOptions.verbose) {
|
|
24665
24204
|
cliOutput.error(error);
|
|
24666
24205
|
}
|
|
24667
|
-
cliOutput.print(chalk10.gray(
|
|
24206
|
+
cliOutput.print(chalk10.gray("You can manually update with: npm install -g pcu@latest"));
|
|
24668
24207
|
exitProcess(1);
|
|
24669
24208
|
}
|
|
24670
24209
|
}
|
|
@@ -24728,44 +24267,32 @@ async function showUpdateNotificationIfAvailable(checkPromise) {
|
|
|
24728
24267
|
}
|
|
24729
24268
|
async function handleVersionFlag(args, config) {
|
|
24730
24269
|
if (!args.includes("--version")) return;
|
|
24731
|
-
|
|
24732
|
-
const version = pkg.version;
|
|
24270
|
+
cliOutput.print(getPackageJson().version);
|
|
24733
24271
|
if (VersionChecker.shouldCheckForUpdates() && config.advanced?.checkForUpdates !== false) {
|
|
24734
24272
|
try {
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
);
|
|
24738
|
-
const versionResult = await VersionChecker.checkVersion(version, {
|
|
24273
|
+
cliOutput.print(chalk10.gray(t("cli.checkingUpdates")));
|
|
24274
|
+
const versionResult = await VersionChecker.checkVersion(getPackageJson().version, {
|
|
24739
24275
|
skipPrompt: false,
|
|
24740
24276
|
timeout: 5e3
|
|
24277
|
+
// Longer timeout for explicit version check
|
|
24741
24278
|
});
|
|
24742
|
-
|
|
24743
|
-
if (versionResult.shouldPrompt && versionResult.latestVersion) {
|
|
24744
|
-
cliOutput.print(
|
|
24745
|
-
`${chalk10.cyan("pcu")} ${chalk10.bold(`v${version}`)} ${chalk10.yellow(`-> v${versionResult.latestVersion} ${t("cli.available")}`)}`
|
|
24746
|
-
);
|
|
24279
|
+
if (versionResult.shouldPrompt) {
|
|
24747
24280
|
const didUpdate = await VersionChecker.promptAndUpdate(versionResult);
|
|
24748
24281
|
if (didUpdate) {
|
|
24749
24282
|
cliOutput.print(chalk10.blue(t("cli.runAgain")));
|
|
24750
24283
|
exitWithCleanup(0);
|
|
24751
24284
|
}
|
|
24752
|
-
} else {
|
|
24753
|
-
cliOutput.print(
|
|
24754
|
-
`${chalk10.cyan("pcu")} ${chalk10.bold(`v${version}`)} ${chalk10.green(t("cli.latestVersion"))}`
|
|
24755
|
-
);
|
|
24285
|
+
} else if (versionResult.isLatest) {
|
|
24286
|
+
cliOutput.print(chalk10.green(t("cli.latestVersion")));
|
|
24756
24287
|
}
|
|
24757
24288
|
} catch (error) {
|
|
24758
|
-
process.stdout.write("\r\x1B[K");
|
|
24759
|
-
cliOutput.print(`${chalk10.cyan("pcu")} ${chalk10.bold(`v${version}`)}`);
|
|
24760
24289
|
logger.debug("Version flag update check failed", {
|
|
24761
24290
|
error: error instanceof Error ? error.message : error
|
|
24762
24291
|
});
|
|
24763
24292
|
if (args.includes("-v") || args.includes("--verbose")) {
|
|
24764
|
-
cliOutput.warn(chalk10.yellow(
|
|
24293
|
+
cliOutput.warn(chalk10.yellow(`\u26A0\uFE0F ${t("cli.couldNotCheckUpdates")}`), error);
|
|
24765
24294
|
}
|
|
24766
24295
|
}
|
|
24767
|
-
} else {
|
|
24768
|
-
cliOutput.print(`${chalk10.cyan("pcu")} ${chalk10.bold(`v${version}`)}`);
|
|
24769
24296
|
}
|
|
24770
24297
|
exitWithCleanup(0);
|
|
24771
24298
|
}
|