@teambit/cli 0.0.1258 → 0.0.1261
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.
|
@@ -59,7 +59,6 @@ function handleNonBitCustomErrors(err) {
|
|
|
59
59
|
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
|
60
60
|
`error: you do not have permissions to access '${err.path}', were you running bit, npm or git as root?`);
|
|
61
61
|
}
|
|
62
|
-
// @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
|
|
63
62
|
return _chalk().default.red(err.message || err);
|
|
64
63
|
}
|
|
65
64
|
var _default = err => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_bitError","_legacy","_legacyCli","e","__esModule","default","sendToAnalyticsAndSentry","err","possiblyHashedError","hashErrorIfNeeded","shouldNotReportToSentry","Boolean","isUserError","code","level","LEVEL","INFO","FATAL","Analytics","setError","handleNonBitCustomErrors","path","chalk","red","message","_default","getErrMsg","BitError","report","errorMessage","error","exports"],"sources":["default-error-handler.ts"],"sourcesContent":["// all errors that the command does not handle comes to this switch statement\n// if you handle the error, then return true\nimport chalk from 'chalk';\nimport { BitError } from '@teambit/bit-error';\nimport { Analytics, LEVEL } from '@teambit/legacy.analytics';\nimport { hashErrorIfNeeded } from '@teambit/legacy.cli.error';\n\n/**\n * if err.userError is set, it inherits from AbstractError, which are user errors not Bit errors\n * and should not be reported to Sentry.\n * reason why we don't check (err instanceof AbstractError) is that it could be thrown from a fork,\n * in which case, it loses its class and has only the fields.\n */\nexport function sendToAnalyticsAndSentry(err: Error) {\n const possiblyHashedError = hashErrorIfNeeded(err);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const shouldNotReportToSentry = Boolean(err.isUserError || err.code === 'EACCES');\n // only level FATAL are reported to Sentry.\n const level = shouldNotReportToSentry ? LEVEL.INFO : LEVEL.FATAL;\n Analytics.setError(level, possiblyHashedError);\n}\n\nfunction handleNonBitCustomErrors(err: Error): string {\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n if (err.code === 'EACCES' && err.path) {\n // see #1774\n return chalk.red(\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n `error: you do not have permissions to access '${err.path}', were you running bit, npm or git as root?`\n );\n }\n
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_bitError","_legacy","_legacyCli","e","__esModule","default","sendToAnalyticsAndSentry","err","possiblyHashedError","hashErrorIfNeeded","shouldNotReportToSentry","Boolean","isUserError","code","level","LEVEL","INFO","FATAL","Analytics","setError","handleNonBitCustomErrors","path","chalk","red","message","_default","getErrMsg","BitError","report","errorMessage","error","exports"],"sources":["default-error-handler.ts"],"sourcesContent":["// all errors that the command does not handle comes to this switch statement\n// if you handle the error, then return true\nimport chalk from 'chalk';\nimport { BitError } from '@teambit/bit-error';\nimport { Analytics, LEVEL } from '@teambit/legacy.analytics';\nimport { hashErrorIfNeeded } from '@teambit/legacy.cli.error';\n\n/**\n * if err.userError is set, it inherits from AbstractError, which are user errors not Bit errors\n * and should not be reported to Sentry.\n * reason why we don't check (err instanceof AbstractError) is that it could be thrown from a fork,\n * in which case, it loses its class and has only the fields.\n */\nexport function sendToAnalyticsAndSentry(err: Error) {\n const possiblyHashedError = hashErrorIfNeeded(err);\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const shouldNotReportToSentry = Boolean(err.isUserError || err.code === 'EACCES');\n // only level FATAL are reported to Sentry.\n const level = shouldNotReportToSentry ? LEVEL.INFO : LEVEL.FATAL;\n Analytics.setError(level, possiblyHashedError);\n}\n\nfunction handleNonBitCustomErrors(err: Error): string {\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n if (err.code === 'EACCES' && err.path) {\n // see #1774\n return chalk.red(\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n `error: you do not have permissions to access '${err.path}', were you running bit, npm or git as root?`\n );\n }\n return chalk.red(err.message || err);\n}\n\nexport default (err: Error): { message: string; error: Error } => {\n const getErrMsg = (): string => {\n if (err instanceof BitError) {\n return err.report();\n }\n return handleNonBitCustomErrors(err);\n };\n sendToAnalyticsAndSentry(err);\n const errorMessage = getErrMsg();\n return { message: chalk.red(errorMessage), error: err };\n};\n"],"mappings":";;;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAC,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAL9D;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,wBAAwBA,CAACC,GAAU,EAAE;EACnD,MAAMC,mBAAmB,GAAG,IAAAC,8BAAiB,EAACF,GAAG,CAAC;EAClD;EACA,MAAMG,uBAAuB,GAAGC,OAAO,CAACJ,GAAG,CAACK,WAAW,IAAIL,GAAG,CAACM,IAAI,KAAK,QAAQ,CAAC;EACjF;EACA,MAAMC,KAAK,GAAGJ,uBAAuB,GAAGK,eAAK,CAACC,IAAI,GAAGD,eAAK,CAACE,KAAK;EAChEC,mBAAS,CAACC,QAAQ,CAACL,KAAK,EAAEN,mBAAmB,CAAC;AAChD;AAEA,SAASY,wBAAwBA,CAACb,GAAU,EAAU;EACpD;EACA,IAAIA,GAAG,CAACM,IAAI,KAAK,QAAQ,IAAIN,GAAG,CAACc,IAAI,EAAE;IACrC;IACA,OAAOC,gBAAK,CAACC,GAAG;IACd;IACA,iDAAiDhB,GAAG,CAACc,IAAI,8CAC3D,CAAC;EACH;EACA,OAAOC,gBAAK,CAACC,GAAG,CAAChB,GAAG,CAACiB,OAAO,IAAIjB,GAAG,CAAC;AACtC;AAAC,IAAAkB,QAAA,GAEelB,GAAU,IAAwC;EAChE,MAAMmB,SAAS,GAAGA,CAAA,KAAc;IAC9B,IAAInB,GAAG,YAAYoB,oBAAQ,EAAE;MAC3B,OAAOpB,GAAG,CAACqB,MAAM,CAAC,CAAC;IACrB;IACA,OAAOR,wBAAwB,CAACb,GAAG,CAAC;EACtC,CAAC;EACDD,wBAAwB,CAACC,GAAG,CAAC;EAC7B,MAAMsB,YAAY,GAAGH,SAAS,CAAC,CAAC;EAChC,OAAO;IAAEF,OAAO,EAAEF,gBAAK,CAACC,GAAG,CAACM,YAAY,CAAC;IAAEC,KAAK,EAAEvB;EAAI,CAAC;AACzD,CAAC;AAAAwB,OAAA,CAAA1B,OAAA,GAAAoB,QAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.1261/dist/cli.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_cli@0.0.1261/dist/cli.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1261",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/cli",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "cli",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1261"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"yargs": "17.0.1",
|
|
16
16
|
"p-map-series": "2.1.0",
|
|
17
17
|
"pad-right": "0.2.2",
|
|
18
|
-
"@teambit/legacy.consumer": "0.0.65",
|
|
19
18
|
"@teambit/legacy.loader": "0.0.9",
|
|
20
19
|
"@teambit/legacy.logger": "0.0.24",
|
|
21
20
|
"@teambit/harmony": "0.4.7",
|
|
@@ -24,7 +23,8 @@
|
|
|
24
23
|
"@teambit/legacy.constants": "0.0.14",
|
|
25
24
|
"@teambit/bit-error": "0.0.404",
|
|
26
25
|
"@teambit/legacy.cli.error": "0.0.24",
|
|
27
|
-
"@teambit/
|
|
26
|
+
"@teambit/legacy.consumer": "0.0.68",
|
|
27
|
+
"@teambit/logger": "0.0.1354"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/didyoumean": "1.2.0",
|