@teambit/prettier 1.0.424 → 1.0.426

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.defender/prettier@1.0.424" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/prettier@1.0.426" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={17704:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.424",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(41594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},41594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>i,compositions_metadata:()=>d,overview:()=>n});const i=[o(17704)],n=[],d={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={414:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.426",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>i,compositions_metadata:()=>d,overview:()=>n});const i=[o(414)],n=[],d={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
@@ -239,7 +239,7 @@
239
239
  "componentId": {
240
240
  "scope": "teambit.defender",
241
241
  "name": "prettier/config-mutator",
242
- "version": "0.0.100"
242
+ "version": "0.0.101"
243
243
  }
244
244
  }
245
245
  },
@@ -778,7 +778,7 @@
778
778
  "componentId": {
779
779
  "scope": "teambit.defender",
780
780
  "name": "prettier/config-mutator",
781
- "version": "0.0.100"
781
+ "version": "0.0.101"
782
782
  }
783
783
  }
784
784
  },
@@ -993,7 +993,7 @@
993
993
  "componentId": {
994
994
  "scope": "teambit.defender",
995
995
  "name": "prettier/config-mutator",
996
- "version": "0.0.100"
996
+ "version": "0.0.101"
997
997
  }
998
998
  },
999
999
  "isOptional": false,
@@ -1025,7 +1025,7 @@
1025
1025
  "componentId": {
1026
1026
  "scope": "teambit.defender",
1027
1027
  "name": "prettier/config-mutator",
1028
- "version": "0.0.100"
1028
+ "version": "0.0.101"
1029
1029
  }
1030
1030
  }
1031
1031
  },
@@ -1052,7 +1052,7 @@
1052
1052
  "componentId": {
1053
1053
  "scope": "teambit.defender",
1054
1054
  "name": "prettier/config-mutator",
1055
- "version": "0.0.100"
1055
+ "version": "0.0.101"
1056
1056
  }
1057
1057
  },
1058
1058
  "isOptional": false,
@@ -1070,7 +1070,7 @@
1070
1070
  "componentId": {
1071
1071
  "scope": "teambit.defender",
1072
1072
  "name": "prettier/config-mutator",
1073
- "version": "0.0.100"
1073
+ "version": "0.0.101"
1074
1074
  }
1075
1075
  },
1076
1076
  "modifiers": [
@@ -1095,7 +1095,7 @@
1095
1095
  "componentId": {
1096
1096
  "scope": "teambit.defender",
1097
1097
  "name": "prettier",
1098
- "version": "1.0.424"
1098
+ "version": "1.0.426"
1099
1099
  },
1100
1100
  "taggedModuleExports": []
1101
1101
  }
@@ -46,7 +46,7 @@ class PrettierFormatter {
46
46
  let parser;
47
47
  if (filePath) {
48
48
  const ext = filePath.split('.').pop();
49
- const supportInfo = this.prettierModule.getSupportInfo();
49
+ const supportInfo = await this.prettierModule.getSupportInfo();
50
50
  const language = supportInfo.languages.find(lang => lang.extensions && lang.extensions.includes(`.${ext}`));
51
51
  if (language) {
52
52
  parser = language.parsers[0];
@@ -1 +1 @@
1
- {"version":3,"names":["_prettier","data","_interopRequireDefault","require","_pMapSeries","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","PrettierFormatter","constructor","logger","options","prettierModule","PrettierLib","displayConfig","JSON","stringify","format","context","run","formatSnippet","snippet","filePath","parser","ext","split","pop","supportInfo","getSupportInfo","language","languages","find","lang","extensions","includes","parsers","optsWithFilePath","assign","filepath","check","longProcessLogger","createLongProcessLogger","components","length","resultsP","mapSeries","component","logProgress","id","toString","mergedOpts","getOptions","filesP","filesystem","files","map","file","sourceCode","contents","addFilePathToOpts","checkFormatResults","formatResults","hasIssues","newContent","undefined","Buffer","from","write","relative","Promise","all","results","errors","path","version","exports"],"sources":["prettier.formatter.ts"],"sourcesContent":["import { AbstractVinyl } from '@teambit/component.sources';\nimport {\n Formatter,\n FormatterContext,\n FormatResults,\n FileFormatResult,\n ComponentFormatResult,\n} from '@teambit/formatter';\nimport PrettierLib, { Options as PrettierModuleOptions } from 'prettier';\nimport mapSeries from 'p-map-series';\nimport { Logger } from '@teambit/logger';\nimport { ExecutionContext } from '@teambit/envs';\n// import { PrettierOptions } from './prettier.main.runtime';\n\nexport class PrettierFormatter implements Formatter {\n constructor(\n private logger: Logger,\n\n private options: PrettierModuleOptions,\n\n /**\n * reference to the prettier module.\n */\n private prettierModule = PrettierLib\n ) {}\n\n id = 'prettier-formatter';\n displayName = 'Prettier';\n\n displayConfig() {\n return JSON.stringify(this.options, null, 2);\n }\n\n async format(context: FormatterContext): Promise<FormatResults> {\n return this.run(context);\n }\n\n async formatSnippet(snippet: string, filePath?: string): Promise<string> {\n let parser;\n\n if (filePath) {\n const ext = filePath.split('.').pop();\n const supportInfo = this.prettierModule.getSupportInfo();\n const language = supportInfo.languages.find((lang) => lang.extensions && lang.extensions.includes(`.${ext}`));\n\n if (language) {\n parser = language.parsers[0];\n }\n }\n\n parser = parser || 'babel';\n\n const optsWithFilePath = Object.assign({}, this.options, { filepath: filePath, parser });\n\n return this.prettierModule.format(snippet, optsWithFilePath);\n }\n\n async check(context: FormatterContext): Promise<FormatResults> {\n return this.run(context);\n }\n\n private async run(context: FormatterContext & ExecutionContext): Promise<FormatResults> {\n const check = !!context.check;\n const longProcessLogger = this.logger.createLongProcessLogger('formatting components', context.components.length);\n const resultsP = mapSeries(context.components, async (component): Promise<ComponentFormatResult> => {\n longProcessLogger.logProgress(component.id.toString());\n const mergedOpts = this.getOptions(this.options, context);\n const filesP = component.filesystem.files.map(async (file): Promise<FileFormatResult> => {\n const sourceCode = file.contents.toString('utf8');\n const optsWithFilePath = this.addFilePathToOpts(mergedOpts, file);\n const checkFormatResults = await this.prettierModule.check(sourceCode, optsWithFilePath);\n const formatResults = await this.prettierModule.format(sourceCode, optsWithFilePath);\n\n const hasIssues = !checkFormatResults;\n const newContent = typeof formatResults === 'string' && hasIssues ? formatResults : undefined;\n\n if (!check && newContent) {\n file.contents = Buffer.from(newContent);\n await file.write(undefined, true);\n }\n\n return {\n filePath: file.relative,\n hasIssues,\n newContent,\n };\n });\n\n const files = await Promise.all(filesP);\n\n return {\n component,\n results: files,\n };\n });\n\n const results = await resultsP;\n\n return {\n results,\n errors: [],\n };\n }\n\n /**\n * get options for eslint.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n private getOptions(options: PrettierModuleOptions, context: FormatterContext): PrettierModuleOptions {\n return options;\n }\n\n private addFilePathToOpts(options: PrettierModuleOptions, file: AbstractVinyl): PrettierModuleOptions {\n return Object.assign({}, options, { filepath: file.path });\n }\n\n version() {\n return this.prettierModule.version;\n }\n}\n"],"mappings":";;;;;;AAQA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqC,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,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O,GAAG,MAAM3B,QAAQ;IAE9B,OAAO;MACL2B,OAAO;MACPC,MAAM,EAAE;IACV,CAAC;EACH;;EAEA;AACF;AACA;EACE;EACQrB,UAAUA,CAACxC,OAA8B,EAAEO,OAAyB,EAAyB;IACnG,OAAOP,OAAO;EAChB;EAEQgD,iBAAiBA,CAAChD,OAA8B,EAAE6C,IAAmB,EAAyB;IACpG,OAAO9D,MAAM,CAAC2C,MAAM,CAAC,CAAC,CAAC,EAAE1B,OAAO,EAAE;MAAE2B,QAAQ,EAAEkB,IAAI,CAACiB;IAAK,CAAC,CAAC;EAC5D;EAEAC,OAAOA,CAAA,EAAG;IACR,OAAO,IAAI,CAAC9D,cAAc,CAAC8D,OAAO;EACpC;AACF;AAACC,OAAA,CAAAnE,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_prettier","data","_interopRequireDefault","require","_pMapSeries","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","PrettierFormatter","constructor","logger","options","prettierModule","PrettierLib","displayConfig","JSON","stringify","format","context","run","formatSnippet","snippet","filePath","parser","ext","split","pop","supportInfo","getSupportInfo","language","languages","find","lang","extensions","includes","parsers","optsWithFilePath","assign","filepath","check","longProcessLogger","createLongProcessLogger","components","length","resultsP","mapSeries","component","logProgress","id","toString","mergedOpts","getOptions","filesP","filesystem","files","map","file","sourceCode","contents","addFilePathToOpts","checkFormatResults","formatResults","hasIssues","newContent","undefined","Buffer","from","write","relative","Promise","all","results","errors","path","version","exports"],"sources":["prettier.formatter.ts"],"sourcesContent":["import { AbstractVinyl } from '@teambit/component.sources';\nimport {\n Formatter,\n FormatterContext,\n FormatResults,\n FileFormatResult,\n ComponentFormatResult,\n} from '@teambit/formatter';\nimport PrettierLib, { Options as PrettierModuleOptions } from 'prettier';\nimport mapSeries from 'p-map-series';\nimport { Logger } from '@teambit/logger';\nimport { ExecutionContext } from '@teambit/envs';\n// import { PrettierOptions } from './prettier.main.runtime';\n\nexport class PrettierFormatter implements Formatter {\n constructor(\n private logger: Logger,\n\n private options: PrettierModuleOptions,\n\n /**\n * reference to the prettier module.\n */\n private prettierModule = PrettierLib\n ) {}\n\n id = 'prettier-formatter';\n displayName = 'Prettier';\n\n displayConfig() {\n return JSON.stringify(this.options, null, 2);\n }\n\n async format(context: FormatterContext): Promise<FormatResults> {\n return this.run(context);\n }\n\n async formatSnippet(snippet: string, filePath?: string): Promise<string> {\n let parser;\n\n if (filePath) {\n const ext = filePath.split('.').pop();\n const supportInfo = await this.prettierModule.getSupportInfo();\n const language = supportInfo.languages.find((lang) => lang.extensions && lang.extensions.includes(`.${ext}`));\n\n if (language) {\n parser = language.parsers[0];\n }\n }\n\n parser = parser || 'babel';\n\n const optsWithFilePath = Object.assign({}, this.options, { filepath: filePath, parser });\n\n return this.prettierModule.format(snippet, optsWithFilePath);\n }\n\n async check(context: FormatterContext): Promise<FormatResults> {\n return this.run(context);\n }\n\n private async run(context: FormatterContext & ExecutionContext): Promise<FormatResults> {\n const check = !!context.check;\n const longProcessLogger = this.logger.createLongProcessLogger('formatting components', context.components.length);\n const resultsP = mapSeries(context.components, async (component): Promise<ComponentFormatResult> => {\n longProcessLogger.logProgress(component.id.toString());\n const mergedOpts = this.getOptions(this.options, context);\n const filesP = component.filesystem.files.map(async (file): Promise<FileFormatResult> => {\n const sourceCode = file.contents.toString('utf8');\n const optsWithFilePath = this.addFilePathToOpts(mergedOpts, file);\n const checkFormatResults = await this.prettierModule.check(sourceCode, optsWithFilePath);\n const formatResults = await this.prettierModule.format(sourceCode, optsWithFilePath);\n\n const hasIssues = !checkFormatResults;\n const newContent = typeof formatResults === 'string' && hasIssues ? formatResults : undefined;\n\n if (!check && newContent) {\n file.contents = Buffer.from(newContent);\n await file.write(undefined, true);\n }\n\n return {\n filePath: file.relative,\n hasIssues,\n newContent,\n };\n });\n\n const files = await Promise.all(filesP);\n\n return {\n component,\n results: files,\n };\n });\n\n const results = await resultsP;\n\n return {\n results,\n errors: [],\n };\n }\n\n /**\n * get options for eslint.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n private getOptions(options: PrettierModuleOptions, context: FormatterContext): PrettierModuleOptions {\n return options;\n }\n\n private addFilePathToOpts(options: PrettierModuleOptions, file: AbstractVinyl): PrettierModuleOptions {\n return Object.assign({}, options, { filepath: file.path });\n }\n\n version() {\n return this.prettierModule.version;\n }\n}\n"],"mappings":";;;;;;AAQA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqC,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,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/8891be5ad/teambit.defender_prettier@1.0.424/dist/prettier.composition.js';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_prettier@1.0.426/dist/prettier.composition.js';
2
2
  ;
3
3
 
4
4
  export const compositions = [compositions_0];
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@teambit/prettier",
3
- "version": "1.0.424",
3
+ "version": "1.0.426",
4
4
  "homepage": "https://bit.cloud/teambit/defender/prettier",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "prettier",
9
- "version": "1.0.424"
9
+ "version": "1.0.426"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
- "prettier": "2.8.8",
13
+ "prettier": "3.3.3",
14
14
  "@teambit/harmony": "0.4.6",
15
- "@teambit/component.sources": "0.0.33",
16
- "@teambit/envs": "1.0.424",
17
- "@teambit/formatter": "1.0.424",
18
- "@teambit/logger": "0.0.1094",
19
- "@teambit/cli": "0.0.1001",
20
- "@teambit/defender.prettier.config-mutator": "0.0.100",
21
- "@teambit/workspace-config-files": "1.0.424"
15
+ "@teambit/component.sources": "0.0.34",
16
+ "@teambit/envs": "1.0.426",
17
+ "@teambit/formatter": "1.0.426",
18
+ "@teambit/logger": "0.0.1096",
19
+ "@teambit/cli": "0.0.1003",
20
+ "@teambit/defender.prettier.config-mutator": "0.0.101",
21
+ "@teambit/workspace-config-files": "1.0.426"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/prettier": "2.7.3",