@teambit/pnpm 0.0.779 → 0.0.780

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.
@@ -1 +1 @@
1
- {"version":3,"names":["BitErrorWithRichMessage","BitError","constructor","message","richMessage","report","pnpmErrorToBitError","err","renderErrorMessage","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 return new BitErrorWithRichMessage(err.message, renderErrorMessage(err));\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;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,uBAAN,SAAsCC,oBAAtC,CAA+C;EAEpDC,WAAW,CAAEC,OAAF,EAAmBC,WAAnB,EAAwC;IACjD,MAAMD,OAAN;IADiD;IAEjD,KAAKC,WAAL,GAAmBA,WAAnB;EACD;;EACMC,MAAM,GAAG;IACd,OAAO,KAAKD,WAAZ;EACD;;AARmD;;;;AAW/C,SAASE,mBAAT,CAA8BC,GAA9B,EAAwD;EAC7D,OAAO,IAAIP,uBAAJ,CAA4BO,GAAG,CAACJ,OAAhC,EAAyCK,kBAAkB,CAACD,GAAD,CAA3D,CAAP;AACD;;AAED,SAASC,kBAAT,CAA6BD,GAA7B,EAAqD;EACnD,IAAIA,GAAG,CAACE,IAAJ,CAASC,UAAT,CAAoB,iBAApB,CAAJ,EAA4C;IAC1C;IACA;IACA,OAAQ,GAAEH,GAAG,CAACJ,OAAQ;AAC1B;AACA,EAAEI,GAAG,CAACI,IAAK,EAFP;EAGD;;EACD,OAAOJ,GAAG,CAACJ,OAAX;AACD"}
1
+ {"version":3,"names":["BitErrorWithRichMessage","BitError","constructor","message","richMessage","report","pnpmErrorToBitError","err","renderErrorMessage","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 return new BitErrorWithRichMessage(err.message, renderErrorMessage(err));\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;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,uBAAN,SAAsCC,oBAAtC,CAA+C;EAEpDC,WAAW,CAACC,OAAD,EAAkBC,WAAlB,EAAuC;IAChD,MAAMD,OAAN;IADgD;IAEhD,KAAKC,WAAL,GAAmBA,WAAnB;EACD;;EACMC,MAAM,GAAG;IACd,OAAO,KAAKD,WAAZ;EACD;;AARmD;;;;AAW/C,SAASE,mBAAT,CAA6BC,GAA7B,EAAuD;EAC5D,OAAO,IAAIP,uBAAJ,CAA4BO,GAAG,CAACJ,OAAhC,EAAyCK,kBAAkB,CAACD,GAAD,CAA3D,CAAP;AACD;;AAED,SAASC,kBAAT,CAA4BD,GAA5B,EAAoD;EAClD,IAAIA,GAAG,CAACE,IAAJ,CAASC,UAAT,CAAoB,iBAApB,CAAJ,EAA4C;IAC1C;IACA;IACA,OAAQ,GAAEH,GAAG,CAACJ,OAAQ;AAC1B;AACA,EAAEI,GAAG,CAACI,IAAK,EAFP;EAGD;;EACD,OAAOJ,GAAG,CAACJ,OAAX;AACD"}
@@ -1 +1 @@
1
- {"version":3,"names":["test","bitError","pnpmErrorToBitError","PnpmError","hint","expect","report","toEqual"],"sources":["pnpm-error-to-bit-error.spec.ts"],"sourcesContent":["import PnpmError from '@pnpm/error';\nimport { pnpmErrorToBitError } from \"./pnpm-error-to-bit-error\";\n\ntest('the hint from the fetch error is used', () => {\n const bitError = pnpmErrorToBitError(new PnpmError('FETCH_404', 'GET https://node.bit.cloud/dsffsdf: Not Found - 404', {\n hint: `dsffsdf is not in the npm registry, or you have no permission to fetch it.\n\nAn authorization header was used: Bearer df96[hidden]`,\n }));\n expect(bitError.report()).toEqual(`GET https://node.bit.cloud/dsffsdf: Not Found - 404\n\ndsffsdf is not in the npm registry, or you have no permission to fetch it.\n\nAn authorization header was used: Bearer df96[hidden]`);\n});\n"],"mappings":";;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEAA,IAAI,CAAC,uCAAD,EAA0C,MAAM;EAClD,MAAMC,QAAQ,GAAG,IAAAC,0CAAA,EAAoB,KAAIC,gBAAJ,EAAc,WAAd,EAA2B,qDAA3B,EAAkF;IACrHC,IAAI,EAAG;AACX;AACA;EAHyH,CAAlF,CAApB,CAAjB;EAKAC,MAAM,CAACJ,QAAQ,CAACK,MAAT,EAAD,CAAN,CAA0BC,OAA1B,CAAmC;AACrC;AACA;AACA;AACA,sDAJE;AAKD,CAXG,CAAJ"}
1
+ {"version":3,"names":["test","bitError","pnpmErrorToBitError","PnpmError","hint","expect","report","toEqual"],"sources":["pnpm-error-to-bit-error.spec.ts"],"sourcesContent":["import PnpmError from '@pnpm/error';\nimport { pnpmErrorToBitError } from './pnpm-error-to-bit-error';\n\ntest('the hint from the fetch error is used', () => {\n const bitError = pnpmErrorToBitError(\n new PnpmError('FETCH_404', 'GET https://node.bit.cloud/dsffsdf: Not Found - 404', {\n hint: `dsffsdf is not in the npm registry, or you have no permission to fetch it.\n\nAn authorization header was used: Bearer df96[hidden]`,\n })\n );\n expect(bitError.report()).toEqual(`GET https://node.bit.cloud/dsffsdf: Not Found - 404\n\ndsffsdf is not in the npm registry, or you have no permission to fetch it.\n\nAn authorization header was used: Bearer df96[hidden]`);\n});\n"],"mappings":";;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEAA,IAAI,CAAC,uCAAD,EAA0C,MAAM;EAClD,MAAMC,QAAQ,GAAG,IAAAC,0CAAA,EACf,KAAIC,gBAAJ,EAAc,WAAd,EAA2B,qDAA3B,EAAkF;IAChFC,IAAI,EAAG;AACb;AACA;EAHsF,CAAlF,CADe,CAAjB;EAOAC,MAAM,CAACJ,QAAQ,CAACK,MAAT,EAAD,CAAN,CAA0BC,OAA1B,CAAmC;AACrC;AACA;AACA;AACA,sDAJE;AAKD,CAbG,CAAJ"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/pnpm",
3
- "version": "0.0.779",
3
+ "version": "0.0.780",
4
4
  "homepage": "https://bit.dev/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.779"
9
+ "version": "0.0.780"
10
10
  },
11
11
  "dependencies": {
12
12
  "@pnpm/error": "2.1.0",
@@ -36,14 +36,14 @@
36
36
  "@babel/runtime": "7.12.18",
37
37
  "core-js": "^3.0.0",
38
38
  "@teambit/harmony": "0.3.3",
39
- "@teambit/dependency-resolver": "0.0.779",
40
- "@teambit/logger": "0.0.608",
39
+ "@teambit/dependency-resolver": "0.0.780",
40
+ "@teambit/logger": "0.0.609",
41
41
  "@teambit/bit-error": "0.0.394",
42
- "@teambit/cli": "0.0.515",
43
- "@teambit/pkg": "0.0.779",
44
- "@teambit/component": "0.0.779",
45
- "@teambit/ui-foundation.ui.use-box.menu": "0.0.115",
46
- "@teambit/ui": "0.0.779"
42
+ "@teambit/cli": "0.0.516",
43
+ "@teambit/pkg": "0.0.780",
44
+ "@teambit/component": "0.0.780",
45
+ "@teambit/ui-foundation.ui.use-box.menu": "0.0.116",
46
+ "@teambit/ui": "0.0.780"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/lodash": "4.14.165",
@@ -54,10 +54,10 @@
54
54
  "@types/jest": "^26.0.0",
55
55
  "@types/react-dom": "^17.0.5",
56
56
  "@types/node": "12.20.4",
57
- "@teambit/dependencies.aspect-docs.pnpm": "0.0.138"
57
+ "@teambit/dependencies.aspect-docs.pnpm": "0.0.139"
58
58
  },
59
59
  "peerDependencies": {
60
- "@teambit/legacy": "1.0.296",
60
+ "@teambit/legacy": "1.0.297",
61
61
  "react-dom": "^16.8.0 || ^17.0.0",
62
62
  "react": "^16.8.0 || ^17.0.0"
63
63
  },
@@ -85,7 +85,7 @@
85
85
  "react": "-"
86
86
  },
87
87
  "peerDependencies": {
88
- "@teambit/legacy": "1.0.296",
88
+ "@teambit/legacy": "1.0.297",
89
89
  "react-dom": "^16.8.0 || ^17.0.0",
90
90
  "react": "^16.8.0 || ^17.0.0"
91
91
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.779/dist/pnpm.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.779/dist/pnpm.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.780/dist/pnpm.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.dependencies_pnpm@0.0.780/dist/pnpm.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];