@teambit/pnpm 0.0.1154 → 0.0.1156
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.
|
@@ -32,7 +32,9 @@ class BitErrorWithRichMessage extends _bitError().BitError {
|
|
|
32
32
|
}
|
|
33
33
|
exports.BitErrorWithRichMessage = BitErrorWithRichMessage;
|
|
34
34
|
function pnpmErrorToBitError(err) {
|
|
35
|
-
|
|
35
|
+
const newErr = new BitErrorWithRichMessage(err.message, renderErrorMessage(err));
|
|
36
|
+
newErr.cause = err;
|
|
37
|
+
return newErr;
|
|
36
38
|
}
|
|
37
39
|
function renderErrorMessage(err) {
|
|
38
40
|
var _err$code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","BitErrorWithRichMessage","BitError","constructor","message","richMessage","_defineProperty2","default","report","exports","pnpmErrorToBitError","err","renderErrorMessage","_err$code","code","startsWith","hint"],"sources":["pnpm-error-to-bit-error.ts"],"sourcesContent":["import { PnpmError } from '@pnpm/error';\nimport { BitError } from '@teambit/bit-error';\n\nexport class BitErrorWithRichMessage extends BitError {\n private richMessage: string;\n constructor(message: string, richMessage: string) {\n super(message);\n this.richMessage = richMessage;\n }\n public report() {\n return this.richMessage;\n }\n}\n\nexport function pnpmErrorToBitError(err: PnpmError): BitError {\n
|
|
1
|
+
{"version":3,"names":["_bitError","data","require","BitErrorWithRichMessage","BitError","constructor","message","richMessage","_defineProperty2","default","report","exports","pnpmErrorToBitError","err","newErr","renderErrorMessage","cause","_err$code","code","startsWith","hint"],"sources":["pnpm-error-to-bit-error.ts"],"sourcesContent":["import { PnpmError } from '@pnpm/error';\nimport { BitError } from '@teambit/bit-error';\n\nexport class BitErrorWithRichMessage extends BitError {\n private richMessage: string;\n constructor(message: string, richMessage: string) {\n super(message);\n this.richMessage = richMessage;\n }\n public report() {\n return this.richMessage;\n }\n}\n\nexport function pnpmErrorToBitError(err: PnpmError): BitError {\n const newErr = new BitErrorWithRichMessage(err.message, renderErrorMessage(err));\n newErr.cause = err;\n return newErr;\n}\n\nfunction renderErrorMessage(err: PnpmError): string {\n if (err.code?.startsWith('ERR_PNPM_FETCH_')) {\n // On fetching errors, pnpm adds information to the error object about the used auth headers.\n // This information is safe to print as the tokens are obfuscated.\n return `${err.message}\n\n${err.hint}`;\n }\n return err.message;\n}\n"],"mappings":";;;;;;;;;;;;;;;AACA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,uBAAuB,SAASC,oBAAQ,CAAC;EAEpDC,WAAWA,CAACC,OAAe,EAAEC,WAAmB,EAAE;IAChD,KAAK,CAACD,OAAO,CAAC;IAAC,IAAAE,gBAAA,GAAAC,OAAA;IACf,IAAI,CAACF,WAAW,GAAGA,WAAW;EAChC;EACOG,MAAMA,CAAA,EAAG;IACd,OAAO,IAAI,CAACH,WAAW;EACzB;AACF;AAACI,OAAA,CAAAR,uBAAA,GAAAA,uBAAA;AAEM,SAASS,mBAAmBA,CAACC,GAAc,EAAY;EAC5D,MAAMC,MAAM,GAAG,IAAIX,uBAAuB,CAACU,GAAG,CAACP,OAAO,EAAES,kBAAkB,CAACF,GAAG,CAAC,CAAC;EAChFC,MAAM,CAACE,KAAK,GAAGH,GAAG;EAClB,OAAOC,MAAM;AACf;AAEA,SAASC,kBAAkBA,CAACF,GAAc,EAAU;EAAA,IAAAI,SAAA;EAClD,KAAAA,SAAA,GAAIJ,GAAG,CAACK,IAAI,cAAAD,SAAA,eAARA,SAAA,CAAUE,UAAU,CAAC,iBAAiB,CAAC,EAAE;IAC3C;IACA;IACA,OAAQ,GAAEN,GAAG,CAACP,OAAQ;AAC1B;AACA,EAAEO,GAAG,CAACO,IAAK,EAAC;EACV;EACA,OAAOP,GAAG,CAACP,OAAO;AACpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.1156/dist/pnpm.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.1156/dist/pnpm.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/pnpm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1156",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/dependencies/pnpm",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.dependencies",
|
|
8
8
|
"name": "pnpm",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1156"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@pnpm/config": "19.0.1",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"core-js": "^3.0.0",
|
|
36
36
|
"@babel/runtime": "7.20.0",
|
|
37
37
|
"@teambit/harmony": "0.4.6",
|
|
38
|
-
"@teambit/dependency-resolver": "0.0.
|
|
39
|
-
"@teambit/logger": "0.0.
|
|
38
|
+
"@teambit/dependency-resolver": "0.0.1156",
|
|
39
|
+
"@teambit/logger": "0.0.864",
|
|
40
40
|
"@teambit/bit-error": "0.0.402",
|
|
41
|
-
"@teambit/cli": "0.0.
|
|
42
|
-
"@teambit/component": "0.0.
|
|
41
|
+
"@teambit/cli": "0.0.771",
|
|
42
|
+
"@teambit/component": "0.0.1156",
|
|
43
43
|
"@teambit/ui-foundation.ui.use-box.menu": "0.0.136",
|
|
44
|
-
"@teambit/ui": "0.0.
|
|
44
|
+
"@teambit/ui": "0.0.1156"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/lodash": "4.14.165",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@teambit/dependencies.aspect-docs.pnpm": "0.0.156"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@teambit/legacy": "1.0.
|
|
59
|
+
"@teambit/legacy": "1.0.556",
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|